Partition Function Explained Simply with Easy Examples
The partition function is a single mathematical sum that encodes all thermodynamic information of a system in equilibrium. Often denoted Z, it weights every possible energy state by its Boltzmann factor and from it we can calculate energy, entropy, pressure and free energy.
It matters because it is the central bridge between microscopic energy levels (from quantum mechanics or models) and macroscopic measurements. Once Z is known for a gas, solid or molecule, the rest of thermodynamics follows by differentiation — no need to track particles individually.
Key Concepts
For a canonical system at temperature T (K), a state i with energy Ei (J) has probability proportional to Boltzmann factor exp(−Ei/kBT). Partition function Z = Σi exp(−Ei/kBT), summed over all microstates (including degeneracies). kB = 1.38×10−23 J/K. For continuous or molecular systems Z factorises into translational, rotational, vibrational and electronic parts: Z = Ztrans × Zrot × Zvib × Zelec. Larger T makes higher states more populated, increasing Z.
Formulas
Probability of state i: Pi = exp(−Ei/kBT) / Z. Helmholtz free energy: F = −kB T ln Z (for N particles use appropriate N dependence). Average energy: U = kB T2 (∂ ln Z / ∂T)V. Entropy: S = (U − F)/T. Pressure: P = kB T (∂ ln Z / ∂V)T.
For a single harmonic oscillator with spacing hν: Z = 1 / (1 − exp(−hν/kBT)). For ideal monatomic gas, Z includes V/λ3 factor where λ is thermal wavelength. Assumptions: equilibrium, canonical conditions (fixed N,V,T), known energy levels.
Worked Example
A two-level system has energies 0 and ε = 2.0×10−21 J. Find Z and average energy at T=300 K (kBT=4.14×10−21 J).
Step 1: Boltzmann factor for excited state = exp(−2.0/4.14)=exp(−0.483)=0.617. Step 2: Z = 1 + 0.617 = 1.617. Step 3: Probability excited = 0.617/1.617 = 0.382. Step 4: Average energy U = 0×0.618 + ε×0.382 = 0.764×10−21 J. As T→∞, both states become equally likely and U→ε/2 = 1.0×10−21 J; as T→0, U→0. This simple model describes defects, magnetic spins and Schottky heat capacity anomaly.
Common Misconceptions
- Misconception: Partition function is a physical partition or box. Correction: Partition here means distribution/sum over states; Z is a dimensionless sum (for discrete states).
- Misconception: Z itself is measured directly. Correction: We measure its derivatives (energy, pressure, heat capacity); Z is calculated from a model of energy levels.
- Misconception: Higher energy states are ignored. Correction: They contribute with exponentially smaller weights, which become important at high T.
Real-World Applications
Partition functions predict chemical equilibrium constants, vapour pressures, specific heats, magnetic susceptibilities and semiconductor statistics. In chemistry, molecular partition functions from spectroscopy give entropies and Gibbs energies of reactions without calorimetry for every case. In biophysics they model protein folding states; in astrophysics, Saha ionisation equation comes from partition functions of atoms and ions.
One sum, Z, holds the whole thermodynamics — differentiate it and the measurable world appears.