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 logZ.

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 ipiEi=E fixed, which should we choose? The principle of maximum entropy says: the least-committal one, maximizing the Gibbs–Shannon entropy S=ipilogpi. Lagrange multipliers α,β enforce the two constraints; we extremize

ipilogpiα(ipi1)β(ipiEiE) (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 logpi=1αβEi, that is

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

The multiplier β enforcing the energy constraint is the inverse temperature, β=1/(kBT), 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 logZ

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

E =iEieβEiZ=logZβ, (3)
Var(E) =E2E2=2logZβ2, (4)

so logZ is literally the cumulant generating function of the energy.

Where does the identification β=1/(kBT) from §1.1 actually come from? Evaluate the informational entropy on the maximizing distribution itself: since logpi=βEilogZ,

S=ipilogpi=βE+logZ. (5)

Multiply by kB to give S thermodynamic units and differentiate with respect to E at fixed volume and particle number, using logZ/β=E from above-the β/E terms cancel exactly, leaving

kBSE=kBβ. (6)

Classical thermodynamics defines temperature by S/E=1/T; comparing the two fixes β=1/(kBT) 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=β1logZ, 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 kBTϵ (the Schottky anomaly)11 1 Explicitly, C(T)=kB(ϵkBT)2eϵ/kBT(1+eϵ/kBT)2-a bump vanishing both as T0 (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 kBT 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=n0eβω(n+1/2)=eβω/21eβω=12sinh(βω/2). (7)

A bosonic mode admits any occupation number n0; 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/2exp(i): continue to imaginary time, tiβ (so sinωtisinhβω), set xb=xa, and integrate over xa-that is, trace over closed paths-and the Gaussian integral yields exactly 1/(2sinh(βω/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)=ZAZB, (9)

and more generally Z=kZk, logZ=klogZk. 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βE1eβE2. (10)

The map Eeβ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/(kBT)).

The identification β=1/(kBT) 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{HE} 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 β:=dS/dE: 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. β=dlogΩ/dE|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(EtotEA), 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τ.

  • logZ the free energy, the generating function of energy cumulants.

  • Z=kZk the product formulas (1qn)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).