Statistical mechanics
Statistical mechanics shows that, for a pure ideal gas of constant temperature in a gravitational field, "T", its pressure, "p" will vary with height, "h", as: