Finding something worth knowing…

Science

Count every faucet and drain inside a box to know its total outflow

Picture a closed surface floating in a tank of water. The divergence theorem, also named after Gauss and Ostrogradsky, says the net amount of water crossing that surface equals the sum of all the sources inside, minus the drains. It is a bookkeeping rule behind conservation laws across physics.

Water makes the idea concrete. A flowing liquid has a speed and direction at every point, forming a vector field. If the fluid cannot be compressed and nothing inside the surface adds or removes water, whatever flows in at some places must flow out elsewhere, so the net outflow is zero. Push a pipe inside that pumps water in, and the extra pressure drives an outward flow in all directions, equal to the pipe's delivery rate. A drain reverses the picture, pulling liquid inward. With many pipes, the net outflow is simply the total of the sources minus the total of the drains.

Mathematically, each source's strength is the divergence of the velocity field at that point. Integrating the divergence over the whole enclosed volume therefore equals the flux, the surface integral of the field across the boundary. That is the theorem: a statement about the inside of a region traded for one about its skin.

The standard argument slices the volume into pieces. Any internal wall is shared by two neighbouring pieces, and what leaves one through that wall enters the other, so those contributions cancel. Only the outer skin survives. Keep slicing into ever tinier cells and the flux out of each one, divided by its volume, approaches the divergence at that spot, while the sum becomes a volume integral. Because this reasoning never mentions coordinates, it also shows that divergence does not depend on how the axes are drawn, provided the field has continuous derivatives.

Physicists and engineers lean on the result above all in electrostatics and fluid dynamics, usually in three dimensions, though it works in any number. Reduced to a single dimension it becomes the fundamental theorem of calculus, and in the plane it is equivalent to Green's theorem.

Source: Divergence theorem

Related

More in Science · All topics