Derive equation of continuity for steady flow of incompressible liquid.

Let the liquid enter at A with velocity 'v1' whose area of cross-section is 'a1' and exit from end B with velocity 'v2' whose area of cross-section is 'a2'.
Let 'ρ1' and 'ρ2' be the densities of liquid at ends A and B respectively.
Now the volume of liquid that enters in one second at end A is given by,
V1 = a1 v1
Mass of liquid entering per second at end A is,
m1 = a1v1ρ1
Similarly the mass of liquid leaving per second at end B is,
m2 = a2v2ρ2
If there is no source or sink of liquid, then mass of liquid that enters at end A in one second is equal to the mass of liquid that leave in one second.
i.e. a1 v1 ρ1 = a2 v2 ρ2 ... (1)
If the liquid is incompressible, then
ρ1 = ρ2.
Therefore equation (1) reduces to
a1v1= a2v2 ....(2)
Equation (2) is called the equation of continuity.