# Variation of pressure of a gas in any accelerating container Like the picture shown above the container contains a liquid with density 'rho' and the container is given an acceleration towards right and so by considering that any liquid section is also having the same acceleration as that of the container we can find out the pressure variation by using Newton's laws of motin . But if there were a gas instead of liquid would its pressure also vary like that of the liquid? And if it varies then can we find out the variation of pressure inside the gas like the same way we have found out in case of the liquid? Since gas and liquids both are fluids and share a large number of common properties . And both the liquid and the gas in this context must be assumed as ideal . And the container in which the gas would be kept is totally closed.

• I'm not sure how you are intending to carry this activity out with a gas. If the container is not closed as shown above , there would be diffusion of gas to atmosphere which would need to be taken into consideration. – Vaishakh Sreekanth Menon Mar 31 '19 at 2:17
• Oh I am sry please assume that the container is totally closed – It's probable Mar 31 '19 at 9:04

Short answer is "yes". The preassure of gas/liquid in different parts of the container would be $$\Delta{P} = \rho g \Delta{h} + \rho a \Delta{l}$$ (it depends on both $$x$$ and $$y$$ position in the container).
• @RifatSafin The pressure of gases does change with height! Usually you do not have to take this effect into account when solving problems because the effect is quite small. If you take a container with height 1 m and fill it with air with usual conditions (room temperature, normal atmospheric preassure) the preasure at the top of container would be 0.01% smaller than the preassure at the bottom. The difference is exactly the same as would be the difference between the preassures at the front wall and the back wall of the 1m-long container moving with $a = 9.8 m / s^2$. – lesnik Mar 31 '19 at 15:24