Partition Function
The (canonical) partition function of a system in thermal equilibrium at temperature T is Z = Σi gi e−Ei/kBT, summed over energy levels Ei with degeneracies gi. It normalises the Boltzmann distribution, Pi = gie−Ei/kBT/Z, and all equilibrium thermodynamics follows from it: F = −kBT ln Z, U = −∂ ln Z/∂β with β = 1/kBT, and S = (U − F)/T.
Curious
At a given temperature, a system does not sit in one state; it hops among many, preferring low-energy ones. The Boltzmann factor e−E/kBT measures how likely each state is: high-energy states are exponentially unlikely unless the temperature is high. Adding up these factors for all states gives the partition function Z (from the German Zustandssumme, “sum over states”).
Z is a master key. Knowing it, you can calculate a system's average energy, heat capacity, entropy and free energy without solving the motion of every particle.
Exploring
| Quantity | From Z |
|---|---|
| Probability of state i | Pi = e−βEi/Z |
| Mean energy | U = −∂ ln Z/∂β |
| Helmholtz free energy | F = −kBT ln Z |
| Entropy | S = kB(ln Z + βU) |
| Heat capacity | CV = ∂U/∂T |
Deep Dive
Factorisation. For independent degrees of freedom, Z factorises: a molecule's partition function is z = ztranszrotzvibzelec, and for N identical non-interacting molecules Z = zN/N!. The translational part ztrans = V/λ³, with thermal wavelength λ = h/√(2πmkBT), leads to the ideal gas law and the Sackur–Tetrode entropy (see Boltzmann Entropy). Vibrational modes give zvib = 1/(1 − e−hν/kBT), which explains why vibrations freeze out at low temperature (see Equipartition Theorem).
Fluctuations. Derivatives of ln Z give fluctuations as well as averages: 〈(ΔE)²〉 = kBT²CV. Phase transitions appear as non-analytic points of ln Z per particle in the thermodynamic limit; the 1944 Onsager solution of the 2D Ising model and the Lee–Yang theorem (1952) on the zeros of the partition function made this precise (see Phase Transitions).
Beyond physics. The same mathematical object appears in Bayesian statistics (the evidence), in machine learning (energy-based models) and in quantum field theory, where the path-integral partition function in imaginary time connects quantum mechanics to statistical mechanics.
Concept Relationship Map
Requires: microstates, temperature
Enables: canonical ensemble, free energies, quantum statistics
Commonly confused with: a probability
Sources
- Gibbs, J.W. (1902). Elementary Principles in Statistical Mechanics. Scribner's.
- Payne, C.H. (1925). Stellar Atmospheres. Harvard Observatory Monographs No. 1.
- Pathria, R.K., Beale, P.D. (2011). Statistical Mechanics (3rd ed.). Academic Press.