Statistical Ensembles and Partition Functions
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal additional columns.
Scrollable figure. Use Left and Right arrow keys to inspect hidden content.
An ensemble specifies both what a system can exchange and how its microscopic states are weighted. The logarithm of its partition function is a generating function: first derivatives give mean conserved quantities, second derivatives give fluctuations, and a Legendre transform gives the appropriate thermodynamic potential. Different ensembles model different physical couplings, not merely different calculation tricks.
Required background. Calculus and Linear Algebra supplies constrained extrema, second derivatives, and eigenvalue language. The probability weights and Gaussian saddle used below are defined locally. Helpful background. Classical and Variational Mechanics supplies phase-space and conservation-law language; Quantum Mechanics supplies energy-state and spectral language, while the Bose and Fermi occupation rules in the optional bridge below are introduced locally.
Three equilibrium ensembles
Section titled “Three equilibrium ensembles”For an isolated system with energy in a narrow shell around , volume , and particle number , let be the number of accessible states in that shell. The microcanonical assignment is uniform:
The shell convention matters for finite systems, but its microscopic width does not affect the leading extensive entropy when it is broad compared with the level spacing and narrow on macroscopic scales. Ergodicity can help explain why long-time measurements explore this distribution in some systems; it is not part of the ensemble’s algebraic definition.
If the system is weakly coupled to a much larger reservoir, so the interaction energy is negligible in the equilibrium accounting, a system microstate of energy leaves the bath with energy . Expanding the bath entropy gives
When the reservoir heat capacity is large enough that the quadratic correction is negligible over the system’s relevant energies, the number of compatible bath states is proportional to . Normalization then gives the canonical weights
We use , natural logarithms, and unless a bounded-spectrum exception is explicitly stated. At fixed , differentiating yields
and substitution into gives
The first derivative is the mean energy and the second is a nonnegative variance, so is convex in . The reservoir construction and these identities are derived in Tong, current notes, §1.3, printed pp. 17–25.
The canonical law can also be characterized variationally. Maximize Gibbs entropy at fixed normalization and mean energy:
Stationarity with respect to every positive gives ; normalization then identifies . Because is strictly concave on a finite probability simplex, this stationary distribution is the unique maximum whenever the prescribed mean energy lies strictly between the lowest and highest levels. At an endpoint, the maximum is instead the uniform distribution on the corresponding extremal-energy eigenspace, obtained as a limiting Gibbs state. For a nonconstant finite spectrum, a mean energy above the uniform distribution’s mean requires ; that bounded-spectrum case is outside the positive-temperature branch used here. The variational argument does not say that every isolated trajectory becomes canonical: it identifies a probability law after a mean-energy constraint and state space have been chosen.
When energy and particles are exchanged, the reservoir expansion contains . In the quantum description this simple joint weighting assumes . The grand-canonical ensemble is
Here is the grand partition function and is the grand potential, not the microcanonical count. At fixed ,
Volume differentiation supplies the equation of state,
For a homogeneous extensive phase in the thermodynamic limit, Euler scaling then gives . Boundaries and other subextensive corrections prevent that last equality from being exact for a generic finite system.
The three main ensembles can therefore be read as a control-and-weight table:
| Ensemble | Quantities held fixed | Microscopic weight | Generated potential |
|---|---|---|---|
| Microcanonical | uniform in an energy shell | ||
| Canonical | |||
| Grand canonical |
Optional bridge: Bose and Fermi occupation laws
Section titled “Optional bridge: Bose and Fermi occupation laws”For noninteracting identical quantum particles, it is convenient to sum over the occupation number of each one-particle mode with energy . Let . A bosonic mode permits , so
Convergence requires for every mode, hence cannot exceed the lowest one-particle energy. A fermionic mode permits only , so
When , both reduce to the dilute Maxwell–Boltzmann occupation . These formulas assume noninteracting modes and equilibrium; interactions can invalidate the factorization even though the grand-canonical definition remains meaningful. Tong derives the Bose–Einstein and Fermi–Dirac laws in Tong, current notes, §§3.5.1 and 3.6, printed pp. 78–81 and 90–92.
When ensembles agree
Section titled “When ensembles agree”The saddle-point bridge makes the canonical–microcanonical relation explicit. Let count states and choose one fixed reference width . Define
Then both the logarithm and the canonical measure are dimensionless:
Changing the fixed reference width adds a constant to and does not change the saddle. Each finite canonical system fixes . Suppose a no-exchange thermodynamic sequence has at fixed specific volume , one interior dominant energy , and a twice-differentiable, strictly concave entropy near that point. Then
Thus makes the stationary point a local maximum. Expanding the exponent to second order gives a Gaussian with . When grows proportionally to at fixed temperature, the standard deviation of the energy per particle is . The relative width has the same scaling if the limiting mean energy per particle is nonzero; unlike that ratio, the fluctuation of energy per particle is unaffected by shifting the energy zero. This scaling can fail at critical points, and at first-order coexistence two competing saddles can produce a bimodal distribution rather than one Gaussian. A negative microcanonical heat-capacity branch has and cannot be an ordinary canonical maximum.
For ordinary additive systems with short-range interactions and a well-defined thermodynamic limit, strict concavity in energy and a unique smooth saddle usually produce canonical–microcanonical concentration after matching and . For this no-exchange limit, write
Extending the conclusion to particle exchange instead uses the entropy per volume , with and . It requires concentration in both densities and the corresponding joint concavity or large-deviation hypotheses; energy concavity alone is insufficient. Tong demonstrates the regular single-energy-saddle concentration in Tong, current notes, §1.3.2, printed pp. 19–21.
The sharper fixed- geometry suppresses the constant specific volume and writes . A canonical inverse temperature realizes a microcanonical energy when has a supporting line there:
The figure turns that inequality into geometry. In the upper panel, inspect how the positive-slope tangent at stays above the entire entropy curve. In the lower panel, compare the depressed point with the positive-slope common tangent through the two outer contact points: no line through can lie above both sides.
A microcanonical energy is canonically realizable only where admits a supporting line. Panel (a) shows a strict positive- supporting tangent at , while panel (b) places in a nonconcave region of below a positive-slope common tangent, so no supports it and no canonical ensemble selects it as equilibrium. Original schematic; axes not to scale.
Any supporting line gives thermodynamic equivalence at that energy. Under the corresponding large-deviation hypotheses, strict support gives equality of the canonical and microcanonical equilibrium-macrostate sets, while nonstrict support generally gives only inclusion and permits several energies at one . Vanishing specific relative entropy can still hold in the nonstrict case; equality at the stronger specific-action level needs an additional concentration condition. At a point where has no supporting line, that energy is absent from every canonical equilibrium-energy set. Touchette separates these levels in Touchette 2015, Proposition 2, author-manuscript pp. 11–12; Theorem 7, p. 16; and Theorems 10 and 12, pp. 20–22 (Open PDF), and treats the additional particle-density saddle for canonical–grand-canonical equivalence in §VI.A, pp. 24–25.
Finite systems have nonzero fluctuations and surface corrections. Long-range nonadditive interactions make subsystem–reservoir separation delicate. Self-gravitating matter is the central warning for this site: the canonical variance identity forbids , while an isolated gravitating system may possess a negative microcanonical caloric slope. One must state the ensemble before calling either result unstable.
Agreement of thermodynamic potentials need not imply equality of finite-size probability distributions, and agreement of equilibrium macrostates need not make rare-event probabilities identical. Conversely, a local observable can agree between ensembles even when a global fluctuation does not. A static ensemble comparison specifies the observable, the matched intensive parameters, and the thermodynamic limit; convergence of long-time averages is a separate dynamical question.
Exercise: a two-level system
Section titled “Exercise: a two-level system”For independent distinguishable units with energies and , find the canonical internal energy and heat capacity, and check their low- and high-temperature limits.
Solution
The one-unit and total partition functions are
Therefore
and
At low temperature the excited state freezes out, so . At high temperature both levels are equally populated, , while the finite spectrum again makes . The heat capacity therefore has a Schottky peak at an intermediate temperature. The partition function produces both limits and the stability sign without tracking individual configurations.
The next page, Entropy, Relative Entropy, and Information, separates the physical meanings attached to the logarithms used here.
References
Section titled “References”- Tong, David. Statistical Physics. University of Cambridge Part II Mathematical Tripos lecture notes, current official undated-cover PDF, §§1.2–1.4, printed pp. 2–30; §§3.5.1 and 3.6, printed pp. 78–81 and 90–92. Open PDF.
- Touchette, Hugo. “Equivalence and Nonequivalence of Ensembles: Thermodynamic, Macrostate, and Measure Levels.” Journal of Statistical Physics 159 (2015): 987–1016, §§III–VI.A. doi:10.1007/s10955-015-1212-2; Open PDF.