Gauss's Theorem

The Story of Gauss’s Theorem

The Contribution of the Prince of Mathematicians

Carl Friedrich Gauss (1777–1855) was hailed as the “Prince of Mathematicians” and is one of the greatest mathematicians in history. He made pioneering contributions to number theory, algebra, analysis, geometry, astronomy and geodesy.

Gauss’s theorem (the divergence theorem) was first published in its official form by the Russian mathematician Mikhail Ostrogradsky in 1826, and is therefore called the Ostrogradsky formula in the Russian-speaking world. Gauss had, however, used an equivalent result in his earlier work, so it is usually named after Gauss.

From “Flow Rate” to “Divergence”

The physical intuition behind Gauss’s theorem comes from fluid mechanics: if a fluid flows in space, then the total flow rate flowing out of a closed surface must equal the flow produced by all the “sources” inside it minus the flow consumed by all the “sinks”. The divergence is the “source strength” per unit volume.

A Deeper Understanding of Gauss’s Theorem

The Precise Statement

Theorem1

Suppose the closed region Ω\Omega of space is bounded by a piecewise smooth closed surface Σ\Sigma, and the functions P(x,y,z),Q(x,y,z),R(x,y,z)P(x,y,z), Q(x,y,z), R(x,y,z) have continuous first-order partial derivatives on Ω\Omega. Then

∯ΣP dy dz+Q dz dx+R dx dy=∭Ω(∂P∂x+∂Q∂y+∂R∂z)dv\oiint_\Sigma P \, dy\,dz + Q \, dz\,dx + R \, dx\,dy = \iiint_\Omega \left( \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z} \right) dv

or, in vector form:

∯ΣF⃗⋅dS⃗=∭Ω(∇⋅F⃗) dv\oiint_\Sigma \vec{F} \cdot d\vec{S} = \iiint_\Omega (\nabla \cdot \vec{F}) \, dv

where Σ\Sigma is the entire boundary surface of Ω\Omega, taken on the outer side.

The Convention for the Outer Side

The Limiting Definition of the Divergence

The divergence can be defined as the limit of the flux:

∇⋅F⃗(M)=lim⁡ΔV→01ΔV∯ΔΣF⃗⋅dS⃗\nabla \cdot \vec{F}(M) = \lim_{\Delta V \to 0} \frac{1}{\Delta V} \oiint_{\Delta\Sigma} \vec{F} \cdot d\vec{S}

where ΔV\Delta V is the volume of a small region containing the point MM, and ΔΣ\Delta\Sigma is its boundary. This definition reveals the physical meaning of the divergence: the net outward flux per unit volume.

The Idea Behind the Proof

The proof of Gauss’s theorem is similar to that of Green’s theorem, and proceeds in three steps.

Step 1: An XY-Type Region

Suppose Ω\Omega is an XY-type region: (x,y)∈Dxy, z1(x,y)≤z≤z2(x,y)(x,y) \in D_{xy}, \, z_1(x,y) \leq z \leq z_2(x,y).

∭Ω∂R∂zdv=∬Dxydx dy∫z1z2∂R∂zdz=∬Dxy[R(x,y,z2)−R(x,y,z1)]dx dy\iiint_\Omega \frac{\partial R}{\partial z} dv = \iint_{D_{xy}} dx\,dy \int_{z_1}^{z_2} \frac{\partial R}{\partial z} dz = \iint_{D_{xy}} [R(x,y,z_2) - R(x,y,z_1)] dx\,dy

The surface integral ∯ΣR dx dy\oiint_\Sigma R \, dx\,dy along the boundary consists of three parts: the upper surface (upper side), the lower surface (lower side), and the lateral surface (whose normal vector is perpendicular to the zz-axis, so its projection is zero). The result of the computation agrees with the expression above.

Step 2: The Other Types of Region

Similarly, one proves the terms containing PP and QQ.

Step 3: A General Region

A general region is divided into several standard-type regions, and the integrals over the common boundaries cancel each other.

The Generalisations of Gauss’s Theorem

The Surface Completion Method for a Non-Closed Surface

When the surface Σ\Sigma is not closed, you can add a surface Σ′\Sigma' so that it becomes closed, apply Gauss’s theorem, and then subtract the integral over the added surface:

∬ΣF⃗⋅dS⃗=∭Ω(∇⋅F⃗)dv−∬Σ′F⃗⋅dS⃗\iint_\Sigma \vec{F} \cdot d\vec{S} = \iiint_\Omega (\nabla \cdot \vec{F}) dv - \iint_{\Sigma'} \vec{F} \cdot d\vec{S}

The Differential Form of Gauss’s Theorem

Starting from the integral form and using the mean value theorem for integrals, and letting the region shrink to a point, you obtain the differential form of Gauss’s theorem:

∇⋅F⃗=lim⁡ΔV→01ΔV∯ΔΣF⃗⋅dS⃗\nabla \cdot \vec{F} = \lim_{\Delta V \to 0} \frac{1}{\Delta V} \oiint_{\Delta\Sigma} \vec{F} \cdot d\vec{S}

This is the defining formula for the divergence.

The Applications of Gauss’s Theorem in Physics

1. Gauss’s Law in Electromagnetism

Gauss’s law for the electric field: ∯ΣE⃗⋅dS⃗=Qinsideε0\oiint_\Sigma \vec{E} \cdot d\vec{S} = \frac{Q_{\text{inside}}}{\varepsilon_0} This is the first equation of the Maxwell system, and it says that the electric flux through any closed surface equals the total charge inside the surface divided by the vacuum permittivity. Using Gauss’s theorem, its differential form is: ∇⋅E⃗=ρε0\nabla \cdot \vec{E} = \frac{\rho}{\varepsilon_0} where ρ\rho is the volume charge density.

Gauss’s law for the magnetic field: ∯ΣB⃗⋅dS⃗=0\oiint_\Sigma \vec{B} \cdot d\vec{S} = 0 Its differential form is ∇⋅B⃗=0\nabla \cdot \vec{B} = 0, which says that magnetic monopoles do not exist.

2. The Continuity Equation in Fluid Mechanics

For an incompressible fluid the density ρ\rho is a constant, and the law of conservation of mass gives: ∯Σρv⃗⋅dS⃗=0⇒∇⋅v⃗=0\oiint_\Sigma \rho \vec{v} \cdot d\vec{S} = 0 \Rightarrow \nabla \cdot \vec{v} = 0 For a compressible fluid, the continuity equation is: ∂ρ∂t+∇⋅(ρv⃗)=0\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \vec{v}) = 0

3. Fourier’s Law in Heat Conduction

The heat flux density is q⃗=−k∇T\vec{q} = -k\nabla T, and the conservation of energy gives: ∂∂t(ρcT)=∇⋅(k∇T)\frac{\partial}{\partial t}(\rho c T) = \nabla \cdot (k\nabla T) This is the heat conduction equation.

Worked Examples

Example 1: The Electric Flux of a Point Charge

Verify that the electric field E⃗=q4πε0r3r⃗\vec{E} = \frac{q}{4\pi\varepsilon_0 r^3}\vec{r} produced by a point charge qq has a flux of qε0\frac{q}{\varepsilon_0} through the outer side of any closed surface surrounding the origin.

Gauss's theoremthe electric fielda point chargethe surface completion methoda singularity

Approach:

The electric field has a singularity at the origin, so Gauss’s theorem cannot be applied directly. Use the surface completion method: make a small sphere inside the closed surface, and apply Gauss’s theorem to the region between the two surfaces.

Steps:

  1. At r≠0r \neq 0, ∇⋅E⃗=0\nabla \cdot \vec{E} = 0 (as was verified in the section on harmonic fields).
  2. Let Σ\Sigma be any closed surface (outer side) surrounding the origin, and let Σε\Sigma_\varepsilon be a small sphere of radius ε\varepsilon (inner side, that is, the normal vector pointing towards the origin) lying inside Σ\Sigma.
  3. Apply Gauss’s theorem to the region Ω′\Omega' between Σ\Sigma and Σε\Sigma_\varepsilon: ∯Σ∪ΣεE⃗⋅dS⃗=∭Ω′(∇⋅E⃗)dv=0\oiint_{\Sigma \cup \Sigma_\varepsilon} \vec{E} \cdot d\vec{S} = \iiint_{\Omega'} (\nabla \cdot \vec{E}) dv = 0
  4. Hence ∬ΣE⃗⋅dS⃗=−∬ΣεE⃗⋅dS⃗\iint_\Sigma \vec{E} \cdot d\vec{S} = -\iint_{\Sigma_\varepsilon} \vec{E} \cdot d\vec{S}
  5. On Σε\Sigma_\varepsilon (outer side): E⃗=q4πε0ε2e⃗r\vec{E} = \frac{q}{4\pi\varepsilon_0 \varepsilon^2}\vec{e}_r and dS⃗=e⃗rdSd\vec{S} = \vec{e}_r dS ∬Σε,outerE⃗⋅dS⃗=q4πε0ε2⋅4πε2=qε0\iint_{\Sigma_{\varepsilon,\text{outer}}} \vec{E} \cdot d\vec{S} = \frac{q}{4\pi\varepsilon_0 \varepsilon^2} \cdot 4\pi\varepsilon^2 = \frac{q}{\varepsilon_0}
  6. Since Σε\Sigma_\varepsilon is taken on the inner side, ∬ΣεE⃗⋅dS⃗=−qε0\iint_{\Sigma_\varepsilon} \vec{E} \cdot d\vec{S} = -\frac{q}{\varepsilon_0}
  7. Therefore ∬ΣE⃗⋅dS⃗=−(−qε0)=qε0\iint_\Sigma \vec{E} \cdot d\vec{S} = -(-\frac{q}{\varepsilon_0}) = \frac{q}{\varepsilon_0}

Answer: the electric flux through any closed surface surrounding the point charge is qε0\frac{q}{\varepsilon_0}, independent of the shape of the surface. (This is the verification of Gauss’s law.)

Example 2: The Surface Completion Method for a Surface Integral

Compute ∬Σ(x3 dy dz+y3 dz dx+z3 dx dy)\iint_\Sigma (x^3 \, dy\,dz + y^3 \, dz\,dx + z^3 \, dx\,dy), where Σ\Sigma is the upper side of the upper hemisphere z=R2−x2−y2z = \sqrt{R^2-x^2-y^2}.

Gauss's theoremthe surface completion methodthe upper hemispherespherical coordinates

Approach:

The surface is not closed, so add the disk z=0z=0 on the lower side and use Gauss’s theorem.

Steps:

  1. Add Σ′:z=0, x2+y2≤R2\Sigma': z=0, \, x^2+y^2 \leq R^2, taken on the lower side. Then Σ∪Σ′\Sigma \cup \Sigma' is the closed surface (outer side) bounding the upper half-ball Ω\Omega.
  2. ∇⋅F⃗=3x2+3y2+3z2=3(x2+y2+z2)\nabla \cdot \vec{F} = 3x^2 + 3y^2 + 3z^2 = 3(x^2+y^2+z^2)
  3. By Gauss’s theorem: ∯Σ∪Σ′=∭Ω3(x2+y2+z2)dv=3∫02πdθ∫0π/2sin⁡ϕ dϕ∫0Rr2⋅r2dr=3⋅2π⋅1⋅R55=6πR55\oiint_{\Sigma \cup \Sigma'} = \iiint_\Omega 3(x^2+y^2+z^2) dv = 3\int_0^{2\pi} d\theta \int_0^{\pi/2} \sin\phi \, d\phi \int_0^R r^2 \cdot r^2 dr = 3 \cdot 2\pi \cdot 1 \cdot \frac{R^5}{5} = \frac{6\pi R^5}{5}
  4. On Σ′\Sigma' (lower side): z=0, dz=0z=0, \, dz=0, and the dx dydx\,dy projection is negative ∬Σ′=∬Σ′0 dx dy=0\iint_{\Sigma'} = \iint_{\Sigma'} 0 \, dx\,dy = 0 (because z=0z=0, z3=0z^3=0; and dy dz=dz dx=0dy\,dz=dz\,dx=0)
  5. Hence ∬Σ=6πR55−0=6πR55\iint_\Sigma = \frac{6\pi R^5}{5} - 0 = \frac{6\pi R^5}{5}

Answer: 6πR55\frac{6\pi R^5}{5}


Exercises

Exercise 1

Use Gauss’s theorem to compute ∯Σx dy dz+y dz dx+z dx dy\oiint_\Sigma x \, dy\,dz + y \, dz\,dx + z \, dx\,dy, where Σ\Sigma is the outer side of the sphere x2+y2+z2=R2x^2+y^2+z^2 = R^2.

Gauss's theorema spherethe divergencethe volume

Approach:

The divergence is the constant 3.

Steps:

  1. ∇⋅F⃗=1+1+1=3\nabla \cdot \vec{F} = 1+1+1 = 3
  2. The integral =∭Ω3 dv=3⋅43πR3=4πR3= \iiint_\Omega 3 \, dv = 3 \cdot \frac{4}{3}\pi R^3 = 4\pi R^3

Answer: 4πR34\pi R^3

Exercise 2

Compute ∬Σ(x2+y2) dx dy\iint_\Sigma (x^2+y^2) \, dx\,dy, where Σ\Sigma is the lower side of the part of the cone z=x2+y2z = \sqrt{x^2+y^2} cut off by the plane z=1z=1.

Gauss's theoremthe surface completion methoda conecylindrical coordinates

Approach:

Add the top disk z=1z=1 on the upper side, and use Gauss’s theorem.

Steps:

  1. Add Σ′:z=1, x2+y2≤1\Sigma': z=1, \, x^2+y^2 \leq 1, taken on the upper side.
  2. F⃗=(0,0,x2+y2)\vec{F} = (0, 0, x^2+y^2), and ∇⋅F⃗=0\nabla \cdot \vec{F} = 0
  3. By Gauss’s theorem: ∯Σ∪Σ′=∭Ω0 dv=0\oiint_{\Sigma \cup \Sigma'} = \iiint_\Omega 0 \, dv = 0
  4. Hence ∬Σ=−∬Σ′\iint_\Sigma = -\iint_{\Sigma'}
  5. On Σ′\Sigma' (upper side): ∬Σ′(x2+y2)dx dy=∫02πdθ∫01ρ2⋅ρ dρ=2π⋅14=π2\iint_{\Sigma'} (x^2+y^2) dx\,dy = \int_0^{2\pi} d\theta \int_0^1 \rho^2 \cdot \rho \, d\rho = 2\pi \cdot \frac{1}{4} = \frac{\pi}{2}
  6. Hence ∬Σ=−π2\iint_\Sigma = -\frac{\pi}{2}

Answer: −π2-\frac{\pi}{2}


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
Σ\SigmaClosed surfaceclosed surfaceThe boundary surface of a region of space
Ω\OmegaRegion of spacespatial domainThe region of space in Gauss’s theorem
Σ′\Sigma'Added surfaceadded surfaceThe surface added in the surface completion method
∇⋅F⃗\nabla \cdot \vec{F}DivergencedivergenceThe divergence of the vector field
E⃗\vec{E}Electric field strengthelectric fieldThe vector of the electric field strength
B⃗\vec{B}Magnetic flux densitymagnetic fieldThe vector of the magnetic flux density
ρ\rhoCharge density / densitycharge density / densityThe volume charge density or the fluid density
ε0\varepsilon_0Vacuum permittivityvacuum permittivityThe permittivity of vacuum
ΔV\Delta VSmall volumesmall volumeThe volume of a small region
ΔΣ\Delta\SigmaSmall boundary surfacesmall boundary surfaceThe boundary of a small region

Key Terms

English termPronunciationNote
Gauss’s theorem / divergence theorem/ɡaʊsɪz ˈθɪərəm/ /daɪˈvɜːrdʒəns ˈθɪərəm/the relation between the integral over a closed surface and a triple integral
divergence theorem/daɪˈvɜːrdʒəns ˈθɪərəm/that is, Gauss’s theorem
Ostrogradsky’s theorem/ˌɒstroʊˈɡrædski z ˈθɪərəm/the Russian name of Gauss’s theorem
flux/flʌks/the amount of a vector field passing through a surface
outward normal/ˈaʊtwərd ˈnɔːrməl/the side of a closed surface whose normal points outwards
surface completion method/ˈsɜːrfɪs kəmˈpliːʃən ˈmɛθəd/the method of completing a non-closed surface into a closed one
Gauss’s law/ɡaʊsɪz lɔː/the flux law of electromagnetism
continuity equation/ˌkɒntɪˈnjuːəti ɪˈkweɪʒən/the differential form of the conservation of mass
magnetic monopole/mæɡˈnɛtɪk ˈmɒnoʊpoʊl/a single magnetic pole (which does not exist)
point source/pɔɪnt sɔːrs/a source concentrated at a single point

Found an issue with this content?

Tell us what could be improved.