Think about water in a tub. 
Imagine water in a tub.
If you add up all the sources and sinks, you find the total flow. This flow goes through the walls of the tub. 
Imagine water flowing in a tank.
If you add up every source and sink, you get a total. This total tells you the net flux. Flux is just a word for flow through a surface. 
This rule works in many ways. It works for two dimensions or three dimensions. It even works for more! 
Imagine you are watching water flow inside a large tank. 
To understand how this works, think about the movement of a liquid. A moving liquid has a speed and a direction at every point. This collection of movements is called a vector field. If you have a closed volume of liquid, the flux is the rate at which the liquid crosses the surface. If there are no sources or sinks inside, the liquid just moves around. The amount flowing in equals the amount flowing out. In this case, the net flux is zero. 
This theorem is known by a few different names. It is often called Gauss's theorem. Some people also call it Ostrogradsky's theorem. It is a very important tool for people who study physics and engineering. They use it to understand things like fluid dynamics or electrostatics. While it is often used in three-dimensional space, it works in many dimensions. In two dimensions, it is the same as Green's theorem. In one dimension, it is the same as the fundamental theorem of calculus. 
We can prove how this works by splitting a large volume into smaller parts. 
This math rule is useful because it follows conservation laws. These laws state that the total amount of sources and sinks must match the flow across the boundary. If you know how much is being added or removed inside, you know the flow outside. This helps engineers predict how liquids or electricity will behave. It turns a hard problem about a whole volume into a simpler problem about a surface. By using this theorem, scientists can solve many puzzles about the moving world around us.
The divergence theorem is a fundamental principle in vector calculus. It connects what happens inside a volume to what happens on its boundary. This theorem is also known as Gauss's theorem or Ostrogradsky's theorem. It relates the flux of a vector field through a closed surface to the divergence within the enclosed region. In simple terms, it says the sum of all sources and sinks inside a region equals the net flow through its surface.
To understand the mechanism, we can look at a vector field through the lens of fluid dynamics. A moving liquid has a velocity at every point. This velocity has both a speed and a specific direction. When we map these velocities, we create a vector field. 
However, the presence of sources or sinks changes this balance. A source, such as a pipe, introduces liquid into the volume. This adds pressure and creates an outward flow in all directions. The flux through the surface $S$ will equal the rate of flow from that pipe. Conversely, a sink acts like a drain that removes liquid. This creates an inward velocity throughout the fluid. In this case, the inward flux through the surface equals the rate at which the sink removes liquid. 
Mathematically, the theorem can be expressed with a specific formula. We assume a volume $V$ in $n$-dimensional space. For most physics applications, we work in three dimensions. The volume must be compact and have a piecewise smooth boundary, $S$. If we have a continuously differentiable vector field, $F$, the theorem states that the volume integral of the divergence of $F$ equals the surface integral of $F$ over $S$.
We can prove this relationship by partitioning a large volume into smaller sub-volumes. 

This theorem is vital for understanding conservation laws in science. A conservation law states that the total amount of sources and sinks must match the net flow across a boundary. This makes the divergence theorem a primary tool in several fields. In electrostatics, it helps describe how electric charges create fields. In fluid dynamics, it helps engineers model how gases and liquids move through pipes or around objects. It allows scientists to turn complex three-dimensional volume problems into simpler two-dimensional surface problems.
Interestingly, the divergence theorem is part of a larger family of mathematical ideas. It generalizes across different dimensions. In a two-dimensional setting, the theorem is equivalent to Green's theorem. In a one-dimensional setting, it is equivalent to the fundamental theorem of calculus. This connection shows how different branches of mathematics are deeply linked. Whether studying a simple line or a complex three-dimensional field, the core logic of how things change and flow remains consistent.
🖼️ Images & Media (7)
More to explore
✨ What else?
Related topics you might enjoy
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.