Ma · Mathematics

How to Verify the Divergence Theorem in the First Octant

Published By the 9to5Science editorial team

At a glance

  1. 1. Specify the region

    Identify the vector field and every face of the closed surface; the first octant alone does not determine a region.

  2. 2. Compute divergence

    Integrate the divergence throughout the volume, using bounds that describe the region.

  3. 3. Add face fluxes

    Use outward normals and include flux through coordinate planes as well as any slanted face.

  4. 4. Compare results

    The total outward flux must equal the volume integral of the divergence.

Advertisement

To verify Gauss’s divergence theorem, you need both a vector field and a bounded solid region with a specified boundary. Saying “in the first octant” only tells you that x,y,z≥0x,y,z\geq 0; it does not say where a bounded region ends or which field to use. The method below uses a common first-octant region and works through both sides of the theorem.

The theorem and the missing information

For a vector field F\mathbf F whose first partial derivatives are continuous on an open set containing a bounded solid VV with piecewise-smooth boundary SS, the divergence theorem states

∬SF⋅n dS=∭V∇⋅F dV,\iint_S \mathbf F\cdot\mathbf n\,dS = \iiint_V \nabla\cdot\mathbf F\,dV,

where n\mathbf n is the outward unit normal. The left side is the total outward flux through the entire closed boundary, not just its slanted face.

A frequently used first-octant solid is the tetrahedron

V={(x,y,z):x≥0, y≥0, z≥0, x+y+z≤1}.V=\{(x,y,z):x\geq 0,\ y\geq 0,\ z\geq 0,\ x+y+z\leq 1\}.

Its boundary consists of the coordinate-plane faces and the triangular face x+y+z=1x+y+z=1. The worked example uses F=(x2,y2,z2)\mathbf F=(x^2,y^2,z^2). If a different field or region is intended, the same steps apply, but the numerical result will generally differ.

Worked example: compare the two sides

The divergence of the field is

∇⋅F=2x+2y+2z.\nabla\cdot\mathbf F=2x+2y+2z.

By symmetry, the integrals of xx, yy, and zz over this tetrahedron are equal. For example,

∭Vx dV=∫01∫01−x∫01−x−yx dz dy dx=12∫01x(1−x)2 dx=124.\begin{aligned} \iiint_V x\,dV &=\int_0^1\int_0^{1-x}\int_0^{1-x-y}x\,dz\,dy\,dx\\ &=\frac12\int_0^1 x(1-x)^2\,dx =\frac1{24}. \end{aligned}

Thus each coordinate has volume integral 1/241/24, so

∭V∇⋅F dV=2(124+124+124)=14.\iiint_V \nabla\cdot\mathbf F\,dV =2\left(\frac1{24}+\frac1{24}+\frac1{24}\right) =\frac14.

Now calculate the boundary flux. On the face x=0x=0, the outward normal is (−1,0,0)(-1,0,0), and F⋅n=−x2=0\mathbf F\cdot\mathbf n=-x^2=0 there. The flux is also zero on y=0y=0 and z=0z=0, since the corresponding component of F\mathbf F vanishes on each face.

On the slanted face, write z=1−x−yz=1-x-y with x≥0x\geq0, y≥0y\geq0, and x+y≤1x+y\leq1. Its outward unit normal is (1,1,1)/3(1,1,1)/\sqrt3, and its area element is dS=3 dx dydS=\sqrt3\,dx\,dy. Therefore the flux element simplifies to

F⋅n dS=(x2+y2+z2) dx dy.\mathbf F\cdot\mathbf n\,dS =(x^2+y^2+z^2)\,dx\,dy.

The slanted-face flux is

∬x+y+z=1F⋅n dS=∫01∫01−x(x2+y2+(1−x−y)2) dy dx=112+112+112=14.\begin{aligned} \iint_{x+y+z=1}\mathbf F\cdot\mathbf n\,dS &=\int_0^1\int_0^{1-x}\bigl(x^2+y^2+(1-x-y)^2\bigr)\,dy\,dx\\ &=\frac1{12}+\frac1{12}+\frac1{12} =\frac14. \end{aligned}

The three terms have equal integrals by symmetry; for instance, the x2x^2 term is ∫01x2(1−x) dx=1/12\int_0^1 x^2(1-x)\,dx=1/12. The total boundary flux is 1/41/4, matching the divergence integral. This verifies the theorem for this field and region.

Common mistakes

  • Treating the first octant as a bounded solid. It is unbounded. A plane, sphere, or other surface must close off the region before the theorem applies to a finite-volume example.
  • Omitting coordinate-plane faces. A face may contribute zero flux, but you should check it rather than assume it is absent.
  • Using an inward normal. The theorem uses outward normals. On the slanted face here, the outward direction points toward increasing x+y+zx+y+z.
  • Mixing up the unit normal and area element. On x+y+z=1x+y+z=1, the unit normal contributes a factor 1/31/\sqrt3, while the surface element contributes 3\sqrt3. Both are needed.
  • Comparing only one face with the volume integral. The volume integral equals the sum of fluxes across all boundary faces, not usually the flux across a single face.

For a specific verification, write down the vector field and the complete boundary of the region first. Then calculate the volume integral and each outward face flux using consistent bounds.

References

  1. OpenStax, Calculus Volume 3

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.