In vector calculus, the divergence theorem, also known as Gauss’s theorem or Ostrogradsky’s theorem, is a result that relates the flow (that is, flux) of a vector field through a surface to the behavior of the vector field inside the surface.
More precisely, the divergence theorem states that the outward flux of a vector field through a closed surface is equal to the volume integral of the divergence over the region inside the surface. Intuitively, it states that the sum of all sources (with sinks regarded as negative sources) gives the net flux out of a region.
The divergence theorem is an important result for the mathematics of physics and engineering, in particular in electrostatics and fluid dynamics.
In physics and engineering, the divergence theorem is usually applied in three dimensions. However, it generalizes to any number of dimensions. In one dimension, it is equivalent to the fundamental theorem of calculus. In two dimensions, it is equivalent to Green’s theorem.
The theorem is a special case of the more general Stokes’ theorem.