Skip to content

Gradient vs divergence vs curl: what each one tells you

6 min read

Short answer

All three come from the operator ∇=(∂x,∂y,∂z)\nabla=(\partial_x,\partial_y,\partial_z). The gradient turns a scalar field into a vector field (pointing uphill). The divergence turns a vector field into a scalar (how much it spreads out from a point). The curl turns a vector field into another vector field (how much, and around which axis, it rotates).

Three vector fields: gradient pointing outward, a spreading field with positive divergence, and a rotating field with curlgradientdivergencecurlf = x² + y²F = (x, y): div 2F = (−y, x): curl 2
Left: gradient of x² + y² points away from the minimum. Middle: F = (x, y) spreads out (divergence 2). Right: F = (−y, x) rotates (curl 2).

Look at the input and the output

The quickest way to keep them straight:

  • Gradient ∇f=(fx,fy,fz)\nabla f=(f_x,f_y,f_z): scalar in, vector out. It points in the direction of steepest increase and is perpendicular to level curves.
  • Divergence ∇⋅F=Px+Qy+Rz\nabla\cdot\mathbf F=P_x+Q_y+R_z: vector in, scalar out. Positive at a source, negative at a sink.
  • Curl ∇×F=(Ry−Qz, Pz−Rx, Qx−Py)\nabla\times\mathbf F=(R_y-Q_z,\ P_z-R_x,\ Q_x-P_y): vector in, vector out. It points along the axis of rotation (right-hand rule); its size is twice the local angular speed.

Here F=(P,Q,R)\mathbf F=(P,Q,R). If the types do not match, the expression is meaningless: the divergence of a scalar does not exist.

Two identities worth knowing

∇×(∇f)=0and∇⋅(∇×F)=0.\nabla\times(\nabla f)=\mathbf 0\qquad\text{and}\qquad \nabla\cdot(\nabla\times\mathbf F)=0. The first says a gradient field has no rotation (this is why conservative fields are curl-free). The second says a curl field has no sources. They are the quickest sanity checks when your arithmetic looks suspicious.

Worked example

For F=(xy, yz, zx)\mathbf F=(xy,\ yz,\ zx) find the divergence and the curl.

Here P=xyP=xy, Q=yzQ=yz, R=zxR=zx.

Divergence: Px+Qy+Rz=y+z+xP_x+Q_y+R_z=y+z+x.

Curl:

  • first component Ry−Qz=0−y=−yR_y-Q_z=0-y=-y,
  • second component Pz−Rx=0−z=−zP_z-R_x=0-z=-z,
  • third component Qx−Py=0−x=−xQ_x-P_y=0-x=-x.

So ∇×F=(−y, −z, −x)\nabla\times\mathbf F=(-y,\,-z,\,-x).

Try it yourself

For F=(x2, xy, z)\mathbf F=(x^2,\ xy,\ z) compute ∇⋅F\nabla\cdot\mathbf F and ∇×F\nabla\times\mathbf F.

Show the answer

Divergence: 2x+x+1=3x+12x+x+1=3x+1. Curl: (Ry−Qz, Pz−Rx, Qx−Py)=(0−0, 0−0, y−0)=(0,0,y)(R_y-Q_z,\ P_z-R_x,\ Q_x-P_y)=(0-0,\ 0-0,\ y-0)=(0,0,y).

Keep going with practice

Vidi's Multivariable & Vector Calculus course includes a vector-field explorer that shows divergence and curl as you move around the field.