Steady isothermal flow of an ideal gas
So I have a steady isothermal flow of an ideal gas through a smooth duct (no frictional losses) and need to compute the mass flow rate (per unit area) as a function of pressures at any two different arbitrary points, say 1 and 2. I have the following momentum equation in differential form:
where is the gas the flow velocity and is static pressure. The mass flow rate per unit cross section , can be calculated by integrating this equation between points 1 and 2. This is where it gets confusing. I do the integration by two ways:
1) Use the ideal gas equation right away and restructure the momentum equation:
, integrate it between points 1 and 2 and arrive at:
Since the flow is steady, I can write , again use the ideal gas law to write density in terms of gas pressure and finally arrive at the mass flow rate expression:
2) In another way of integrating (which is mathematically correct), I start by multiplying the original momentum equation by to get
write , integrate between points 1 and 2 to arrive at
Using the ideal gas law the velocity ratio can be written as the pressure ratio to finally arrive at the mass flow rate equation
Both the expressions are dimensionaly sound and I know that the second expression is the correct one. My question is, whats wrong with first expression.