Divergence theorem
The divergence theorem, sometimes referred to as Gauss' theorem, has many physical applications like, for example, in the derivation of conservation laws (e.g. it can be used to describe the mass transport rate through a closed surface). Integrating over a closed surface gives the net mass change per unit time going in and out of the surface. The divergence theorem therefore is concerned with closed surfaces so, again, let us get some definitions out of the way before we state the theorem. A closed surface is a surface which completely encloses a volume. We take a positive orientation to be the one for which the normal vector points away from the interior (see Fig. 2.13).
Figure 2.13: A region enclosed by a surface shown with an outward pointing normal, , indicating positive orientation.
Divergence theorem
Let be a positively-oriented closed surface with interior , and let be a continuously differentiable vector field in a domain containing . Then,
Example 2.16 Verify the divergence theorem (given by Theorem 2.11) for the vector field over the sphere of radius , centered at the origin.
Solution To verify the theorem, we need to show that the leftand right-hand sides of Eq. (2.118) are equal. We start with the divergence integral.
Note: you may want to compute the RHS of Eq. (2.119) in cylindrical or better yet, spherical coordinates to avoid the need of trigonometric substitutions. For this example however, we just use the fact that the volume of a sphere of radius is and hence the divergence integral [Eq. (2.119)] gives . Next, we compute the flux integral given by the LHS of Eq. (2.118). By rewriting this as:
we now need to define the unit outward normal to the surface. The surface is the surface with the function . Its outward unit normal vector is:
it follows that:
Finally, substituting in Eq. (2.120), yields:
where denotes the surface of the upper hemisphere. The surface area of a hemisphere of radius is and hence,
the two integrals are equal and the divergence theorem is verified. Next, we use the divergence theorem to derive the mathematical form of the conservation of mass.
Applications of divergence theorem
In this section we derive the conservation law for a fluid of variable density . This is known as the continuity equation which is used in many different contexts where quantities are conserved.
Consider a fluid with density flowing with velocity through a region enclosed by a surface, . The total mass of the fluid contained in is given by:
The rate at which mass enters is equal to the flux of into , given by the surface integral,
Note that this is Eq. (2.106) for the flux of over a closed surface (hence the symbol ) and the negative sign indicates that, since the positive orientation is pointing outwards (like in Fig. 2.13) then, mass entering the region is pointing inwards. Since mass is conserved, the rate of change of mass in , must be equal to the rate at which mass enters the region and hence, using Eqs. (2.121) and (2.122), we have:
Now, we can use the divergence theorem for the RHS of Eq. (2.123) and we can interchange the order of the derivative and the integrals on the LHS such that Eq. (2.123) becomes:
We use the partial derivative notation since depends has both spatial and temporal dependence. Combining the two integrals into one and noting that from the definition of divergence, yields:
Equation (2.125) is valid for any arbitrary volume ; the only way this can be true for any is if the integrandis zero everywhere. This states the law of mass conservation of a fluid as:
Expanding Eq. (2.126) gives:
It follows that for a fluid of constant density, the first two terms in Eq. (2.127) vanish, leaving us with:
which is a condition required for incompressible flow.