The divergence theorem, intuitively
7 min read
Short answer
The divergence theorem states : the net flux out of a closed surface equals the total divergence (source strength) inside. Divergence measures outflow per unit volume, and internal flows cancel, so only the surface remains.
What divergence measures
For a tiny box with sides , , , the flux out through the two faces perpendicular to is approximately . Doing the same for and and adding gives
So divergence is flux per unit volume: positive where the field spreads out (a source), negative where it converges (a sink), and zero for an incompressible flow.
Why the boundary is all that is left
Fill the solid with tiny boxes and add their outflows. Each interior face is shared by two neighbors: what leaves one box enters the other, so the two contributions have opposite signs and cancel. Only faces on the outer surface lack a neighbor, so they alone remain, and they assemble into the flux through . The sum of the volume contributions is the left side; the sum of what survives is the right side.
Conditions and a famous caveat
The surface must be closed and oriented outward, and must be smooth throughout the solid. The classic trap is the inverse-square field , whose divergence is everywhere except at the origin, yet the flux through any sphere around the origin is . The point source at the origin is a singularity inside the solid, so the theorem does not apply there without extra care.
Worked example
Verify the theorem for on the unit cube .
Divergence: , so .
Surface, face by face (outward normals): gives , flux ; gives ; gives ; gives ; gives ; gives . Total: . ✓
Try it yourself
Use the divergence theorem to find the flux of out of the unit sphere.
Show the answer
, so the flux equals the volume of the unit ball: .
Keep going with practice
Vidi's vector calculus lessons check this theorem against direct flux calculations.