The Central Idea
Let \(V\) be a solid region in three-dimensional space and let \(\partial V\) be its closed boundary surface.
The Divergence Theorem states
\[ \boxed{ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS = \iiint_V \nabla\cdot\mathbf{F}\,dV }. \]The left side measures total outward flux through the boundary.
The right side measures total source-sink behavior throughout the interior.
Boundary Versus Interior
The theorem has the same structural pattern as Green's Theorem and Stokes' Theorem:
\[ \boxed{ \text{boundary integral} = \text{integral of a derivative over the interior} }. \]Here the boundary is a closed surface and the interior is a volume.
The Divergence
For
\[ \mathbf{F} = \langle P,Q,R\rangle, \]the divergence is
\[ \boxed{ \nabla\cdot\mathbf{F} = P_x+Q_y+R_z }. \]This scalar field measures local source or sink behavior.
Positive Divergence
If
\[ \nabla\cdot\mathbf{F}>0, \]the field behaves locally like a source.
Small regions tend to have more field leaving than entering.
Negative Divergence
If
\[ \nabla\cdot\mathbf{F}<0, \]the field behaves locally like a sink.
Small regions tend to have more field entering than leaving.
Zero Divergence
If
\[ \nabla\cdot\mathbf{F}=0, \]there is no net local source or sink behavior.
Over a closed region where the theorem applies, this implies zero total outward flux:
\[ \boxed{ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS = 0 }. \]Outward Orientation
The standard Divergence Theorem uses the outward-pointing unit normal.
If the surface is instead oriented inward, the flux changes sign:
\[ \boxed{ \Phi_{\text{inward}} = - \Phi_{\text{outward}} }. \]Why the Surface Must Be Closed
The Divergence Theorem applies to a closed surface that completely encloses a volume.
Examples include:
- a sphere;
- a cube;
- a closed cylinder with end caps;
- an ellipsoid;
- a sufficiently regular sealed boundary of a solid.
Open Surfaces Do Not Directly Qualify
A hemisphere without its base is not closed.
A cylinder without end caps is not closed.
In such cases, one common strategy is to add the missing pieces, apply the Divergence Theorem to the resulting closed surface, then subtract the flux through the added pieces.
Example: Radial Field Through a Sphere
Let
\[ \mathbf{F}(x,y,z) = \langle x,y,z\rangle \]and let \(V\) be the ball
\[ x^2+y^2+z^2\le R^2. \]First compute the divergence:
\[ \nabla\cdot\mathbf{F} = 1+1+1 = 3. \]Therefore,
\[ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS = \iiint_V3\,dV. \]The ball has volume
\[ \frac{4}{3}\pi R^3. \]Hence,
\[ \boxed{ \Phi = 4\pi R^3 }. \]Agreement with Direct Flux
On the sphere,
\[ \mathbf{n} = \frac{\langle x,y,z\rangle}{R}. \]Then
\[ \mathbf{F}\cdot\mathbf{n} = R. \]Multiplying by the sphere's area
\[ 4\pi R^2 \]again gives
\[ \boxed{ 4\pi R^3 }. \]The two approaches agree, as they must.
Why the Divergence Theorem Can Be Faster
Direct surface flux may require separate parameterizations for several faces of a closed surface.
The Divergence Theorem can replace all of those with one volume integral.
It is especially useful when divergence is simple.
Example: Flux Through a Box
Let
\[ \mathbf{F}(x,y,z) = \langle x^2,y^2,z^2\rangle \]and let
\[ 0\le x\le1, \qquad 0\le y\le2, \qquad 0\le z\le3. \]Compute
\[ \nabla\cdot\mathbf{F} = 2x+2y+2z. \]Therefore,
\[ \Phi = \int_0^1\int_0^2\int_0^3 (2x+2y+2z) \,dz\,dy\,dx. \]Evaluating gives
\[ \boxed{ \Phi=36 }. \]A Symmetry Shortcut
Suppose the volume is symmetric about the origin and the divergence contains odd terms.
Their volume integrals may vanish by symmetry.
Always inspect the divergence before beginning a long triple integral.
Example: Odd Divergence on a Symmetric Ball
Let
\[ \mathbf{F} = \langle x^2,y^2,z^2\rangle. \]Then
\[ \nabla\cdot\mathbf{F} = 2x+2y+2z. \]Over a ball centered at the origin, each term is odd in its corresponding coordinate.
Therefore,
\[ \boxed{ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS = 0 }. \]Theorem Interpretation Using Tiny Boxes
Imagine dividing the volume into many tiny boxes.
Flux leaving one box through a shared face enters the neighboring box through that same face.
Interior flux contributions cancel in pairs.
Only the flux through the outer boundary survives.
Why Divergence Appears
Divergence is local outward flux per unit volume in the limiting sense.
Integrating divergence over the entire region adds those local source-sink contributions.
The theorem states that this total equals net outward boundary flux.
Green's Flux Theorem in Two Dimensions
Recall Green's flux form:
\[ \oint_C \mathbf{F}\cdot\mathbf{n}\,ds = \iint_D \nabla\cdot\mathbf{F} \,dA. \]The Divergence Theorem is the three-dimensional version:
\[ \boxed{ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS = \iiint_V \nabla\cdot\mathbf{F} \,dV }. \]Green's Flux Form Is a Lower-Dimensional Analogue
The hierarchy is
\[ \boxed{ \text{2D boundary flux} \longleftrightarrow \text{2D divergence integral} } \]and
\[ \boxed{ \text{3D boundary flux} \longleftrightarrow \text{3D divergence integral} }. \]Divergence-Free Fields
A field satisfying
\[ \boxed{ \nabla\cdot\mathbf{F}=0 } \]is called divergence-free or solenoidal on the region.
If the theorem applies throughout a volume, then the net outward flux through its closed boundary is zero.
Incompressible Flow
In idealized incompressible fluid flow,
\[ \nabla\cdot\mathbf{v}=0. \]Therefore, the net volumetric flow through any closed surface is zero:
\[ \boxed{ \oiint_{\partial V} \mathbf{v}\cdot\mathbf{n}\,dS = 0 }. \]Mass Conservation
If
\[ \rho\mathbf{v} \]is a mass-flux field, then its divergence measures local imbalance between mass leaving and entering a small region.
The Divergence Theorem converts this local balance into a statement about total mass flow across a closed boundary.
Electric Field Interpretation
Electric flux through a closed surface is
\[ \oiint_S \mathbf{E}\cdot\mathbf{n}\,dS. \]The Divergence Theorem converts this to
\[ \iiint_V \nabla\cdot\mathbf{E} \,dV. \]This is the mathematical bridge between local divergence laws and integral flux laws.
Gravitational Field Interpretation
Gravitational fields can also be integrated over closed surfaces.
Because gravitational fields in classical models point inward toward mass, outward flux is often negative around regions containing sources.
Closed Surfaces with Several Pieces
A closed surface may consist of multiple pieces.
For example, a cylinder contains:
- a lateral surface;
- a top disk;
- a bottom disk.
Direct flux requires summing all three contributions.
The Divergence Theorem handles them together automatically.
Using the Theorem for an Open Surface
Suppose \(S\) is open.
Add a convenient surface \(S_{\text{cap}}\) so that
\[ S\cup S_{\text{cap}} \]becomes closed.
Then
\[ \Phi_S = \Phi_{\text{closed}} - \Phi_{\text{cap}}. \]The closed-surface flux can be found using the Divergence Theorem.
Example: Hemisphere Plus Disk
Let \(S\) be the upper hemisphere of the sphere
\[ x^2+y^2+z^2=R^2. \]Add the base disk
\[ z=0, \qquad x^2+y^2\le R^2. \]Then the hemisphere plus disk forms a closed surface.
Compute total outward flux using the Divergence Theorem, compute the flux through the disk, then subtract to isolate the hemispherical flux.
Orientation on an Added Cap
The cap orientation must agree with the outward orientation of the closed solid.
For the base of an upper hemisphere, outward from the enclosed half-ball points downward.
This sign is easy to miss.
Example: Hemisphere Flux
Let
\[ \mathbf{F} = \langle x,y,z\rangle \]and let \(S\) be the upper unit hemisphere, oriented outward.
The divergence is
\[ 3. \]The upper half-ball has volume
\[ \frac{2\pi}{3}. \]Therefore the total outward flux through hemisphere plus base disk is
\[ 3\cdot\frac{2\pi}{3} = 2\pi. \]On the base disk,
\[ z=0 \]and the outward normal is downward.
Since
\[ \mathbf{F}\cdot(-\mathbf{k})=-z=0, \]the disk contributes zero flux.
Therefore,
\[ \boxed{ \Phi_{\text{hemisphere}} = 2\pi }. \]Choosing Coordinates for the Volume Integral
The Divergence Theorem turns a surface problem into a volume problem.
Choose coordinates that match the solid:
- Cartesian coordinates for boxes and rectangular solids;
- cylindrical coordinates for cylinders and rotational solids;
- spherical coordinates for balls and spherical shells.
Cylindrical Coordinates Reminder
In cylindrical coordinates,
\[ x=r\cos\theta, \qquad y=r\sin\theta, \qquad z=z. \]The volume element is
\[ \boxed{ dV = r\,dr\,d\theta\,dz }. \]Spherical Coordinates Reminder
In spherical coordinates,
\[ x=\rho\sin\phi\cos\theta, \] \[ y=\rho\sin\phi\sin\theta, \] \[ z=\rho\cos\phi. \]The volume element is
\[ \boxed{ dV = \rho^2\sin\phi \,d\rho\,d\phi\,d\theta }. \]Example: Cylindrical Volume
Suppose
\[ \nabla\cdot\mathbf{F}=4 \]throughout the cylinder
\[ x^2+y^2\le R^2, \qquad 0\le z\le H. \]Then
\[ \Phi = \iiint_V4\,dV = 4(\pi R^2H). \]Therefore,
\[ \boxed{ \Phi = 4\pi R^2H }. \]Example: Spherical Shell
Suppose
\[ \nabla\cdot\mathbf{F}=c \]is constant on the shell
\[ a\le\rho\le b. \]The shell volume is
\[ \frac{4\pi}{3}(b^3-a^3). \]Therefore,
\[ \boxed{ \Phi = c\frac{4\pi}{3}(b^3-a^3) }. \]Regions with Cavities
A solid region can contain an internal cavity.
The boundary then contains an outer surface and one or more inner surfaces.
Outward orientation means:
- the outer surface normal points away from the solid;
- an inner cavity normal points into the cavity.
Why Inner Normals Point Into Cavities
The normal must point outward from the actual volume \(V\).
On a cavity wall, leaving \(V\) means moving into the empty cavity.
Therefore, the outward normal on an inner boundary points toward the cavity interior.
Singularities Matter
The standard Divergence Theorem requires the vector field and relevant derivatives to be sufficiently smooth throughout a region containing the volume.
If the field is undefined at a point inside the solid, direct application may fail.
Removing a Singularity
Sometimes a small region around a singularity can be removed.
The resulting volume has an additional inner boundary.
The Divergence Theorem may then be applied to the punctured volume if the field is smooth there.
Local Versus Global Information
Divergence is local:
\[ \nabla\cdot\mathbf{F}. \]Closed-surface flux is global:
\[ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS. \]The Divergence Theorem is the exact bridge between the two.
Connection with the Laplacian
If
\[ \mathbf{F}=\nabla f, \]then
\[ \nabla\cdot\mathbf{F} = \nabla\cdot(\nabla f) = \nabla^2f. \]Therefore,
\[ \boxed{ \oiint_{\partial V} \nabla f\cdot\mathbf{n}\,dS = \iiint_V \nabla^2f\,dV }. \]Harmonic Potentials
If
\[ \nabla^2f=0, \]then
\[ \boxed{ \oiint_{\partial V} \nabla f\cdot\mathbf{n}\,dS = 0 } \]for every suitable enclosed volume.
Theorem Selection: Direct Flux or Divergence Theorem?
Use the Divergence Theorem when:
- the surface is closed;
- divergence is simple;
- the enclosed volume has easy bounds;
- the direct surface consists of several pieces;
- symmetry simplifies the triple integral.
When Direct Surface Integration May Be Better
Direct flux can be better when:
- the surface is open and difficult to close conveniently;
- the normal and field dot product are extremely simple;
- the divergence produces a difficult volume integral;
- the theorem's smoothness conditions fail inside the region.
Common Error: Applying the Theorem to an Open Surface
The Divergence Theorem requires a closed boundary.
If a surface is open, close it first or use direct flux integration.
Common Error: Using Inward Orientation
The standard theorem gives outward flux.
If inward flux is requested, negate the outward result.
Common Error: Computing Curl Instead of Divergence
Stokes' Theorem uses curl.
The Divergence Theorem uses
\[ \boxed{ \nabla\cdot\mathbf{F} }. \]Common Error: Forgetting the Jacobian
In cylindrical coordinates,
\[ dV=r\,dr\,d\theta\,dz. \]In spherical coordinates,
\[ dV=\rho^2\sin\phi\,d\rho\,d\phi\,d\theta. \]Omitting these scale factors changes the volume measure.
Common Error: Forgetting a Surface Piece
If you compute closed-surface flux directly, every face or surface piece must be included.
The Divergence Theorem avoids this bookkeeping by treating the closed boundary as one object.
Common Error: Ignoring a Singularity Inside the Volume
A field may be smooth on the boundary but undefined inside.
The standard theorem cannot be applied across that singularity without additional analysis.
A Reliable Procedure for the Divergence Theorem
- Confirm that the surface is closed.
- Identify the enclosed volume \(V\).
- Use outward orientation.
- Check that the field is sufficiently smooth throughout the volume.
- Compute \(\nabla\cdot\mathbf{F}\).
- Choose coordinates that match the solid.
- Set up the triple integral over \(V\).
- Evaluate.
- Interpret the sign as net outward or inward behavior.
A Reliable Procedure for an Open Surface
- Identify the missing piece needed to close the surface.
- Form the closed boundary.
- Apply the Divergence Theorem to the closed surface.
- Compute flux through the added piece directly.
- Subtract the added-piece flux.
- Check orientations carefully.
A Reliable Symmetry Checklist
- Is the volume symmetric about an axis, plane, or origin?
- Is the divergence odd in one coordinate?
- Is the divergence constant?
- Can the triple integral reduce to constant times volume?
- Would cylindrical or spherical coordinates simplify the region?
Example: Full Divergence-Theorem Workflow
Let
\[ \mathbf{F}(x,y,z) = \langle x^3, y^3, z^3 \rangle \]and let \(V\) be the cube
\[ -1\le x\le1, \qquad -1\le y\le1, \qquad -1\le z\le1. \]Compute the divergence:
\[ \nabla\cdot\mathbf{F} = 3x^2+3y^2+3z^2. \]Therefore,
\[ \Phi = \iiint_V (3x^2+3y^2+3z^2) \,dV. \]By symmetry, the three coordinate contributions are equal.
Consider the \(x\)-term:
\[ \iiint_V3x^2\,dV = 3 \left( \int_{-1}^{1}x^2\,dx \right) \left( \int_{-1}^{1}dy \right) \left( \int_{-1}^{1}dz \right). \]This equals
\[ 3 \left( \frac{2}{3} \right) (2)(2) = 8. \]There are three identical contributions, so
\[ \boxed{ \Phi=24 }. \]Example: Cylindrical Symmetry Workflow
Let
\[ \mathbf{F} = \langle x,y,2z\rangle \]and let \(V\) be the cylinder
\[ x^2+y^2\le4, \qquad 0\le z\le3. \]The divergence is
\[ \nabla\cdot\mathbf{F} = 1+1+2 = 4. \]The cylinder volume is
\[ \pi(2)^2(3) = 12\pi. \]Therefore,
\[ \boxed{ \Phi = 48\pi }. \]Practice 1: Basic Sphere
Let
\[ \mathbf{F} = \langle x,y,z\rangle. \]Find the outward flux through the unit sphere.
Practice 2: Divergence-Free Field
Suppose
\[ \nabla\cdot\mathbf{F}=0 \]throughout a solid \(V\).
What is the total outward flux through \(\partial V\)?
Practice 3: Constant Divergence
Suppose
\[ \nabla\cdot\mathbf{F}=5 \]throughout a rectangular box of volume \(12\).
Find the outward flux.
Practice 4: Box Calculation
Let
\[ \mathbf{F} = \langle2x,3y,4z\rangle \]on the unit cube
\[ 0\le x,y,z\le1. \]Find the outward flux.
Practice 5: Open Hemisphere Strategy
What extra surface should usually be added to an open hemisphere before using the Divergence Theorem?
Practice 6: Inward Flux
If the outward flux through a closed surface is \(18\), what is the inward flux?
Practice 7: Identify the Operator
Which differential operator appears in the Divergence Theorem: gradient, curl, or divergence?
Practice 8: Cylindrical Volume
Suppose
\[ \nabla\cdot\mathbf{F}=2 \]inside a cylinder of radius \(3\) and height \(4\).
Find the outward flux.
Practice 9: Symmetry
Let
\[ \nabla\cdot\mathbf{F}=x \]throughout a ball centered at the origin.
What is the total outward flux?
Practice 10: Theorem Structure
Complete the statement:
The Divergence Theorem converts outward flux through a closed surface into a __________ integral of divergence over the enclosed volume.
Practice Answers
Practice 1
The divergence is
\[ 3. \]The unit ball has volume
\[ \frac{4\pi}{3}. \]Therefore,
\[ \boxed{ \Phi=4\pi }. \]Practice 2
\[ \boxed{ 0 }. \]Practice 3
\[ \Phi = 5(12) = \boxed{60}. \]Practice 4
The divergence is
\[ 2+3+4=9. \]The unit cube has volume \(1\), so
\[ \boxed{ \Phi=9 }. \]Practice 5
Add the flat
\[ \boxed{ \text{base disk} }. \]Practice 6
\[ \boxed{ -18 }. \]Practice 7
The theorem uses
\[ \boxed{ \text{divergence} }. \]Practice 8
The cylinder volume is
\[ \pi(3)^2(4) = 36\pi. \]Therefore,
\[ \boxed{ \Phi=72\pi }. \]Practice 9
The function \(x\) is odd and the ball is symmetric about the \(yz\)-plane.
Therefore,
\[ \boxed{ \Phi=0 }. \]Practice 10
The Divergence Theorem converts the surface flux integral into a triple integral over the enclosed volume.
What to Remember
The Divergence Theorem is
\[ \boxed{ \oiint_{\partial V} \mathbf{F}\cdot\mathbf{n}\,dS = \iiint_V \nabla\cdot\mathbf{F}\,dV }. \]- The boundary surface must be closed.
- The standard orientation is outward.
- Divergence measures local source-sink behavior.
- The surface integral measures total outward flux.
- Divergence-free fields have zero net flux through suitable closed surfaces.
- Open surfaces can sometimes be closed with an added cap.
- Symmetry and coordinate choice can simplify the volume integral.
- Singularities inside the volume require special care.
- Green's flux form is the two-dimensional analogue.
- The theorem is a fundamental bridge from local divergence to global flux.
Where We Go Next
The gradient, divergence, curl, line integrals, surface integrals, flux, Green's Theorem, Stokes' Theorem, and the Divergence Theorem form the core operational language of vector calculus.
The next lesson, Coordinate Systems, organizes how these field operations are expressed in Cartesian, cylindrical, and spherical coordinates and explains why the formulas change when the coordinate basis itself varies with position.