## Learning Objectives

- 6.8.1Explain the meaning of the divergence theorem.
- 6.8.2Use the divergence theorem to calculate the flux of a vector field.
- 6.8.3Apply the divergence theorem to an electrostatic field.

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}^{\prime}\left(x\right)dx=f\left(b\right)-f\left(a\right)}.$$

This theorem relates the integral of derivative ${f}^{\prime}$ over line segment $\left[a,b\right]$ along the*x*-axis to a difference of $f$ evaluated on the boundary.**The Fundamental Theorem for Line Integrals**:$${\int}_{C}\nabla f\xb7d\text{r}=f\left({P}_{1}\right)-f\left({P}_{0}\right)},$$

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}={\displaystyle {\int}_{C}\text{F}\xb7d\text{r}}.$$

Since ${Q}_{x}-{P}_{y}=\text{curl}\phantom{\rule{0ex}{0ex}}\text{F}\xb7\text{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}={\displaystyle {\int}_{C}\text{F}\xb7\text{N}ds}.$$

Since ${P}_{x}+{Q}_{y}=\text{div}\phantom{\rule{0ex}{0ex}}\text{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}\text{curl}\phantom{\rule{0ex}{0ex}}\text{F}\xb7d\text{S}}={\displaystyle {\int}_{C}\text{F}\xb7d\text{r}}.$$

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*.

## Theorem 6.20

### 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 6.87). Then

$${\iiint}_{E}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}dV=}{\displaystyle \underset{S}{\iint}\text{F}\xb7d\text{S}}.$$

(6.24)

Figure 6.87 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}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}dA={\displaystyle {\int}_{C}\text{F}\xb7\text{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 6.88). Let the center of *B* have coordinates $\left(x,y,z\right)$ and suppose the edge lengths are $\text{\Delta}x,\text{\Delta}y,$ and $\text{\Delta}z$ (Figure 6.88(b)). The normal vector out of the top of the box is **k** and the normal vector out of the bottom of the box is $\text{\u2212}\text{k}.$ The dot product of $\text{F}=\langle P,Q,R\rangle $ with **k** is *R* and the dot product with $\text{\u2212}\text{k}$ is $\text{\u2212}R.$ The area of the top of the box (and the bottom of the box) $\text{\Delta}S$ is $\text{\Delta}x\text{\Delta}y.$

Figure 6.88 (a) A small box *B* inside surface *E* has sides parallel to the coordinate planes. (b) Box *B* has side lengths $\text{\Delta}x,\text{\Delta}y,$ and $\text{\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 $\text{\Delta}z\text{/}2$ up from $(x,y,z).$ Similarly, to get to the bottom of the box we must travel a distance $\text{\Delta}z\text{/}2$ down from $(x,y,z).$

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

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

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

$$\text{Total flux}\approx \left(\frac{\partial P}{\partial x}+\frac{\partial Q}{\partial y}+\frac{\partial R}{\partial z}\right)\text{\Delta}V=\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\text{\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 $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\text{\Delta}V$ over all the small boxes approximating *E* is approximately ${\iiint}_{E}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}dV}.$ On the other hand, the sum of $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\text{\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*.

□

## Example 6.77

### Verifying the Divergence Theorem

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

### Solution

Let *E* be the solid cone enclosed by *S*. To verify the theorem for this example, we show that $\iiint}_{E}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}dV=}{\displaystyle \underset{S}{\iint}\text{F}\xb7d\text{S$ by calculating each integral separately.

To compute the triple integral, note that $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}={P}_{x}+{Q}_{y}+{R}_{z}=2,$ and therefore the triple integral is

$$\begin{array}{cc}\hfill {\displaystyle {\iiint}_{E}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}dV}& =2{\displaystyle {\iiint}_{E}dV}\hfill \\ & =2\left(\text{volume of}\phantom{\rule{0ex}{0ex}}E\right).\hfill \end{array}$$

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}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}dV}=2\left(\text{volume of}\phantom{\rule{0ex}{0ex}}E\right)=\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

$$\text{r}\left(u,v\right)=\langle u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,1\rangle ,0\le u\le 1,0\le v\le 2\pi .$$

Then, the tangent vectors are ${\text{t}}_{u}=\langle \text{cos}\phantom{\rule{0ex}{0ex}}v,\text{sin}\phantom{\rule{0ex}{0ex}}v,0\rangle $ and ${\text{t}}_{v}=\langle \text{\u2212}u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,0\rangle .$ Therefore, the flux across ${S}_{1}$ is

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{{S}_{1}}\text{F}\xb7d\text{S}}& ={\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2\pi}\text{F}\left(\text{r}\left(u,v\right)\right)}}\xb7\left({\text{t}}_{u}\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{\text{t}}_{v}\right)dA\hfill \\ & ={\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2\pi}\langle u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v-u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v+1,1-u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v\rangle \xb7\langle 0,0,u\rangle}}dvdu\hfill \\ & ={\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2\pi}u-{u}^{2}\text{sin}\phantom{\rule{0ex}{0ex}}v}}\phantom{\rule{0ex}{0ex}}dvdu=\pi .\hfill \end{array}$$

We now calculate the flux over ${S}_{2}.$ A parameterization of this surface is

$$\text{r}\left(u,v\right)=\langle u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,u\rangle ,0\le u\le 1,0\le v\le 2\pi .$$

The tangent vectors are ${\text{t}}_{u}=\langle \text{cos}\phantom{\rule{0ex}{0ex}}v,\text{sin}\phantom{\rule{0ex}{0ex}}v,1\rangle $ and ${\text{t}}_{v}=\langle \text{\u2212}u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,0\rangle ,$ so the cross product is

$${\text{t}}_{u}\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{\text{t}}_{v}=\langle \text{\u2212}u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,\text{\u2212}u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,u\rangle .$$

Notice that the negative signs on the *x* and *y* components induce the inward orientation of the cone. Since the surface is oriented outward, we use vector ${\text{t}}_{v}\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{\text{t}}_{u}=\langle u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,\text{\u2212}u\rangle $ in the flux integral. The flux across ${S}_{2}$ is then

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{{S}_{2}}\text{F}\xb7d\text{S}}& ={\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2\pi}\text{F}\left(\text{r}\left(u,v\right)\right)}}\xb7\left({\text{t}}_{v}\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{\text{t}}_{u}\right)dA\hfill \\ & ={\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2\pi}\langle u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v-u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v+u,u-\text{sin}\phantom{\rule{0ex}{0ex}}v\rangle \xb7\langle u\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}v,u\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}v,\text{\u2212}u\rangle}}\hfill \\ & ={\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2\pi}{u}^{2}}}{\text{cos}}^{2}v+2{u}^{2}\text{sin}\phantom{\rule{0ex}{0ex}}v-{u}^{2}dvdu=-\frac{\pi}{3}.\hfill \end{array}$$

The total flux across *S* is

$${\iint}_{{S}_{2}}\text{F}\xb7d\text{S}}={\displaystyle {\iint}_{{S}_{1}}\text{F}\xb7d\text{S}}+{\displaystyle {\iint}_{{S}_{2}}\text{F}\xb7d\text{S}}=\frac{2\pi}{3}={\displaystyle {\iiint}_{E}\text{div}}\phantom{\rule{0ex}{0ex}}\text{F}dV,$$

and we have verified the divergence theorem for this example.

## Checkpoint 6.65

Verify the divergence theorem for vector field $\text{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\le z\le 3$ plus the circular top and bottom of the cylinder. Assume that *S* is oriented outward.

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}_{r}$ be a ball of small radius *r* centered at *P* (Figure 6.89). Let ${S}_{r}$ be the boundary sphere of ${B}_{r}.$ Since the radius is small and **F** is continuous, $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\left(Q\right)\approx \text{div}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)$ for all other points *Q* in the ball. Therefore, the flux across ${S}_{r}$ can be approximated using the divergence theorem:

$${\iint}_{{S}_{r}}\text{F}\xb7d\text{S}}={\displaystyle {\iiint}_{{B}_{r}}\text{div}}\phantom{\rule{0ex}{0ex}}\text{F}dV\approx {\displaystyle {\iiint}_{{B}_{r}}\text{div}}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)dV.$$

Since $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)$ is a constant,

$${\iiint}_{{B}_{r}}\text{div}}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)dV=\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)V\left({B}_{r}\right).$$

Therefore, flux $\iint}_{{S}_{r}}\text{F}\xb7d\text{S$ can be approximated by $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)V\left({B}_{r}\right).$ This approximation gets better as the radius shrinks to zero, and therefore

$$\text{div}\phantom{\rule{0ex}{0ex}}\text{F}\left(P\right)=\underset{r\to 0}{\text{lim}}\frac{1}{V\left({B}_{r}\right)}{\displaystyle {\iint}_{{S}_{r}}\text{F}\xb7d\text{S}}.$$

This equation says that the divergence at *P* is the net rate of outward flux of the fluid per unit volume.

Figure 6.89 Ball ${B}_{r}$ of small radius *r* centered at *P.*

## Using the Divergence Theorem

The divergence theorem translates between the flux integral of closed surface *S* and a triple integral over the solid enclosed by *S*. 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 6.78

### Applying the Divergence Theorem

Calculate the surface integral ${\iint}_{S}\text{F}\xb7d\text{S}},$ where *S* is cylinder ${x}^{2}+{y}^{2}=1,0\le z\le 2,$ including the circular top and bottom, and $\text{F}=\langle \frac{{x}^{3}}{3}+yz,\frac{{y}^{3}}{3}-\text{sin}\left(xz\right),z-x-y\rangle .$

### Solution

We 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 Equation 6.19.

By contrast, the divergence theorem allows us to calculate the single triple integral ${\iiint}_{E}\text{div}}\phantom{\rule{0ex}{0ex}}\text{F}dV,$ where *E* is the solid enclosed by the cylinder. Using the divergence theorem and converting to cylindrical coordinates, we have

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{s}\text{F}\xb7d\text{S}}& ={\displaystyle {\iiint}_{E}\text{div}}\phantom{\rule{0ex}{0ex}}\text{F}\phantom{\rule{0ex}{0ex}}dV\hfill \\ & ={\displaystyle {\iiint}_{E}\left({x}^{2}+{y}^{2}+1\right)}dV\hfill \\ & ={\displaystyle {\int}_{0}^{2\pi}{\displaystyle {\int}_{0}^{1}{\displaystyle {\int}_{0}^{2}\left({r}^{2}+1\right)r\phantom{\rule{0ex}{0ex}}dz}}}\phantom{\rule{0ex}{0ex}}dr\phantom{\rule{0ex}{0ex}}d\theta \hfill \\ & =\frac{3}{2}{\displaystyle {\int}_{0}^{2\pi}d\theta}=3\pi .\hfill \end{array}$$

## Checkpoint 6.66

Use the divergence theorem to calculate flux integral ${\iint}_{S}\text{F}\xb7d\text{S}},$ where *S* is the boundary of the box given by $0\le x\le 2,1\le y\le 4,0\le z\le 1,$ and $\text{F}=\langle {x}^{2}+yz,y-z,2x+2y+2z\rangle $ (see the following figure).

## Example 6.79

### Applying the Divergence Theorem

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

Figure 6.90 Vector field $\text{v}=\langle -\frac{y}{z},\frac{x}{z},0\rangle .$

### Solution

The flow rate of the fluid across *S* is ${\iint}_{S}\text{v}\xb7d\text{S}}.$ Before calculating this flux integral, let’s discuss what the value of the integral should be. Based on Figure 6.90, 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 Equation 6.19. However, using the divergence theorem makes this calculation go much more quickly:

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{S}\text{v}\xb7d\text{S}}& ={\displaystyle {\iiint}_{C}\text{div}\left(\text{v}\right)}dV\hfill \\ & ={\displaystyle {\iiint}_{C}0}\phantom{\rule{0ex}{0ex}}dV=0.\hfill \end{array}$$

Therefore the flux is zero, as expected.

## Checkpoint 6.67

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

Example 6.79 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 $\text{F}=\langle f\left(y,z\right),g\left(x,z\right),h\left(x,y\right)\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}\text{F}\xb7d\text{S$ where *S* is a cube and

$$\text{F}=\langle \text{sin}\left(y\right){e}^{yz},{x}^{2}{z}^{2},\text{cos}\left(xy\right){e}^{\text{sin}\phantom{\rule{0ex}{0ex}}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}_{r}$ be a ball of very small radius *r* with center *P*, and assume that ${B}_{r}$ is in the domain of **F**. Furthermore, assume that ${B}_{r}$ has a positive, outward orientation. Since the radius of ${B}_{r}$ is small and **F** is continuous, the divergence of **F** is approximately constant on ${B}_{r}.$ That is, if ${P}^{\prime}$ is any point in ${B}_{r},$ then $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}(P)\approx \text{div}\phantom{\rule{0ex}{0ex}}\text{F}({P}^{\prime}).$ Let ${S}_{r}$ denote the boundary sphere of ${B}_{r}.$ We can approximate the flux across ${S}_{r}$ using the divergence theorem as follows:

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{{S}_{r}}\text{F}\xb7d\text{S}}& ={\displaystyle {\iiint}_{{B}_{r}}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}}\phantom{\rule{0ex}{0ex}}dV\hfill \\ & \approx {\displaystyle {\iiint}_{{B}_{r}}\text{div}\phantom{\rule{0ex}{0ex}}\text{F}}(P)dV\hfill \\ & =\text{div}\phantom{\rule{0ex}{0ex}}\text{F}(P)V({B}_{r}).\hfill \end{array}$$

As we shrink the radius *r* to zero via a limit, the quantity $\text{div}\phantom{\rule{0ex}{0ex}}\text{F}(P)V({B}_{r})$ gets arbitrarily close to the flux. Therefore,

$$\text{div}\phantom{\rule{0ex}{0ex}}\text{F}(P)=\underset{r\to 0}{\text{lim}}\frac{1}{V({B}_{r})}{\displaystyle {\iint}_{{S}_{r}}\text{F}\xb7d\text{S}}$$

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 ${\text{F}}_{r}$ denote radial vector field ${\text{F}}_{r}=\frac{1}{{r}^{2}}\langle \frac{x}{r},\frac{y}{r},\frac{z}{r}\rangle .$ The vector at a given position in space points in the direction of unit radial vector $\langle \frac{x}{r},\frac{y}{r},\frac{z}{r}\rangle $ and is scaled by the quantity $1\text{/}{r}^{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

$$\text{E}=\frac{q}{4\pi {\epsilon}_{0}}{\text{F}}_{r},$$

where the approximation ${\epsilon}_{0}=8.854\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{10}^{\mathrm{-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 Example 6.6. The difference is that this field points outward whereas the gravitational field points inward. Because

$$\text{E}=\frac{q}{4\pi {\epsilon}_{0}}{\text{F}}_{r}=\frac{q}{4\pi {\epsilon}_{0}}\left(\frac{1}{{r}^{2}}\langle \frac{x}{r},\frac{y}{r},\frac{z}{r}\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\text{/}{\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 ${\text{F}}_{r}$ is zero and then we show that the flux of ${\text{F}}_{r}$ across any smooth surface *S* is either zero or $4\pi .$ We can then justify this special case of Gauss’ law.

## Example 6.80

### The Divergence of ${\text{F}}_{r}$ Is Zero

Verify that the divergence of ${\text{F}}_{r}$ is zero where ${\text{F}}_{r}$ is defined (away from the origin).

### Solution

Since $r=\sqrt{{x}^{2}+{y}^{2}+{z}^{2}},$ the quotient rule gives us

$$\begin{array}{cc}\hfill \frac{\partial}{\partial x}\left(\frac{x}{{r}^{3}}\right)& =\frac{\partial}{\partial x}\left(\frac{x}{{\left({x}^{2}+{y}^{2}+{z}^{2}\right)}^{3\text{/}2}}\right)\hfill \\ & =\frac{{\left({x}^{2}+{y}^{2}+{z}^{2}\right)}^{3\text{/}2}-x\left[\frac{3}{2}{\left({x}^{2}+{y}^{2}+{z}^{2}\right)}^{1\text{/}2}2x\right]}{{\left({x}^{2}+{y}^{2}+{z}^{2}\right)}^{3}}\hfill \\ & =\frac{{r}^{3}-3{x}^{2}r}{{r}^{6}}=\frac{{r}^{2}-3{x}^{2}}{{r}^{5}}.\hfill \end{array}$$

Similarly,

$$\frac{\partial}{\partial y}\left(\frac{y}{{r}^{3}}\right)=\frac{{r}^{2}-3{y}^{2}}{{r}^{5}}\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}\frac{\partial}{\partial z}\left(\frac{z}{{r}^{3}}\right)=\frac{{r}^{2}-3{z}^{2}}{{r}^{5}}.$$

Therefore,

$$\begin{array}{cc}\hfill \text{div}\phantom{\rule{0ex}{0ex}}{\text{F}}_{r}& =\frac{{r}^{2}-3{x}^{2}}{{r}^{5}}+\frac{{r}^{2}-3{y}^{2}}{{r}^{5}}+\frac{{r}^{2}-3{z}^{2}}{{r}^{5}}\hfill \\ & =\frac{3{r}^{2}-3\left({x}^{2}+{y}^{2}+{z}^{2}\right)}{{r}^{5}}\hfill \\ & =\frac{3{r}^{2}-3{r}^{2}}{{r}^{5}}=0.\hfill \end{array}$$

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

## Theorem 6.21

### Flux across a Smooth Surface

Let *S* be a connected, piecewise smooth closed surface and let ${\text{F}}_{r}=\frac{1}{{r}^{2}}\langle \frac{x}{r},\frac{y}{r},\frac{z}{r}\rangle .$ Then,

$${\iint}_{S}{\text{F}}_{r}\xb7d\text{S}}=\{\begin{array}{cccc}0\hfill & & & \text{if}\phantom{\rule{0ex}{0ex}}S\phantom{\rule{0ex}{0ex}}\text{does not encompass the origin}\hfill \\ 4\pi \hfill & & & \text{if}\phantom{\rule{0ex}{0ex}}S\phantom{\rule{0ex}{0ex}}\text{encompasses the origin.}\hfill \end{array$$

In other words, this theorem says that the flux of ${\text{F}}_{r}$ 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 Example 6.46, 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 ${\text{F}}_{r},$ and since the divergence of ${\text{F}}_{r}$ is zero, we can immediately apply the divergence theorem and find that $\iint}_{S}\text{F}\xb7d\text{S$ 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

$${\text{t}}_{\varphi}\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{\text{t}}_{\theta}=\langle {a}^{2}\text{cos}\phantom{\rule{0ex}{0ex}}\theta \phantom{\rule{0ex}{0ex}}{\text{sin}}^{2}\varphi ,{a}^{2}\text{sin}\phantom{\rule{0ex}{0ex}}\theta \phantom{\rule{0ex}{0ex}}{\text{sin}}^{2}\varphi ,{a}^{2}\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}\varphi \rangle $$

(see Example 6.64). Therefore, on the surface of the sphere, the dot product ${\text{F}}_{r}\xb7\text{N}$ (in spherical coordinates) is

$$\begin{array}{cc}\hfill {\text{F}}_{r}\xb7\text{N}& =\langle \frac{\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}\theta}{{a}^{2}},\frac{\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}\theta}{{a}^{2}},\frac{\text{cos}\phantom{\rule{0ex}{0ex}}\varphi}{{a}^{2}}\rangle \xb7\langle {a}^{2}\text{cos}\phantom{\rule{0ex}{0ex}}\theta \phantom{\rule{0ex}{0ex}}{\text{sin}}^{2}\varphi ,{a}^{2}\text{sin}\phantom{\rule{0ex}{0ex}}\theta \phantom{\rule{0ex}{0ex}}{\text{sin}}^{2}\varphi ,{a}^{2}\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}\varphi \rangle \hfill \\ & =\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \left(\langle \text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}\theta ,\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}\theta ,\text{cos}\phantom{\rule{0ex}{0ex}}\varphi \rangle \xb7\langle \text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}\theta ,\text{sin}\phantom{\rule{0ex}{0ex}}\varphi \phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}\theta ,\text{cos}\phantom{\rule{0ex}{0ex}}\varphi \rangle \right)\hfill \\ & =\text{sin}\phantom{\rule{0ex}{0ex}}\varphi .\hfill \end{array}$$

The flux of ${\text{F}}_{r}$ across ${S}_{a}$ is

$${\iint}_{{S}_{a}}{\text{F}}_{r}\xb7\text{N}dS=}{\displaystyle {\int}_{0}^{2\pi}{\displaystyle {\int}_{0}^{\pi}\text{sin}\phantom{\rule{0ex}{0ex}}\varphi d\varphi 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,

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{S-{S}_{a}}{\text{F}}_{r}\xb7d\text{S}}& ={\displaystyle {\iint}_{S}{\text{F}}_{r}\xb7d\text{S}}-{\displaystyle {\iint}_{{S}_{a}}{\text{F}}_{r}\xb7d\text{S}}\hfill \\ & ={\displaystyle {\iiint}_{E}\text{div}}{\text{F}}_{r}\phantom{\rule{0ex}{0ex}}dV\hfill \\ & ={\displaystyle {\iiint}_{E}0dV}=0.\hfill \end{array}$$

Therefore,

$${\iint}_{S}{\text{F}}_{r}\xb7d\text{S}}={\displaystyle {\iint}_{{S}_{a}}{\text{F}}_{r}\xb7d\text{S}}=4\pi ,$$

and we have our desired result.

□

Now we return to calculating the flux across a smooth surface in the context of electrostatic field $\text{E}=\frac{q}{4\pi {\epsilon}_{0}}{\text{F}}_{r}$ of a point charge at the origin. Let *S* be a piecewise smooth closed surface that encompasses the origin. Then

$$\begin{array}{cc}\hfill {\displaystyle {\iint}_{S}\text{E}\xb7d\text{S}}& ={\displaystyle {\iint}_{S}\frac{q}{4\pi {\epsilon}_{0}}{\text{F}}_{r}\xb7d\text{S}}\hfill \\ & =\frac{q}{4\pi {\epsilon}_{0}}{\displaystyle {\iint}_{S}{\text{F}}_{r}\xb7d\text{S}}\hfill \\ & =\frac{q}{{\epsilon}_{0}}.\hfill \end{array}$$

If *S* does not encompass the origin, then

$${\iint}_{S}\text{E}\xb7d\text{S}}=\frac{q}{4\pi {\epsilon}_{0}}{\displaystyle {\iint}_{S}{\text{F}}_{r}\xb7d\text{S}}=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\text{/}{\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\text{/}{\epsilon}_{0}.$

## Example 6.81

### 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,1,1),(1,1,4),(\mathrm{-1},0,0),\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}(\mathrm{-2},\mathrm{-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}\text{E}\xb7d\text{S}}.$

### 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 $(\mathrm{-1},0,0).$ Therefore, the total charge encompassed by *S* is 0.004 and, by Gauss’ law,

$${\iint}_{S}\text{E}\xb7d\text{S}}=\frac{0.004}{8.854\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{10}^{\mathrm{-12}}}\approx 4.518\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}{10}^{9}\phantom{\rule{0ex}{0ex}}\text{V-m}.$$

## Checkpoint 6.68

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

## Section 6.8 Exercises

For the following exercises, use a computer algebraic system (CAS) and the divergence theorem to evaluate surface integral ${\iint}_{S}^{}\text{F}\xb7\text{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.

376.

**[T]** $\text{F}(x,y,z)=x\text{i}+y\text{j}+z\text{k};$ *S* is the surface of cube $0\le x\le 1,0\le y\le 1,0<z\le 1.$

377.

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

378.

**[T]** $\text{F}(x,y,z)=\left({x}^{2}+{y}^{2}-{x}^{2}\right)\text{i}+{x}^{2}y\text{j}+3z\text{k};S$ is the surface of the unit cube $0\le x\le 1,0\le y\le 1,0\le z\le 1$ excluding the face $z=0$.

379.

**[T]** $\text{F}(x,y,z)=x\text{i}+y\text{j}+z\text{k}\text{;}$ *S* is the surface of the solid bounded by the parabola $z={x}^{2}+{y}^{2}\phantom{\rule{0ex}{0ex}}$ and the plane $z=9$.

380.

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

381.

**[T]** $\text{F}(x,y,z)=x\text{i}+y\text{j}+\left({z}^{2}-1\right)\text{k}\text{;}$ *S* is the surface of the solid bounded by cylinder ${x}^{2}+{y}^{2}=4$ and planes $z=0\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}z=1.$

382.

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

383.

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

384.

**[T]** Surface integral ${\iint}_{S}\text{F}\xb7}d\text{S},$ where *S* is the surface of the solid bounded by paraboloid $z={x}^{2}+{y}^{2}$ and plane $z=4,$ and $\text{F}(x,y,z)=\left(x+{y}^{2}{z}^{2}\right)\text{i}+\left(y+{z}^{2}{x}^{2}\right)\text{j}+\left(z+{x}^{2}{y}^{2}\right)\text{k}$

385.

Use the divergence theorem to calculate surface integral ${\iint}_{S}\text{F}\xb7}d\text{S},$ where $\text{F}(x,y,z)=\left({e}^{{y}^{2}}\right)\text{i}+\left(y+\text{sin}\left({z}^{2}\right)\right)\text{j}+\left(z-1\right)\text{k}$ and *S* is the surface of the solid bounded by the sphere ${x}^{2}+{y}^{2}+{z}^{2}=1\text{,}$ and below by the plane $z=0$.

386.

Use the divergence theorem to calculate surface integral ${\iint}_{S}\text{F}\xb7\text{N}}d\text{S},$ where $\text{F}(x,y,z)={x}^{4}\text{i}-{x}^{3}{z}^{2}\text{j}+4x{y}^{2}z\text{k}$ and S is the surface bounded by cylinder ${x}^{2}+{y}^{2}=1$ and planes $z=x+2$ and $z=0.$

387.

Use the divergence theorem to calculate surface integral $\iint}_{S}\text{F}\xb7d\text{S$ when $\text{F}(x,y,z)={x}^{2}{z}^{3}\text{i}+2xy{z}^{3}\text{j}+x{z}^{4}\text{k}$ and *S* is the surface of the box with vertices $(\mathrm{\pm 1},\mathrm{\pm 2},\mathrm{\pm 3}).$

388.

Use the divergence theorem to calculate surface integral $\iint}_{S}\text{F}\xb7d\text{S$ when $\text{F}(x,y,z)=z\phantom{\rule{0ex}{0ex}}{\text{tan}}^{\mathrm{-1}}\left({y}^{2}\right)\text{i}+{z}^{3}\text{ln}\left({x}^{2}+1\right)\text{j}+z\text{k}$ and *S* is the surface of the solid bounded by the paraboloid ${x}^{2}+{y}^{2}+z=2$ and the plane $z=1$.

389.

**[T]** Use a CAS and the divergence theorem to calculate flux ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=\left({x}^{3}+{y}^{3}\right)\text{i}+\left({y}^{3}+{z}^{3}\right)\text{j}+\left({z}^{3}+{x}^{3}\right)\text{k}$ and *S* is a sphere with center (0, 0, 0) and radius 2.

390.

Use the divergence theorem to compute the value of flux integral ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=\left({y}^{3}+3x\right)\text{i}+\left(xz+y\right)\text{j}+\left[z+{x}^{4}\text{cos}\left({x}^{2}y\right)\right]\text{k}$ and *S* is the surface of the solid bounded by ${x}^{2}+{y}^{2}=1,x\ge 0,y\ge 0,\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}0\le z\le 1.$

391.

Use the divergence theorem to compute flux integral ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=y\text{j}-z\text{k}$ and *S* consists of the union of paraboloid $y={x}^{2}+{z}^{2},0\le y\le 1,$ and disk ${x}^{2}+{z}^{2}\le 1,y=1,$ oriented outward. What is the flux through just the paraboloid?

392.

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

393.

Use the divergence theorem to calculate surface integral $\iint}_{S}\text{F}\xb7d\text{S$ for $\text{F}(x,y,z)={x}^{4}\text{i}-{x}^{3}{z}^{2}\text{j}+4x{y}^{2}z\text{k},$ where *S* is the surface inside the cylinder ${x}^{2}+{y}^{2}=1$ between the planes $z=x+2\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}z=0.$

394.

Consider $\text{F}(x,y,z)={x}^{2}\text{i}+xy\text{j}+(z+1)\text{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*.

395.

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

396.

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

397.

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

398.

**[T]** $\text{F}=\langle x,y,z\rangle ;$ *S* is the surface of paraboloid $z=4-{x}^{2}-{y}^{2},$ for $z\ge 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*.

399.

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

400.

**[T]** $\text{F}=\frac{\text{r}}{\left|\text{r}\right|}=\frac{\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.

401.

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

402.

Let $\text{F}(x,y,z)=2x\text{i}-3xy\text{j}+x{z}^{2}\text{k}.$ Use the divergence theorem to calculate ${\iint}_{S}\text{F}\xb7d\text{S}},$ 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),\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}(1,1,1),$ oriented outward.

403.

Use the divergence theorem to find the outward flux of field $\text{F}(x,y,z)=\left({x}^{3}-3y\right)\text{i}+\left(2yz+1\right)\text{j}+xyz\text{k}$ through the cube bounded by planes $x=\mathrm{\pm 1},y=\mathrm{\pm 1},\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}z=\mathrm{\pm 1}.$

404.

Let $\text{F}(x,y,z)=2x\text{i}-3y\text{j}+5z\text{k}$ and let *S* be hemisphere $z=\sqrt{9-{x}^{2}-{y}^{2}}$ together with disk ${x}^{2}+{y}^{2}\le 9$ in the *xy*-plane. Use the divergence theorem.

405.

Evaluate ${\iint}_{S}\text{F}\xb7\text{N}dS},$ where $\text{F}(x,y,z)={x}^{2}\text{i}+xy\text{j}+{x}^{3}{y}^{3}\text{k}$ and *S* is the surface consisting of all faces of the tetrahedron bounded by plane $x+y+z=1$ and the coordinate planes, with outward unit normal vector **N**.

406.

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

407.

Use the divergence theorem to evaluate ${\iint}_{S}\Vert \mathbf{\text{R}}\Vert \mathbf{\text{R}}\xb7\mathbf{n}d\mathbf{S},$ where $\text{R}(x,y,z)=x\text{i}+y\text{j}+z\text{k}$ and *S* is sphere ${x}^{2}+{y}^{2}+{z}^{2}={a}^{2},$ with constant $a>0.$

408.

Use the divergence theorem to evaluate ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)={y}^{2}z\text{i}+{y}^{3}\text{j}+xz\text{k}$ and *S* is the boundary of the cube defined by $\mathrm{-1}\le x\le 1,\mathrm{-1}\le y\le 1,\phantom{\rule{0ex}{0ex}}\text{and}\phantom{\rule{0ex}{0ex}}0\le z\le 2.$

409.

Let *R* be the region defined by ${x}^{2}+{y}^{2}+{z}^{2}\le 1.$ Use the divergence theorem to find ${\iiint}_{R}{z}^{2}dV}.$

410.

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 $\text{F}(x,y,z)=\left(xz\phantom{\rule{0ex}{0ex}}\text{sin}(yz)+{x}^{3}\right)\text{i}+\text{cos}\left(yz\right)\text{j}+\left(3z{y}^{2}-{e}^{{x}^{2}+{y}^{2}}\right)\text{k},$ find $\iint}_{S}\text{F}\xb7d\text{S$ using the divergence theorem.

411.

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}\text{F}\xb7d\text{S$ using the divergence theorem if $\text{F}(x,y,z)=2xy\text{i}+3y{e}^{z}\text{j}+x\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}z\text{k}.$

412.

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

413.

Find ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=x\text{i}+y\text{j}+z\text{k}$ and *S* is the outwardly oriented surface obtained by removing cube $\left[1,2\right]\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}\left[1,2\right]\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}\left[1,2\right]$ from cube $\left[0,2\right]\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}\left[0,2\right]\phantom{\rule{0ex}{0ex}}\times \phantom{\rule{0ex}{0ex}}\left[0,2\right].$

414.

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

415.

Compute the flux of water through parabolic cylinder $S:y={x}^{2},$ from $0\le x\le 2,0\le z\le 3,$ if the velocity vector is $\text{F}(x,y,z)=3{z}^{2}\text{i}+6\text{j}+6xz\text{k}.$

416.

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

417.

**[T]** Use a CAS to find the flux of vector field $\text{F}(x,y,z)=\left({e}^{y}+x\right)\text{i}+\left(3\phantom{\rule{0ex}{0ex}}\text{cos}(xz)-y\right)\text{j}+z\text{k}$ through surface *S*, where *S* is given by ${z}^{2}=4{x}^{2}+4{y}^{2}$ from $0\le z\le 4,$ oriented so the unit normal vector points downward.

418.

**[T]** Use a CAS to compute ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=x\text{i}+y\text{j}+2z\text{k}$ and *S* is a part of sphere ${x}^{2}+{y}^{2}+{z}^{2}=2$ with $0\le z\le 1.$

419.

Evaluate ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=bx{y}^{2}\text{i}+b{x}^{2}y\text{j}+\left({x}^{2}+{y}^{2}\right){z}^{2}\text{k}$ and *S* is the boundary of the solid cylinder ${x}^{2}+{y}^{2}\le {a}^{2}$ and $0\le z\le b.$

420.

**[T]** Use a CAS to calculate the flux of $\text{F}(x,y,z)=\left({x}^{3}+y\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}z\right)\text{i}+\left({y}^{3}+z\phantom{\rule{0ex}{0ex}}\text{sin}\phantom{\rule{0ex}{0ex}}x\right)\text{j}+3z\text{k}$ 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.$

421.

Use the divergence theorem to evaluate ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=xy\text{i}-\frac{1}{2}{y}^{2}\text{j}+z\text{k}$ and *S* is the surface consisting of three pieces: $z=4-3{x}^{2}-3{y}^{2},1\le z\le 4$ on the top; ${x}^{2}+{y}^{2}=1,0\le z\le 1$ on the sides; and $z=0$ on the bottom.

422.

**[T]** Use a CAS and the divergence theorem to evaluate ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=\left(2x+y\phantom{\rule{0ex}{0ex}}\text{cos}\phantom{\rule{0ex}{0ex}}z\right)\text{i}+\left({x}^{2}-y\right)\text{j}+{y}^{2}z\text{k}$ and *S* is sphere ${x}^{2}+{y}^{2}+{z}^{2}=4$ orientated outward.

423.

Use the divergence theorem to evaluate ${\iint}_{S}\text{F}\xb7d\text{S}},$ where $\text{F}(x,y,z)=x\text{i}+y\text{j}+z\text{k}$ 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.

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, $\text{F}=\text{\u2212}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}\text{F}\xb7\text{N}dS}=\text{\u2212}k{\displaystyle {\iint}_{S}\nabla T\xb7\text{N}dS$ across the boundary *S* of *D*, where $k=1.$

424.

$T(x,y,z)=100+x+2y+z;$ $D=\left\{\left(x,y,z\right):0\le x\le 1,0\le y\le 1,0\le z\le 1\right\}$

425.

$T(x,y,z)=100+{e}^{\text{\u2212}z};$ $D=\left\{\left(x,y,z\right):0\le x\le 1,0\le y\le 1,0\le z\le 1\right\}$

426.

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