The Divergence Theorem

Learning Objectives

  • Explain the meaning of the divergence theorem.

Overview of Theorems

Before examining the divergence theorem, it is helpful to begin with an overview of the versions of the Fundamental Theorem of Calculus we have discussed:

  1. The Fundamental Theorem of Calculus:

    abf(x)dx=f(b)f(a).


    This theorem relates the integral of derivative f over line segment [a,b] along the x-axis to a difference of f evaluated on the boundary.

  2. The Fundamental Theorem for Line Integrals:

    Cfdr=f(P1)f(P0).


    where P0 is the initial point of C and P1 is the terminal point of C. The Fundamental Theorem for Line Integrals allows path C to be a path in a plane or in space, not just a line segment on the x-axis. If we think of the gradient as a derivative, then this theorem relates an integral of derivative f over path C to a difference of f evaluated on the boundary of C.

  3. Green’s theorem, circulation form:

    D(QxPy)dA=CFdr.


    Since QxPy=curl Fk and curl is a derivative of sorts, Green’s theorem relates the integral of derivative curlF over planar region D to an integral of F over the boundary of D.

  4. Green’s theorem, flux form:

    D(Px+Qy)dA=CFNds.


    Since Px+Qy=div F and divergence is a derivative of sorts, the flux form of Green’s theorem relates the integral of derivative div F over planar region D to an integral of F over the boundary of D.

  5. Stokes’ theorem:

    Scurl Fds=CFdr


    If we think of the curl as a derivative of sorts, then Stokes’ theorem relates the integral of derivative curlF over surface S (not necessarily planar) to an integral of F over the boundary of S.

Stating the Divergence Theorem

The divergence theorem follows the general pattern of these other theorems. If we think of divergence as a derivative of sorts, then the divergence theorem relates a triple integral of derivative divF over a solid to a flux integral of F over the boundary of the solid. More specifically, the divergence theorem relates a flux integral of vector field F over a closed surface S to a triple integral of the divergence of F over the solid enclosed by S.

theorem: The divergence theorem


Let S be a piecewise, smooth closed surface that encloses solid E in space. Assume that S is oriented outward, and let F be a vector field with continuous partial derivatives on an open region containing E (Figure 1). Then

ediv FdV=CFdS.

<img src="/apps/archive/20220422.171947/resources/6b4d9b0ea75907921f8b113ed206872c06c9cd75" data-media-type="image/jpeg" alt="A diagram of a closed surface S, vector field, and solid E enclosed by the surface in three dimensions. The surface is a roughly rectangular prism with curved sides. The normal vectors stretch out and away from the surface. The arrows have negative x components and positive y and z components." id="3">

Figure 1. The divergence theorem relates a flux integral across a closed surface S to a triple integral over solid E enclosed by the surface.

Recall that the flux form of Green’s theorem states that Ddiv FdA=CFNds. Therefore, the divergence theorem is a version of Green’s theorem in one higher dimension.

The proof of the divergence theorem is beyond the scope of this text. However, we look at an informal proof that gives a general feel for why the theorem is true, but does not prove the theorem with full rigor. This explanation follows the informal explanation given for why Stokes’ theorem is true.

Proof

Let B be a small box with sides parallel to the coordinate planes inside E (Figure 2). Let the center of B have coordinates (x,y,z) and suppose the edge lengths are Δx, Δy, and Δz (Figure 2(b)). The normal vector out of the top of the box is k and the normal vector out of the bottom of the box is k. The dot product of F=P,Q,R with k is R and the dot product with k is R. The area of the top of the box (and the bottom of the box) ΔS is ΔxΔy.

<img src="/apps/archive/20220422.171947/resources/a595c7c56ce093a816b7975f349045259c97af6d" data-media-type="image/jpeg" alt="This figure has three diagrams. The first is a surface E in three dimensions with a small box B inside it. The second just has box B. The height is labeled as delta z, the width is labeled as delta x, and the width is labeled as delta y. An arrow perpendicular to the top points up and away from the box and is labeled k. An arrow perpendicular to the bottom points down and away from the box and is labeled –k. The third diagram is a side views of box B. The center is (x, y, z), the midpoint of the side below it is (x, y, z – delta z / 2), and the midpoint of the size above it is (x, y, z + delta z / 2). The height is delta z." id="4">

Figure 2. (a) A small box B inside surface E has sides parallel to the coordinate planes. (b) Box B has side lengths Δx,Δy, and Δz (c) If we look at the side view of B, we see that, since (x,y,z) is the center of the box, to get to the top of the box we must travel a vertical distance of Δz/2 up from (x,y,z). Similarly, to get to the bottom of the box we must travel a distance Δz/2 down from (x,y,z).

The flux out of the top of the box can be approximated by R(x,y,z+Δz2)ΔxΔy (Figure 2(c)) and the flux out of the bottom of the box is R(x,y,zΔz2)ΔxΔy. If we denote the difference between these values as ΔR, then the net flux in the vertical direction can be approximated by ΔRΔxΔy. However,

ΔRΔxΔy=(ΔRΔz)ΔxΔyΔz(Rz)ΔV.

Therefore, the net flux in the vertical direction can be approximated by (Rz)ΔV. Similarly, the net flux in the x-direction can be approximated by (Px)ΔV and the net flux in the y-direction can be approximated by (Qy)ΔV. Adding the fluxes in all three directions gives an approximation of the total flux out of the box:

Total flux (Px+Qy+Rz)ΔV=div FΔV.

This approximation becomes arbitrarily close to the value of the total flux as the volume of the box shrinks to zero.

The sum of div FΔV over all the small boxes approximating E is approximately Ediv FdV. On the other hand, the sum of div FΔV over all the small boxes approximating E is the sum of the fluxes over all these boxes. Just as in the informal proof of Stokes’ theorem, adding these fluxes over all the boxes results in the cancelation of a lot of the terms. If an approximating box shares a face with another approximating box, then the flux over one face is the negative of the flux over the shared face of the adjacent box. These two integrals cancel out. When adding up all the fluxes, the only flux integrals that survive are the integrals over the faces approximating the boundary of E. As the volumes of the approximating boxes shrink to zero, this approximation becomes arbitrarily close to the flux over S.

◼

Example: verifying the divergence theorem

Verify the divergence theorem for vector field F=xy,x+z,zy and surface S that consists of cone x2+y2=z2, 0z1, and the circular top of the cone (see the following figure). Assume this surface is positively oriented.

This figure is a vector diagram in three dimensions. The cone x^2 + y^2 = z^2 is shown. Its point is at the origin, and it opens up. There is a cover across the top. The arrows seem to be following the shape of the cone.

Figure 3. The vector field F=xy,x+z,zy and surface S that consists of cone x2+y2=z2, 0z1, and the circular top of the cone

try it

Verify the divergence theorem for vector field F(x,y,z)=x+y+z,y,2xy and surface S given by the cylinder x2+y2=1, 0z3 plus the circular top and bottom of the cylinder. Assume that S is positively oriented.

Watch the following video to see the worked solution to the above Try It

Recall that the divergence of continuous field F at point P is a measure of the “outflowing-ness” of the field at P. If F represents the velocity field of a fluid, then the divergence can be thought of as the rate per unit volume of the fluid flowing out less the rate per unit volume flowing in. The divergence theorem confirms this interpretation. To see this, let P be a point and let Br be a ball of small radius r centered at P (Figure 4). Let Sr be the boundary sphere of Br. Since the radius is small and F is continuous, div F(Q)div F(P) for all other points Q in the ball. Therefore, the flux across Sr can be approximated using the divergence theorem:

SrFdS=Brdiv FdVBrdiv F(P)dV.

Since div F(P) is a constant,

Brdiv F(P)dV=div F(P)V(Br).

Therefore, flux SrFdS can be approximated by div F(P)V(Br). This approximation gets better as the radius shrinks to zero, and therefore

div F(P)=limr01V(Br)SrFdS.

This equation says that the divergence at P is the net rate of outward flux of the fluid per unit volume.

This figure is a diagram of ball B_r, with small radius r centered at P. Arrows are drawn pointing up and to the right across the ball.

Figure 4. Ball Br of small radius r centered at P.