The divergence theorem says that the total outward flux through a closed surface equals the total divergence inside the solid it encloses. If you are trying to decide whether to compute a hard surface integral or an easier volume integral, this theorem is often the shortcut.
Here is a solid region, is its closed boundary, and is the outward unit normal. The field should have continuous first partial derivatives on a region containing . Without those conditions, the theorem may fail or need a more careful statement.
Divergence theorem statement in plain English
The left side measures how much the vector field flows outward through the boundary surface. The right side adds up the divergence everywhere inside the volume.
Divergence is a local measure of how much the field behaves like a source or sink near a point. So the theorem says: if the field is spreading out inside the region, that spread shows up as net outward flow across the boundary.
This is why the theorem is useful in physics and vector calculus. It turns a boundary question into an interior question.
When you can use the divergence theorem
Use the divergence theorem when all of these are true:
- The surface is closed.
- The orientation is outward.
- The vector field has continuous first partial derivatives on the region and its boundary.
If the surface is open, the theorem does not apply directly. If the normal points inward, the answer gets a minus sign.
Why the divergence theorem is true: proof idea
A full proof takes work, but the central idea is short and worth knowing.
Imagine cutting the solid region into many tiny boxes. On each tiny box, the net outward flux is approximately the divergence at that box times its volume:
Now add the fluxes over all the tiny boxes. Every interior face is shared by two boxes, so the flux leaving one box is the flux entering the next box. Those interior contributions cancel, leaving only the flux across the outer boundary.
At the same time, the sum of over all boxes becomes a triple integral. As the boxes shrink, the approximation becomes exact, which gives the divergence theorem.
Worked example: flux through the unit sphere
Let
and let be the unit ball . Its boundary is the unit sphere, so this is a closed surface and the theorem applies.
First compute the divergence:
That turns the flux problem into
Since is constant, this is just times the volume of the unit ball:
Therefore the total outward flux through the sphere is
This example shows the main advantage of the theorem. A direct surface integral over a sphere is possible, but the volume side is faster because the divergence is constant.
Common divergence theorem mistakes
Using an open surface
The divergence theorem is for closed surfaces. A disk, a patch of a sphere, or a curved sheet by itself is not enough.
Forgetting the outward normal
The standard statement uses outward orientation. If you use the inward normal, the answer changes sign.
Confusing divergence with the field itself
A large vector field does not automatically have large divergence. Divergence depends on how the components change, not only on their size.
Mixing up the region and its boundary
The surface integral lives on , but the triple integral lives on . Those are related objects, not the same object.
Treating the theorem as condition-free
The theorem needs regularity assumptions. In an introductory course, this usually means a closed surface and a vector field with continuous first partial derivatives on the region.
Where the divergence theorem is used
In vector calculus, the theorem is a standard way to replace a difficult flux integral with a simpler volume integral.
In fluid flow, it relates net outflow across a closed boundary to sources or sinks inside the region.
In electromagnetism, it appears in Gauss-type laws, where the flux through a closed surface is tied to what is enclosed.
More broadly, it is useful whenever a problem asks about total outward flux through a closed surface and the divergence is easier to integrate than the boundary flux.
Try a similar divergence theorem problem
Try the same region but change the field to
Find , compute the volume integral over the unit ball, and use it to get the total outward flux through the sphere. If you want a next step, try your own version with a different closed surface and check first whether the theorem's conditions still hold.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →