The previous Modeling the Atmosphere post derived an expression for describing the change in pressure with respect to change in altitude in terms of density and acceleration due to gravity :
This equation is short to write, but it is not particularly useful. Before applying it to real-life situations, it must be transformed into the barometric equation.
First, recall that density represents mass per unit volume. In Modeling the Atmosphere, pt. 1, was used to replace the expression , where represents the mass of a thin slice of air with volume . Now,
Air is not actually composed of slices, so it would be more convenient to represent the mass in terms of particles. By volume, Earth’s atmosphere is composed of about 78% , 21% , and 1% . Approximating Earth air as an ideal gas and using some information from the periodic table, the mass of one mole () of air particles can be calculated:
So on average, air particles (a.k.a. one mole of air particles) masses approximately . Using this knowledge, the mass of one slice of air may be re-expressed as , where represents the number of moles of air particles in the slice of atmosphere. The same process holds for any other collection of particles that can be modeled as an ideal gas. For a general gas, each mole might mass instead of . Generally:
and for Earth’s atmosphere in particular,
Now that the mass of the slice of atmosphere has been re-expressed as , let’s re-express the volume of the atmosphere slice using the ideal gas law:
Solving for volume yields:
At this point, we’ve almost transformed the starting equation into the barometric equation. To review, represents the mass per mole of the ideal gas (for Earth’s atmosphere, ), is the acceleration due to gravity, is the Boltzmann constant, and is the temperature in Kelvin (assumed to be constant – regardless of height – in this idealized atmosphere).
The next step requires calculus. First, “multiply both sides” by the differential :
and divide both sides by :
Using the classic technique for solving differential equations, integrate both sides:
Exponentiate both sides:
Using the boundary condition when , it’s clear that the constant corresponds to the pressure at zero altitude: . Thus,
Finally, we have derived the barometric equation. Using this equation, the pressure of an idealized atmosphere can be determined as a function of altitude . Interestingly, this derivation is not the only method for obtaining the barometric equation. Check back for an alternate derivation and an application to satellite testing with weather balloons.