User talk:Paul Wormer/scratchbook
In the figure we see a stationary pillbox at arbitrary position z in a cylinder filled with air. The pillbox is pushed up by a pressure force pO, and pulled down by gravitation, which gives a force G equal to the total mass M of air in the pillbox times the gravitational acceleration g. Also the air pressure (p+ Δp)O at the top acts downward. Forces upward are positive, downward negative, and since the total force is zero (no motion of air), we have
The total mass in the pillbox is the molar density ρ times the molar mass m times the volume of the pillbox Δz·O
Hence
Noting that the molar density is the number of moles per volume, we get for an ideal gas,
Assuming that the gas in the pillbox is ideal and of absolute temperature T, we get the equation
Taking the limit of infinitesimal small Δ we obtain the differential equation
where we recall that the derivative of the natural logarithm is given by
The master equation (1) can be solved by integrating the left hand side from p0 to p and the right hand side from z0 to z. Hence
where we recall that
Taking the exponent (the inverse function of the natural logarithm) of both sides of equation (2) we get
This is distribution is know in statistical thermodynamics as a Boltzmann distribution.
We assumed here that T is constant throughout the cylinder, which makes the equation useful for cases where there is no temperature gradient, i.e., case where the temperature at the top of the cylinder is equal to the temperature at the bottom. The master equation (1) can be modified for the case of a constant temperature gradient (constant lapse rate). That is, we make the substitution
in equation (1). The modified equation is still easily integrated.