Skip to main content

Section 6.4 Applications of the divergence theorem

In this section we study a few applications of the divergence theorem in Rn.

Subsection 6.4.1 The divergence theorem in R3 and the heat equation

Our first application concerns heat flow in R3. First, we recall the divergence theorem in R3. Let F be a smooth vector field, E a closed surface with normal vector pointing outward, and E the solid region consisting of E and its interior with canonical orientation. The divergence theorem in R3 is the statement that

E(F) dV=E(Fn)dA.

We consider the case where the vector field F is the heat flow. Recall the context from Subsection 5.9.2. Suppose that the temperature at a point (x,y,z) in an object (or substance) is given by the function T(x,y,z). The heat flow is given the gradient of the temperature function, rescaled by a constant K known as the conductivity of the substance:

F=KT.

Now consider any closed surface E, with the surface E and its interior within the object. The amount of heat flowing across the surface E is given by the flux of the vector field F across E:

E(Fn)dA=KE(Tn)dA.

If we are interested in the amount of heat entering the solid region E (instead of flowing across the surface in the outward direction), we change the sign of the flux integral. Then, by the divergence theorem, the amount of heat entering the solid region E can be rewritten as a volume integral:

KE(Tn)dA=KE(T) dV=KE2T dV,

where 2T is the Laplacian of the temperature function T.

Now we want to consider the situation where the temperature function T is also changing in time. So we think of T as a function of four variables T=T(x,y,z,t). But t is just a “spectator variable” here; we still consider the operator 2 in R3, in terms of the variables (x,y,z). So we can go through all the steps above, and we obtain that the amount of heat entering the solid region E during a small (infinitesimal) amount of time dt is

KdtE2T dV.

Here the Laplacian is only in the variables (x,y,z), that is, 2=2x2+2y2+2z2.

To proceed further, we need a little bit of physics. It is known in physics that the amount of heat energy required to raise the temperature of an object by ΔT is given by CMΔT, where M is the mass of the object and C is constant known as the “specific heat” of the material. Now consider the object consisting of the solid region E. In a small (infinitesimal) amount of time dt, the temperature changes by T(x,y,z,t)t dt. If we consider an infinitesimal volume element dV in E, and ρ(x,y,z) is the mass density of the solid region, then the mass of the volume element is ρdV. Thus the heat energy required to change the temperature of the object in the time interval dt is

CρTt dVdt.

We then sum over all volume elements, i.e. integrate over E, to get that the total heat energy required to change the temperature during the time interval dt is

CdtEρTt dV.

Assuming that the object is not creating heat energy itself, this heat energy should be equal to the amount of heat entering the solid region E through the boundary surface E during the time interval dt, which is what we calculated previously. We thus obtain the equality:

CdtEρTt dV=KdtE2T dV.

We can cancel the time interval dt on both sides. Rewriting both terms on the same side of the equality, we get:

E(K2TCρTt) dV=0.

But this must be true for all solid regions E within the object, and for all times t. From this we can conclude that the integrand must be identically zero:

K2T=CρTt.

This equation is generally rewritten as

T(x,y,z,t)t=α2T(x,y,z,t),

where α=KCρ is called the “thermal diffusivity”, and 2=2x2+2y2+2z2.

This equation is very famous: it is known as the heat equation. As mentioned in the Wikipedia page on “Heat equation”,

As the prototypical parabolic partial differential equation, the heat equation is among the most widely studied topics in pure mathematics, and its analysis is regarded as fundamental to the broader field of partial differential equations.
The importance of the heat equation goes beyond physics and heat flow. It has a wide range of applications, from the physics of heat flow of course, to probability theory, to financial mathematics, to quantum mechanics, to image analysis in computer science. A generalization of the heat equation is also behind the famous proof of the Poincare conjecture by Pereleman in 2003 (the only Millenium Prize Problem that has been solved so far). I encourage you to have a look at the wikipedia page on the heat equation!

Subsection 6.4.2 The divergence theorem in Rn and Green's first and second identities

We now consider the divergence theorem in Rn. Let F be a vector field, E a closed (n1)-dimensional subspace with normal vector pointing outward, and E the region of Rn consisting of E and its interior with canonical orientation. The divergence theorem in Rn is the statement that

En times(F)dVn=E(n1) times(Fn)dVn1.

Using this theorem, we can prove the following two identities, known as Green's first and second identities.

We consider the divergence theorem in Rn with vector field F=fg. By the third identity in Lemma 4.4.9, we know that

(fF)=(f)F+fF.

Thus

(fg)=fg+fg=fg+f2g.

Therefore, the divergence theorem applied to F=fg becomes:

En times(fg+f2g) dVn=E(n1) timesfgn dVn1,

which is the statement of Green's first identity.

This may not be obvious at first, but Green's first identity is essentially the equivalent of integration by parts in higher dimension. Basically, integration by parts can be written as

abf dg=fg|ababg df.

Green's first identity generalizes this statement for the n-tuple integral of the function f2g over a closed bounded region ERn.

Green's second identity follows from the first identity. Using the first identity, we know that

En times(f2gg2f) dVn=E(n1) times(fggf)n dVn1En times(fggf) dVn.

But fg=gf, and hence the last term vanishes. The result is Green's second identity.

Green's identities are quite useful in mathematics. There is in fact also a third Green's identity, but it is beyond the scope of this class. Have a look at the Wikipedia page on “Green's identities” if you are interested!

Exercises 6.4.3 Exercises

1.

Recall that a function g:UR with URn is harmonic on U if it is a solution to the Laplace equation, that is, 2g=0 on U, where 2=i=1n2xi2. Use Green's first identity to show that if g is harmonic on U, and EU (with E and E as usual), then

E(n1) timesgn dVn1=0.
Solution.

We consider Green's identity with the constant function f=1. It reads:

En times2g dVn=E(n1) timesgn dVn1En times((1)g) dVn.

But (1)=0, since the gradient of a constant function necessarily vanishes. Furthermore, since we assume that g is harmonic, we know that 2g=0. Therefore we conclude that

E(n1) timesgn dVn1=0.

2.

As in the previous exercise, let g be a harmonic function on URn, with EU. Use Green's first identity to show that if g=0 on the boundary space E (with E and E as usual), then

En times|g|2 dVn=0.
Solution.

We consider Green's first identity again, but now with f=g. It reads:

En timesg2g dVn=E(n1) timesggn dVn1En times(gg) dVn.

We assume that g is harmonic, that is, 2g=0. Furthermore, we assume that the function g vanishes on the boundary surface E, therefore the integral

E(n1) timesggn dVn1

vanishes, since the integrand is identically zero on the surface E over which we are integrating. As a result, Green's first identity becomes

En times(gg) dVn=0.

But gg=|(g)|2, and we obtain

En times|g|2 dVn=0.