STEMviz
Physics · Analytical Mechanics and Thermodynamics

The Microcanonical and Canonical Ensembles (the Boltzmann Distribution)

The microcanonical ensemble of the previous chapter is conceptually clean but computationally brutal. Counting the microstates of an isolated system at a sharply fixed energy means evaluating awkward surface integrals over energy shells and juggling constrained sums. Almost no real problem is solved that way.

The trick that unlocks the subject is to stop insisting on fixed energy. Let the system of interest exchange energy freely with a large reservoir that holds the temperature fixed. The system's energy now fluctuates, but for a macroscopic system those fluctuations are relatively tiny, so the physics is unchanged — and the mathematics becomes vastly easier. The probability of each microstate takes the simple Boltzmann form pi∝e−Ei/kBTp_i \propto e^{-E_i / k_B T}, and every thermodynamic quantity is obtained by differentiating a single function, the partition function ZZ. This chapter derives that machinery and runs it on the standard examples: the two-level system, the harmonic oscillator, and the ideal gas.

How to read this chapter. The spine is: (1) couple system to reservoir, expand the reservoir entropy, get pi=e−βEi/Zp_i = e^{-\beta E_i}/Z; (2) Z=∑ie−βEiZ = \sum_i e^{-\beta E_i} contains everything, via ⟨E⟩=−∂ln⁡Z/∂β\langle E \rangle = -\partial \ln Z/\partial \beta and F=−kBTln⁡ZF = -k_B T \ln Z; (3) for independent parts ZZ factorises, so ln⁡Z\ln Z (and hence FF, SS, EE) is additive. Master those three moves on the two-level system first; the oscillator and the ideal gas are then just more elaborate sums. The energy-fluctuation result σE2=kBT2CV\sigma_E^2 = k_B T^2 C_V is the bridge back to the microcanonical picture and explains why the two ensembles agree.

From Isolated System to Heat Bath

Take the system of interest SS and a reservoir RR, together forming an isolated supersystem with fixed total energy EtotE_\text{tot}. When SS is in a particular microstate ii of energy EiE_i, the reservoir has energy Etot−EiE_\text{tot} - E_i and multiplicity ΩR(Etot−Ei)\Omega_R(E_\text{tot} - E_i). By the fundamental postulate applied to the supersystem, the probability of finding SS in microstate ii is proportional to the number of ways the rest of the world can accommodate it:

pi∝ΩR(Etot−Ei)=eSR(Etot−Ei)/kB.p_i \propto \Omega_R(E_\text{tot} - E_i) = e^{S_R(E_\text{tot} - E_i)/k_B}.

Because the reservoir is enormous, Ei≪EtotE_i \ll E_\text{tot}, and the reservoir entropy can be Taylor-expanded about EtotE_\text{tot}:

SR(Etot−Ei)≈SR(Etot)−Ei∂SR∂E∣Etot+⋯=SR(Etot)−EiT+⋯S_R(E_\text{tot} - E_i) \approx S_R(E_\text{tot}) - E_i \left.\frac{\partial S_R}{\partial E}\right|_{E_\text{tot}} + \cdots = S_R(E_\text{tot}) - \frac{E_i}{T} + \cdots

The higher terms vanish in the reservoir limit (they carry inverse powers of the reservoir's heat capacity). Exponentiating, the SR(Etot)S_R(E_\text{tot}) piece is a constant absorbed into normalisation, and

pi=e−βEiZ,β≡1kBT,Z≡∑ie−βEi.\boxed{p_i = \frac{e^{-\beta E_i}}{Z}, \qquad \beta \equiv \frac{1}{k_B T}, \qquad Z \equiv \sum_i e^{-\beta E_i}.}

This is the canonical (Gibbs) distribution. The exponential factor e−βEie^{-\beta E_i} is the Boltzmann factor; the normalising sum ZZ is the partition function (German Zustandssumme, "sum over states"). The sum runs over microstates; if one instead sums over distinct energy levels, each term carries the level's degeneracy g(E)g(E): Z=∑levelsg(E) e−βEZ = \sum_\text{levels} g(E)\, e^{-\beta E}.

The same expansion carried to the next order gives the leading correction as a term in the system's own heat capacity divided by the reservoir's — negligible whenever the reservoir is much larger, which is the defining assumption.

Keep reading: The Microcanonical and Canonical Ensembles (the Boltzmann Distribution)

This chapter is Premium. Unlock every Physics lesson — theory, interactive visualizations, quizzes, exercises and flashcards — with a one-time purchase or a monthly plan, or get every subject at once with the Full Course Bundle. The first 2 chapters of every block are free with an account.