MathematicsVector CalculusUniversity

Divergence Theorem (Gauss's Theorem)

Relates the outward flux of a vector field through a closed surface to the volume integral of the divergence of the field.

Understand the formulaSee the free derivationOpen the full walkthrough

This public page keeps the free explanation visible and leaves premium worked solving, advanced walkthroughs, and saved study tools inside the app.

Core idea

Overview

This fundamental theorem provides a bridge between surface integrals and volume integrals, effectively showing that the total flow of a vector field out of a region is equal to the sum of all sources and sinks within that region. It is a three-dimensional generalization of the Fundamental Theorem of Calculus. In physical terms, it describes how the local density of a field's source (divergence) accumulates into a net transport across a boundary.

When to use: Use this theorem when evaluating a complex surface integral over a closed boundary is more difficult than computing a volume integral of the divergence.

Why it matters: It is essential in fluid dynamics, heat transfer, and electromagnetism to track how fields originate from sources within a volume.

Symbols

Variables

V = Enclosed Volume, F = Vector Field, n = Normal Vector

Enclosed Volume
Variable
Vector Field
Variable
Normal Vector
Variable

Walkthrough

Derivation

Derivation of Divergence Theorem (Gauss's Theorem)

The Divergence Theorem is derived by showing that the net flux of a vector field through the boundary of an elementary rectangular volume equates to the integral of the divergence over that volume, then extending this via additive properties to arbitrary volumes.

  • The vector field F is continuously differentiable on an open region containing V.
  • The volume V is a compact, piecewise smooth, and orientable region in R³.
1

Define the flux over an elementary rectangular cell

Consider a small rectangular box of dimensions dx, dy, dz. The net flux through opposite faces (e.g., perpendicular to the x-axis) is approximated by the change in the x-component of the vector field multiplied by the surface area, yielding (∂Fx/∂x) dV.

Note: This is essentially the definition of divergence as the flux density per unit volume.

2

Sum over a partition of the volume

By partitioning an arbitrary volume V into many small rectangular cells, we sum the flux contributions. Interior face fluxes cancel out because they are traversed twice in opposite directions.

Note: The cancellation of internal fluxes is the fundamental mechanism of the theorem.

3

Take the limit to a Riemann integral

As the partition size approaches zero, the sum of internal fluxes vanishes, leaving only the flux through the boundary surfaces, which converges to the volume integral of the divergence.

Note: This transition is a standard application of the definition of the Riemann integral.

4

Equate to surface integral

The sum of the outward-pointing fluxes through all surface elements of the boundary dS equals the integral of the divergence throughout the volume V.

Note: Ensure the normal vector n always points outward from the volume.

Result

Source: Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning.

Free formulas

Rearrangements

Solve for

Make the divergence of F the subject

Express the divergence by considering the inverse volume integral of the surface flux.

Difficulty: 3/5

Solve for

Make the vector field F the subject

The vector field F is recovered from the surface flux via the inverse of the divergence operator.

Difficulty: 5/5

Solve for

Make the volume V the subject

Determine the volume that satisfies the equality between the enclosed divergence and boundary flux.

Difficulty: 4/5

Solve for

Make the unit normal vector n the subject

Isolate the normal vector through the relation of flux density across the boundary surface.

Difficulty: 4/5

The static page shows the finished rearrangements. The app keeps the full worked algebra walkthrough.

Visual intuition

Graph

Graph unavailable for this formula.

Contains advanced operator notation (integrals/sums/limits)

Why it behaves this way

Intuition

Imagine a balloon filled with a fluid source (like an air pump or a heat generator). The left side of the equation sums up all the 'micro-sources' (divergence) occurring inside the balloon's volume. The right side measures the 'net flow' (flux) passing through the rubber skin of the balloon. The theorem states that the total fluid generated inside must equal the total fluid escaping through the surface.

Divergence of F
Measures the local 'net expansion' or 'out-flow' at a single point; it tells you if the field is acting like a source (positive) or a sink (negative).
dV
Differential Volume Element
The tiny, infinitesimal cube of space where we calculate the point-wise source activity.
Boundary Surface
The closed 'skin' or shell that acts as the container for the volume V.
Normal Component of Flux
The 'effective velocity' of the field passing directly through the surface, ignoring parts of the field that just slide parallel to the surface.

Signs and relationships

  • \mathbf{n}: By convention, the normal vector points outward from the volume. A positive flux means net flow leaving the volume, while negative flux means net flow entering the volume.

One free problem

Practice Problem

Calculate the outward flux of the vector field F = x*i + y*j + z*k through the surface of a sphere of radius R = 1 centered at the origin.

R1

Solve for: flux

Hint: The divergence of F = (x, y, z) is 3. Integrate this constant over the volume of the sphere.

The full worked solution stays in the interactive walkthrough.

Where it shows up

Real-World Context

In electromagnetism, Maxwell's equations use the divergence theorem to relate the electric charge enclosed in a volume to the electric flux passing through the surface boundary (Gauss's Law).

Study smarter

Tips

  • Always ensure the surface is closed and oriented outwards.
  • Check if the vector field is defined and continuous throughout the entire enclosed volume.
  • Choose a coordinate system (Cartesian, cylindrical, or spherical) that matches the symmetry of the volume.

Avoid these traps

Common Mistakes

  • Applying the theorem to open surfaces without adding the missing 'cap'.
  • Forgetting to use the outward-pointing unit normal vector.
  • Failing to account for singularities in the vector field inside the volume.

Common questions

Frequently Asked Questions

The Divergence Theorem is derived by showing that the net flux of a vector field through the boundary of an elementary rectangular volume equates to the integral of the divergence over that volume, then extending this via additive properties to arbitrary volumes.

Use this theorem when evaluating a complex surface integral over a closed boundary is more difficult than computing a volume integral of the divergence.

It is essential in fluid dynamics, heat transfer, and electromagnetism to track how fields originate from sources within a volume.

Applying the theorem to open surfaces without adding the missing 'cap'. Forgetting to use the outward-pointing unit normal vector. Failing to account for singularities in the vector field inside the volume.

In electromagnetism, Maxwell's equations use the divergence theorem to relate the electric charge enclosed in a volume to the electric flux passing through the surface boundary (Gauss's Law).

Always ensure the surface is closed and oriented outwards. Check if the vector field is defined and continuous throughout the entire enclosed volume. Choose a coordinate system (Cartesian, cylindrical, or spherical) that matches the symmetry of the volume.

References

Sources

  1. Stewart, J. (2015). Calculus: Early Transcendentals.
  2. Feynman, R. P. (1963). The Feynman Lectures on Physics.
  3. Stewart, J. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning.