The Canonical Ensemble/The Partition Function and the Helmholtz Free Energy

Lesson 4.21,055 words

The Partition Function and the Helmholtz Free Energy

The normalizing sum of the Boltzmann distribution, the partition function Z=ieβEiZ=\sum_i e^{-\beta E_i}, is a generating function for the thermodynamics. The mean energy is lnZ/β-\partial\ln Z/\partial\beta, and the Gibbs entropy of the canonical distribution collapses to the bridge relation F=kBTlnZF=-k_BT\ln Z.

╌╌╌╌

The Boltzmann distribution requires a normalizing sum, , introduced in the previous lesson as a bookkeeping constant. That sum carries far more than a normalization. Every thermodynamic quantity of the system — its mean energy, entropy, pressure, and free energy — is a derivative of . The partition function is the generating function of the canonical ensemble, and the single relation ties it to the Helmholtz free energy, from which classical thermodynamics is recovered by differentiation.

The partition function as a sum over states

The name records what does: it partitions unit probability among the microstates in the ratios of their Boltzmann factors.1 At low temperature () only the ground state contributes and , the ground-state degeneracy. At high temperature () every factor approaches unity and counts the accessible microstates. Between these limits is a smooth, monotonically increasing function of that measures the effective number of thermally accessible states.

The partition function sums the Boltzmann weights over the energy ladder; each level of energy and degeneracy contributes , the bar lengths, and lower levels dominate.

Mean energy from the partition function

The mean energy is the Boltzmann-weighted average . The sum in the numerator is a derivative of : since ,

The internal energy is the logarithmic derivative of with respect to . In terms of temperature, using ,

A single differentiation of has produced a full thermodynamic function without any counting of microstates beyond forming itself.

The Helmholtz free energy

The link between and thermodynamics is fixed by evaluating the Gibbs entropy on the canonical distribution. From ,

Multiply through by and use :

The left side is the definition of the Helmholtz free energy, . Hence the bridge equation of the canonical ensemble.2

This relation carries the canonical ensemble the way carries the microcanonical one. There, entropy is the logarithm of a count at fixed energy; here, free energy is the logarithm of a weighted sum at fixed temperature. The two are Legendre transforms of one another: fixing versus fixing its conjugate .

Thermodynamics by differentiation

The differential of the Helmholtz free energy is , so its first partials return the entropy, pressure, and chemical potential directly.3 With ,

The entropy expression reproduces obtained above, a check that the differentiation is consistent. The pressure formula has a direct microscopic reading: the energies shift as the volume changes, and is the ensemble-averaged force per unit area on the walls, which equals . The internal energy re-emerges as , closing the set.

Every canonical thermodynamic quantity is a derivative of the partition function; the free energy from the logarithm, then the entropy from its temperature slope, the pressure from its volume slope, and the internal energy from the beta slope.

Factorization over independent degrees of freedom

When the energy splits into independent additive pieces, the partition function factorizes. Suppose the microstate is specified by two independent labels and with energy . The double sum separates,

For identical independent subsystems whose states do not need to be distinguished from one another only by relabeling — for instance localized oscillators fixed to lattice sites, which are distinguishable by position — the partition function is the -th power of the single-subsystem partition function,

The free energy is then extensive, proportional to , as a thermodynamic potential must be. For identical particles free to occupy the same states — an ideal gas, where a permutation of labels is not a new microstate — the naive overcounts by the permutations, and the correct counting inserts a factor ; that correction and the extensivity it restores are the subject of the classical-gas module.4 Factorization reduces the many-body problem to a single-subsystem sum whenever the parts are independent, and it is the reason the oscillator and two-level results of the following lessons extend immediately to macroscopic solids and paramagnets.

For independent, distinguishable subsystems the partition function is the product of single-subsystem sums, , so the free energy is extensive.

Free energy as the minimized potential

At fixed temperature and volume the equilibrium of a system is the state that minimizes the Helmholtz free energy, and the canonical distribution realizes that minimum. Define the free-energy functional of an arbitrary distribution ,

Minimizing over normalized distributions reproduces the Boltzmann weights , and the minimum value is . The functional expresses a competition: the energy term is lowered by concentrating probability in the lowest states, while the entropy term is lowered by spreading probability across many states. The balance point is temperature-dependent.5

  • Low temperature. The factor multiplying is small, so ; minimizing minimizes the energy, and the system settles into its lowest-energy states. Order wins.
  • High temperature. The entropy term dominates, so minimizing maximizes ; the system spreads over as many microstates as its energy permits. Disorder wins.
The free energy against temperature: the energy changes slowly while grows, so falls and passes below zero; at low the energy term controls , at high the entropy term does.

The next lesson returns to the fluctuations of the energy about , which a second derivative of measures and which link the canonical ensemble back to the microcanonical one.

Summary

  • The partition function normalizes the Boltzmann distribution and generates the thermodynamics; it counts the ground-state degeneracy at low and the accessible microstates at high .
  • The mean energy is the first logarithmic derivative, .
  • Evaluating the Gibbs entropy on the canonical distribution gives the bridge equation ; then , , and recover all thermodynamics by differentiation.
  • factorizes over independent degrees of freedom: for independent parts and for distinguishable identical subsystems, making extensive.
  • At fixed and the equilibrium distribution minimizes the free-energy functional ; the energy term controls it at low , the entropy term at high .

Footnotes

  1. Schroeder, An Introduction to Thermal Physics, §6.2 — the partition function as the sum of Boltzmann factors and its interpretation as the effective number of accessible states. Companion material at https://physics.weber.edu/schroeder/thermal/.
  2. Reif, Fundamentals of Statistical and Thermal Physics, §6.5–6.6 — the connection between the partition function and the Helmholtz free energy, , and the recovery of thermodynamic quantities as derivatives.
  3. Schroeder, An Introduction to Thermal Physics, §6.5–6.6, and Pathria & Beale, Statistical Mechanics (4th ed.), §3.3–3.4 — the extraction of entropy, pressure, and chemical potential from by differentiation with respect to its natural variables.
  4. Kardar, Statistical Physics of Particles, §4.6 — factorization of the partition function over independent degrees of freedom, and the distinction between distinguishable subsystems () and indistinguishable particles (the correction). MIT OCW 8.333, https://ocw.mit.edu/courses/8-333-statistical-mechanics-i-statistical-mechanics-of-particles-fall-2013/.
  5. Schroeder, An Introduction to Thermal Physics, §6.6, and Reif, Fundamentals of Statistical and Thermal Physics, §6.7 — the free energy as the potential minimized at fixed temperature and volume, and the energy–entropy competition in .

╌╌ END ╌╌