Skip to main content

Section 2.8 Divergence theorem

Definition 2.8.1.

A piecewise smooth surface SR3 is closed if it has no boundary curve.

Example 2.8.3. Flux out of cube.

Let S be the cube in the first octant bounded by the planes x=1,y=1,z=1. Compute the outward flux of F(x,y,z)=x2i+4xyzj+zexk.

Solution.

Let D be the solid cube [0,1]×[0,1]×[0,1]. Since F clearly satisfies the conditions for the divergence theorem, we have

SFndσ=DdivFdV=01010122x+4xz+exdydzdx=e+1.

An easy consequence of the divergence theorem:

SFndσ=DdivFdV=D0dV=0.

Let D1,D2 be the solid regions enclosed by S1 and S2, respectively (so that D=D2D1). Notice that if n2 is the outward orientation on S2, considered as the boundary of D2, then n2 is the outward orientation on S2 considered as a boundary of D. By the divergence theorem we have

0=DdivFdV=S1Fn1dσ+S2F(n2)dσ=S1Fn1dσS2Fn2dσ.

We conclude that

S1Fn1dσ=S2Fn2dσ,

as desired.

We have

divcurlF=F3yF2z,F1zF3x,F2xF1y=x(F3yF2z)+y(F1zF3x)+z(F2xF1y)=F3xyF2xz+F3yxF1yz+F2zxF1zy=0,

where in the last step we have used Clairaut's theorem to identify the various “mixed partials”: i.e., F3xy=F3yx, F2xz=F3zx, F1yz=F1zy.

Remark 2.8.7. Gradient, curl, divergence sequence.

Let DRn be an open set. Define C(D,Rm) as the set of all functions F:DRm whose component functions have partial derivatives of all orders. We can think of grad, curl, div as defining a sequence of operators on such collections of functions.

We use this sequence to conveniently summarize some of our theoretical results about these operators as follows:

  1. Applying two operators in sequence results in a zero function (curlgradf=0 and divcurlF=0). In other words the image of any one of these operators lies within the set of a functions mapping to zero when applying the next operator.

  2. If D is simply connected, then any vector field that is mapped to 0 by curl is in the image of grad.

  3. If D is contractible (too technical to define here), then any vector field that is mapped to 0 by div is in the image of curl.

Example 2.8.9. Gauss's law.

Given a a point charge q located at the origin in R3, the electrostatic field it produces is given by

E(x,y,z)=q4πϵ0x,y,z(x2+y2+z2)3/2=q4πϵ0r|r|3,

where r=x,y,z and ϵ0 is a physical constant called the permittivity of free space. Prove Gauss's law: if SR3 is a smooth closed surface with outward orientation then

SEndσ={0if S does not enclose the point charge;qϵ0if S encloses the point charge.

Gauss's law can be generalized to a situation where the surface S encloses a region D with continuous charge density δ(x,y,z). If E is the resulting electrostatic field, then

SEndσ=1ϵ0Dδ(x,y,z)dV=Qϵ0,

where Q=Dδ(x,y,z)dV is the total charge enclosed by S.

Solution.

First observe that E satisfies the conditions of the divergence theorem on any solid region that does not contain the origin. Furthermore, a (somewhat onerous) computation shows that

divE(x,y,z)=0

for all (x,y,z)(0,0,0). It follows that if S does not enclose the origin, then the divergence theorem applies to the solid region D it encloses, and we have

SEndσ=DdivEdV(divergence thm.)=D0dV=0.

Next, assume S does enclose the origin. Pick R>0 small enough so that the solid ball BR centered at the origin lies inside S, and let D be the region within S and outside of BR. Since D does not contain the origin, E satisfies the conditions of the divergence theorem. By Corollary 2.8.5, it follows that

SEndσ=SREndσ,

where SR is the sphere of radius R centered at the origin. It remains only to show that

SREndσ=qϵ0,

which one can show directly using the definition of the surface integral and the standard parametrization of SR. Indeed, the outward unit normal vector on SR at a point (x,y,z) is given by n=1Rx,y,z, and thus for all (x,y,z)SR we have

En(x,y,z)=q4πRϵ01(x2+y2+z2)3/2(x2+y2+z2)=q4πRϵ01(x2+y2+z2)1/2=q4πRϵ01R=q4πR2ϵ0.

Finally, using the usual parametrization

r(ϕ,θ)=R(sinϕcosθ,sinϕsinθ,cosϕ),

which satisfies

|rϕ×rθ|=R2sinϕ,

we have

SREndσ=02π0πq4πR2ϵ0|rϕ×rθ|dϕdθ=02π0πq4πR2ϵ0R2sinϕdϕdθ=q4πϵ04π=qϵ0,

as desired!

For all R>0 let BR be the solid ball of radius R centered at P. We have SR=BR and so by the divergence theorem

BRdivFdV=SRFndσ.

Next a generalization of the integral average value theorem to triple integrals imlies

BRdivFdV=divF(PR)volBR,

for some point PR in the ball BR centered around P. Since divF is continuous at P we have

divF(P)=limR0PR=limR01volBRBRdivFdV(avg. value thm.)=limR01(4/3)πR3SRFndσ(divergence thm.).