Module 13 · 6 min read · Free chapter
Macrostates and microstates, ensembles and Maxwell-Boltzmann statistics
Start from zero: from coins to molecules
Toss four coins. You might get all heads, but you are far more likely to get two heads and two tails, because there are six ways to do that and only one way to get all heads.
A gas is like tossing 10²³ coins at once. The overwhelmingly likely outcome is the one with the most arrangements, so likely that it is effectively certain. This is the core idea of statistical mechanics: thermodynamic equilibrium is simply the most probable state.
This chapter defines microstates and macrostates, introduces ensembles, and derives the Maxwell-Boltzmann distribution and the partition function, from which all of classical thermodynamics can be calculated.
Microstates, macrostates and probability
Definitions. A microstate gives the complete microscopic description: which particle is where, with what momentum or in which quantum state. A macrostate gives only what we measure in bulk, such as total energy, volume and number of particles. Many microstates correspond to one macrostate.
Coin example. With 4 coins there are 2⁴ = 16 microstates. Grouping by number of heads:
| Heads | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| W | 1 | 4 | 6 | 4 | 1 |
The number of microstates W in a macrostate is its thermodynamic probability. In general .
Fundamental postulate. For an isolated system in equilibrium, all accessible microstates are equally probable. This is the postulate of equal a priori probability. It is supported by the ergodic idea that over time the system visits all its accessible microstates.
Sharpness for large N. For N coins, the distribution of heads has width about , so relative fluctuations go as . For N = 6 × 10²³, this is about 10⁻¹². The most probable macrostate is effectively the only one observed: this is equilibrium.
Entropy. Boltzmann's relation , introduced in the entropy chapter, links the count of microstates to thermodynamics. Maximum W means maximum S.
Phase space. For classical particles, a microstate is a point in 6N-dimensional phase space of positions and momenta. Quantum mechanics divides it into cells of volume per particle, making the count finite.
Ensembles
Idea. Instead of following one system in time, Gibbs imagined a huge collection of mental copies, all in the same macrostate but different microstates. Averages over this ensemble give thermodynamic quantities.
Three standard ensembles.
| Ensemble | Fixed | Exchanges with surroundings | Key function |
|---|---|---|---|
| Microcanonical | E, V, N | nothing (isolated) | |
| Canonical | T, V, N | energy, with a heat reservoir | |
| Grand canonical | T, V, μ | energy and particles | grand potential |
Canonical probability. A small system in contact with a large reservoir at temperature T is found in a microstate of energy with probability
This Boltzmann factor follows because the reservoir's entropy, and so its number of microstates, falls as when the system takes energy .
Equivalence. For large systems, energy fluctuations in the canonical ensemble are tiny, so all three ensembles give the same thermodynamics. We choose whichever makes the calculation easiest. The grand canonical ensemble is the natural home of quantum statistics.
Deriving Maxwell-Boltzmann statistics
Set-up. N distinguishable particles share total energy E among levels , each with states. The number of ways to put particles in level i is
Maximising. Using Stirling's approximation , maximise ln W subject to and , with Lagrange multipliers α and β. The result is
Identifying β. Comparing with thermodynamics, via , gives . The constant α is fixed by N.
Maxwell-Boltzmann distribution.
Z is the single-particle partition function. Applied to kinetic energy, this gives Maxwell's speed distribution; applied to height in a gravitational field, it gives the barometric formula .
Worked example. In the Sun's atmosphere at 6000 K, the ratio of hydrogen atoms in the n = 2 level (g = 8, 10.2 eV above ground) to the ground level (g = 2) is ≈ 1.1 × 10⁻⁸. So very few atoms can absorb the visible Balmer lines, yet there are so many atoms that the lines are strong.
Thermodynamics from the partition function
Key formulas. For N independent particles with single-particle partition function Z:
Ideal gas. For a particle in a box of volume V, summing over translational states gives
Then and P = NkT ÷ V, recovering the ideal gas law.
Gibbs paradox. If we take , as for distinguishable particles, the entropy is not extensive: mixing two identical gases appears to increase entropy, which is absurd. Gibbs resolved this by dividing by N!, since swapping identical particles does not give a new microstate:
This gives the Sackur-Tetrode equation for the entropy of an ideal monatomic gas, which matches measured entropies and contains Planck's constant, a hint of quantum mechanics hidden in classical gases.
Limits of Maxwell-Boltzmann statistics. MB statistics assumes that the number of available states far exceeds the number of particles, so no two particles compete for the same state. This fails at low temperature or high density, as for electrons in metals or photons in a cavity. There quantum statistics, Bose-Einstein or Fermi-Dirac, must be used.
Mains lens: how UPSC asks this
Statistical mechanics in Paper I usually begins with definitions and the Maxwell-Boltzmann derivation, then moves to quantum statistics.
Expect:
- Define microstate, macrostate, thermodynamic probability, ensembles (10 marks).
- Derive MB distribution law (15 marks) with Lagrange multipliers.
- Partition function and thermodynamic quantities (10 to 15 marks): ideal gas.
- Gibbs paradox (10 marks).
Model answer plan: "Derive the Maxwell-Boltzmann distribution law for a system of distinguishable particles. Define the partition function and express the internal energy and entropy of the system in terms of it" (15 marks).
- W for particles in levels with degeneracies .
- Stirling's approximation; constraints on N and E; Lagrange multipliers.
- ; identify .
- Define Z; .
- ; ; note N! correction for identical particles.
Quick revision
- Microstate vs macrostate; W = thermodynamic probability; 4 coins 1, 4, 6, 4, 1.
- Equal a priori probability; equilibrium = max W; fluctuations ; .
- Microcanonical (E,V,N), canonical (T,V,N), grand canonical (T,V,μ); .
- MB: ; ; barometric formula.
- ; ; ideal gas .
- Gibbs paradox ⇒ ; Sackur-Tetrode; MB fails at low T, high density.