Let's say I have a rigid container filled with some gas. If the gas starts to expand but the container does not expand, what has to happen? Since we assume that the container does not expand (it is rigid) but that the gas is expanding, then gas has to somehow leak out of the container. (Or I suppose the container could burst, but that counts as both gas leaking out of the container and the container expanding.)
If I go to a gas station and pump air into one of my car's tires, what has to happen to the air inside the tire? (Assume the tire is rigid and does not expand as I put air inside it.) The air inside of the tire compresses.
These two examples illustrate the divergence theorem. Recall that if
a vector field
F represents the flow of a fluid, then the
divergence of
F represents the expansion or
compression of the fluid. The divergence
theorem says that the total expansion of the fluid inside some
three-dimensional region W equals the total flux of the fluid out
of the boundary of W. In math terms, this means the triple
integral of
div F over the region W is equal to the flux
integral (or surface integral) of
F over the surface
W that is the boundary of W (with outward pointing normal):
I hope that this makes sense intuitively from the above two examples.
In the first example, the gas expanding meant
div F > 0
everywhere in W, the inside of the container. Therefore, the net
flux out of W,
F . dS, must
also be greater than zero, i.e., the gas must leak out through the
container walls
W. In the second example, by pumping
air into the tire W, I insisted that the net flux out of the
tire,
F . dS, must be negative
(since there was a net flux into the tire, and we are
assuming an outward pointing normal). By the divergence
theorem, the total expansion inside W,
div F dV, must be negative,
meaning the air was compressing.
Notice that the divergence theorem equates a surface integral with a triple integral over the volume inside the surface. In this way, it is analogous to Green's theorem, which equates a line integral with a double integral over the region inside the curve. Remember that Green's theorem applies only for closed curves. For the same reason, the divergence theorem applies to the surface integral
Here are some divergence theorem examples.