Multivariable Calculus · Undergraduate
The Divergence Theorem
Quick answer
The divergence theorem says that the total flow out through a closed surface equals the total divergence inside it: the flux of F through the boundary of a solid E, oriented outward, equals the triple integral of div F over E. Divergence measures outflow per unit volume, and the outflows of tiny boxes add up because shared faces cancel. The theorem turns hard flux integrals into routine triple integrals and explains Gauss's law.
What you'll learn
- State the divergence theorem with outward orientation
- Explain why outflows of small boxes add up
- Compute the flux through a closed surface as a triple integral
- Apply the theorem to fields with a singularity, as in Gauss's law
Flow out equals spreading inside
A fluid that leaves a closed container through its walls has to come from somewhere inside: from sources, where the flow spreads out. The divergence theorem turns that bookkeeping into an equation.
Divergence theorem. Let be a solid region whose boundary is a closed, piecewise smooth surface, oriented outward. If has continuous partial derivatives on an open region containing , then
The circle on the double integral marks a closed surface. The left side is the flux out of ; the right side adds up the divergence, the outflow per unit volume, at every point inside.
Why the outflows add up
Cut into many tiny boxes. The flux out of one box of volume is about ; that is what divergence means. Add the fluxes out of all the boxes. A face shared by two neighboring boxes has opposite outward normals for the two of them, so whatever flows out of one flows into the other, and the two contributions cancel. Only the faces on the outside of are left, and together they make up . The sum of is a Riemann sum for the triple integral, and what survives is the flux through . It is the argument behind Green’s and Stokes’ theorems, one dimension up.
Worked examples
One theorem, five times
Every big theorem of this course has the same shape. The integral of a derivative over a region equals an integral of the original over the region’s boundary:
| Theorem | Region | Boundary | Statement |
|---|---|---|---|
| Fundamental theorem of calculus | interval | two endpoints | |
| Fundamental theorem for line integrals | curve | two endpoints | |
| Green’s theorem | plane region | closed curve | |
| Stokes’ theorem | surface | closed curve | |
| Divergence theorem | solid | closed surface |
In every row the inside cancels: neighboring pieces share edges or faces, and what one piece gains its neighbor loses. Only the outer boundary is left.
Common mistakes
Practice problems
-
Find the outward flux of through the unit sphere.
Answer
Full solution
. In spherical coordinates, .
-
Find the outward flux of through the surface of the cylinder , , including top and bottom.
Answer
Full solution
The divergence is and the volume is .
-
Find the outward flux of through the surface of the box .
Answer
Full solution
. The box has volume , and the averages of , and over it are , and , so the integral is .
-
Find the outward flux of through the sphere of radius .
Answer
Full solution
Each component is independent of its own variable, so .
-
Find the outward flux of through the surface of the tetrahedron , .
Answer
Full solution
The divergence is and the volume is .
-
Find the outward flux of through the sphere of radius .
Answer
Full solution
The divergence is , so the flux is the volume of the ball, .
-
Find the outward flux of through the surface of the unit cube , and check it on the faces.
Answer
Full solution
. On the faces, only contributes, with over an area of ; at the field is .
-
Use the divergence theorem to find the upward flux of through the upper unit hemisphere alone.
Hint
Close the hemisphere with the unit disk in the -plane.
Answer
Full solution
The half ball has volume , so the total outward flux is . On the disk, the outward normal is and . So the hemisphere carries all of it, .
-
A student computes the flux of through the unit sphere as . What went wrong?
Answer
The field is undefined at the origin, inside the sphere; the flux is .
Full solution
The theorem needs continuous partial derivatives throughout the solid. As Example 4 shows, all of the flux comes from the singular point at the center, so the answer is .
Frequently asked questions
What does the divergence theorem say?
If E is a solid region whose boundary surface S is oriented outward, and F has continuous partial derivatives, then the flux of F through S equals the triple integral of div F over E.
Why is the divergence theorem true?
Divergence is outflow per unit volume, so a tiny box contributes about div F times its volume. Adding the boxes, the flux through each shared inner face counts once out of one box and once into its neighbor, so only the outer surface remains.
When should you use the divergence theorem?
For the flux through a closed surface, especially one made of several pieces or a field whose divergence is simple, such as a constant.
What is Gauss's law?
For the field (x, y, z)/|(x, y, z)|³, the flux through any closed surface around the origin is 4π, and through any closed surface not around the origin it is 0. Electric fields of point charges obey this law.
How does the divergence theorem relate to the other big theorems?
It is the three-dimensional member of a family: the integral of a derivative over a region equals an integral of the original over the region's boundary. The fundamental theorem of calculus, the fundamental theorem for line integrals, Green's theorem and Stokes' theorem are the others.