An ideal gas of molar mass /If is located in the uniform gravitational field in which the free-fall acceleration is equal to g. Find the gas pressure as a function of height h, if p = P0 at h = 0, and the temperature varies with height as
(a) T = T0 (1 - ah);
(b) T = T0 (1+ ah),
where a is a positive constant.