*Before you read this, I suggest you read* post 17.5

Liquids and gases are both examples of fluids – things that flow into the space available to them (post 16.37). In post 17.5, we saw how the pressure in a liquid increased with depth. Normally, we think of the pressure in a gas as being uniform (see post 18.25) but we know that the pressure of our atmosphere decreases with altitude – so the cabins of passenger planes must be pressurised with air. Also, the atmospheric pressure is lower than at the top of a mountain than at the base. This difference in pressure can be measured with an *altimeter*, to measure the height of the mountain.

Let’s now investigate why such pressure changes might occur. The picture above shows a vertical column of a fluid with a cross-sectional area *A*. A vertical distance above the base of the column is represented by *x*. We’re going to think about a horizontal slice of the column of thickness *δx*. Let *p* denote the pressure at *x*, and *p* + *δp* the pressure at *p* + *δp*. The vertical component (post 16.50) of the resulting force, arising from these pressures, acting on the slice is then

(*p* + *δp*)*A* – *pA*. = *A**δp*

This result comes from the definition of pressure (post 17.5). But there is also a gravitational force *g**δm* acting on the slice, where *δm* is the mass of the slice and *g* is the magnitude of the gravitational field (the acceleration due to gravity, post 16.16). If the elemental slice is stationary, the sum of these forces must be zero (post 16.4) so that

*A**δp* + *g**δm* =0.

and then

*δp* = – *g**δm*/*A* = *g**ρA**δx*/*A* = – *ρg**δx*. (1)

This result is obtained by noting that the volume of the slice is *A**δx* and that its mass is its volume multiplied by its density, *ρ* (post 16.44).

If *ρ* is a constant, we can integrate this result (post 17.19). The for a column of height *h*, the pressure at the base is given by

*p* = *h**ρg*.

This result is derived in the appendix and was derived, by a simpler method, in post 17.5. The density of a liquid is close to being constant, except under very high pressures. This result than tells us that the pressure at some depth *h* from the surface of a liquid is given by *h**ρg*.

But, in a gas, increasing pressure has an appreciable effect on volume and, therefore, on density. Remember that density is defined by

*ρ* = *m*/*V* = *mp*/(*nRT*)

for an ideal gas, where *m* is the mass of gas occupying a volume *V*, *n* is the number of moles of gas, *R* is the ideal gas constant and *T* is the temperature (measured on the Kelvin scale, post 16.34); see post 18.25 for more details. But the mass divided by the number of moles is the relative molecular mass, *M* (post 16.33), of the gas. So we can write

*ρ* = *Mp*/(*RT*).

Substituting this expression for *ρ* into equation 1 gives

*δp* = – [*Mp*/(*RT*)]*g**δx*

so that

(*δp*/*p*) = – [*Mpg*/(*RT*)/]*δx*.

Since *M*, *p*, *g* and *R* are all constant, we can integrate this result, at constant temperature, using a result proved in post 18.15. The result of this integration is that

log_{e}*p* = – *Mgx*/(*RT*) + *C *(2)

where *C* is a constant of integration (post 17.19); information on the log function is given in post and on *e* in post. To find the value of *C*, we apply the boundary condition (post 17.19) that when *x* = 0, *p* = *p*_{0}, the pressure at the base of the vertical column. Then

log_{e}*p*_{0} = *C.*

Substituting this result into equation 2 gives

log_{e}*p* = – *Mgx*/(*RT*) + log_{e}*p*_{0}

or

log_{e}*p* – log_{e}*p*_{0} = – *Mgx*/(*RT*).

Using information on logarithms given in post 18.3, we can write this result as

log* _{e}*(

*p*/

*p*

_{0}) = –

*Mgx*/(

*RT*)

or that

*p* = *p*_{0}*e*^{-Mgx}^{/(}^{RT}^{)}. (3)

The same mathematical techniques were used in post 18.15 where I explain them in more detail. From the definition of Avogadro’s number, *N*, given in post, *M* = *Nm* (post 17.48). Also, *R* = *Nk* (post 18.25), where *k* is Boltzmann’s constant (post 18.25). Putting these two results into equation 3 gives

*p* = *p*_{0}*e*^{-mgx}^{/(}^{kT}^{)}. (4).

Either equation 3 or equation 4 can be used to explain why the pressure in the atmosphere decreases with altitude.

I now want to use equations 3 and 4 for something different. In a fixed volume of an ideal gas, at constant temperature, *p* is proportional to *n* (post 18.25). So we can rewrite equation 3 as

*n* = *n*_{0}*e*^{-Mgx}^{/(}^{RT}^{)} (5)

where *n*_{0} is the number of moles when *x* = 0. This is interesting because *n* is the number of moles at a height *x* above the base of our vertical column. *Mgx* is then the potential energy of a mole of gas at height *x* (post 16.21). So equation 5 tells us how the number of moles depends on potential energy. If we want to know how the number of molecules, *μ*, depends on potential energy, we use equation 4 (because it involves the mass of a molecule) and, noting that if the number of moles is proportional to pressure so must the number of molecules, obtain the result that

*μ = μ _{0}e^{-mgx}^{/(}^{kT}^{)}* (6).

where *μ*_{0} is the number of molecules when *x* = 0.

Equations 5 and 6 are different ways of expressing *Boltzmann’s distribution law* that tells us how the distribution of particles depends on energy. Comparing equations 4 and 6 with the Gaussian distribution, in post, we can see how they resemble statistical distributions. So molecules in a gas, for example, are said to obey *Boltzmann statistics*. I shall return to this topic in the next post.

__Related posts__

20.24 Adiabatic compression of a gas

20.23 Isothermal compression of a gas

19.2 Real gases

18.25 An ideal gas

17.15 Fluid flow

17.5 Stationary liquids

16.44 Density

16.37 Solids, liquids and gases

__Appendix__

According to equation 1

*δp* = – *ρg**δx.*

Fot a liquid, we can consider *ρ* to be constant. Equation 1 can then be integrated to give

*p* = – x*ρg* + *C*’ (7)

where *C*’ is a constant of integration (post 17.19). To determine the value of *C*’, we can think about a column of liquid whose height is *h*. Then, when *x* = *h*, the pressure *p* in the liquid is zero because this value of *x* defines its surface. Applying this boundary condition to equation 7 gives

0 = – *h**ρg* + *C*’ or C’ = *h**ρg *(8)

Substituting the value for *C*’ from equation 8 into equation 7 gives

*p* = *h**ρg* – *xρg*

*p* = *ρg* (*h* – *x*).

Here (*h* – *x*) is the depth measured from the liquid surface. At the bottom of the column of liquid, *x* = 0 so that

*p* = *h**ρg.*

This is the result stated in the main part of the post and also derived, more simply, in post 17.5.