Lecture 1

Statistical Mechanics: the Partition Function as a Sum Over States

For the reader from (mathematics).

Read β as a formal variable and Z⁢(β)=∑ie−β⁢Ei as a generating function: a Laplace/Dirichlet-type transform of the energy spectrum. Every thermodynamic quantity is a logarithmic derivative of it. The only “physics” input is the principle that selects the weights e−β⁢Ei, which we derive rather than postulate.

The partition function is born as a normalizing constant. What makes it the central object of the theory is that, once you have it, you have everything: the entire thermodynamics of a system is encoded in the single function log⁡Z.

1 Where the Boltzmann weight comes from

Fix a system with microstates i of energy Ei. We do not know which microstate the system occupies; we know only its mean energy. Among all probability distributions {pi} with ∑ipi=1 and ∑ipi⁢Ei=⟨E⟩ fixed, which should we choose? The principle of maximum entropy says: the least-committal one, maximizing the Gibbs–Shannon entropy S=−∑ipi⁢log⁡pi. Lagrange multipliers α,β enforce the two constraints; we extremize

−∑ipi⁢log⁡pi−α⁢(∑ipi−1)−β⁢(∑ipi⁢Ei−⟨E⟩) (1)

over each pi in turn. This gives one first-order condition per state i-an ordinary unconstrained calculus problem, one equation per unknown-namely log⁡pi=−1−α−β⁢Ei, that is

pi=e−β⁢EiZ,Z=∑ie−β⁢Ei. (2)

The multiplier β enforcing the energy constraint is the inverse temperature, β=1/(kB⁢T), as we will see shortly. The normalizer Z is the partition function: it is what partitions unit probability among the states. Nothing was postulated about exponentials; the exponential is forced by maximizing entropy at fixed mean energy. We return to this point, hard, in the Interlude.

2 Everything is a derivative of log⁡Z

Because Z packages the whole spectrum, its logarithm generates the thermodynamics:

⟨E⟩ =∑iEi⁢e−β⁢EiZ=−∂log⁡Z∂β, (3)
Var⁡(E) =⟨E2⟩−⟨E⟩2=∂2log⁡Z∂β2, (4)

so log⁡Z is literally the cumulant generating function of the energy.

Where does the identification β=1/(kB⁢T) from §1.1 actually come from? Evaluate the informational entropy on the maximizing distribution itself: since log⁡pi=−β⁢Ei−log⁡Z,

S=−∑ipi⁢log⁡pi=β⁢⟨E⟩+log⁡Z. (5)

Multiply by kB to give S thermodynamic units and differentiate with respect to ⟨E⟩ at fixed volume and particle number, using ∂log⁡Z/∂β=−⟨E⟩ from above-the ∂β/∂⟨E⟩ terms cancel exactly, leaving

kB⁢∂S∂⟨E⟩=kB⁢β. (6)

Classical thermodynamics defines temperature by ∂S/∂E=1/T; comparing the two fixes β=1/(kB⁢T) exactly. The Lagrange multiplier of §1.1 and the thermodynamic inverse temperature are the same object because both are, at bottom, ∂S/∂E.

The free energy is F=−β−1⁢log⁡Z, the entropy S=−∂F/∂T, the heat capacity C=∂⟨E⟩/∂T, and so on. One function, differentiated, yields the lot.

For the reader from (physics).

If you already know all this, the only new emphasis is structural: keep your eye on (2) as a map from a spectrum to a number, and on the multiplicativity of §4. Those two features-and not the thermodynamics-are what survive into quantum statistics, field theory, and representation theory.

3 Two elementary systems: the boson and the fermion appear

Example 1.1 (Two-level system).

A single degree of freedom with energies {0,ϵ} has Z=1+e−β⁢ϵ. Its heat capacity peaks at kB⁢T∼ϵ (the Schottky anomaly)11 1 Explicitly, C⁢(T)=kB⁢(ϵkB⁢T)2⁢e−ϵ/kB⁢T(1+e−ϵ/kB⁢T)2-a bump vanishing both as T→0 (frozen out) and T→∞ (equal population, no distinguishing power), unlike the monotonic heat capacity of a classical system. Named for Walter Schottky (1922); such bumps have since been used to diagnose gapped low-lying levels-impurity spins, nuclear hyperfine levels, tunneling two-level systems in glasses-directly from bulk specific-heat data.: the system can only “notice” temperature once kB⁢T is comparable to its gap.

Example 1.2 (A single harmonic oscillator - the boson).

With En=ℏ⁢ω⁢(n+12), n=0,1,2,…, the geometric series sums to

Zb=∑n≥0e−β⁢ℏ⁢ω⁢(n+1/2)=e−β⁢ℏ⁢ω/21−e−β⁢ℏ⁢ω=12⁢sinh⁡(β⁢ℏ⁢ω/2). (7)

A bosonic mode admits any occupation number n≥0; that is why we get a full geometric series.22 2 Readers who know the Feynman path integral will recognize (7) lurking inside the harmonic-oscillator propagator, K⁢(xb,t;xa,0)∝(sin⁡ω⁢t)−1/2⁢exp⁡(i⁢⋯): continue to imaginary time, t→−i⁢β⁢ℏ (so sin⁡ω⁢t→−i⁢sinh⁡β⁢ℏ⁢ω), set xb=xa, and integrate over xa-that is, trace over closed paths-and the Gaussian integral yields exactly 1/(2⁢sinh⁡(β⁢ℏ⁢ω/2)). No accident: e−β⁢H is the time-evolution operator at imaginary time, so the thermal Z is the Feynman amplitude to return, summed over starting points. Lecture 3 is this footnote, industrialized.

Thread (The −c/24 thread starts here).

The factor e−β⁢ℏ⁢ω/2 in (7) is the zero-point energy 12⁢ℏ⁢ω of the oscillator. It looks like a harmless prefactor now. Summed over infinitely many modes it will diverge and get regularized in L3 via ∑n⁢=𝜁−112 (the energy itself carrying the extra 12: −124 per unit of mode spacing), become the q1/24 of the Dedekind eta in L4, and end as the −c/24 grading shift in L5.

Example 1.3 (A single fermionic mode - the fermion).

With occupation n∈{0,1} (Pauli exclusion) and energy E=ϵ⁢n,

Zf=1+e−β⁢ϵ. (8)

The contrast with (7) is the whole of quantum statistics in miniature: bosons sum a geometric series over all n, fermions truncate at two terms.

4 Independence becomes multiplication

If a system splits into non-interacting parts with additive energy E(i,j)=EiA+EjB, then

Z=∑i,je−β⁢(EiA+EjB)=(∑ie−β⁢EiA)⁢(∑je−β⁢EjB)=ZA⁢ZB, (9)

and more generally Z=∏kZk, log⁡Z=∑klog⁡Zk. This innocuous identity is the seed of every product formula in these notes.

Thread (The Boltzmann factor as a homomorphism).

Look closely at (9). The single fact that powers it is

e−β⁢(E1+E2)=e−β⁢E1⁢e−β⁢E2. (10)

The map E↦e−β⁢E sends addition of energies to multiplication of weights. That is the defining property of a one-dimensional character of the additive group of energies-and it is why independent systems multiply, why Z factorizes over modes, and (eventually) why η and θ are infinite products. We will also soon want to weight states by a second additive quantity, a conserved charge N, via e−β⁢(E−μ⁢N): the new knob μ is the chemical potential, developed in Lecture 2.

For the curious (the symplectic route to β=1/(kB⁢T)).

The identification β=1/(kB⁢T) above leaned on classical thermodynamics as an external input. There is a purely geometric route that never invokes it. Phase space carries a Liouville volume, preserved by Hamiltonian flow; let Ω⁢(E)=Vol⁡{H≤E} be the enclosed volume below energy E-a symplectic quantity, nothing thermal about it yet. Define the microcanonical entropy S⁢(E)=log⁡Ω⁢(E) and define β:=d⁢S/d⁢E: the logarithmic growth rate of a volume, pure calculus so far. This β agrees with the Lagrange multiplier of §1.1: for large systems Z⁢(β)=∫𝑑E⁢Ω′⁢(E)⁢e−β⁢E is dominated by the energy E∗ where log⁡Ω′⁢(E)−β⁢E is stationary, i.e. β=d⁢log⁡Ω′/d⁢E|E∗; and since the derivatives of log⁡Ω and log⁡Ω′ agree up to subextensive corrections, Laplace’s method makes the two definitions coincide in the thermodynamic limit. The one physical, not purely geometric, ingredient left is the postulate that equilibrium maximizes accessible phase volume: two weakly coupled systems distribute their energy so as to maximize ΩA′⁢(EA)⁢ΩB′⁢(Etot−EA), which forces equal β at the maximum-the statement that underwrites the zeroth law, with lighter machinery than the full Clausius–Kelvin apparatus. The same Liouville volume returns as the path-integral measure in Lecture 3.

Rosetta notes

  • •

    β↔ inverse temperature, soon to be reinterpreted as an imaginary time and then as Im⁡τ.

  • •

    log⁡Z↔ the free energy, the generating function of energy cumulants.

  • •

    Z=∏kZk↔ the product formulas ∏(1−qn)−1 and ∏(1+qn) that become η and θ.

  • •

    The sum ∑i over a labelled basis is about to become a basis-independent trace.

← Back to The Many Faces of the Partition Function

Prefer the whole series as one document? Download the notes (PDF).