The divergence theorem, explained
5 min read
Short answer
For a solid with closed boundary surface oriented outward, Divergence measures how much the field is spreading out at each point (sources minus sinks), so the total flux out through the boundary equals the total production inside.
Why it is true
Split the solid into tiny boxes. For each box, the net outward flux is the divergence times its volume. When boxes touch, the flux out of one face is the flux into the next, so interior faces cancel and only the outer boundary remains.
Conditions
The surface must be closed and the field must be continuously differentiable throughout the solid. If blows up inside (like at the origin), the theorem does not apply directly. For an open surface, close it off with extra pieces and subtract their flux.
Worked example
Verify the divergence theorem for on the unit cube .
Volume side: , so Surface side: the face has and , flux . The face has . The same for and . Total flux . ✓
Try it yourself
For , compute the flux leaving a ball of radius 3 centered at the origin.
Show the answer
and the volume is . Flux .
Keep going with practice
The divergence theorem is a highlight of Vidi's Multivariable & Vector Calculus course.