The Divergence Theorem: Hypotheses, Orientation and Use

The statement

Let E be a bounded solid region whose boundary S is a closed surface, oriented with the unit normal n pointing outward everywhere. If F has continuous first partial derivatives on an open region containing E, then the flux of F out through S equals the integral of the divergence over the solid:


the surface integral over S of F dotted with n equals the triple integral over E of div F.


Every phrase in that sentence is doing work. The surface must be closed, meaning it encloses a solid with no gaps; it must be oriented outward, since reversing the normal flips the sign of the whole left-hand side; and the field must be continuously differentiable on a region containing the solid, including at every interior point.


The theorem says nothing at all if the field fails to be differentiable anywhere inside E, even at a single point.

The ellipse is a two-dimensional cross-section through a possible three-dimensional solid E, not its closed boundary surface S. The arrows are planar outward normals to the section outline and illustrate outward direction; they are not the three-dimensional surface normals of S. The divergence theorem applies to the full three-dimensional closed surface S bounding E, with outward unit normals at every point. Reversing those surface normals reverses the sign of the flux. No vector field or numerical value is shown.

The ellipse is a two-dimensional cross-section through a possible three-dimensional solid E, not its closed boundary surface S. The arrows are planar outward normals to the section outline and illustrate outward direction; they are not the three-dimensional surface normals of S. The divergence theorem applies to the full three-dimensional closed surface S bounding E, with outward unit normals at every point. Reversing those surface normals reverses the sign of the flux. No vector field or numerical value is shown.

Why it is believable

The divergence at a point is the limit of net outward flux per unit volume for a shrinking region around that point. Chop E into many small cells and add up the flux out of each.


Every interior face is shared by two neighbouring cells, and the outward normal of one is the inward normal of the other, so those contributions cancel in pairs.


Only the faces lying on the outer boundary survive, and the sum of their contributions is the flux through S. The theorem is that cancellation argument carried to the limit: local sources add up to the net outflow at the boundary.

Using it

The practical value is that a surface integral over a closed surface, which may be assembled from several pieces with different parametrisations, is replaced by a single triple integral of a scalar function. Two cases make the computation especially short.


  • If div F is constant, the triple integral is that constant multiplied by the volume of E, and no integration is needed at all.
  • If div F depends only on distance from the origin and E is a ball, the triple integral collapses to a one-variable integral in spherical coordinates.


Worked example. Let F = (x, 2y, 3z) and let S be the boundary of the box with 0 up to 1 in x, 0 up to 2 in y and 0 up to 4 in z, oriented outward. Computing the surface integral directly would mean parametrising six faces.


Instead, div F = 1 + 2 + 3 = 6, a constant, and the volume of the box is 1 times 2 times 4 = 8, so the flux is 6 times 8 = 48. It is worth checking the answer is plausible: the field points away from the origin in every coordinate direction, so a positive outward flux is expected, and the divergence being constant means every part of the box contributes in proportion to its volume.

When the hypotheses fail

A field with an interior singularity is a standard cautionary example. Even if its divergence behaves simply at points where it is defined, the divergence theorem can be used only after its continuous first partial derivatives have been verified on an open region containing the whole solid.


If the field is undefined or fails that smoothness condition at an interior point, that hypothesis is not met and the theorem cannot be applied to a solid containing the point.

Common misconceptions

  • Zero divergence everywhere on a domain does not imply zero flux through every closed surface in that domain; it implies it only for surfaces bounding a solid contained in the domain.
  • The theorem requires a closed surface. For a surface with a boundary curve, close it with a cap, apply the theorem to the resulting solid, and subtract the cap's contribution.
  • Divergence measures local source strength, not the speed of the field. A fast uniform flow has zero divergence.

The divergence theorem equates the flux of F through a closed surface S with the triple integral of div F over the solid E that S bounds. Which orientation of S does the theorem require?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Which condition on the vector field F must be verified before the divergence theorem is applied to a solid E with closed boundary surface S?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let F(x, y, z) = (2x, -y, 4z) and let S be the boundary of the solid cylinder defined by x2 + y2 at most 9 and z between 0 and 5, oriented outward. Use the divergence theorem to compute the flux of F through S. Report a decimal number.

Give your answer as a number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors