01 / 21

Computing Flux via
Divergence Theorem

Transform difficult surface integrals into simpler triple integrals using one of the most powerful tools in multivariable calculus.

Calculus 3

What Is Flux?

Flux measures how much of a vector field passes through a surface. Imagine water flowing through a net: the total amount of water crossing the net per unit time is the flux through that surface.

\(\mathbf{n}\)
Surface S
\(\mathbf{F}\)

The Surface Integral Problem

Computing flux directly requires parameterizing the surface, finding normal vectors, and evaluating a double integral. For complex surfaces, this can be extremely tedious.

1
Parameterize the surface \(\mathbf{r}(u,v)\)
2
Compute the normal vector \(\mathbf{r}_u \times \mathbf{r}_v\)
3
Evaluate \(\displaystyle\iint_D \mathbf{F}(\mathbf{r}(u,v))\cdot(\mathbf{r}_u\times\mathbf{r}_v)\,du\,dv\)

What Is Divergence?

The divergence of a vector field measures how much the field spreads out or converges at each point. Positive divergence means a source; negative means a sink.

$$\nabla\cdot\mathbf{F} = \frac{\partial F_1}{\partial x}+\frac{\partial F_2}{\partial y}+\frac{\partial F_3}{\partial z}$$
Source
\(\nabla\cdot\mathbf{F}>0\): field flows outward from the point.
Sink
\(\nabla\cdot\mathbf{F}<0\): field flows inward toward the point.
Incompressible
\(\nabla\cdot\mathbf{F}=0\): no net expansion or compression.

The Divergence Theorem

$$\iint_S \mathbf{F}\cdot d\mathbf{S} = \iiint_E \nabla\cdot\mathbf{F}\;dV$$
E S
\(\mathbf{n}\)
Flux through S = Total divergence inside E

Why Does It Work?

The Divergence Theorem says that the total flux leaving a region equals the total source strength inside. Think of it like counting all the water flowing out of a room: it must equal the sum of all faucets minus all drains inside.

1
Subdivide the region \(E\) into tiny boxes.
2
Each tiny box has flux \(\approx (\nabla\cdot\mathbf{F})\,\Delta V\).
3
Internal faces cancel between neighboring boxes.
4
Only the outer boundary \(S\) contributes, giving the surface integral.

Divergence Theorem vs. Stokes' Theorem

Divergence Theorem Stokes' Theorem
Relates Surface integral ↔ Volume integral Line integral ↔ Surface integral
Operator \(\nabla\cdot\mathbf{F}\) (divergence) \(\nabla\times\mathbf{F}\) (curl)
Surface type Closed surface (boundary of a solid) Open surface (bounded by a curve)
Computes Flux through a closed surface Circulation around a boundary
Dimension 2D boundary → 3D volume 1D boundary → 2D surface

How to Apply the Theorem

1
Verify conditions: \(S\) is a closed surface bounding a solid \(E\), and \(\mathbf{F}\) has continuous partial derivatives.
2
Compute the divergence: \(\nabla\cdot\mathbf{F} = \frac{\partial F_1}{\partial x}+\frac{\partial F_2}{\partial y}+\frac{\partial F_3}{\partial z}\).
3
Set up the triple integral over the solid region \(E\) in the most convenient coordinate system.
4
Choose coordinates: Cartesian, cylindrical, or spherical based on the geometry of \(E\).
5
Evaluate the triple integral to find the flux.

Choosing Coordinates

The power of the Divergence Theorem is that you can pick whichever coordinate system makes the triple integral easiest. Match the coordinate system to the shape of \(E\).

Cartesian
Boxes, rectangular solids. Use \(dV = dx\,dy\,dz\).
Cylindrical
Cylinders, cones. Use \(dV = r\,dr\,d\theta\,dz\).
Spherical
Spheres, hemispheres. Use \(dV = \rho^2\sin\phi\,d\rho\,d\phi\,d\theta\).

Example 1: Flux Through a Sphere

1
Compute divergence: \(\nabla\cdot\mathbf{F}=\frac{\partial}{\partial x}(x)+\frac{\partial}{\partial y}(y)+\frac{\partial}{\partial z}(z)=\) 3
2
Set up triple integral: \(\displaystyle\iiint_E 3\;dV = 3\cdot\text{Vol}(E)\)
3
Volume of sphere: \(V = \tfrac{4}{3}\pi R^3 = \tfrac{4}{3}\pi(2)^3 = \tfrac{32\pi}{3}\)
4
Result: Flux \( = 3\cdot\frac{32\pi}{3} = \textcolor{#4ade80}{32\pi}\)

Example 1: Visualized

E
\(\mathbf{F} = \langle x, y, z \rangle\)
\(R=2\)

Example 2: Flux Through a Cylinder

1
Divergence: \(\nabla\cdot\mathbf{F}=2x+2y+2z\)
2
Switch to cylindrical: \(x=r\cos\theta\), \(y=r\sin\theta\), \(dV=r\,dr\,d\theta\,dz\)
3
Integral: \(\displaystyle\int_0^{2\pi}\!\int_0^1\!\int_0^3(2r\cos\theta+2r\sin\theta+2z)\,r\,dz\,dr\,d\theta\)
4
The \(\cos\theta\) and \(\sin\theta\) terms integrate to 0 over \([0,2\pi]\).
5
Only the \(2z\) term survives: \(\displaystyle\int_0^{2\pi}\!\int_0^1\!\int_0^3 2zr\,dz\,dr\,d\theta = 2\pi\cdot\frac{1}{2}\cdot 9 = \textcolor{#fbbf24}{9\pi}\)

Example 3: Non-Constant Divergence

1
Divergence: \(\nabla\cdot\mathbf{F}=z+z+2z = 4z\)
2
Use spherical: \(z=\rho\cos\phi\), \(dV=\rho^2\sin\phi\,d\rho\,d\phi\,d\theta\)
3
Integral: \(\displaystyle\int_0^{2\pi}\!\int_0^{\pi}\!\int_0^{a} 4\rho\cos\phi\cdot\rho^2\sin\phi\,d\rho\,d\phi\,d\theta\)
4
The \(\phi\) integral: \(\displaystyle\int_0^{\pi}\cos\phi\sin\phi\,d\phi = 0\) (odd symmetry about \(\phi=\pi/2\))
5
Result: Flux \( = \textcolor{#818cf8}{0}\). The symmetry of the sphere causes complete cancellation!

The Power of Symmetry

Example 3 shows an important pattern. When the divergence is an odd function of one variable and the region is symmetric about the corresponding plane, the integral is zero.

Odd in \(x\)
If \(\nabla\cdot\mathbf{F}\) is odd in \(x\) and \(E\) is symmetric about the \(yz\)-plane, flux = 0.
Odd in \(z\)
If \(\nabla\cdot\mathbf{F}\) is odd in \(z\) and \(E\) is symmetric about the \(xy\)-plane, flux = 0.

Common Mistakes

✕ Open Surface
Applying the theorem to a surface that is not closed. You must have a complete boundary enclosing a solid.
✕ Wrong Jacobian
Forgetting the Jacobian factor when switching coordinates: \(r\) for cylindrical, \(\rho^2\sin\phi\) for spherical.
✕ Divergence Error
Computing \(\nabla\cdot\mathbf{F}\) incorrectly: differentiating the wrong component with respect to the wrong variable.

Summary at a Glance

Concept Details
Theorem \(\displaystyle\iint_S\mathbf{F}\cdot d\mathbf{S}=\iiint_E\nabla\cdot\mathbf{F}\;dV\)
Requirements Closed surface, continuous partial derivatives
Divergence \(\frac{\partial F_1}{\partial x}+\frac{\partial F_2}{\partial y}+\frac{\partial F_3}{\partial z}\)
Best for Complex surfaces where parameterization is hard
Coordinate choice Match to geometry: spherical, cylindrical, Cartesian
Symmetry trick Odd integrand + symmetric region = 0

Question 1 of 5

What is the divergence of the vector field \(\mathbf{F}=\langle 3x^2,\;5y,\;-2z\rangle\)?

Question 2 of 5

The Divergence Theorem converts a surface integral into which type of integral?

Question 3 of 5

Find the outward flux of \(\mathbf{F}=\langle x,\,y,\,z\rangle\) through the sphere \(x^2+y^2+z^2=9\).

Question 4 of 5

When can you not directly apply the Divergence Theorem?

Question 5 of 5

For \(\mathbf{F}=\langle y^2,\,x^2,\,z^2\rangle\) and the solid box \(0\leq x\leq 1\), \(0\leq y\leq 1\), \(0\leq z\leq 1\), what is the outward flux?