If is a region in space bounded by a closed oriented surface and , the velocity field of a fluid flowing through with being its density at point and time and then the continuity equation states that

When applied to the Divergence Theorem the continuity equation is a statement about conservation of mass by claiming that the net decrease of the fluid in region is accounted for by the mass transported across the surface

Derivation

The instantaneous rate at which mass leaves across is

Radius of Cylinder going to 0 causes