Fiveable

5️⃣Multivariable Calculus Unit 8 Review

QR code for Multivariable Calculus practice questions

8.1 The Divergence Theorem

8.1 The Divergence Theorem

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025

Understanding the Divergence Theorem

Components of the Divergence Theorem

The Divergence Theorem connects two different integrals: the flux of a vector field through a closed surface and the volume integral of that field's divergence inside the surface. Instead of computing a difficult surface integral directly, you can often evaluate an easier volume integral instead.

The theorem is stated as:

VFdV=SFndS\iiint_V \nabla \cdot \mathbf{F} \, dV = \iint_S \mathbf{F} \cdot \mathbf{n} \, dS

Here's what each piece means:

  • F(x,y,z)\mathbf{F}(x, y, z) is the vector field, representing something like fluid velocity, an electric field, or a gravitational field.
  • SS is a closed surface (think sphere, cube, or cylinder) that fully encloses a volume VV. "Closed" means there are no holes or openings.
  • n\mathbf{n} is the outward unit normal vector, pointing perpendicular to the surface at each point and directed away from the enclosed volume.
  • F\nabla \cdot \mathbf{F} is the divergence of F\mathbf{F}, which measures how much the field is expanding or compressing at each point.

The left side (the volume integral) adds up all the local expansion/contraction of the field throughout the volume. The right side (the surface integral) measures the total net flow of the field outward through the boundary. The theorem says these two quantities are always equal.

Components of Divergence Theorem, The Divergence Theorem · Calculus

Flux Calculation Through Closed Surfaces

When you need to find the flux of a vector field through a closed surface, the Divergence Theorem often gives you a much simpler path than computing the surface integral directly. Follow these steps:

  1. Identify the vector field F(x,y,z)\mathbf{F}(x, y, z) and the closed surface SS enclosing volume VV.
  2. Compute the divergence F=F1x+F2y+F3z\nabla \cdot \mathbf{F} = \frac{\partial F_1}{\partial x} + \frac{\partial F_2}{\partial y} + \frac{\partial F_3}{\partial z}, where F1,F2,F3F_1, F_2, F_3 are the component functions of F\mathbf{F}.
  3. Set up the volume integral VFdV\iiint_V \nabla \cdot \mathbf{F} \, dV. Choose coordinates (Cartesian, cylindrical, or spherical) that match the geometry of VV.
  4. Evaluate the integral using standard triple integration techniques. Take advantage of symmetry when possible to simplify the computation.

For example, if F=(x2,y2,z2)\mathbf{F} = (x^2, y^2, z^2) and SS is the unit sphere, computing the surface integral directly would require parameterizing the sphere and evaluating a messy integral. With the Divergence Theorem, you compute F=2x+2y+2z\nabla \cdot \mathbf{F} = 2x + 2y + 2z and integrate over the unit ball. By symmetry, each term integrates to zero, so the total flux is 00. That's far easier than working with the surface directly.

The key benefit: you're converting a 2D surface integral (which often requires parameterization and normal vector calculations) into a 3D volume integral (which is usually more straightforward to set up and evaluate).

Components of Divergence Theorem, The Divergence Theorem · Calculus

Applicability of the Divergence Theorem

The theorem doesn't apply to every situation. All of the following conditions must hold:

  • The surface SS must be closed, meaning it fully encloses a volume with no gaps or openings. A hemisphere by itself is not closed; a full sphere is.
  • The surface must be piecewise smooth, meaning it's differentiable everywhere except possibly along finitely many edges or corners. A cube qualifies (smooth faces, sharp edges). A fractal surface does not.
  • The vector field F\mathbf{F} must be continuously differentiable (all partial derivatives exist and are continuous) throughout the entire volume VV and on the surface SS. If F\mathbf{F} has a singularity inside VV, you can't apply the theorem directly.

Common shapes where the theorem works well include spheres, cubes, cylinders, and ellipsoids. Watch out for fields with singularities at the origin (like F=rr3\mathbf{F} = \frac{\mathbf{r}}{r^3}) when the origin is inside your volume. In those cases, you'd need to exclude the singularity by cutting out a small ball around it and applying the theorem to the region between the two surfaces.

Divergence Theorem vs. Green's Theorem

Green's Theorem is the 2D version of the Divergence Theorem. Both theorems share the same core idea: they relate an integral over a boundary to an integral over the region that boundary encloses.

Green's TheoremDivergence Theorem
Dimension2D3D
BoundaryClosed curve CCClosed surface SS
InteriorPlanar region DDVolume VV
StatementC(Pdx+Qdy)=D(QxPy)dA\oint_C (P\,dx + Q\,dy) = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dASFndS=VFdV\iint_S \mathbf{F} \cdot \mathbf{n}\,dS = \iiint_V \nabla \cdot \mathbf{F}\,dV
Typical uses2D fluid circulation, area calculationsElectromagnetic flux, 3D fluid flow, heat transfer

Green's Theorem relates a line integral around a closed curve to a double integral over the enclosed region. The Divergence Theorem does the same thing one dimension higher: it relates a surface integral over a closed surface to a triple integral over the enclosed volume. If you're comfortable with Green's Theorem, the Divergence Theorem is its natural 3D generalization.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly → and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot

2,589 studying →