Skip to main content

Section 6.3 Divergence theorem in Rn

We show that the divergence theorem holds in Rn, not just in R3. It follows again from the generalized Stokes' theorem, but we need to rewrite it a little bit to see this.

Subsection 6.3.1 A divergence theorem in Rn?

In the previous section, we showed that the generalized Stokes' theorem, in the particular case where Ο‰ is a two-form on R3 and M is a solid region EβŠ‚R3, reduces to the divergence theorem in R3, which reads

∭E(βˆ‡β‹…F) dV=βˆ¬βˆ‚EFβ‹…dS.

Contrary to Green's and Stokes' theorem, the divergence theorem involves the divergence of the vector field, not the curl. While the notion of curl of a vector field is not so easy to generalize to Rn, the divergence can be generalized easily.

More precisely, let F(x1,…,xn)=(f1,…,fn) be a smooth vector field on UβŠ†Rn, with f1,…,fn:Uβ†’R smooth functions. We can define the divergence of F naturally as

βˆ‡β‹…F=βˆ‘i=1nβˆ‚fiβˆ‚xi=βˆ‚f1βˆ‚x1+βˆ‚f2βˆ‚x2+…+βˆ‚fnβˆ‚xn.

Now suppose that EβŠ‚Rn is a closed bounded region that consists of a closed (nβˆ’1)-dimensional space βˆ‚E and its interior. The integral of βˆ‡β‹…F over E is defined naturally in calculus as a multiple (β€œn-tuple”) integral, which can be rewritten as an iterated integral if E is recursively supported. The β€œsurface” integral over βˆ‚E can also be generalized; since βˆ‚E is a (nβˆ’1)-dimensional subspace in Rn, it has a well defined normal vector. If E is canonically oriented (choose the canonical ordered basis on Rn), we say that the induced orientation on βˆ‚E corresponds to an outward pointing normal vector, as for R3. A natural question then arise: does the divergence theorem generalize to any dimension? That is, is it true that

βˆ«β‹―βˆ«E⏟n times(βˆ‡β‹…F) dVn=βˆ«β‹―βˆ«βˆ‚E⏟(nβˆ’1) times(Fβ‹…n)dVnβˆ’1

where the integral on the left-hand-side is an n-tuple integral over the region EβŠ‚Rn, and the right-hand-side is an integral of the vector field F over the parametrized surface βˆ‚E with normal vector pointing outward?

The answer is yes, and it again follows from the generalized Stokes' theorem. But we need to rewrite the generalized Stokes' theorem a little bit to see this.

Subsection 6.3.2 Rewriting the generalized Stokes' theorem

Let us recall the generalized Stokes' theorem from Theorem 6.1.1:

∫MdΟ‰=βˆ«βˆ‚MΟ‰,

where M is an oriented n-dimensional manifold, βˆ‚M its boundary, and Ο‰ a (nβˆ’1)-form.

Let us focus on a case similar to the previous section, where we take βˆ‚E to be a closed (nβˆ’1)-dimensional space in Rn (such as a closed surface in R3 in the previous section), and E to be the n-dimensional region of Rn consisting of βˆ‚E and its interior. We assign to E the canonical orientation, and to βˆ‚E the induced orientation corresponding to a normal vector pointing outwards.

There is then a natural way of constructing a (nβˆ’1)-form, using the Hodge star operator from Section 4.8. Let Ξ· be a one-form on UβŠ†Rn. Then ⋆ω is a (nβˆ’1)-form on UβŠ†Rn, by definition of the Hodge star. So we can rewrite the generalized Stokes' theorem for the one-form Ξ· as follows:

∫Ed(⋆η)=βˆ«βˆ‚E⋆η.

This is really the same generalized Stokes' theorem, but instead of writing it in terms of a (nβˆ’1)-form Ο‰, we write it in terms of a one-form Ξ·.

Why would that be of any use? The advantage is that we can easily translate to vector field concepts for all Rn, since we can establish a direct translation between one-forms and vector fields regardless of the dimension.

Subsection 6.3.3 The divergence theorem in Rn

There is a natural dictionary between one-forms and vector fields in Rn. Let Ξ· be a one-form on UβŠ†Rn. We can write:

Ξ·=βˆ‘i=1nfidxi,

where the fi:Uβ†’R, for i=1,…,n, are smooth functions. We can associate to this one-form the smooth vector field

F=(f1,f2,…,fn)

on UβŠ†Rn.

We would like to rewrite our variant of the generalized Stokes' theorem as an integral theorem for the vector field F. Let us first prove a lemma that will enable us to rewrite the left-hand-side of the generalized Stokes' theorem.

By definition of the Hodge star, we have:

⋆η=βˆ‘i=1n(βˆ’1)i+1fidx1βˆ§β‹―dxi^βˆ§β‹―βˆ§dxn,

where the hat notation means that we take the wedge product of all dxj's except the dxi. Calculating the exterior derivative, we get:

d(⋆η)=βˆ‘i=1n(βˆ’1)iβˆ’1βˆ‚fiβˆ‚xidxi∧dx1βˆ§β‹―dxi^βˆ§β‹―βˆ§dxn=βˆ‘i=1nβˆ‚fiβˆ‚xidx1βˆ§β‹―βˆ§dxn=(βˆ‡β‹…F)dx1βˆ§β‹―βˆ§dxn.

As for the right-hand-side of the generalized Stokes' theorem, we need to rewrite the integral βˆ«βˆ‚E⋆η in terms of vector calculus objects. βˆ‚E is a closed (nβˆ’1)-dimensional space in Rn. We can think of it as a parametric space Ξ±:Dβ†’Rn for some closed bounded region DβŠ‚Rnβˆ’1, like we did for parametric curves in R2 and parametric surfaces in R3. In this we case, we can define the integral by pulling back using the parametrization. We claim that the following lemma holds:

We will not prove this statement in general; we will only prove it for parametric curves and surfaces. In fact, for parametric surfaces, this is basically the statement that was already proven in Corollary 5.6.5; indeed, what we have in this case is a surface integral in R3, and because by Table 4.1.11 we know that the vector field associated to the two-form ⋆η is the same as the vector field associated to the one-form Ξ·, the result of Corollary 5.6.5 still holds here.

Let us then show that it holds for parametric curves in R2. In this case, Ξ·=f dx+g dy, with associated vector field F=(f,g), and ⋆η=f dyβˆ’g dx. Let Ξ±:[a,b]β†’R2 be a parametric curve representing the boundary curve βˆ‚E. Thus we have:

βˆ«βˆ‚E⋆η=βˆ«Ξ±β‹†Ξ·=∫[a,b]Ξ±βˆ—(⋆η).

If we write Ξ±(t)=(x(t),y(t)), the pullback is

Ξ±βˆ—(⋆η)=(f(Ξ±(t))yβ€²(t)βˆ’g(Ξ±(t))xβ€²(t)) dt.

Now, the tangent vector to the parametric curve is

T(t)=(xβ€²(t),yβ€²(t)).

The outward pointing normal vector is then

n(t)=(yβ€²(t),βˆ’xβ€²(t)),

as the two vectors must be orthogonal, and the overall sign of the normal vector is fixed by requiring the it points outwards. We thus see that we can write

Ξ±βˆ—(⋆η)=(Fβ‹…n) dt,

and

βˆ«βˆ‚E⋆η=∫[a,b](Fβ‹…n)dt.

Putting this together, we see that our variant of the generalized Stokes' theorem gives rise to a generalization of the divergence theorem of the previous section that now holds in any dimension.

Remark 6.3.4.

In some textbooks, the divergence theorem in R2 is simply called β€œanother form of Green's theorem”. The reason is that it actually follows directly from Green's theorem. Recall that, given a vector field F=(f,g) in R2, Green's theorem states that

∬D(βˆ‡Γ—F)β‹…e3 dA=βˆ«βˆ‚D(Fβ‹…T) dt.

The left-hand-side can be rewritten explicitly as

∬D(βˆ‡Γ—F)β‹…e3 dA=∬D(βˆ‚gβˆ‚xβˆ’βˆ‚fβˆ‚y) dA,

while the right-hand-side can be rewriten as

βˆ«βˆ‚D(Fβ‹…T) dt=βˆ«βˆ‚D(f(Ξ±(t))xβ€²(t)+g(Ξ±(t))yβ€²(t)) dt,

where Ξ±(t)=(x(t),y(t)) is a parametrization of the curve βˆ‚D.

Now if we consider a new vector field G=(βˆ’g,f), Green's theorem applied to G is the statement that

∬D(βˆ‡Γ—G)β‹…e3 dA=βˆ«βˆ‚D(Gβ‹…T) dt,

which becomes, once written out explicitly,

∬D(βˆ‚fβˆ‚x+βˆ‚gβˆ‚y) dA=βˆ«βˆ‚D(f(Ξ±(t))yβ€²(t)βˆ’g(Ξ±(t))xβ€²(t)) dt.

But if we rewrite this expression in terms of the original vector field F=(f,g), we get

∬D(βˆ‡β‹…F) dA=βˆ«βˆ‚D(Fβ‹…n) dt,

which is the divergence theorem in R2 for F!

So Green's theorem and the divergence theorem in R2 are really equivalent. But we prefer to call the later the divergence theorem in R2 as it is the special case of the general divergence theorem in Rn.

Remark 6.3.5.

Comparing Green's theorem and the divergence theorem in R2, it is interesting to note that the curl is related the tangential component of the vector field, while the divergence is related to the normal component. This is not a coincidence; if you recall from Section 4.5, the curl and divergence of vector fields are given a physical interpretation in terms of a moving fluid. The curl concerns whether a small sphere immersed in the fluid will rotate due to the fluid motion -- the rotation will be induced by the tangential component of the velocity field of the fluid on the surface of the sphere. The divergence concerns whether there is more fluid exiting than entering a small sphere immersed in the fluid -- this is mostly influenced by the normal component of the velocity field on the surface of the sphere. In fact, we can make this physical interpretation of the curl and div precise by applying the Stokes' and divergence theorem (respectively) to the small sphere, and take a limit where the volume of the sphere goes to zero. See for instance Section 4.4.1 in CLP 4 for this detailed calculation.