The Divergence Theorem 

The divergence theorem provides a link between a flux integral over a closed surface S and a volume integral over the volume V bounded by It states that the flux of a vector field F through a closed surface Sis a measure of the divergence of F in V, the interior of  

 

Divergence Theorem 

Let Vbe a closed and bounded region in `*`(`^`(R, 3)) whose boundary S consists of a piecewise smooth surface that is oriented outward. Let n be the outward normal to S and Fx, y, za vector field whose components are continuous and have continuous first-order partial derivatives at all points of V and Then 

`*`(VectorCalculus:-Nabla, `*`(F, `*`(dV))) 

Divergence Integral 

 

The requirement that S consist of a piecewise smooth surface is to ensure that S is a simple surface, one that does not intersect itself. This means that there cannot be more than one normal vector n at any point. 

 

Use of the divergence theorem is of practial interest because one of the two kinds of integral is often simpler than the other. 

 

The divergence theorem is extremely useful in the derivation of some of the famous equations in electricity, magnetism and hydrodynamics. One example is the equation of continuity for fluid flows. 

 

Let V be the closed region consisting of a sphere S and its interior. We know that the total mass of a fluid in V is given by 

 

and the rate at which the mass increases in V is given by 

 

The mass of the fluid flowing through an element of surface area dS per unit time is 

`*`(rho, `*`(F, `*`(n, `*`(dS)))) 

If we assume that the change in mass in V is due only to the flow in and out of then the rate at which the mass increases in V is 

`*`(rho, `*`(F, `*`(n, `*`(dS)))) 

And according to the divergence theorem 

`*`(VectorCalculus:-Nabla, `*`(rho, `*`(F, `*`(dV)))) 

Then we have 

`*`(VectorCalculus:-Nabla, `*`(rho, `*`(F, `*`(dV)))) 

or  

(`*`(VectorCalculus:-Nabla, `*`(rho, `*`(F))))dV = 0 

Since this result is to hold for every sphere, we obtain.  

`*`(VectorCalculus:-Nabla, `*`(rho, `*`(F))) = 0 

which is the equation of continuity for fluid flows. 

 

Example 1 

Verify the divergence theorem for F = [`+`(x, `-`(y)), `+`(y, `*`(2, `*`(z))), `+`(`*`(3, `*`(z)), `-`(x))] if S is the surface of the tetrahedron bounded by the three coordinate planes and the plane `+`(x, `*`(2, `*`(y)), z) = 3. 

Solution 

> restart: MathMaple:-ini():
 

a) 

> F:=[x-y, y+2*z, 3*z-x]:
pltT:=dzdxdyplot(z=0..3-2*y-x,x=0..3-2*y,y=0..3/2,lightmodel=light4,style=patchnogrid,labels=[x,y,z],labelfont=[times,bold,14],axes=normal,transparency=0.4,orientation=[-30,60]):
pltF:=fieldplot3d(F,x=0..3,y=0..3/2,z=0..3,grid=[4,4,4],arrows=THICK):
plt:=display(pltT,pltF,orientation=[-23,61],title="The region V and the vector field",titlefont=[TIMES,BOLD,14],tickmarks=[2,2,2]):
 

> plt;
 

Plot_2d
 

> F:=[x-y, y+2*z, 3*z-x];
 

[`+`(x, `-`(y)), `+`(y, `*`(2, `*`(z))), `+`(`*`(3, `*`(z)), `-`(x))]
 

> `div F`:=diverge(F,[x,y,z]);
 

5
 

The Triple Integral 

> Tr:=Tripleint(`div F`,z=0..3-x-2*y,y=0..(3-x)/2,x=0..3):Tr=value(Tr);
 

Int(Int(Int(5, z = 0 .. `+`(3, `-`(`*`(2, `*`(y))), `-`(x))), y = 0 .. `+`(`/`(3, 2), `-`(`*`(`/`(1, 2), `*`(x))))), x = 0 .. 3) = `/`(45, 4)
 

We let the four planes be
S[1]: `+`(x, `*`(2, `*`(y)), z) = 3, S[2]: y = 0, S[3]: x = 0 and S[4]: z = 0.The surface integral is defined by
 

dA 

If S[1] is a level surface of   

> G:=x+2*y+z-3;
 

`+`(x, `*`(2, `*`(y)), z, `-`(3))
 

we have 

> `grad G`:=convert(grad(G,[x,y,z]),list);
 

[1, 2, 1]
 

q = k 

> k:=[0,0,1]:
 

> FgradG:=dotprod(F,`grad G`):
 

> `F·grad G`=FgradG;
 

 

We substitute  

> z=3-x-2*y;
 

z = `+`(3, `-`(`*`(2, `*`(y))), `-`(x))
 

then 

> subs(%,%%);
 

`F·grad G` = `+`(`-`(`*`(13, `*`(y))), 21, `-`(`*`(7, `*`(x))))
 

> FgradG:=rhs(%):
 

> gradGk:=dotprod(`grad G`,k):
`(grad G)·k`=gradGk;
 

`(grad G)·k` = 1
 

> phi[1]:=Doubleint(FgradG/gradGk,y=0..(3-x)/2,x=0..3):
phi[1]:=phi[1]=value(phi[1]);
 

Int(Int(`+`(`-`(`*`(13, `*`(y))), 21, `-`(`*`(7, `*`(x)))), y = 0 .. `+`(`/`(3, 2), `-`(`*`(`/`(1, 2), `*`(x))))), x = 0 .. 3) = `/`(135, 8)
 

For S[2]: y = 0,  n = j 

> Fj:=dotprod(F,-[0,1,0]):
`F· -j`=Fj;
 

`F· -j` = `+`(`-`(y), `-`(`*`(2, `*`(z))))
 

y = 0 gives 

> subs(y=0,%);
 

`F· -j` = `+`(`-`(`*`(2, `*`(z))))
 

> Fj:=rhs(%):
 

> phi[2]:=Doubleint(Fj,z=0..3-x,x=0..3):
phi[2]:=phi[2]=value(phi[2]);
 

Int(Int(`+`(`-`(`*`(2, `*`(z)))), z = 0 .. `+`(3, `-`(x))), x = 0 .. 3) = -9
 

For S[3]: x = 0,  n = i 

> Fi:=dotprod(F,-[1,0,0]):
`F· -i`=Fi;
 

`F· -i` = `+`(`-`(x), y)
 

x = 0 gives 

> subs(x=0,%);
 

`F· -i` = y
 

> Fi:=rhs(%):
 

> phi[3]:=Doubleint(Fi,y=0..(3-z)/2,z=0..3):
phi[3]:=phi[3]=value(phi[3]);
 

Int(Int(y, y = 0 .. `+`(`/`(3, 2), `-`(`*`(`/`(1, 2), `*`(z))))), z = 0 .. 3) = `/`(9, 8)
 

For S[4]: z = 0,  n = k 

> Fk:=dotprod(F,-[0,0,1]):
`F· -k`=Fk;
 

`F· -k` = `+`(`-`(`*`(3, `*`(z))), x)
 

z = 0 gives 

> subs(z=0,%);
 

`F· -k` = x
 

> Fk:=rhs(%): phi[4]:=Doubleint(Fk,y=0..(3-x)/2,x=0..3):
 

> phi[4]:=phi[4]=value(phi[4]);
 

 

The Surface Integral 

> phi[1]+phi[2]+phi[3]+phi[4];
 

`+`(Int(Int(`+`(`-`(`*`(13, `*`(y))), 21, `-`(`*`(7, `*`(x)))), y = 0 .. `+`(`/`(3, 2), `-`(`*`(`/`(1, 2), `*`(x))))), x = 0 .. 3), Int(Int(`+`(`-`(`*`(2, `*`(z)))), z = 0 .. `+`(3, `-`(x))), x = 0 .....
`+`(Int(Int(`+`(`-`(`*`(13, `*`(y))), 21, `-`(`*`(7, `*`(x)))), y = 0 .. `+`(`/`(3, 2), `-`(`*`(`/`(1, 2), `*`(x))))), x = 0 .. 3), Int(Int(`+`(`-`(`*`(2, `*`(z)))), z = 0 .. `+`(3, `-`(x))), x = 0 .....
 

We see that rather than evaluate four surface integrals, the divergence theorem let us evaluate one triple integral.