Canonical partition function

Normalization of the canonical ensemble; generates thermodynamic potentials and equilibrium averages at fixed (β,V,N).
Canonical partition function

The canonical partition function Z(β,V,N)Z(\beta,V,N) is the normalization constant of the describing equilibrium at fixed inverse temperature β\beta (see ), fixed volume VV, and fixed particle number NN.

For a system with discrete energy levels {Es}\{E_s\} (indexed by microstates ss), it is defined by

Z(β,V,N)=seβEs. Z(\beta,V,N) = \sum_{s} e^{-\beta E_s}.

For a classical system with H(x)H(x) on , one writes schematically

Z(β,V,N)=dx  eβH(x), Z(\beta,V,N) = \int dx\; e^{-\beta H(x)},

where dxdx denotes the at fixed VV (often with conventional prefactors such as 1/N!1/N! and powers of Planck’s constant to make ZZ dimensionless).

In either case, the canonical probability of a microstate is

P(s)=eβEsZ(β,V,N),orP(dx)=eβH(x)Z(β,V,N)dx. \mathbb{P}(s) = \frac{e^{-\beta E_s}}{Z(\beta,V,N)}, \qquad\text{or}\qquad \mathbb{P}(dx) = \frac{e^{-\beta H(x)}}{Z(\beta,V,N)}\,dx.

Connection to density of states

If Ω(E;V,N)\Omega(E;V,N) denotes the (or microcanonical level density), then ZZ is its Laplace transform:

Z(β,V,N)=dE  Ω(E;V,N)eβE. Z(\beta,V,N) = \int dE\; \Omega(E;V,N)\, e^{-\beta E}.

This is the basic bridge between canonical equilibrium and the (see also ).

Thermodynamic potential: Helmholtz free energy

The canonical partition function generates the :

F(T,V,N)=kBTlnZ(β,V,N), F(T,V,N) = -k_B T \ln Z(\beta,V,N),

where kBk_B is the and β=1/(kBT)\beta = 1/(k_B T). In the , FF becomes extensive and is the natural potential at fixed (T,V,N)(T,V,N) (compare with ).

Key derivative formulas (energy, pressure, fluctuations)

The logarithm of ZZ is a generating function for equilibrium averages (see ). In particular:

Mean energy

E=lnZβ. \langle E\rangle = -\frac{\partial \ln Z}{\partial \beta}.

Energy fluctuations and heat capacity

Var(E)=2lnZβ2,CV=(ET)V,N=kBβ2Var(E). \mathrm{Var}(E) = \frac{\partial^2 \ln Z}{\partial \beta^2}, \qquad C_V = \left(\frac{\partial \langle E\rangle}{\partial T}\right)_{V,N} = k_B \beta^2\, \mathrm{Var}(E).

This is the canonical fluctuation formula behind .

Pressure from ZZ The mechanical pressure can be obtained from volume dependence of ZZ:

p=kBT(lnZV)β,N, p = k_B T \left(\frac{\partial \ln Z}{\partial V}\right)_{\beta,N},

as summarized in .

These identities show how ZZ simultaneously normalizes the ensemble and encodes the response of the equilibrium state to changes in control parameters.