Pump air into a balloon and the net amount leaving through the rubber each second must come from somewhere inside. If you know how fast air is being created or squeezed at each point within, you can add that up instead of measuring at the surface. The divergence theorem turns this bookkeeping into an exact equation between a flux integral and a triple integral.
Key terms
Closed oriented boundary
Definition Let be a bounded solid region in space whose boundary is a finite union of closed piecewise smooth surfaces. The boundary is oriented by the outward unit normal , which at each smooth point is perpendicular to and points away from .
In plain words The skin of a solid, with every normal arrow pointing out of the solid.
Example For the unit cube the boundary has six faces. The face has outward normal , and the face has outward normal . The same pattern holds for the faces in and .
Outward flux
Definition For a vector field continuous on , the outward flux is
computed with the outward normal on every piece and summed over the pieces.
In plain words Net amount leaving the solid per unit time. Positive means more goes out than comes in.
Example For on the unit cube, look at the faces in pairs. On the integrand is , and on it is . The and faces behave the same way, each pair giving . The outward flux is .
Divergence over a solid
Definition For with continuous first partial derivatives,
and its integral over the solid is .
In plain words Divergence is the outflow rate per unit volume at a point. Each small cell of the solid is a little source or sink, and the triple integral adds them all.
Example For the divergence is , and
the same as the outward flux.
The divergence theorem and its regularity assumptions
Definition Let be a bounded solid region whose boundary is a finite union of closed piecewise smooth surfaces, oriented by the outward unit normal. Let have components with continuous first partial derivatives on an open set containing and its boundary. Then
Every hypothesis matters. The surface must be the complete boundary of , every piece must carry the outward normal, and must be at every point of , inside and on the boundary. Drop any one and the equation can fail, as the singular field below shows.
In plain words Outflow through the skin equals the sum of all the sources inside. Neighboring cells exchange flow across shared walls, those exchanges cancel, and only the outer walls remain.
Example For and the ball of radius , the divergence is . In spherical coordinates the outward flux is
Cavities
Definition If has holes inside it, its boundary has several pieces, an outer surface and one inner surface around each cavity. The outward normal of on an inner surface points away from , which means into the cavity. The theorem holds with all boundary pieces included, each with this orientation.
In plain words On the wall of a hollow, “out of the solid” means into the hole. Measured with the usual normal of the inner sphere, that flux enters with a minus sign.
Example Let be the shell and , so .
| Piece | Area | Flux | |
|---|---|---|---|
| Outer sphere | |||
| Inner sphere |
The total is , and times the volume is also .
Excluded singularities
Definition Suppose is on an open set containing except at one point in the interior of . Then the theorem does not apply to itself. Choose so small that the closed ball of radius centered at lies in the interior of , and apply the theorem to the solid with the open ball removed. Its boundary is together with the sphere , and on that sphere the outward normal of the new solid points toward . If away from , this gives
where points away from .
In plain words Cut the bad point out with a tiny sphere. Then the flux through the big surface equals the flux through the tiny one, which is usually easy to compute.
Example Let with . Away from the origin a computation gives . On a sphere of radius the field has length and points outward, so the flux is
The cube contains the ball of radius about the origin in its interior, so its outward flux is , not , even though the divergence is zero wherever it is defined. A direct computation agrees, since each of the six faces carries flux by symmetry. If the origin lies outside a solid, the field is on an open set containing the solid and the flux through its boundary is .
Gauss’s law
Definition A point charge at the origin produces the electric field
where is the permittivity of free space. For any closed piecewise smooth surface bounding a solid , with the origin not on , the outward flux of is if the origin is inside and if it is outside. For several point charges, none of them on , the fields add, and the flux is , where is the total charge inside .
In plain words The electric flux through a closed surface counts only the charge inside, no matter the shape of the surface. It is the previous example with a constant in front.
Example A charge of coulombs sits at the origin. In SI units the constant is
and the field is measured in newtons per coulomb. Multiplying by area in square meters, the flux out of any closed surface enclosing the charge is
Through the surface of the box it is , since the charge is outside.
Relationship among integral theorems
Definition The main theorems of vector calculus share one shape. The integral of a derivative over an oriented region equals the integral of the original object over its oriented boundary.
| Theorem | Integral over the region | Boundary term |
|---|---|---|
| Fundamental theorem | ||
| Line integrals | for from to | |
| Green | ||
| Stokes | ||
| Divergence |
Each one needs its own orientation of the boundary and a derivative that is continuous on the closed region.
In plain words Adding up a rate of change inside gives the net change measured at the edge. The edge is two points, a closed curve or a closed surface, depending on the dimension.
Example The flat version of the divergence theorem is the flux form of Green’s theorem, with the outward normal of a plane region. For on the unit disk, on the circle, so the outward flux is . The divergence is , and times the area is also .
Check yourself
- Find the outward flux of through the closed surface of the solid cylinder , .
Show the answer
The divergence is , so in cylindrical coordinates
- Find the upward flux of through the paraboloid , , by closing it with the disk at the bottom.
Show the answer
The divergence is and the solid has volume , so the outward flux through the closed surface is . On the bottom disk with outward normal the integrand is . So the flux through the paraboloid is .
- For , find the outward flux through the sphere and through the ellipsoid .
Show the answer
The first sphere does not enclose the origin, so the field is on the ball it bounds and the flux is . The ellipsoid encloses the origin, so cutting out a small ball gives .