Gauss's Theorem (the Divergence Theorem)

The Significance of Gauss’s Theorem

Gauss’s theorem, also called the divergence theorem, establishes the connection between the triple integral over a closed region of space and the surface integral of the second kind over the closed surface bounding the region. It is the generalisation of Green’s theorem to three dimensions, linking the “accumulation of the divergence inside the region” with the “flux across the boundary”, and it is one of the core theorems of vector analysis.

Gauss’s Theorem

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

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

Expressed with the Divergence

Introducing the notion of the divergence: ∇⋅F⃗=∂P∂x+∂Q∂y+∂R∂z\nabla \cdot \vec{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}, Gauss’s theorem can be written concisely as:

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

That is: the flux of the vector field through the outer side of the closed surface = the triple integral of the divergence over the closed region.

The Physical Meaning of Gauss’s Theorem

The Applications of Gauss’s Theorem

Application 1: Simplifying the Integral over a Closed Surface

When it is difficult to compute the surface integral of the second kind directly over a closed surface, you can use Gauss’s theorem to convert it into a triple integral. This is especially effective when the divergence ∇⋅F⃗\nabla \cdot \vec{F} is very simple (a constant, or zero), for then the triple integral is usually easier.

Application 2: The Surface Completion Method for a Non-Closed Surface

If the surface Σ\Sigma is not closed, you can add a surface Σ1\Sigma_1 so that Σ+Σ1\Sigma + \Sigma_1 becomes a closed surface, and then apply Gauss’s theorem:

∬ΣF⃗⋅dS⃗=∯Σ+Σ1F⃗⋅dS⃗−∬Σ1F⃗⋅dS⃗=∭Ω(∇⋅F⃗)dv−∬Σ1F⃗⋅dS⃗\iint_\Sigma \vec{F} \cdot d\vec{S} = \oiint_{\Sigma+\Sigma_1} \vec{F} \cdot d\vec{S} - \iint_{\Sigma_1} \vec{F} \cdot d\vec{S} = \iiint_\Omega (\nabla \cdot \vec{F}) dv - \iint_{\Sigma_1} \vec{F} \cdot d\vec{S}

where the side of Σ1\Sigma_1 has to be chosen so that Σ+Σ1\Sigma + \Sigma_1 is taken on the outer side (or the inner side, consistently).

Application 3: Fields with Zero Divergence

If the divergence of the vector field F⃗\vec{F} vanishes (∇⋅F⃗=0\nabla \cdot \vec{F} = 0, that is, F⃗\vec{F} is a solenoidal field or a tube field), then the flux through any closed surface is zero:

∯ΣF⃗⋅dS⃗=0\oiint_\Sigma \vec{F} \cdot d\vec{S} = 0

This means that for a solenoidal field the flux through any two surfaces with the same boundary curve is equal (it depends only on the boundary, not on the shape of the surface).

Worked Examples

Example 1: The Flux through a Closed Surface

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=a2x^2+y^2+z^2 = a^2.

Gauss's theorema spherethe outer sidefluxthe divergence

Approach:

For the outer side of a closed surface, use Gauss’s theorem to convert it into a triple integral. The divergence is the constant 3.

Steps:

  1. P=x, Q=y, R=zP = x, \, Q = y, \, R = z
  2. ∂P∂x=1, ∂Q∂y=1, ∂R∂z=1\frac{\partial P}{\partial x} = 1, \, \frac{\partial Q}{\partial y} = 1, \, \frac{\partial R}{\partial z} = 1
  3. The divergence ∇⋅F⃗=3\nabla \cdot \vec{F} = 3
  4. By Gauss’s theorem: ∯ΣF⃗⋅dS⃗=∭Ω3 dv=3×the volume of the sphere=3×43πa3=4πa3\oiint_\Sigma \vec{F} \cdot d\vec{S} = \iiint_\Omega 3 \, dv = 3 \times \text{the volume of the sphere} = 3 \times \frac{4}{3}\pi a^3 = 4\pi a^3

Answer: 4πa34\pi a^3

Example 2: The Surface Completion Method

Compute ∬Σ(x2cos⁡α+y2cos⁡β+z2cos⁡γ) dS\iint_\Sigma (x^2 \cos\alpha + y^2 \cos\beta + z^2 \cos\gamma) \, dS, where Σ\Sigma is the outer side (the lower side) of the part of the cone x2+y2=z2x^2+y^2 = z^2 between z=0z=0 and z=hz=h (h>0h>0).

Gauss's theoremthe surface completion methoda conethe surface integral of the first kindthe outer side

Approach:

This is in the form of the surface integral of the first kind, but the integrand is F⃗⋅n⃗\vec{F} \cdot \vec{n}, which is equivalent to the surface integral of the second kind. The cone is not a closed surface, so add the surface z=hz=h.

Steps:

  1. Add the surface Σ1:z=h, x2+y2≤h2\Sigma_1: z = h, \, x^2+y^2 \leq h^2, taken on the upper side. Then Σ+Σ1\Sigma + \Sigma_1 is a closed surface taken on the outer side.
  2. F⃗=(x2,y2,z2)\vec{F} = (x^2, y^2, z^2), and the divergence ∇⋅F⃗=2x+2y+2z\nabla \cdot \vec{F} = 2x+2y+2z
  3. By Gauss’s theorem: ∯Σ+Σ1F⃗⋅dS⃗=∭Ω2(x+y+z)dv\oiint_{\Sigma+\Sigma_1} \vec{F} \cdot d\vec{S} = \iiint_\Omega 2(x+y+z) dv
  4. By symmetry, ∭Ωx dv=0\iiint_\Omega x \, dv = 0 and ∭Ωy dv=0\iiint_\Omega y \, dv = 0
  5. Computing ∭Ωz dv\iiint_\Omega z \, dv in cylindrical coordinates: Ω:0≤θ≤2π, 0≤ρ≤h, ρ≤z≤h\Omega: 0 \leq \theta \leq 2\pi, \, 0 \leq \rho \leq h, \, \rho \leq z \leq h ∭Ωz dv=∫02πdθ∫0hρ dρ∫ρhz dz=2π∫0hρ⋅12(h2−ρ2)dρ=π∫0h(h2ρ−ρ3)dρ=π(h42−h44)=πh44\iiint_\Omega z \, dv = \int_0^{2\pi} d\theta \int_0^h \rho \, d\rho \int_\rho^h z \, dz = 2\pi \int_0^h \rho \cdot \frac{1}{2}(h^2-\rho^2) d\rho = \pi \int_0^h (h^2\rho - \rho^3) d\rho = \pi(\frac{h^4}{2} - \frac{h^4}{4}) = \frac{\pi h^4}{4}
  6. ∯Σ+Σ1=2×πh44=πh42\oiint_{\Sigma+\Sigma_1} = 2 \times \frac{\pi h^4}{4} = \frac{\pi h^4}{2}
  7. Computing the integral over the added surface Σ1\Sigma_1: on z=hz=h, upper side, F⃗⋅dS⃗=z2dx dy=h2dx dy\vec{F} \cdot d\vec{S} = z^2 dx\,dy = h^2 dx\,dy ∬Σ1F⃗⋅dS⃗=∬x2+y2≤h2h2dx dy=h2⋅πh2=πh4\iint_{\Sigma_1} \vec{F} \cdot d\vec{S} = \iint_{x^2+y^2 \leq h^2} h^2 dx\,dy = h^2 \cdot \pi h^2 = \pi h^4
  8. Therefore ∬Σ=∯Σ+Σ1−∬Σ1=πh42−πh4=−πh42\iint_\Sigma = \oiint_{\Sigma+\Sigma_1} - \iint_{\Sigma_1} = \frac{\pi h^4}{2} - \pi h^4 = -\frac{\pi h^4}{2}

Answer: −πh42-\frac{\pi h^4}{2}

Example 3: A Field with Zero Divergence

Prove that the vector field F⃗=r⃗r3\vec{F} = \frac{\vec{r}}{r^3} (where r⃗=(x,y,z)\vec{r} = (x,y,z) and r=x2+y2+z2r = \sqrt{x^2+y^2+z^2}) has zero divergence in the region away from the origin, and compute the flux through the outer side of any closed surface surrounding the origin.

Gauss's theoremzero divergencea point sourcean electric fielda singularity

Approach:

Compute the divergence, noting that the origin is a singular point. For a closed surface surrounding the origin, cut out a small sphere and apply Gauss’s theorem to the region in between.

Steps:

  1. F⃗=(xr3,yr3,zr3)\vec{F} = (\frac{x}{r^3}, \frac{y}{r^3}, \frac{z}{r^3})
  2. ∂∂x(xr3)=1r3−3x2r5\frac{\partial}{\partial x}(\frac{x}{r^3}) = \frac{1}{r^3} - \frac{3x^2}{r^5}
  3. Similarly ∂∂y(yr3)=1r3−3y2r5\frac{\partial}{\partial y}(\frac{y}{r^3}) = \frac{1}{r^3} - \frac{3y^2}{r^5} and ∂∂z(zr3)=1r3−3z2r5\frac{\partial}{\partial z}(\frac{z}{r^3}) = \frac{1}{r^3} - \frac{3z^2}{r^5}
  4. The divergence =3r3−3(x2+y2+z2)r5=3r3−3r2r5=0= \frac{3}{r^3} - \frac{3(x^2+y^2+z^2)}{r^5} = \frac{3}{r^3} - \frac{3r^2}{r^5} = 0 (r≠0r \neq 0)
  5. For a closed surface Σ\Sigma surrounding the origin, make a small sphere Σε:x2+y2+z2=ε2\Sigma_\varepsilon: x^2+y^2+z^2 = \varepsilon^2 (taken on the inner side, that is, pointing towards the origin), and apply Gauss’s theorem to the region between Σ\Sigma and Σε\Sigma_\varepsilon: ∯Σ+Σε−F⃗⋅dS⃗=∭Ω0 dv=0\oiint_{\Sigma + \Sigma_\varepsilon^-} \vec{F} \cdot d\vec{S} = \iiint_\Omega 0 \, dv = 0
  6. Therefore ∯ΣF⃗⋅dS⃗=−∯Σε−F⃗⋅dS⃗=∯Σε+F⃗⋅dS⃗\oiint_\Sigma \vec{F} \cdot d\vec{S} = -\oiint_{\Sigma_\varepsilon^-} \vec{F} \cdot d\vec{S} = \oiint_{\Sigma_\varepsilon^+} \vec{F} \cdot d\vec{S} (where Σε+\Sigma_\varepsilon^+ is the outer side)
  7. On the small sphere r=εr = \varepsilon, F⃗=r⃗ε3\vec{F} = \frac{\vec{r}}{\varepsilon^3} and the normal vector n⃗=r⃗ε\vec{n} = \frac{\vec{r}}{\varepsilon} F⃗⋅n⃗=r⃗⋅r⃗ε4=ε2ε4=1ε2\vec{F} \cdot \vec{n} = \frac{\vec{r} \cdot \vec{r}}{\varepsilon^4} = \frac{\varepsilon^2}{\varepsilon^4} = \frac{1}{\varepsilon^2}
  8. The flux =∬Σε1ε2dS=1ε2⋅4πε2=4π= \iint_{\Sigma_\varepsilon} \frac{1}{\varepsilon^2} dS = \frac{1}{\varepsilon^2} \cdot 4\pi\varepsilon^2 = 4\pi

Answer: the flux through the outer side of any closed surface surrounding the origin is 4π4\pi (independent of the shape of the surface); this is Gauss’s law for the electrostatic field.


Exercises

Exercise 1

Compute ∯Σ(x−y) dy dz+(y−z) dz dx+(z−x) dx dy\oiint_\Sigma (x-y) \, dy\,dz + (y-z) \, dz\,dx + (z-x) \, dx\,dy, where Σ\Sigma is the outer side of the surface of the cube 0≤x≤1, 0≤y≤1, 0≤z≤10 \leq x \leq 1, \, 0 \leq y \leq 1, \, 0 \leq z \leq 1.

Gauss's theorema cubethe outer sidethe divergence

Approach:

For the outer side of a closed surface, use Gauss’s theorem. The divergence is the constant 3.

Steps:

  1. P=x−y, Q=y−z, R=z−xP = x-y, \, Q = y-z, \, R = z-x
  2. ∂P∂x=1, ∂Q∂y=1, ∂R∂z=1\frac{\partial P}{\partial x} = 1, \, \frac{\partial Q}{\partial y} = 1, \, \frac{\partial R}{\partial z} = 1, and the divergence =3= 3
  3. By Gauss’s theorem: =∭Ω3 dv=3×1=3= \iiint_\Omega 3 \, dv = 3 \times 1 = 3

Answer: 33

Exercise 2

Compute ∬Σxz2 dy dz+(x2y−z3) dz dx+(2xy+y2z) dx dy\iint_\Sigma xz^2 \, dy\,dz + (x^2y - z^3) \, dz\,dx + (2xy + y^2z) \, dx\,dy, where Σ\Sigma is the upper side of the upper hemisphere z=a2−x2−y2z = \sqrt{a^2-x^2-y^2}.

Gauss's theoremthe surface completion methodthe upper hemispherethe upper side

Approach:

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

Steps:

  1. Add the surface Σ1:z=0, x2+y2≤a2\Sigma_1: z=0, \, x^2+y^2 \leq a^2, taken on the lower side. Then Σ+Σ1\Sigma+\Sigma_1 is the outer side of a closed surface.
  2. P=xz2, Q=x2y−z3, R=2xy+y2zP = xz^2, \, Q = x^2y-z^3, \, R = 2xy+y^2z
  3. The divergence =z2+x2+y2= z^2 + x^2 + y^2
  4. By Gauss’s theorem: ∯Σ+Σ1=∭Ω(x2+y2+z2)dv=∫02πdθ∫0π/2sin⁡ϕ dϕ∫0ar2⋅r2dr=2π⋅1⋅a55=2πa55\oiint_{\Sigma+\Sigma_1} = \iiint_\Omega (x^2+y^2+z^2) dv = \int_0^{2\pi} d\theta \int_0^{\pi/2} \sin\phi \, d\phi \int_0^a r^2 \cdot r^2 dr = 2\pi \cdot 1 \cdot \frac{a^5}{5} = \frac{2\pi a^5}{5}
  5. On the added surface z=0z=0, lower side, F⃗⋅dS⃗=R dx dy=2xy dx dy\vec{F} \cdot d\vec{S} = R \, dx\,dy = 2xy \, dx\,dy (the lower side takes the minus sign) ∬Σ1=−∬Dxy2xy dx dy=0\iint_{\Sigma_1} = -\iint_{D_{xy}} 2xy \, dx\,dy = 0 (by symmetry)
  6. Therefore ∬Σ=2πa55−0=2πa55\iint_\Sigma = \frac{2\pi a^5}{5} - 0 = \frac{2\pi a^5}{5}

Answer: 2πa55\frac{2\pi a^5}{5}


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∯Σ\oiint_\SigmaClosed surface integralclosed surface integralThe integral over a closed surface
∇⋅F⃗\nabla \cdot \vec{F}DivergencedivergenceThe divergence of the vector field, ∂P∂x+∂Q∂y+∂R∂z\frac{\partial P}{\partial x}+\frac{\partial Q}{\partial y}+\frac{\partial R}{\partial z}
Ω\OmegaRegion of spacespatial domainThe region of space bounded by the closed surface
Σ\SigmaBoundary surfaceboundary surfaceThe closed surface bounding the region Ω\Omega
Σ1\Sigma_1Added surfaceadded surfaceThe surface added in the surface completion method
r⃗\vec{r}Position vectorposition vectorThe vector from the origin to the point (x,y,z)(x,y,z)
rrDistancedistanceThe distance from the point to the origin, r=∥r⃗∥r=\|\vec{r}\|
ε\varepsilonRadiusepsilonThe radius of the small sphere cut out around a singularity

Key Terms

English termPronunciationNote
Gauss’s theorem/ɡaʊsɪz ˈθɪərəm/the divergence theorem, the relation between a triple integral and the integral over the boundary surface
divergence theorem/daɪˈvɜːrdʒəns ˈθɪərəm/that is, Gauss’s theorem
divergence/daɪˈvɜːrdʒəns/the degree to which the vector field spreads out
flux/flʌks/the amount of a vector field passing through a surface
source/sɔːrs/a point at which the divergence is positive; the vector field spreads outwards from it
sink/sɪŋk/a point at which the divergence is negative; the vector field converges inwards towards it
surface completion method/ˈsɜːrfɪs kəmˈpliːʃən ˈmɛθəd/adding a surface so that the surface becomes closed, in order to apply Gauss’s theorem
source-free field/sɔːrs friː fiːld/a vector field with zero divergence, also called a tube field
solenoidal field/səˈlɛnɔɪdəl fiːld/that is, a solenoidal field, one with zero divergence
singularity/ˌsɪŋɡjəˈlærəti/a point at which the function is undefined or not smooth (such as the origin)

Found an issue with this content?

Tell us what could be improved.