Fluid Dynamics – How to Handle Different Densities in the Equation of Continuity

aerodynamicsconservation-lawsdensityfluid dynamics

I'm studying the equation of Continuity from the book Intro to Flight by J. Anderson and there it mentions that

$$\rho_1A_1V_1 = \rho_2A_2V_2$$

If the fluid is assumed to me ideal why does the formula mention different densities at point A and point B? Shouldn't the density of the fluid remain constant throughout, therefore giving the formula:
$$A_1V_1=A_2V_2$$

Best Answer

$\rho_1A_1V_1=\rho_2A_2V_2$ is used when the fluid is compressible, i.e., density at different points of fluid can also be different. In contrast, $A_1V_1=A_2V_2$ is used when the fluid is incompressible, i.e., its density is constant for every point in the fluid.