Reference: Daniel V. Schroeder, *An Introduction to Thermal Physics*, (Addison-Wesley, 2000) – Problem 2.26.

Having looked at counting the number of microstates in systems like coin flipping and the Einstein solid, we can now look at counting the microstates in an ideal gas.

At first glance, this might seem to be impossible, since in classical physics at least, a gas molecule confined within a volume with a fixed energy can be in an infinite number of states, since it could be at any location within the volume and the components of its momentum could have any values subject to the constraint that the kinetic energy of the molecule is . That’s true, and to be able to count the number of states of a gas molecule, we need to use quantum mechanics. Because of the uncertainty principle, the location and momentum of a molecule can be determined only up to regions (in position space) and (in momentum space) such that . Schroeder’s derivation of the number of microstates available to an ideal gas begins with this principle, or at least with the approximation

Because the gas is confined within a volume , the situation is somewhat similar to the particle in a box or infinite square well. A particle in such a potential well is restricted to discrete energy states, and also restricted to a location between the infinitely high barriers at either end. It might seem that for a state with fixed energy, the momentum would be precisely known, but in fact, because the particle can move either to the right or left, the momentum doesn’t have a fixed value, and a particle in such a fixed energy state does in fact satisfy the uncertainty principle.

Schroeder’s argument is that, in one dimension, a molecule can be localized to a particular region in position space and a particular momentum interval in momentum space, so if the particle is confined to a location range and momentum range , the number of available states in position space is and in momentum space is , and, since the momentum and position ranges are independent, the total number of microstates is

Schroeder then develops the theory for a 3-d ideal gas in detail so we won’t go through that again here. Rather, we’ll look at an analogous 2-dimensional case. In 2-d, we can imagine the molecule confined to an area in position space and another area in momentum space. Since the energy of the molecule is fixed, the momentum space is constrained by the condition

which is the equation of a circle. Thus the ‘area’ is actually the circumference of the circle:

Since there is an uncertainty of for the products of position and momentum in each of the two dimensions, we get

To generalize this to the case with gas molecules, we note that in position space, the locations of all the molecules are independent, so we’ll get a factor of . The momenta are constrained by the condition

where the sum index extends over the molecules, so the momenta are *not* independent. The total ‘volume’ of momentum space is actually the ‘area’ of a dimensional hypersphere, which Schroeder derives in his Appendix B and gives as

where is the radius and is the dimension. Thus we get, using and :

This would be the formula if the gas molecules were distinguishable. However, one of the principles of quantum mechanics is that elementary particles of the same type are actually identical. In that case, with molecules, interchanging any pair of them will leave the microstate unchanged, so the above formula actually overcounts the number of states by . The actual number of microstates for a 2-d ideal gas of indistinguishable particles is therefore

Since is a large number (on the order of ), we can approximate this by

In SI units, is a small number (around ) and is a large number, so the number of microstates will typically be very large.