I'm following this derivation from the NASA website explaining the design of converging/diverging nozzles in rocket design, specifically the derivation in image form at the top of the page:
https://www.grc.nasa.gov/www/k-12/airplane/nozzled.html
In the end we arrive at an identity which states that when the Mach number is below 1, increase in area causes velocity to decrease, and the Mach number is over 1, increase in area cause flow velocity to increase.
One of the identities used in the derivation is the 1D conservation of momentum, which is derived here:
https://www.grc.nasa.gov/www/BGH/conmo.html
The derivation of the conservation of momentum assumes that the flow is incompressible, and therefore has a constant density. But how can it be therefore used to derive the area/velocity relationship (first link), which clearly needs to hold for both compressible and incompressible flows? It is even stated in the article:
For subsonic (incompressible) flows, the density remains fairly constant, so the increase in area produces only a change in velocity. But in supersonic flows, there are two changes; the velocity and the density.
I understand that this derivation is very simplified; but using an identity that seems to hold only for incompressible flows for a derivation dealing with both incompressible and compressible flows seems wrong.
EDIT: An additional question came into my mind: In the conservation of momentum derivation, why is it reasonable to also assume that the area is constant as well? This also seems to contradict everything in the nozzle design page as well as the fact that the pressure and velocity are changing (how can we assume that pressure and velocity change but the area does not?)