Understanding the Divergence Theorem, Also Called Gauss’s Theorem
I don’t believe in rigid mathematics nor I accept these wild misconceptions about engineers being unable to do real math and they’re only deemed to apply it, as it is! So! What is the divergence theorem?
It is the concept of calculating a flux entering a region that constitutes a volume or a surface. A region is a volumetric body in 3D cases or a surface body in 2D cases. So why do we care about a flux going through a region of space? Well, think about the conservation of mass flow rate in a pipe. Think about the Navier Stokes equations and heat conduction! Fluxes are everywhere, they can be magnetic, fluid or in the form of heat.
What is a Flux in mathematical terms?
It is a vector with 3 components (x,y,z),for example:
(1)
Vector is dependent on
and is horizontal at any points x in space

magnitude is increasing horizontally in the
plane.
What Does a Flux Have to Do With Gauss’s Theorem?
=
1 2
Let’s dissect each element:
1: The first element is the summation of the divergence of multiplied by a differential volume (divide the region into Infinitesimal small volumes)
1:
2: The second element is the summation of, multiplied by a unit vector
normal to the faces of the volumetric region.

2:
- The volumetric region in figure 1 and 2 is a cube and it has a volume of
and a surface area (each face)
- I divided the cube into 27 small cubes (figure 3).

is equal to (0.3333 *0.3333*0.3333) = 0.0370259
=3
1: = 3 . 0.03702 . 27 = 3
Let’s see if element 1 is really equal to element 2.
only when
and
are not perpendicular, hence,
matter only at the western and eastern faces.

Western face:
| on the Western face, x = 1, so
Eastern face: | on the Eastern face, x = 2 so
There are 9 faces on the western surface and 9 faces on the eastern surface, so
Conclusion
What I did above is proving the Gauss’s theorem by manually doing the calculations, but you may ask, how can you relate this to a real-life problem? Well this can be applied to the Momentum equation or Continuity equation in fluids, Heat transfer and many other physical applications.