Course contentsShow
← Mathematics
Lesson 2039 of 3,12142. Vector CalculusFree lesson

Verifying the Divergence Theorem on a Cube

Computing both sides of the divergence theorem for a vector field over a rectangular box.

Verifying the Divergence Theorem on a Cube

What you'll learn: You'll see how to verify the Divergence Theorem by explicitly computing both the triple integral of divergence and the surface integral of flux for a vector field over a rectangular box.

Why Verify on a Cube?

The Divergence Theorem states that for a closed surface SS enclosing a solid region EE:

∬SF⋅dS=∭Ediv(F) dV\iint_S \mathbf{F} \cdot d\mathbf{S} = \iiint_E \text{div}(\mathbf{F}) \, dV

A cube (or rectangular box) is the perfect testing ground because all six faces are flat and aligned with coordinate planes, making both sides of the equation straightforward to compute.

The Process

Step 1: Compute the left side (flux through the surface)

  • Break the cube into six flat faces
  • For each face, the outward normal is constant (like n=⟨1,0,0⟩\mathbf{n} = \langle 1, 0, 0 \rangle on the right face)
  • Evaluate F⋅n\mathbf{F} \cdot \mathbf{n} on each face and integrate
  • Sum all six contributions

Step 2: Compute the right side (volume integral)

  • Calculate div(F)=∂P∂x+∂Q∂y+∂R∂z\text{div}(\mathbf{F}) = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}
  • Set up the triple integral over the box's volume
  • Integrate in Cartesian coordinates (usually straightforward for a box)

Step 3: Verify they're equal

  • If the theorem holds, both calculations yield the same number

Example Insight

For F=⟨x,y,z⟩\mathbf{F} = \langle x, y, z \rangle over the unit cube [0,1]3[0,1]^3:

  • div(F)=1+1+1=3\text{div}(\mathbf{F}) = 1 + 1 + 1 = 3, so the volume integral gives 3⋅1=33 \cdot 1 = 3
  • Each pair of opposite faces contributes flux that adds up to a total of 33

Key Takeaway: Verifying the Divergence Theorem on a cube means computing both the total outward flux through all six faces and the volume integral of divergence, then confirming they match—this concrete calculation reinforces the deep connection between how a field behaves inside a region and how it flows across its boundary.