Skip to content

The divergence theorem, intuitively

7 min read

Short answer

The divergence theorem states ∮ ⁣ ⁣∮SF⋅dS=∭V∇⋅F dV\oint\!\!\oint_{S}\mathbf{F}\cdot d\mathbf{S}=\iiint_V\nabla\cdot\mathbf{F}\,dV: 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.

Inside the solid compared with On the surfaceInside the solidSplit into tiny boxesEach box: outflow =div F × volumeAdd them all upTotal = ∭ div F dVOn the surfaceShared faces: outflowof oneis inflow of theneighborInternal flux cancelsin pairsOnly the outer surfaceis left
Chop the solid into tiny boxes. Interior faces cancel, leaving only the flux through the outer surface.

What divergence measures

For a tiny box with sides dxdx, dydy, dzdz, the flux out through the two faces perpendicular to xx is approximately [F1(x+dx)−F1(x)]dy dz≈∂F1∂x dx dy dz\left[F_1(x+dx)-F_1(x)\right]dy\,dz\approx\dfrac{\partial F_1}{\partial x}\,dx\,dy\,dz. Doing the same for yy and zz and adding gives

net outflow≈(∂F1∂x+∂F2∂y+∂F3∂z)dV=(∇⋅F) dV.\text{net outflow}\approx\left(\frac{\partial F_1}{\partial x}+\frac{\partial F_2}{\partial y}+\frac{\partial F_3}{\partial z}\right)dV=(\nabla\cdot\mathbf{F})\,dV.

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 SS. 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 F\mathbf{F} must be smooth throughout the solid. The classic trap is the inverse-square field F=r∥r∥3\mathbf{F}=\dfrac{\mathbf{r}}{\|\mathbf{r}\|^3}, whose divergence is 00 everywhere except at the origin, yet the flux through any sphere around the origin is 4π4\pi. 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 F=(2x, −y, 3z)\mathbf{F}=(2x,\,-y,\,3z) on the unit cube [0,1]3[0,1]^3.

Divergence: 2−1+3=42-1+3=4, so ∭4 dV=4\iiint4\,dV=4.

Surface, face by face (outward normals): x=1x=1 gives F1=2F_1=2, flux 22; x=0x=0 gives 00; y=1y=1 gives −1-1; y=0y=0 gives 00; z=1z=1 gives 33; z=0z=0 gives 00. Total: 2−1+3=42-1+3=4. ✓

Try it yourself

Use the divergence theorem to find the flux of F=(x,0,0)\mathbf{F}=(x,0,0) out of the unit sphere.

Show the answer

∇⋅F=1\nabla\cdot\mathbf{F}=1, so the flux equals the volume of the unit ball: 43π\tfrac43\pi.

Keep going with practice

Vidi's vector calculus lessons check this theorem against direct flux calculations.