# 15.8: The Divergence Theorem

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

We have examined several versions of the Fundamental Theorem of Calculus in higher dimensions that relate the integral around an oriented boundary of a domain to a “derivative” of that entity on the oriented domain. In this section, we state the divergence theorem, which is the final theorem of this type that we will study. The divergence theorem has many uses in physics; in particular, the divergence theorem is used in the field of partial differential equations to derive equations modeling heat flow and conservation of mass. We use the theorem to calculate flux integrals and apply it to electrostatic fields.

Overview of Theorems

Before examining the divergence theorem, it is helpful to begin with an overview of the versions of the Fundamental Theorem of Calculus we have discussed:

- The Fundamental Theorem of Calculus: \[\int_a^b f' (x) \, dx = f(b) - f(a).\] This theorem relates the integral of derivative \(f'\) over line segment \([a,b]\) along the
*x*-axis to a difference of \(f\) evaluated on the boundary. - The Fundamental Theorem for Line Integrals: \[\int_C \nabla f \cdot dr = f(P_1) - f(P_0),\] where \(P_0\) is the initial point of
*C*and \(P_1\) is the terminal point of*C*. The Fundamental Theorem for Line Integrals allows path*C*to be a path in a plane or in space, not just a line segment on the*x*-axis. If we think of the gradient as a derivative, then this theorem relates an integral of derivative \(\nabla f\) over path*C*to a difference of \(f\) evaluated on the boundary of*C*. - Green’s theorem, circulation form: \[\iint_D (Q_x - P_y)dA = \int_C F \cdot dr.\] Since \(Q_x - P_y = curl \, F \cdot k\) and curl is a derivative of sorts, Green’s theorem relates the integral of derivative curl
**F**over planar region*D*to an integral of**F**over the boundary of*D*. - Green’s theorem, flux form: \[\iint_D (P_x + Q_y)dA = \int_C F \cdot N \, dS.\] Since \(P_x + Q_y = div \, F\) and divergence is a derivative of sorts, the flux form of Green’s theorem relates the integral of derivative div
**F**over planar region*D*to an integral of**F**over the boundary of*D*. - Stokes’ theorem: \[\iint_S curl \, F \cdot dS = \int_C F \cdot dr.\] If we think of the curl as a derivative of sorts, then Stokes’ theorem relates the integral of derivative curl
**F**over surface*S*(not necessarily planar) to an integral of**F**over the boundary of*S*.

# Stating the Divergence Theorem

The divergence theorem follows the general pattern of these other theorems. If we think of divergence as a derivative of sorts, then the divergence theorem relates a triple integral of derivative div **F** over a solid to a flux integral of **F** over the boundary of the solid. More specifically, the divergence theorem relates a flux integral of vector field **F** over a closed surface *S* to a triple integral of the divergence of **F** over the solid enclosed by *S*.

The Divergence Theorem

Let *S* be a piecewise, smooth closed surface that encloses solid *E* in space. Assume that *S* is oriented outward, and let **F** be a vector field with continuous partial derivatives on an open region containing *E* (Figure \(\PageIndex{1}\)). Then

\[\iiint_E div \, F \, dV = \iint_S F \cdot dS.\]

**Figure \(\PageIndex{1}\):** The divergence theorem relates a flux integral across a closed surface *S* to a triple integral over solid *E* enclosed by the surface.

Recall that the flux form of Green’s theorem states that

\[ \iint_D div \, dA = \int_C F \cdot N \, dS.\]

Therefore, the divergence theorem is a version of Green’s theorem in one higher dimension.

The proof of the divergence theorem is beyond the scope of this text. However, we look at an informal proof that gives a general feel for why the theorem is true, but does not prove the theorem with full rigor. This explanation follows the informal explanation given for why Stokes’ theorem is true.

Proof

Let *B* be a small box with sides parallel to the coordinate planes inside *E* (Figure \(\PageIndex{2a}\)). Let the center of *B* have coordinates \((x,y,z)\) and suppose the edge lengths are \(\Delta x, \, \Delta y\), and \(\Delta z\). (Figure \(\PageIndex{1b}\)). The normal vector out of the top of the box is **k** and the normal vector out of the bottom of the box is \(-k\). The dot product of \(F = \langle P, Q, R \rangle\) with **k** is *R* and the dot product with \(-k\) is \(-R\). The area of the top of the box (and the bottom of the box)

**Figure \(\PageIndex{2}\):** (a) A small box *B* inside surface *E* has sides parallel to the coordinate planes. (b) Box *B* has side lengths\(\Delta x, \, \Delta y\), and \(\Delta z\) (c) If we look at the side view of *B*, we see that, since \((x,y,z)\) is the center of the box, to get to the top of the box we must travel a vertical distance of \(\Delta /z\) up from \((x,y,z)\). Similarly, to get to the bottom of the box we must travel a distance \(\Delta /z\) down from \((x,y,z)\).

The flux out of the top of the box can be approximated by \(R \left(x,\, y,\, z + \frac{\Delta z}{2}\right) \Delta x \Delta y\) (Figure \(\PageIndex{2c}\)) and the flux out of the bottom of the box is \(- R \left(x,\, y,\, z - \frac{\Delta z}{2}\right) \Delta x \Delta y\). If we denote the difference between these values as \(\Delta R\), then the net flux in the vertical direction can be approximated by \(\Delta R \Delta x \Delta y\). However,

\[\Delta R \Delta x \Delta y = \left(\frac{\Delta R}{\Delta z}\right) \Delta x \Delta y \Delta z \approx \left(\frac{\partial R}{\partial z}\right) \Delta V.\]

Therefore, the net flux in the vertical direction can be approximated by \(\left(\frac{\partial R}{\partial z}\right)\Delta V\). Similarly, the net flux in the *x*-direction can be approximated by\(\left(\frac{\partial P}{\partial x}\right)\Delta V\)and the net flux in the *y*-direction can be approximated by\(\left(\frac{\partial Q}{\partial y}\right)\Delta V\). Adding the fluxes in all three directions gives an approximation of the total flux out of the box:

\[Total \, flux \approx \left(\frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z} \right) \Delta V = div \, F \Delta V.\]

This approximation becomes arbitrarily close to the value of the total flux as the volume of the box shrinks to zero.

The sum of \(div F \Delta V\) over all the small boxes approximating *E* is approximately \(\iiint_E div \, F dV\). On the other hand, the sum of \(div \, F \Delta V\) over all the small boxes approximating *E* is the sum of the fluxes over all these boxes. Just as in the informal proof of Stokes’ theorem, adding these fluxes over all the boxes results in the cancelation of a lot of the terms. If an approximating box shares a face with another approximating box, then the flux over one face is the negative of the flux over the shared face of the adjacent box. These two integrals cancel out. When adding up all the fluxes, the only flux integrals that survive are the integrals over the faces approximating the boundary of *E*. As the volumes of the approximating boxes shrink to zero, this approximation becomes arbitrarily close to the flux over *S*.

\(\Box\)

Example \(\PageIndex{1}\): Verifying the Divergence Theorem

Verify the divergence theorem for vector field \(F = \langle x - y, \, x + z, \, z - y \rangle\) and surface *S* that consists of cone \(x^2 + y^2 = z^2, \, 0 \leq z \leq 1\), and the circular top of the cone (see the following figure). Assume this surface is positively oriented.

**Solution**

Let *E* be the solid cone enclosed by *S*. To verify the theorem for this example, we show that

\[\iiint_E div \, F dV = \iint_S F \cdot dS\]

by calculating each integral separately.

To compute the triple integral, note that \(div \, F = P_x + Q_y + R_z = 2\), and therefore the triple integral is

\[ \begin{align*} \iiint_E div \, dV &= 2 \iiint_E dV \\[5pt] &= 2 \, (volume \, of \, E). \end{align*}\]

The volume of a right circular cone is given by \(\pi r^2 \frac{h}{3}\). In this case, \(h = r = 1\). Therefore,

\[\iiint_E div \, F dV = 2 \, (volume \, of \, E) = \frac{2\pi}{3}.\]

To compute the flux integral, first note that *S* is piecewise smooth; *S* can be written as a union of smooth surfaces. Therefore, we break the flux integral into two pieces: one flux integral across the circular top of the cone and one flux integral across the remaining portion of the cone. Call the circular top \(S_1\) and the portion under the top \(S_2\). We start by calculating the flux across the circular top of the cone. Notice that \(S_1\) has parameterization

\[r(u,v) = \langle u \, \cos v, \, u \, \sin v, \, 1 \rangle, \, 0 \leq u \leq 1, \, 0 \leq v \leq 2\pi.\]

Then, the tangent vectors are \(t_u = \langle \cos v, \, \sin v, \, 0 \rangle \) and \(t_v = \langle -u \, \cos v, \, u \, \sin v, 0 \rangle \). Therefore, the flux across \(S_1\) is

\[ \begin{align*} \iint_{S_1} F \cdot dS &= \int_0^1 \int_0^{2\pi} F ( r ( u,v)) \cdot (t_u \times t_v) \, dA \\[5pt] &= \int_0^1 \int_0^{2\pi} \langle u \, \cos v - u \, \sin v, \, u \, \cos v + 1, \, 1 - u \, \sin v \rangle \cdot \langle 0,0,v \rangle \, dv\, du \\[5pt] &= \int_0^1 \int_0^{2\pi} u - u^2 \sin v \, dv du \\[5pt] &= \pi. \end{align*}\]

We now calculate the flux over \(S_2\). A parameterization of this surface is

\[r(u,v) = \langle u \, \cos v, \, u \, \sin v, \, u \rangle, \, 0 \leq u \leq 1, \, 0 \leq v \leq 2\pi.\]

The tangent vectors are \(t_u = \langle \cos v, \, \sin v, \, 1 \rangle \) and \(t_v = \langle -u \, \sin v, \, u \, \cos v, 0 \rangle \), so the cross product is

\[t_u \times t_v = \langle - u \, \cos v, \, -u \, \sin v, \, u \rangle.\]

Notice that the negative signs on the *x* and *y* components induce the negative (or inward) orientation of the cone. Since the surface is positively oriented, we use vector \(t_v \times t_u = \langle u \, \cos v, \, u \, \sin v, \, -u \rangle\) in the flux integral. The flux across \(S_2\) is then

\[\iint_{S_1} F \cdot dS = \int_0^1 \int_0^{2\pi} F ( r ( u,v)) \cdot (t_u \times t_v) \, dA\]

\[= \int_0^1 \int_0^{2\pi} \langle u \, \cos v - u \, \sin v, \, u \, \cos v + u, \, u \, - \sin v \rangle \cdot \langle u \, \cos v, \, u \, \sin v, \, -u \rangle \]

\[= \int_0^1 \int_0^{2\pi} u^2 \cos^2 v + 2u^2 \sin v - u^2 dvdu = \frac{\pi}{3}\]

The total flux across *S* is

\[\iint_{S_2} F \cdot dS = \iint_{S_1} F \cdot dS + \iint_{S_2} F \cdot dS = \frac{2\pi}{3} = \iiint_E div \, F dV,\]

and we have verified the divergence theorem for this example.

Exercise \(\PageIndex{1}\)

Verify the divergence theorem for vector field \(F (x,y,z) = \langle x + y + z, \, y, \, 2x - y \rangle\) and surface *S* given by the cylinder \(x^2 + y^2 = 1, \, 0 \leq z \leq 3\) plus the circular top and bottom of the cylinder. Assume that *S* is positively oriented.

**Hint**-
Calculate both the flux integral and the triple integral with the divergence theorem and verify they are equal.

**Answer**-
Both integrals equal \(6\pi\).

Recall that the divergence of continuous field **F** at point *P* is a measure of the “outflowing-ness” of the field at *P*. If **F** represents the velocity field of a fluid, then the divergence can be thought of as the rate per unit volume of the fluid flowing out less the rate per unit volume flowing in. The divergence theorem confirms this interpretation. To see this, let *P* be a point and let \(B_{\tau}\) be a ball of small radius *r* centered at *P* (Figure \(\PageIndex{3}\)). Let \(S_{\tau}\) be the boundary sphere of \(B_{\tau}\). Since the radius is small and **F** is continuous, \(div \, F(Q) \approx div \, F(P)\) for all other points *Q* in the ball. Therefore, the flux across \(S_{\tau}\) can be approximated using the divergence theorem:

Example \(\PageIndex{3}\): Applying the Divergence Theorem

Let \(v = \left\langle - \frac{y}{z}, \, \frac{x}{z}, \, 0 \right\rangle\) be the velocity field of a fluid. Let *C* be the solid cube given by \(1 \leq x \leq 4, \, 2 \leq y \leq 5, \, 1 \leq z \leq 4\), and let *S* be the boundary of this cube (see the following figure). Find the flow rate of the fluid across *S*.

**Figure \(\PageIndex{4}\): **Vector field \(v = \left\langle - \frac{y}{z}, \, \frac{x}{z}, \, 0 \right\rangle\).

**Solution**

The flow rate of the fluid across *S* is \(\iint_S v \cdot dS\). Before calculating this flux integral, let’s discuss what the value of the integral should be. Based on Figure \(\PageIndex{4}\), we see that if we place this cube in the fluid (as long as the cube doesn’t encompass the origin), then the rate of fluid entering the cube is the same as the rate of fluid exiting the cube. The field is rotational in nature and, for a given circle parallel to the *xy*-plane that has a center on the *z*-axis, the vectors along that circle are all the same magnitude. That is how we can see that the flow rate is the same entering and exiting the cube. The flow into the cube cancels with the flow out of the cube, and therefore the flow rate of the fluid across the cube should be zero.

To verify this intuition, we need to calculate the flux integral. Calculating the flux integral directly requires breaking the flux integral into six separate flux integrals, one for each face of the cube. We also need to find tangent vectors, compute their cross product, and use [link]. However, using the divergence theorem makes this calculation go much more quickly:

\[\iint_S v \cdot dS = \iiint_C div (v) \, dV\]

\[= \iiint_C 0 \, dV = 0.\]

Therefore the flux is zero, as expected.

Exercise \(\PageIndex{3}\)

Let \(v = \left\langle \frac{x}{z}, \, \frac{y}{z}, \, 0 \right\rangle\) be the velocity field of a fluid. Let *C* be the solid cube given by \(1 \leq x \leq 4, \, 2 \leq y \leq 5, \, 1 \leq z \leq 4\), and let *S* be the boundary of this cube (see the following figure). Find the flow rate of the fluid across *S*.

**Hint**-
Use the divergence theorem and calculate a triple integral

**Answer**-
\(9 \, \ln (16)\)

Example illustrates a remarkable consequence of the divergence theorem. Let *S* be a piecewise, smooth closed surface and let **F** be a vector field defined on an open region containing the surface enclosed by *S*. If **F** has the form \(F = \langle f (y,z), \, g(x,z), \, h(x,y)\rangle\), then the divergence of **F** is zero. By the divergence theorem, the flux of **F** across *S* is also zero. This makes certain flux integrals incredibly easy to calculate. For example, suppose we wanted to calculate the flux integral \(\iint_S F \cdot dS\) where *S* is a cube and

\[F = \langle \sin (y) \, e^{yz}, \, x^2z^2, \, \cos (xy) \, e^{\sin x} \rangle.\]

Calculating the flux integral directly would be difficult, if not impossible, using techniques we studied previously. At the very least, we would have to break the flux integral into six integrals, one for each face of the cube. But, because the divergence of this field is zero, the divergence theorem immediately shows that the flux integral is zero.

We can now use the divergence theorem to justify the physical interpretation of divergence that we discussed earlier. Recall that if **F** is a continuous three-dimensional vector field and *P* is a point in the domain of **F**, then the divergence of **F** at *P* is a measure of the “outflowing-ness” of **F** at *P*. If **F** represents the velocity field of a fluid, then the divergence of **F** at *P* is a measure of the net flow rate out of point *P* (the flow of fluid out of *P* less the flow of fluid in to *P*). To see how the divergence theorem justifies this interpretation, let \(B_{\tau}\) be a ball of very small radius *r* with center *P*, and assume that \(B_{\tau}\) is in the domain of **F**. Furthermore, assume that \(B_{\tau}\) has a positive, outward orientation. Since the radius of \(B_{\tau}\) is small and **F** is continuous, the divergence of **F** is approximately constant on \(B_{\tau}\). That is, ifv \(P'\) is any point in \(B_{\tau}\), then \(div \, F(P) \approx div \, F(P')\). Let \(S_{\tau}\) denote the boundary sphere of \(B_{\tau}\). We can approximate the flux across \(S_{\tau}\) using the divergence theorem as follows:

\[\iint_{S_{\tau}} F \cdot dS = \iiint_{B_{\tau}} div \, F \, dV\]

\[\approx \iiint_{B_{\tau}} div \, F (P) \, dV\]

\[= div \, F (P) \, V(B_{\tau}).\]

As we shrink the radius *r* to zero via a limit, the quantity \(div \, F (P) \, V(B_{\tau})\) gets arbitrarily close to the flux. Therefore,

\[div \, F(P) = \lim_{\tau \rightarrow 0} \frac{1}{V(B_{\tau})} \iint_{S_{\tau}} F \cdot dS\]

and we can consider the divergence at *P* as measuring the net rate of outward flux per unit volume at *P*. Since “outflowing-ness” is an informal term for the net rate of outward flux per unit volume, we have justified the physical interpretation of divergence we discussed earlier, and we have used the divergence theorem to give this justification.

# Application to Electrostatic Fields

The divergence theorem has many applications in physics and engineering. It allows us to write many physical laws in both an integral form and a differential form (in much the same way that Stokes’ theorem allowed us to translate between an integral and differential form of Faraday’s law). Areas of study such as fluid dynamics, electromagnetism, and quantum mechanics have equations that describe the conservation of mass, momentum, or energy, and the divergence theorem allows us to give these equations in both integral and differential forms.

One of the most common applications of the divergence theorem is to **electrostatic fields**. An important result in this subject is **Gauss’ law**. This law states that if *S* is a closed surface in electrostatic field **E**, then the flux of **E** across *S* is the total charge enclosed by *S* (divided by an electric constant). We now use the divergence theorem to justify the special case of this law in which the electrostatic field is generated by a stationary point charge at the origin.

If \((x,y,z)\) is a point in space, then the distance from the point to the origin is \(r = \sqrt{x^2 + y^2 + z^2}\). Let \(F_{\tau}\) denote radial vector field \(F_{\tau} = \dfrac{1}{\tau^2} \left\langle \dfrac{x}{\tau}, \, \dfrac{y}{\tau}, \, \dfrac{z}{\tau}\right\rangle \).The vector at a given position in space points in the direction of unit radial vector \(\left\langle \dfrac{x}{\tau}, \, \dfrac{y}{\tau}, \, \dfrac{z}{\tau}\right\rangle \) and is scaled by the quantity \(1/\tau^2\). Therefore, the magnitude of a vector at a given point is inversely proportional to the square of the vector’s distance from the origin. Suppose we have a stationary charge of *q* Coulombs at the origin, existing in a vacuum. The charge generates electrostatic field **E** given by

\[E = \dfrac{q}{4\pi \epsilon_0}F_{\tau},\]

where the approximation \(\epsilon_0 = 8.854 \times 10^{-12}\) farad (F)/m is an electric constant. (The constant \(\epsilon_0\) is a measure of the resistance encountered when forming an electric field in a vacuum.) Notice that **E** is a radial vector field similar to the gravitational field described in [link]. The difference is that this field points outward whereas the gravitational field points inward. Because

\[E = \dfrac{q}{4\pi \epsilon_0}F_{\tau} = \dfrac{q}{4\pi \epsilon_0}\left(\dfrac{1}{\tau^2} \left\langle \dfrac{x}{\tau}, \, \dfrac{y}{\tau}, \, \dfrac{z}{\tau}\right\rangle\right),\]

we say that electrostatic fields obey an inverse-square law. That is, the electrostatic force at a given point is inversely proportional to the square of the distance from the source of the charge (which in this case is at the origin). Given this vector field, we show that the flux across closed surface *S* is zero if the charge is outside of *S*, and that the flux is \(q/epsilon_0\) if the charge is inside of *S*. In other words, the flux across *S* is the charge inside the surface divided by constant \(\epsilon_0\). This is a special case of Gauss’ law, and here we use the divergence theorem to justify this special case.

To show that the flux across *S* is the charge inside the surface divided by constant \(\epsilon_0\), we need two intermediate steps. First we show that the divergence of \(F_{\tau}\) is zero and then we show that the flux of \(F_{\tau}\) across any smooth surface *S* is either zero or \(4\pi\). We can then justify this special case of Gauss’ law.

Example \(\PageIndex{4}\): The Divergence of \(F_{\tau}\) Is Zero

Verify that the divergence of \(F_{\tau}\) is zero where \(F_{\tau}\) is defined (away from the origin).

**Solution**

Since \(\tau = \sqrt{x^2 + y^2 + z^2}\), the quotient rule gives us

\[ \begin{align*} \dfrac{\partial}{\partial x} \left( \dfrac{x}{\tau^3} \right) &= \dfrac{\partial}{\partial x} \left( \dfrac{x}{(x^2+y^2+z^2)^{3/2}} \right) \\[5pt] &= \dfrac{(x^2+y^2+z^2)^{3/2} - x\left[\dfrac{3}{2} (x^2+y^2+z^2)^{1/2}2x\right]}{(x^2+y^2+z^2)^3} \\[5pt] &= \dfrac{\tau^3 -3x^2\tau}{\tau^6} = \dfrac{\tau^2 - 3x^2}{\tau^5}. \end{align*}\]

Similarly,

\[\dfrac{\partial}{\partial y} \left( \dfrac{y}{\tau^3} \right) = \dfrac{\tau^2 - 3y^2}{\tau^5} \, and \, \dfrac{\partial}{\partial z} \left( \dfrac{z}{\tau^3} \right) = \dfrac{\tau^2 - 3z^2}{\tau^5}.\]

Therefore,

\[ \begin{align*} div \, F_{\tau} &= \dfrac{\tau^2 - 3x^2}{\tau^5} + \dfrac{\tau^2 - 3y^2}{\tau^5} + \dfrac{\tau^2 - 3z^2}{\tau^5} \\[5pt] &= \dfrac{3\tau^2 - 3(x^2+y^2+z^2)}{\tau^5} \\[5pt] &= \dfrac{3\tau^2 - 3\tau^2}{\tau^5} = 0. \end{align*}\]

Notice that since the divergence of \(F_{\tau}\) is zero and **E** is \(F_{\tau}\) scaled by a constant, the divergence of electrostatic field **E** is also zero (except at the origin).

Flux across a Smooth Surface

Let *S* be a connected, piecewise smooth closed surface and let \(F_{\tau} = \dfrac{1}{\tau^2} \left\langle \dfrac{x}{\tau}, \, \dfrac{y}{\tau}, \, \dfrac{z}{\tau}\right \rangle\). Then,

\[\iint_SF_{\tau} \cdot dS = \begin{cases}0 & \text{if S does not encompass the origin} \\ 4\pi & \text{if S encompasses the origin.} \end{cases}\]

In other words, this theorem says that the flux of \(F_{\tau}\) across any piecewise smooth closed surface *S* depends only on whether the origin is inside of *S*.

Proof

The logic of this proof follows the logic of [link], only we use the divergence theorem rather than Green’s theorem.

First, suppose that *S* does not encompass the origin. In this case, the solid enclosed by *S* is in the domain of \(F_{\tau}\), and since the divergence of \(F_{\tau}\) is zero, we can immediately apply the divergence theorem and find that \[\iint_S F \cdot dS \] is zero.

Now suppose that *S* does encompass the origin. We cannot just use the divergence theorem to calculate the flux, because the field is not defined at the origin. Let \(S_a\) be a sphere of radius *a* inside of *S* centered at the origin. The outward normal vector field on the sphere, in spherical coordinates, is

\[t_{\phi} \times t_{\theta} = \langle a^2 \cos \theta \, \sin^2 \phi, \, a^2 \sin \theta \, \sin^2 \phi, \, a^2 \sin \phi \, \cos \phi \rangle\]

(see [link]). Therefore, on the surface of the sphere, the dot product \(F_{\tau} \cdot N\) (in spherical coordinates) is

\[F_{\tau} \cdot N = \left \langle \dfrac{\sin \phi \, \cos \theta}{a^2}, \, \dfrac{\sin \phi \, \sin \theta}{a^2}, \, \dfrac{\cos \phi}{a^2} \right \rangle \cdot \langle a^2 \cos \theta \, \sin^2 \phi, a^2 \sin \theta \, \sin^2 \phi, \, a^2 \sin \phi \, \cos \phi \rangle \]

\[= \sin \phi ( \langle \sin \phi \, \cos \theta, \, \sin \phi \, \sin \theta, \, \cos \phi \rangle \cdot \langle \sin \phi \, \cos \theta, \sin \phi \, \sin \theta, \, \cos \phi \rangle )\]

\[= \sin \phi.\]

The flux of \(F_{\tau}\) across \(S_a\) is

\[\iint_{S_a} F_{\tau} \cdot N dS = \int_0^{2\pi} \int_0^{\pi} \sin \phi \, d\phi \, d\theta = 4\pi.\]

Now, remember that we are interested in the flux across *S*, not necessarily the flux across \(S_a\). To calculate the flux across *S*, let *E* be the solid between surfaces \(S_a\) and *S*. Then, the boundary of *E* consists of \(S_a\) and *S*. Denote this boundary by \(S - S_a\) to indicate that *S* is oriented outward but now \(S_a\) is oriented inward. We would like to apply the divergence theorem to solid *E.* Notice that the divergence theorem, as stated, can’t handle a solid such as *E* because *E* has a hole. However, the divergence theorem can be extended to handle solids with holes, just as Green’s theorem can be extended to handle regions with holes. This allows us to use the divergence theorem in the following way. By the divergence theorem,

\[\iint_{S-S_a} F_{\tau} \cdot dS = \iint_S F_{\tau} \cdot dS - \iint_{S_a} F_{\tau} \cdot dS\]

\[= \iiint_E div \, F_{\tau} \, dV\]

\[= \iiint_E 0 \, dV = 0.\]

Therefore,

\[\iint_S F_{\tau} \cdot dS = \iint_{S_a} F_{\tau} \cdot dS = 4\pi,\]

and we have our desired result.

\(\Box\)

Now we return to calculating the flux across a smooth surface in the context of electrostatic field \(E = \dfrac{q}{4\pi \epsilon_0} F_{\tau} \) of a point charge at the origin. Let *S* be a piecewise smooth closed surface that encompasses the origin. Then

\[\iint_S E \cdot dS = \iint_S \dfrac{q}{4\pi \epsilon_0} F_{\tau} \cdot dS\]

\[= \dfrac{q}{4\pi \epsilon_0} \iint_S F_{\tau} \cdot dS\]

\[= \dfrac{q}{\epsilon_0}.\]

If *S* does not encompass the origin, then

\[\iint_S E \cdot dS = \dfrac{q}{4\pi \epsilon_0} \iint_S F_{\tau} \cdot dS = 0.\]

Therefore, we have justified the claim that we set out to justify: the flux across closed surface *S* is zero if the charge is outside of *S*, and the flux is \(q/\epsilon_0\) if the charge is inside of *S*.

This analysis works only if there is a single point charge at the origin. In this case, Gauss’ law says that the flux of **E** across *S* is the total charge enclosed by *S*. Gauss’ law can be extended to handle multiple charged solids in space, not just a single point charge at the origin. The logic is similar to the previous analysis, but beyond the scope of this text. In full generality, Gauss’ law states that if *S* is a piecewise smooth closed surface and *Q* is the total amount of charge inside of *S*, then the flux of **E** across *S* is \(Q/\epsilon_0\).

Example \(\PageIndex{5}\):Using Gauss’ law

Suppose we have four stationary point charges in space, all with a charge of 0.002 Coulombs (C). The charges are located at \((0,0,1), \, (1,1,4), (-1,0,0)\), and \((-2,-2,2)\). Let **E** denote the electrostatic field generated by these point charges. If *S* is the sphere of radius 2 oriented outward and centered at the origin, then find \[\iint_S E \cdot dS.\]

**Solution**

According to Gauss’ law, the flux of **E** across *S* is the total charge inside of *S* divided by the electric constant. Since *S* has radius 2, notice that only two of the charges are inside of *S*: the charge at \(0,1,1)\) and the charge at \((-1,0,0)\). Therefore, the total charge encompassed by *S* is 0.004 and, by Gauss’ law,

\[\iint_S E \cdot dS = \dfrac{0.004}{8.854 \times 10^{-12}} \approx 4.418 \times 10^9 \, V - m.\]

Exercise \(\PageIndex{4}\)

Work the previous example for surface *S* that is a sphere of radius 4 centered at the origin, oriented outward.

**Hint**-
Use Gauss’ law.

**Answer**-
\(\approx 6.777 \times 10^9\)

# Key Concepts

- The divergence theorem relates a surface integral across closed surface
*S*to a triple integral over the solid enclosed by*S*. The divergence theorem is a higher dimensional version of the flux form of Green’s theorem, and is therefore a higher dimensional version of the Fundamental Theorem of Calculus. - The divergence theorem can be used to transform a difficult flux integral into an easier triple integral and vice versa.
- The divergence theorem can be used to derive Gauss’ law, a fundamental law in electrostatics.

# Key Equations

**Divergence theorem**

\[\iiint_E div \, F \, dV = \iint_S F \cdot dS\]

For the following exercises, use a computer algebraic system (CAS) and the divergence theorem to evaluate surface integral \(\int_S F \cdot n \, ds\) for the given choice of **F** and the boundary surface *S.* For each closed surface, assume **N** is the outward unit normal vector.

[T] \(F(x,y,z) = xi + yj + zk\); *S* is the surface of cube \(0 \leq x \leq 1, \, 0 \leq y \leq 1, \, 0 < z \leq 1\).

[T] \(F(x,y,z) = (\cos yz) i + e^{xz}j + 3z^2 k\); *S* is the surface of hemisphere \(z = \sqrt{4 - x^2 - y^2}\) together with disk \(x^2 + y^2 \leq 4\) in the *xy*-plane.

[Hide Solution]

\[\int_S F \cdot n \, ds = 75.3982\]

[T] \(F(x,y,z) = (x^2 + y^2 - \x^2)i + x^2 yj + 3zk; \) S is the surface of the five faces of unit cube \(0 \leq x \leq 1, \, 0 \leq y \leq 1, \, 0 < z \leq 1.\)

[T] F(x,y,z) = xi + yj + zk; \) *S* is the surface of paraboloid \(z = x^2 + y^2\) for \(0 \leq z \leq 9\).

[Hide Solution]

\[\int_S F \cdot n \, ds = 127.2345\]

[T] \(F(x,y,z) = x^2i + y^2 j + z^2 k\); *S* is the surface of sphere \(x^2 + y^2 + z^2 = 4\).

[T] \(F(x,y,z) = xi + yj + (z^2 - 1)k\); *S* is the surface of the solid bounded by cylinder \( x^2 + y^2 = 4\) and planes \(z = 0\) and \(z = 1\).

[Hide Solution]

\[\iint_S F \cdot n \, ds = 37.699\]

[T] \(F(x,y,z) = x^2i + y^2 j + z^2 k\); *S* is the surface bounded above by sphere \(\rho = 2\) and below by cone \(\varphi = \dfrac{\pi}{4}\) in spherical coordinates. (Think of *S* as the surface of an “ice cream cone.”)

[T] \(F(x,y,z) = x^3i + y^3 j + 3a^2z k \, (constant \, a > 0)\); *S* is the surface bounded by cylinder \(x^2 + y^2 = a^2\) and planes \(z = 0\) and \(z = 1\).

[Hide Solution]

\[\int_S F \cdot n \, ds = \dfrac{9\pi a^4}{2}\]

[T] Surface integral \(\iint_S F \cdot dS\), where *S* is the solid bounded by paraboloid \(z = x^2 + y^2\) and plane \(z = 4\), and \(F(x,y,z) = (x + y^2z^2)i + (y + z^2x^2)j + (z + x^2y^2) k\)

Use the divergence theorem to calculate surface integral \(\iint_S F \cdot dS\), where \(F(x,y,z) = (e^{y^2} i + (y + \sin (z^2))j + (z - 1)k\) and *S* is upper hemisphere \(x^2 + y^2 + z^2 = 1, \, z \geq 0\), oriented upward.

[Hide Solution]

\[\iint_S F \cdot dS = \dfrac{\pi}{3}\]

Use the divergence theorem to calculate surface integral \(\iint_S F \cdot dS\), where \(F(x,y,z) = x^4i - x^3z^2j + 4xy^2zk\) and S is the surface bounded by cylinder \(x^2 + y^2 = 1\) and planes \(z = x + 2\) and \(z = 0\).

Use the divergence theorem to calculate surface integral \(\iint_S F \cdot dS\), when \(F(x,y,z) = x^2z^3 i + 2xyz^3j + xz^4 k\) and *S* is the surface of the box with vertices \((\pm 1, \, \pm 2, \, \pm 3)\).

[Hide Solution]

\[\iint_S F \cdot dS = 0\]

Use the divergence theorem to calculate surface integral \(\iint_S F \cdot dS\), when \(F(x,y,z) = z \, tan^{-1} (y^2)i + z^3 \ln(x^2 + 1) j + zk\) and *S* is a part of paraboloid \(x^2 + y^2 + z = 2\) that lies above plane \(z = 1\) and is oriented upward.

[T] Use a CAS and the divergence theorem to calculate flux \(\iint_S F \cdot dS\), where \(F(x,y,z) = (x^3 + y^3)i + (y^3 + z^3)j + (z^3 + x^3)k \) and *S* is a sphere with center (0, 0) and radius 2.

[Hide Solution]

\[\iint_S F \cdot dS = 241.2743\]

Use the divergence theorem to compute the value of flux integral (\iint_S F \cdot dS\), where \(F(x,y,z) = (y^3 + 3x)i + (xz + y)j + [z + x^4 \cos (x^2y)]k\) and *S* is the area of the region bounded by \(x^2 + y^2 = 1, \, x \geq 0, \, y \geq 0\), and \(0 \leq z \leq 1\).

Use the divergence theorem to compute flux integral (\iint_S F \cdot dS\), where \(F(x,y,z) = yj - zk\) and *S* consists of the union of paraboloid \(y = x^2 + z^2, \, 0 \leq y \leq 1\), and disk \(x^2 + z^2 \leq 1, \, y = 1\), oriented outward. What is the flux through just the paraboloid?

[Hide Solution]

\[\iint_S F \cdot dS = -\pi\]

Use the divergence theorem to compute flux integral (\iint_S F \cdot dS\), where \(F(x,y,z) = x + yj + z^4 k\) and *S * is a part of cone \(z = \sqrt{x^2 + y^2}\) beneath top plane \(z = 1\) oriented downward.

Use the divergence theorem to calculate surface integral \(\iint_S F \cdot dS\) for \(F(x,y,z) = x^4i - x^3z^2j + 4xy^2 zk\), where *S* is the surface bounded by cylinder \(x^2 + y^2 = 1\) and planes \(z = x + 2\) and \(z = 0\).

[Hide Solution]

\[\iint_S F \cdot dS = \dfrac{2\pi}{3}\]

Consider \(F(x,y,z) = x^2i + xyj + (z + 1)k\). Let *E* be the solid enclosed by paraboloid \(z = 4 - x^2 - y^2\) and plane \(z = 0\) with normal vectors pointing outside *E*. Compute flux ** F** across the boundary of

*E*using the divergence theorem.

For the following exercises, use a CAS along with the divergence theorem to compute the net outward flux for the fields across the given surfaces *S*.

[T] \(F = \langle x,\, -2y, \, 3z \rangle; \) *S* is sphere \(\{(x,y,z) : x^2 + y^2 + z^2 = 6 \}\).

[Hide Solution]

\(15\sqrt{6}\pi\)

[T] \(F = \langle x, \, 2y, \, z \rangle\); *S* is the boundary of the tetrahedron in the first octant formed by plane \(x + y + z = 1\).

[T[ \(F = \langle y - 2x, \, x^3 - y, \, y^2 - z \rangle\); *S* is sphere \(\{(x,y,z) : x^2 + y^2 + z^2 = 4\}.\)

[Hide Solution]

\(-\dfrac{128}{3} \pi\)

[T] \(F = \langle x,y,z \rangle\); *S* is the surface of paraboloid \(z = 4 - x^2 - y^2\), for \(z \geq 0\), plus its base in the *xy*-plane.

For the following exercises, use a CAS and the divergence theorem to compute the net outward flux for the vector fields across the boundary of the given regions *D*.

[T] \(F = \langle z - x, \, x - y, \, 2y - z \rangle\); *D* is the region between spheres of radius 2 and 4 centered at the origin.

[Hide Solution]

\(-703.7168\)

[T] \(F = \dfrac{r}{|r|} = \dfrac{\langle x,y,z\rangle}{\sqrt{x^2+y^2+z^2}}\); *D* is the region between spheres of radius 1 and 2 centered at the origin.

{T} \(F = \langle x^2, \, -y^2, \, z^2 \rangle\); *D* is the region in the first octant between planes \(z = 4 - x - y\) and \(z = 2 - x - y\).

[Hide Solution]

20

Let \(F(x,y,z) = 2xi - 3xyj + xz^2k\). Use the divergence theorem to calculate \(\iint_S F \cdot dS\), where *S* is the surface of the cube with corners at \((0,0,0), \, (1,0,0), \, (0,1,0), \, (1,1,0), \, (0,0,1), \, (1,0,1), \, (0,1,1)\), and \((1,1,1)\), oriented outward.

Use the divergence theorem to find the outward flux of field \(F(x,y,z) = (x^3 - 3y)i + (2yz + 1)j + xyzk\) through the cube bounded by planes \(x = \pm 1, \, y = \pm 1, \) and \(z = \pm 1\).

[Hide Solution]

\[\iint_S F \cdot dS = 8\]

Let \(F(x,y,z) = 2xi - 3yj + 5zk\) and let *S* be hemisphere \(z = \sqrt{9 - x^2 - y^2}\) together with disk \(x^2 + y^2 \leq 9\) in the *xy*-plane. Use the divergence theorem.

Evaluate \(\iint_S F \cdot N \, dS\), where \(F(x,y,z) = x^2 i + xyj + x^3y^3k\) and *S* is the surface consisting of all faces except the tetrahedron bounded by plane \(x + y + z = 1\)and the coordinate planes, with outward unit normal vector **N**.

[Hide Solution]

\[\iint_S F \cdot N \, dS = \dfrac{1}{8}\]

Find the net outward flux of field \(F = \langle bz - cy, \, cx - az, \, ay - bx \rangle\) across any smooth closed surface in \(R^3\) where *a*, *b*, and *c* are constants.

Use the divergence theorem to evaluate \[\iint_S ||R||R \cdot n \, ds,\] where \(R(x,y,z) = xi + yj + zk\) and *S* is sphere \(x^2 + y^2 + z^2 = a^2\), with constant \(a > 0\).

[Hide Solution]

\[\iint_S ||R||R \cdot n \, ds = 4\pi a^4\]

Use the divergence theorem to evaluate \[\iint_S F \cdot dS,\] where \(F(x,y,z) = y^2 zi + y^3j + xzk\) and *S* is the boundary of the cube defined by \(-1 \leq x \leq 1, \, -1 \leq y \leq 1\), and \(0 \leq z \leq 2\).

Let *R* be the region defined by \(x^2 + y^2 + z^2 \leq 1\). Use the divergence theorem to find \[\iiint_R z^2 dV.\]

[Hide Solution]

\[\iiint_R z^2 dV = \dfrac{4\pi}{15}\]

Let *E* be the solid bounded by the *xy*-plane and paraboloid \(z = 4 - x^2 - y^2\) so that *S* is the surface of the paraboloid piece together with the disk in the *xy*-plane that forms its bottom. If \(F(x,y,z) = (xz \, \sin(yz) + x^3) i + \cos (yz) j + (3zy^2 - e^{x^2+y^2})k\), find \[\iint_S F \cdot dS\] using the divergence theorem.

Let *E* be the solid unit cube with diagonally opposite corners at the origin and (1, 1, 1), and faces parallel to the coordinate planes. Let *S* be the surface of *E*, oriented with the outward-pointing normal. Use a CAS to find \[\iint_S F \cdot dS\] using the divergence theorem if \(F(x,y,z) = 2xyi + 3ye^zj + x \, \sin zk\).

[Hide Solution]

\[\iint_S F \cdot dS = 6.5759\]

Use the divergence theorem to calculate the flux of \(F(x,y,z) = x^3i + y^3j + z^3k\) through sphere \(x^2 + y^2 + z^2 = 1\).

Find \[\iint_S F \cdot dS,\] where \(F(x,y,z) = xi + yj + zk\) and *S* is the outwardly oriented surface obtained by removing cube \([1,2] \times [1,2] \times [1,2]\) from cube \([0,2] \times [0,2] \times [0,2]\).

[Hide Solution]

\[\iint_S F \cdot dS = 21\]

Consider radial vector field \(F = \dfrac{r}{|r|} = \dfrac{\langle x,y,z \rangle}{(x^2+y^2+z^2)^{1/2}}\). Compute the surface integral, where *S* is the surface of a sphere of radius *a* centered at the origin.

Compute the flux of water through parabolic cylinder \(S : y = x^2\), from \(0 \leq x \leq 2, \, 0 \leq z \leq 3\), if the velocity vector is \(F(x,y,z) = 3z^2i + 6j + 6xzk\).

[Hide Solution]

\[\iint_S F \cdot dS = 72\]

[T} Use a CAS to find the flux of vector field \(F(x,y,z) = zi + zj + \sqrt{x^2 + y^2}k\) across the portion of hyperboloid \(x^2 + y^2 = z^2 + 1\) between planes \(z = 0\) and \(z = \dfrac{\sqrt{3}}{3}\), oriented so the unit normal vector points away from the *z*-axis.

Use a CAS to find the flux of vector field \(F(x,y,z) = (e^y + x)i + (3 \, \cos (xz) - y)j + zk\) through surface *S*, where *S* is given by \(z^2 = 4x^2 + 4y^2\) from \(0 \leq z \leq 4\), oriented so the unit normal vector points downward.

[Hide Solution]

\[\iint_S F \cdot dS = -33.5103\]

[T] Use a CAS to compute \[\iint_S F \cdot dS,\] where \(F(x,y,z) = xi + yj + 2zk\) and *S* is a part of sphere \(x^2 + y^2 + z^2 = 2\) with \(0 \leq z \leq 1\).

Evaluate \[\iint_S F \cdot dS,\] where \(F(x,y,z) = bxy^2i + bx^2yj + (x^2 + y^2)z^2 k\) and *S* is a closed surface bounding the region and consisting of solid cylinder \(x^2 + y^2 \leq a^2\) and \(0 \leq z \leq b\).

\[\iint_S F \cdot dS = \pi a^4 b^2\]

[T] Use a CAS to calculate the flux of \(F(x,y,z) = (x^3 + y \, \sin z)i + (y^3 + z \, \sin x)j + 3zk\) across surface *S*, where *S* is the boundary of the solid bounded by hemispheres \(z = \sqrt{4 - x^2 - y^2}\) and \(z = \sqrt{1 - x^2 - y^2}\), and plane \(z = 0\).

Use the divergence theorem to evaluate \[\iint_S F \cdot dS,\] where \(F(x,y,z) = xyi - \dfrac{1}{2}y^2j + zk\) and *S* is the surface consisting of three pieces: \(z = 4 - 3x^2 - 3y^2, \, 1 \leq z \leq 4\) on the top; \(x^2 + y^2 = 1, \, 0 \leq z \leq 1\) on the sides; and \(z = 0\) on the bottom.

[Hide Solution]

\[\iint_S F \cdot dS = \dfrac{5}{2}\pi\]

[T] Use a CAS and the divergence theorem to evaluate \[\iint_S F \cdot dS,\] where \(F(x,y,z) = (2x + y \, \cos z)i + (x^2 - y)j + y^2 zk\) and *S* is sphere \(x^2 + y^2 + z^2 = 4\) orientated outward.

Use the divergence theorem to evaluate \[\iint_S F \cdot dS,\] where \(F(x,y,z) = xi + yj + zk\) and *S* is the boundary of the solid enclosed by paraboloid \(y = x^2 + z^2 - 2\), cylinder \(x^2 + z^2 = 1\), and plane \(x + y = 2\), and *S* is oriented outward.

[Hide Solution]

\[\iint_S F \cdot dS = \dfrac{21\pi}{2}\]

For the following exercises, **Fourier’s law of heat transfer** states that the heat flow vector **F** at a point is proportional to the negative gradient of the temperature; that is, \(F = - k \nabla T\), which means that heat energy flows hot regions to cold regions. The constant \(k > 0\) is called the *conductivity*, which has metric units of joules per meter per second-kelvin or watts per meter-kelvin. A temperature function for region *D* is given. Use the divergence theorem to find net outward heat flux \[\iint_S F \cdot N \, dS = -k \iint_S \nabla T \cdot N \, dS\] across the boundary *S* of *D*, where \(k = 1\).

\(T(x,y,z) = 100 + x + 2y + z\);

\(D = \{(x,y,z) : 0 \leq x \leq 1, \, 0 \leq y \leq 1, \, 0 \leq z \leq 1 \}\)

\(T(x,y,z) = 100 + e^{-z}\);

\(D = \{(x,y,z) : 0 \leq x \leq 1, \, 0 \leq y \leq 1, \, 0 \leq z \leq 1 \}\)

[Hide Solution]

\(- (1 - e^{-1})\)

\(T(x,y,z) = 100 e^{-x^2-y^2-z^2}\); *D* is the sphere of radius *a* centered at the origin.

# Chapter Review Exercises

*True or False?* Justify your answer with a proof or a counterexample.

Vector field \(F(x,y) = x^2 yi + y^2 xj\) is conservative.

[Hide Solution]

False

For vector field \(F(x,y) = P(x,y)i + Q(x,y)j\), if \(P_y(x,y) = Q_z(x,y)\) in open region \(D\), then \[\int_{\partial D} P dx + Qdy = 0.\]

The divergence of a vector field is a vector field.

[Hide Solution]

False

If \(curl \, F = 0\), then \(F\) is a conservative vector field.

Draw the following vector fields.

\(F(x,y) = \dfrac{1}{2}i + 2xj\)

[Hide Solution]

\(F(x,y) = \sqrt{\dfrac{yi+3xj}{x^2+y^2}}\)

Are the following the vector fields conservative? If so, find the potential function \(f\) such that \(F = \nabla f\).

\(F(x,y) = yi + (x - 2e^y)j\)

[Hide solution]

Conservative, \(f(x,y) = xy - 2e^y\)

\(F(x,y) = (6xy)i + (3x^2 - ye^y)j\)

\(F(x,y) = (2xy + z^2)i + (x^2 + 2yz)j + (2xz + y^2)k\)

[Hide Solution]

Conservative, \(f(x,y,z) = x^2y + y^2z + z^2x\)

\(F(x,y,z) = (e^xy)i + (e^x + z)j + (e^x + y^2)k\)

Evaluate the following integrals.

\[\int_C x^2 dy + (2x - 3xy) \, dx\), along \(C : y = \dfrac{1}{2}x\) from (0, 0) to (4, 2)

[Hide solution]

\(-\dfrac{16}{3}\)

\(\int_C ydx + xy^2 dy\), where \(C : x = \sqrt{t}, \, y = t - 1, \, 0 \leq t \leq 1\)

\(\iint_S xy^2 dS,\) where *S* is surface \(z = x^2 - y, \, 0 \leq x \leq 1, \, 0 \leq y \leq 4\)

[Hide Solution]

\(\dfrac{32\sqrt{2}}{9}(3\sqrt{3} - 1)\)

Find the divergence and curl for the following vector fields.

\(F(x,y,z) = 3xyz i + xye^x j - 3xy k\)

\(F(x,y,z) = e^x i + e^{xy} j - e^{xyz} k\)

[Hide Solution]

Divergence: \(e^x + x \, e^{xy} + xy\, e^{xyz}\), curl: \(xz e^{xyz} i - yz e^{xyz}j + ye^{xy} k\)

Use Green’s theorem to evaluate the following integrals.

\(\int_C 3xydx + 2xy^2 dy\), where *C* is a square with vertices (0, 0), (0, 2), (2, 2) and (2, 0)

\(\oint_C 3ydx + (x + e^y)dy\), where *C* is a circle centered at the origin with radius 3

[Hide Solution]

\(-2\pi\)

Use Stokes’ theorem to evaluate \(\iint_S curl \, F \cdot dS\).

\(F(x,y,z) = yi - xj + zk\), where \(S\) is the upper half of the unit sphere

\(F(x,y,z) = yi + xyz j - 2zxk\), where \(S\) is the upward-facing paraboloid \(z = x^2 + y^2\) lying in cylinder \(x^2 + y^2 = 1\)

[Hide Solution]

\(-\pi\)

Use the divergence theorem to evaluate \(\iint_S F \cdot dS\).

\(F(x,y,z) = (x^3y)i + (3y - e^x)j + (z + x)k\), over cube \(S\) defined by \(-1 \leq x \leq 1, \, 0 \leq y \leq 2, \, 0 \leq z \leq 2\)

\(F(x,y,z) = (2xy)i + (-y^2)j + (2z^3)k\), where \(S\) is bounded by paraboloid \(z = x^2 + y^2\) and plane \(z = 2\)

[Hide Solution]

\(31\pi /2\)

Find the amount of work performed by a 50-kg woman ascending a helical staircase with radius 2 m and height 100 m. The woman completes five revolutions during the climb.

Find the total mass of a thin wire in the shape of a semicircle with radius \(\sqrt{2}\), and a density function of \(\rho (x,y) = y + x^2\).

[Hide Solution]

\(\sqrt{2}(2 + \pi)\)

Find the total mass of a thin sheet in the shape of a hemisphere with radius 2 for \(z \geq 0\) with a density function \(\rho (x,y,z) = x + y + z\).

Use the divergence theorem to compute the value of the flux integral over the unit sphere with \(F(x,y,z) = 3zi + 2yj + 2xk\).

[Hide Solution]

\(2\pi /3\)

### Glossary

**divergence theorem**- a theorem used to transform a difficult flux integral into an easier triple integral and vice versa

**Gauss’ law**- if
*S*is a piecewise, smooth closed surface in a vacuum and*Q*is the total stationary charge inside of*S*, then the flux of electrostatic field**E**across*S*is \(Q/\epsilon_0\)

**inverse-square law**- the electrostatic force at a given point is inversely proportional to the square of the distance from the source of the charge

### Contributors

Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY 3/0 license. Download for free at http://cnx.org/contents/fd53eae1-fa2...49835c3c@5.191.

\[\iint_{S_{\tau}} F \cdot dS = \iiint_{B_{\tau}} div \, F dV \approx \iiint_{B_{\tau}} div F(P) dV.\]

Since \( div F(P)\) is a constant,

\[\iiint_{B_{\tau}} div F(P) dV = div \, F(P) \, V(B_{\tau}).\]

Therefore, flux \[\iint_{S_{\tau}} F \cdot dS\] can be approximated by \(F(P) \, V(B_{\tau})\). This approximation gets better as the radius shrinks to zero, and therefore

\[div \, F(P) = \lim_{\tau \rightarrow 0} \frac{1}{V(B_{\tau})} \iint_{S_{\tau}} F \cdot dS.\]

This equation says that the divergence at

Pis the net rate of outward flux of the fluid per unit volume.Figure \(\PageIndex{3}\):Ball \(B_{\tau}\) of small radiusrcentered atP.## Using the Divergence Theorem

The divergence theorem translates between the flux integral of closed surface

Sand a triple integral over the solid enclosed byS. Therefore, the theorem allows us to compute flux integrals or triple integrals that would ordinarily be difficult to compute by translating the flux integral into a triple integral and vice versa.Example \(\PageIndex{2}\): Applying the Divergence Theorem

Calculate the surface integral \[\iint_S F \cdot dS,\] where

Sis cylinder \(x^2 + y^2 = 1, \, 0 \leq z \leq 2\), including the circular top and bottom, and \(F = \left\langle \frac{x^3}{3} + yz, \, \frac{y^3}{3} - \sin (xz), \, z - x - y \right\rangle\).SolutionWe could calculate this integral without the divergence theorem, but the calculation is not straightforward because we would have to break the flux integral into three separate integrals: one for the top of the cylinder, one for the bottom, and one for the side. Furthermore, each integral would require parameterizing the corresponding surface, calculating tangent vectors and their cross product, and using [link].

By contrast, the divergence theorem allows us to calculate the single triple integral

\[\iiint_E div \, F \, dV,\] where

Eis the solid enclosed by the cylinder. Using the divergence theorem and converting to cylindrical coordinates, we have\[\iint_S F \cdot dS = \iiint_E div \, F \, dV,\]

\[= \iiint_E (x^2 + y^2 + 1) \, dV\]

\[= \int_0^{2\pi} \int_0^1 \int_0^2 (r^2 + 1) \, r \, dz \, dr \, d\theta\]

\[= \frac{3}{2} \int_0^{2\pi} d\theta = 3\pi.\]

Exercise \(\PageIndex{2}\)

Use the divergence theorem to calculate flux integral \[\iint_S F \cdot dS,\] where

Sis the boundary of the box given by \(0 \leq x \leq 2, \, 1 \leq y \leq 4, \, 0 \leq z \leq 1\) and \(F = \langle x^2 + yz, \, y - z, \, 2x + 2y + 2z \rangle \) (see the following figure).HintCalculate the corresponding triple integral.

Answer30