Lesson 5.8 · Vector Calculus
The divergence theorem
The flux form of Green's theorem says the net outflow across a closed curve equals the total divergence inside it. The divergence theorem (also called Gauss's theorem) is the same statement one dimension up: the flux of a vector field out of a closed surface equals the triple integral of its divergence over the solid inside. It turns hard flux integrals into easy volume integrals, and it underlies conservation laws in physics.
The theorem
A closed surface is one that encloses a solid, like a sphere, the six faces of a cube, or a cylinder with its top and bottom. Closed surfaces get the outward orientation by default: the unit normal points away from the solid.
The divergence theorem
Let be a solid region whose boundary is a closed, piecewise-smooth surface with outward orientation. If has continuous partial derivatives on an open region containing , then
Why it's true. Think of as fluid velocity. The divergence at a point is the outflow per unit volume from a tiny box there. Stack all the tiny boxes that fill : fluid leaving one box through a shared face enters its neighbor, so interior faces cancel. What's left is the flow through the outer boundary . Total sources inside equal net flow out.
Worked example: A sphere
Find the outward flux of across the sphere of radius centered at the origin.
, so the flux is . This matches the direct surface-integral computation from the previous lessons, with no parametrization needed.
Worked example: A variable divergence
Find the outward flux of across the unit sphere.
. In spherical coordinates, :
Worked example: Six faces at once
Find the outward flux of across the boundary of the unit cube .
A direct computation would need six surface integrals. Instead, , and
(Each term integrates separately: and , over a cube of volume .)
Surfaces that aren't closed
The divergence theorem needs a closed surface. If you want the flux through an open surface, like a hemisphere or a paraboloid cap, you can often close it off with a simple flat piece, apply the theorem to the closed surface, and subtract the flux through the piece you added.
Worked example: Closing a hemisphere
Find the flux of outward through the upper unit hemisphere , .
Add the disk : in the plane , with outward (downward) normal . Together they bound the solid half-ball .
Whole closed surface. , and has volume , so the total outward flux is .
Bottom disk. , so the flux through is .
Hemisphere. .
Gauss's law
The inverse-square field (the electric field of a point charge at the origin, in suitable units) has everywhere except the origin, where it is undefined. Two cases:
- If a closed surface does not enclose the origin, the divergence theorem applies and the flux is .
- If does enclose the origin, cut out a tiny sphere around it. The divergence theorem on the region between them shows the flux through equals the flux through the tiny sphere, which a direct computation gives as .
So the flux depends only on the enclosed charge, not on the shape of the surface. That is Gauss's law.
Common mistake
Check two things before using the theorem: the surface must be closed (otherwise close it off and subtract), and must be smooth everywhere inside. A field like that blows up inside the surface needs the cut-out argument above.
Tip
If , the outward flux through every closed surface (enclosing only points where is smooth) is . Spot this before doing any integrals.
Practice
Find the outward flux of across the unit sphere.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the outward flux of across the boundary of the cube .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let and let be the boundary of any solid region, oriented outward. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the outward flux of across the closed cylinder bounded by , and (including the top and bottom).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the outward flux of across the closed cylinder bounded by , and .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let be the solid between the spheres of radius and centered at the origin. Find the outward flux of across the boundary of (both spheres, each oriented away from ).
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the flux of upward through the paraboloid , .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Let . A closed surface is a cube centered at with side length , oriented outward. What is the flux of across ?