Canonical partition function
The canonical partition function is the normalization constant of the canonical ensemble describing equilibrium at fixed inverse temperature (see inverse temperature ), fixed volume , and fixed particle number .
For a system with discrete energy levels (indexed by microstates ), it is defined by
For a classical system with Hamiltonian on phase space , one writes schematically
where denotes the phase-space volume element at fixed (often with conventional prefactors such as and powers of Planck’s constant to make dimensionless).
In either case, the canonical probability of a microstate is
Connection to density of states
If denotes the density of states (or microcanonical level density), then is its Laplace transform:
This is the basic bridge between canonical equilibrium and the microcanonical description (see also canonical-from-microcanonical construction ).
Thermodynamic potential: Helmholtz free energy
The canonical partition function generates the Helmholtz free energy :
where is the Boltzmann constant and . In the thermodynamic limit , becomes extensive and is the natural potential at fixed (compare with statistical free energy ).
Key derivative formulas (energy, pressure, fluctuations)
The logarithm of is a generating function for equilibrium averages (see observables from log partition functions ). In particular:
Mean energy
Energy fluctuations and heat capacity
This is the canonical fluctuation formula behind specific heat from fluctuations .
Pressure from The mechanical pressure can be obtained from volume dependence of :
as summarized in pressure from the partition function .
These identities show how simultaneously normalizes the ensemble and encodes the response of the equilibrium state to changes in control parameters.