Calculus › Section P · Vector analysis › Topic P.7

The divergence theorem

For a closed surface, the total outward flux of a vector field equals the integral of its divergence over the solid inside — a boundary measurement traded for an interior one.

The statement

The divergence theorem closes the circle this chapter opened. If \(Q\) is a solid bounded by a closed, piecewise-smooth surface \(S\), and \(\mathbf{F} = \langle M, N, P \rangle\) is smooth on a region containing \(Q\), then

\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_Q \operatorname{div} \mathbf{F} \, dV.

The outward normal is part of the statement, not an afterthought: flux through a closed surface, oriented outward, equals the divergence integrated over the enclosed solid. Green's theorem in flux form made this exact trade in the plane — boundary outflow = \(\iint \operatorname{div} \mathbf{F} \, dA\) — and here the same trade happens one dimension up. Divergence is outflow per unit volume (the fluid picture from the vector-fields topic), and the theorem totals it: every unit of source inside shows up as flow across the boundary.

Why it is true: a sketch

Chop \(Q\) into many tiny boxes. For each box, flux out of the box is approximately \(\operatorname{div} \mathbf{F}\) times the box's volume — that is what divergence measures. Now add over all boxes. Every interior face is shared by two neighbouring boxes, and flow out of one box is flow into its neighbour: the contributions cancel in pairs. Only faces on the boundary \(S\) have no partner, so the total sum equals the flux through \(S\) — while the left side, summed, is a Riemann sum for \(\iiint_Q \operatorname{div} \mathbf{F} \, dV\). Let the boxes shrink and both sides converge to the same number: boundary flux = interior divergence integral. No new geometry appears here, only cancellation — the same idea that made Green's theorem work, now in boxes instead of tiles.

Worked example: the sphere, officially

The surface-integrals topic computed by hand that \(\mathbf{F} = \langle x, y, z \rangle\) carries flux \(4\pi a^3\) out of the sphere of radius \(a\). The divergence theorem now makes it a one-liner: \(\operatorname{div} \mathbf{F} = 1 + 1 + 1 = 3\), so

\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_Q 3 \, dV = 3 \cdot \frac{4}{3}\pi a^3 = 4\pi a^3.

The theorem's fluid reading is exact here: every cubic unit of ball emits 3 units of outward flow, and a uniformly radiating source of density 3 in a volume \(\frac{4}{3}\pi a^3\) emits \(4\pi a^3\) in total. The direct parametrised computation of the previous topic agrees — that is the audit, already banked.

Worked example: a cube, checked six ways

Find the flux of \(\mathbf{F} = \langle x, y, z \rangle\) out of the cube centred at the origin with side 2. Theorem first: \(\operatorname{div} \mathbf{F} = 3\) and the volume is \(2^3 = 8\), so the flux is \(3 \cdot 8 = 24\). Second route, face by face: on the face \(x = 1\) the outward normal is \(\langle 1, 0, 0 \rangle\), so \(\mathbf{F} \cdot \mathbf{n} = x = 1\), a constant, and that face contributes \(1 \cdot 4 = 4\) (its area is 4). On \(x = -1\) the normal is \(\langle -1, 0, 0 \rangle\) and \(\mathbf{F} \cdot \mathbf{n} = -x = 1\) — every face contributes 4 by identical arithmetic, and six faces give \(6 \cdot 4 = 24\). The theorem compressed six surface integrals into one volume of a box.

Zero flux without a zero field

Surprise: the flux of \(\mathbf{F} = \langle x^2, y^2, z^2 \rangle\) out of the sphere \(x^2 + y^2 + z^2 = a^2\) is zero. By the theorem, \(\operatorname{div} \mathbf{F} = 2x + 2y + 2z\), and each term is an odd function integrated over a solid symmetric about the origin — every positive contribution at \(x\) is cancelled by its mirror at \(-x\), so \(\iiint_Q \operatorname{div} \mathbf{F} \, dV = 0\). The direct check agrees: on the sphere \(\mathbf{F} \cdot \mathbf{n} = (x^3 + y^3 + z^3)/a\), again odd, again cancelling. Zero flux does not mean the field vanishes, or is constant, or is everywhere tangent to the sphere — it means sources and sinks balance. The theorem plus symmetry is a shortcut no direct computation matches.

Solids with holes

A solid between two concentric spheres has a boundary in two pieces, and the theorem demands both — each oriented outward, meaning away from the solid. For the outer sphere that is the usual away-from-the-centre direction; for the inner sphere it points toward the centre, INTO the hole, because that is the direction that leaves the solid. This mirrors the annulus discipline from Green's theorem: every boundary piece is walked with the solid on one consistent side. For \(\mathbf{F} = \langle x, y, z \rangle\) through the shell between radii 1 and 2, the theorem gives \(3\) times the shell's volume \(\frac{4}{3}\pi(2^3 - 1^3) = \frac{28}{3}\pi\), so flux \(= 28\pi\); direct geometry gives the same, outer sphere \(4\pi \cdot 8\) minus inner sphere \(4\pi \cdot 1\). Miss the inner sphere, or orient it away from the hole's centre instead of away from the solid, and the books stop balancing.

Where the theorem earns its keep

Physics runs on this trade. Electricity: Gauss's law says the electric flux through any closed surface equals the enclosed charge divided by \(\varepsilon_0\) — a boundary measurement that reveals interior charge, and the reason symmetric charge distributions yield field formulas in one line. Heat: heat flows along \(-\nabla T\), and conservation of energy plus the divergence theorem produces the heat equation \(\partial T/\partial t = c\nabla^2 T\) — temperature diffuses where its Laplacian is positive, the same Laplacian met in the vector-fields topic. Geometry: choosing \(\mathbf{F} = \langle x, y, z \rangle/3\), whose divergence is 1, turns the theorem into a volume formula, \(\text{Vol} = \iint_S \mathbf{F} \cdot d\mathbf{S}\) — the volume of any solid read off its boundary.

Common mistakes to avoid

First, applying the theorem to open surfaces: it demands a closed boundary — a hemisphere alone does not qualify; close it with its base disk (both pieces, outward) or compute the flux directly. Second, the wrong normal: inward normals negate the answer, and for a solid with a hole the inner boundary's outward means away from the solid, not away from the hole's centre. Third, ignoring the conditions: \(\mathbf{F}\) must be smooth throughout \(Q\); a field singular inside (a point charge at the origin, say) voids the warranty unless the singularity is excised by adding an inner boundary sphere around it. Fourth, miscomputing divergence: \(2x + 2y + 2z\) came from \(\langle x^2, y^2, z^2 \rangle\) — differentiate each component against its own variable. Fifth, skipping the direct audit: for symmetric fields the face-by-face or radial computation is often one line — use it to check.

Key takeaways

The divergence theorem trades a boundary measurement for an interior one: outward flux through a closed \(S\) equals \(\iiint_Q \operatorname{div} \mathbf{F} \, dV\), provided \(\mathbf{F}\) is smooth on a region containing \(Q\) and \(S\) is oriented outward. The proof idea is pure cancellation — interior faces between tiny boxes cancel in pairs. Constant divergence makes flux trivial: \(\operatorname{div} \langle x, y, z \rangle = 3\) gives \(4\pi a^3\) for a sphere, 24 for a side-2 cube. Symmetry can kill a flux entirely: odd divergence over a symmetric solid integrates to zero. Solids with holes contribute every boundary piece, outward from the solid. And physics — Gauss's law, heat flow, volume from flux — is the theorem's natural habitat.

Flashcards

Flashcard

Divergence theorem

Outward flux through a closed surface = divergence integrated over the solid

Written ∬ F·dS = ∭ div F dV; the outward normal is part of the statement.

Test your understanding

Question 1 of 5

The divergence theorem equates the outward flux of a smooth field through a closed surface S with which quantity?

Question 2 of 5

Use the divergence theorem to find the flux of F = ⟨x, y, z⟩ out of the sphere of radius a centred at the origin.

Question 3 of 5

Find the flux of F = ⟨x, y, z⟩ out of the cube centred at the origin with side length 2.

Question 4 of 5

A solid lies between two concentric spheres. On the inner boundary sphere, which way does the theorem's outward normal point?

Question 5 of 5

What is the flux of F = ⟨x², y², z²⟩ out of the sphere x² + y² + z² = a² centred at the origin?

Standards: Beyond AP

← Previous topicNext topic →