The Divergence Theorem
Learning objectives
- State the Divergence Theorem precisely, including orientation conventions
- Apply it to convert flux integrals to volume integrals (and vice versa)
- Read the theorem as a statement of conservation
- Recognise it as Gauss's law in disguise
The Divergence Theorem is the cleanest statement in vector calculus of "local sources accumulate to global flux." If a vector field has a positive divergence at every point of a region — meaning every point is a tiny source — then the total outward flux through the boundary equals the sum of all those local sources. The theorem unifies a dozen apparently distinct facts in physics: Gauss's law in electrostatics, conservation of mass in fluid flow, heat conservation in thermodynamics. Once you see the pattern, you stop re-deriving these for each application and just invoke the theorem.
Statement of the theorem
Let be a bounded region in whose boundary is a piecewise smooth, closed, orientable surface, oriented by the outward unit normal. Let be a vector field defined on a neighbourhood of . Then
The left side is the flux of outward through . The right side accumulates the source density over the enclosed volume.
Why it is a conservation law
If is the mass-flux density of a fluid (mass per area per time crossing a surface), then at a point gives the rate at which mass is being produced per unit volume there. The Divergence Theorem says: total production inside = total escape across the boundary. If nothing is created or destroyed (), then the net flux through every closed surface is zero. That is conservation of mass written in three lines.
Gauss's law as a corollary
Apply the theorem to the electric field . Maxwell's first equation in differential form is (charge density divided by permittivity). The Divergence Theorem gives
which is Gauss's law: the flux through a closed surface is the enclosed charge divided by . The reason Gauss's law makes problems with spherical or cylindrical symmetry so easy is that you trade a surface integral (hard) for a volume integral of a density (easy).
(The standard way to internalise the theorem is to compute it both ways on a simple region — a cube or a ball — and check the answers agree. Two such examples appear below.)
Pause and think: If a vector field has everywhere, what does the Divergence Theorem tell you about the flux through ANY closed surface? Does the shape of the surface matter?
Try it
- Predict, then verify: for and the unit ball, compute both sides of the theorem. (Both should equal .) On the surface, the outward normal at on the unit sphere is itself, so .
- For on the unit cube , predict the flux without integrating over six faces. (Use the theorem: on a unit volume gives flux .)
- Show that has . Conclude that its flux through any closed surface is zero. Interpret physically.
- True or false: the Divergence Theorem can be applied to a region with a hole (e.g., a thick spherical shell). If true, what does the formula look like? (Hint: the boundary has two components; orient the inner one carefully.)
A trap to watch for
Orientation. The theorem requires the outward normal. If you use the inward normal you flip the sign of the entire flux integral and get a wrong answer. When the region has multiple boundary components (a hollow ball, say), the outer surface gets outward orientation and the inner one gets inward orientation relative to the original region — equivalently, outward relative to the hole. Get the signs wrong and Gauss's law gives .
What you now know
You can state and apply the Divergence Theorem, recognise it in Gauss's law and the continuity equation, and avoid the orientation trap. Next, Stokes' Theorem (§5.3) gives the curl-and-circulation analogue.
References
- Garrity, T. (2002). All the Mathematics You Missed. Cambridge University Press, ch. 5.
- Marsden, J. E., Tromba, A. J. (2011). Vector Calculus (6th ed.). W. H. Freeman.
- Schey, H. M. (2004). Div, Grad, Curl, and All That (4th ed.). W. W. Norton.
- Griffiths, D. J. (2017). Introduction to Electrodynamics (4th ed.). Cambridge UP, ch. 2 (Gauss's law).
- Spivak, M. (1965). Calculus on Manifolds. W. A. Benjamin.