Gradient, Divergence & Curl

Vector calculus describes how fields change in space. Learn vector-valued functions (velocity, acceleration, tangent, curvature), directional derivatives, the gradient, divergence and curl, the Laplacian, key identities, and physical meanings in heat flow, fluid flow and electromagnetism.

Heat flows down the temperature gradient; the divergence of a velocity field tells whether fluid is being created or compressed; the curl of a magnetic field is produced by current. The operator ∇ ties these ideas together and appears in Maxwell's equations and the Navier–Stokes equations.

An analogy

Gradient is the uphill arrow on a hill; divergence is how much a tap spreads water out; curl is how much a paddle wheel placed in the flow would spin.

Curves and motion

For r(t), velocity v = r′, acceleration a = r″, unit tangent T = v/|v|, curvature κ = |v × a|/|v|³ — used in road and track design and robot paths.

Gradient

Points in the direction of fastest increase; perpendicular to level surfaces. Fourier's law q = −k∇T: heat flows opposite to the gradient.

Divergence and curl

Divergence > 0: source (outflow); < 0: sink; = 0: incompressible flow. Curl measures local rotation; curl = 0 means irrotational (conservative) fields.

Physics in ∇ notation

Maxwell: ∇·E = ρ/ε₀, ∇×E = −∂B/∂t, ∇·B = 0, ∇×B = μ₀J + μ₀ε₀∂E/∂t. Heat equation ∂T/∂t = α∇²T; Laplace ∇²φ = 0 for potentials.

Formulas

Worked example: Gradient and directional derivative

Given: f = x²y + yz² at (1, 2, 1); Direction (1, 1, 0)

Find: ∇f and D_u f.

Answer: ∇f = (4, 2, 4); 4.24 along (1, 1, 0)

Worked example: Divergence and curl

Given: F = (x², yz, xz)

Find: ∇·F, ∇×F.

Answer: 3x + z; (−y, −z, 0)

Common mistakes

Applications

Key takeaways

Going further