Divergence and Curl

Read local expansion and rotation from derivatives of a vector field.

Builds on Green’s Theorem

The bigger question: How do local changes inside a field relate to its boundary?

On this page

Two local measurements

Divergence measures net outward flow per unit volume near a point. Curl measures local circulation per unit area, with its direction set by the right-hand rule. Neither is the magnitude of the field itself. A large uniform velocity has zero divergence and zero curl.

Visual guide

VISUAL GUIDEExpansion and rotation are different field patterns

Source: divergence

The left field (x, y) flows outward and has planar divergence 2 with zero curl. The right field (−y, x) circulates and has curl component 2 with zero divergence. Arrows are normalized to show direction, not speed.-2-2-1-1001122xy

Rotation: curl

The left field (x, y) flows outward and has planar divergence 2 with zero curl. The right field (−y, x) circulates and has curl component 2 with zero divergence. Arrows are normalized to show direction, not speed.-2-2-1-1001122xy
The left field (x, y) flows outward and has planar divergence 2 with zero curl. The right field (−y, x) circulates and has curl component 2 with zero divergence. Arrows are normalized to show direction, not speed.

Compute from components

For F=(P,Q,R)\mathbf F=(P,Q,R),

∇⋅F=Px+Qy+Rz.\nabla\cdot\mathbf F=P_x+Q_y+R_z. ∇×F=(Ry−Qz,Pz−Rx,Qx−Py).\nabla\times\mathbf F=(R_y-Q_z,P_z-R_x,Q_x-P_y).

Divergence is a scalar; curl is a vector. In a planar field (P,Q,0)(P,Q,0) independent of zz, only the curl’s zz component survives. When second partial derivatives are continuous, ∇×∇f=0\nabla\times\nabla f=0 and ∇⋅(∇×F)=0\nabla\cdot(\nabla\times\mathbf F)=0.

Worked example: a source

For F=(x,y,z)\mathbf F=(x,y,z), divergence is 33 and curl is zero. Across a small cube of side hh, opposite faces contribute a net h3h^3 in each coordinate direction, giving total outward flux 3h33h^3. Dividing by volume recovers 33.

PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

For F=(x,y,z), what is ∇·F?

Hint 1 · Find a starting point

Divergence is a scalar sum of matching partial derivatives.

Hint 2 · Take the next step

Compute ∂x/∂x+∂y/∂y+∂z/∂z.

Show the reasoning

Answer: 3

1+1+1=3, indicating positive local expansion.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

Worked example: rotation without expansion

For F=(−y,x,0)\mathbf F=(-y,x,0), divergence is zero and curl is (0,0,2)(0,0,2). The vectors are tangent to circles about the zz axis. A unit square in the xyxy plane has counterclockwise circulation 22. The fluid rotates without net local volume creation.

Interpreting a zero

Zero divergence does not force a field to vanish: material can enter one side and leave another. Zero curl does not by itself guarantee a global potential on a domain with holes. These differential measurements become total flux and total circulation through the integral theorems later in the unit.

Practice

  1. Find divergence and curl of (2x,−y,3z)(2x,-y,3z).
  2. Repeat for the constant field (4,1,−2)(4,1,-2).
  3. Can (x,y,z)(x,y,z) be the curl of a smooth field on an open region?
Show worked solutions
  1. Divergence 2−1+3=42-1+3=4; every cross derivative is zero, so curl is zero.
  2. All derivatives vanish, giving both zero despite nonzero velocity.
  3. No. Every smooth curl has zero divergence, whereas this field has divergence 33.

Further study

MIT OpenCourseWare: Multivariable Calculus provides a full university course with additional lectures and exercises.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →