Skip to main content

Section 12.1 The Divergence Theorem

We stated the divergence theorem in Section 11.1 for piecewise smooth plane domains. We omitted the quite difficult proof that every piecewise smooth domain can be decomposed into domains of the form as those shown in Figure 10.4 Figure 10.5. Subsets D of R3 are more complicated, so it is not clear what definition of piecewise smooth we should use. By smooth we mean that D is a smooth surface, possibly having several components. This is not general enough, as for instance a cube does not have a smooth boundary. Instead of introducing piecewise smooth domains we just introduce simple domains.

Definition 12.1. Simple domains.

We call a DR3 an xy-simple domain if there exist continuously differentiable functions φ(x,y)ψ(x,y) such that
(12.1)D={(x,y,z)D0:φ(x,y)zψ(x,y)},
where D0 is the projection of D onto the xy-plane. Similarly we define yz-simple and xz-simple. We call a domain simple if it is xy-simple, yz-simple and xz-simple at the same time.
An xy-simple surface is depicted in Figure 12.2. We will prove the divergence theorem for disjoint unions of simple domains.
Figure 12.2. An xy-simple domain.
Let us note that every bounded domain whose boundary is a smooth surface can be written as a finite union of simple domains, but this is not so clear for `piecewise smooth’ domains in general. As an example consider a decomposition of a torus (or doughnut) into a union of four simple domains as shown in Figure 12.3.
Figure 12.3. A torus and a possible decomposition into simple domains.
We gave plane domains an orientation, and we want to do that for piecewise smooth domains DR3 as well. The boundary D consists of finitely many smooth surfaces. We take the orientation given by the unit normal field pointing out of D. We call this the outward pointing unit normal field.

Proof.

The proof of the divergence theorem is very similar to the proof of Green’s theorem. We start with very simple vector fields and domains, and then combine everything to get the general formula. Hence suppose that D is an xy-simple domain DR3 with projection D0 onto the xy-plane. Moreover let φ,ψ be smooth functions such that D has the form (12.1). Finally assume that
f=(0,0,f3).
We then compute the surface integral
DfndS.
The boundary of D can be written as the union of three surfaces, namely S1:=graph(ψ), S2:=graph(φ) and the vertical pieces, S3. Denote the unit normal vector to D by n=(n1,n2,n3). As n3=0 on S3 it follows that fn=f3n3=0. Hence
S3fndS=S3f3n3dS=0
We next compute the integral over S1. According to Proposition 9.32 we have
S1f3n3dS=S1fndS=D0f3(x1,x2,ψ(x1,x2))dx1dx2
Using the same formula we get
S2f3n3dS=S2fndS=D0f3(x1,x2,φ(x1,x2))dx1dx2,
where the negative sign appears because S2 is oriented downwards. Adding up the three integrals we get
Df3n3dS=D0f3(x1,x2,ψ(x1,x2))f3(x1,x2,φ(x1,x2))dx1dx2.
Setting g(x3):=f3(x1,x2,x3) it follows from the fundamental theorem of calculus and the definition of partial derivatives that
f3(x1,x2,ψ(x1,x2))f3(x1,x2,φ(x1,x2))=g(ψ(x1,x2))g(φ(x1,x2))=φ(x1,x2)ψ(x1,x2)ddx3g(x3)dx3=φ(x1,x2)ψ(x1,x2)x3f3(x1,x2,x3)dx3
If we substitute the above into the previous formula and apply Fubini’s Theorem 6.2 we get
Df3n3dS=D0(φ(x1,x2)ψ(x1,x2)x3f3(x1,x2,x3)dx3)dx1dx2(12.2)=Dx3f3(x)dx.
If D is xz-simple we can apply the same procedure with x1,x2 replaced by x1,x3 and the vector field f=(0,f2,0). Hence
(12.3)Df2n2dS=Dx2f2(x)n2dx.
Likewise we get for a yz-simple domain and f=(f1,0,0) that
(12.4)Df1n1dS=Dx1f1(x)n1dx.
Now assume that D is simple. By definition D is xy-simple, xz-simple and yz-simple at the same time. Hence if f=(f1,f2,f3) we can apply (12.2) to (0,0,f3), then (12.3) to (0,f2,0) and finally (12.4) to (f1,0,0). Adding up the three identities and using the definition of the divergence (see Definition 11.3 we get
DfndS=Df1n1+f2n2+f3n3dS=Dx1f1(x)+x2f2(x)+x3f3(x)dx=Ddivfdx.
This proves the divergence theorem for simple domains. If D is a domain which can be decomposed into simple domains then the integrals over all adjoining interior boundaries appear twice in opposite orientations. Hence the corresponding surface integrals have opposite signs and therefore cancel when we add them up over all sub-domains. Hence the Divergence Theorem follows.
Again we need to be careful about making sure the vector field is smooth in the whole region.

Remark 12.5.

As with Green’s theorem the assumption that f be smooth in D is essential. Consider the vector field
f(x):=xx3
which has a singularity at 0. Computing the partial derivative of the i-th component we get
xixix3=x23xi2x5,
so the divergence of f is
divf(x)=1x5i=13(x23xi2)=1x5(3x23i=13xi2)=3x5(x2x2)=0.
Hence if B is a ball of radius R centred at the origin then
Bdivf(x)dx=B0dx=0.
On the other hand we saw in Example 9.34 that
BfndS=4π.
The two results are obviously not equal, and the reason is that f has a singularity in B. The example given here is not a pathological one. The field is, up to a constant, that of the gravitational field of a `point mass’ concentrated at the origin. From the present example one can derive Gauss’ law for the gravitational field. Physicists say that the mass is the source of the gravitational field. A similar phenomenon appears for the electrical field in electrostatics.