Partition Functions
A partition function is a basis-independent trace of an equilibrium statistical weight. In the fixed-particle-number canonical ensemble,
In the grand-canonical ensemble,
These quantities normalize density operators, but normalization is only their first role. Their logarithms generate connected fluctuations, thermodynamic potentials, and responses. Their factorization records independence. Their analytic and asymptotic structure encodes spectra, phases, and low-energy physics.
The canonical and grand-canonical ensemble pages explain their controls. Here the focus is how to count states, extract fixed-number contributions, and generate moments without confusing one-particle and many-particle sums.
Helpful background. The thermal density operator explains normalization; trace-class operators clarify convergence when the Hilbert space is infinite.
Basis-independent state counting
Section titled “Basis-independent state counting”Let be any orthonormal basis of the relevant Hilbert space. Then
If is unitary and
then cyclicity of the trace gives
The partition function is therefore independent of the basis used to evaluate it. The energy basis is convenient, not fundamental.
Spectral State Sum
Section titled “Spectral State Sum”For
functional calculus gives
Taking the trace,
where
is the degeneracy of energy .
Dropping is equivalent to discarding states. If energy labels are repeated once per independent eigenvector, the same formula can be written
Dimension and Units
Section titled “Dimension and Units”The exponential must have a dimensionless argument:
is dimensionless because
The trace of is dimensionless, so and are dimensionless.
A classical phase-space partition function requires a reference cell such as to make the integral dimensionless. In quantum mechanics, the Hilbert-space trace supplies the state count directly.
Existence and Convergence
Section titled “Existence and Convergence”In finite dimension,
for every finite real .
In infinite dimension, the operator
must be trace class. Equivalently,
for a discrete spectrum counted with multiplicity.
A Hamiltonian bounded below is not by itself sufficient. The number of states below energy must not grow too rapidly relative to the Boltzmann suppression.
Positive inverse temperature
Section titled “Positive inverse temperature”For , low energies are favored. Confined systems with spectra growing sufficiently rapidly often have finite .
Infinite temperature
Section titled “Infinite temperature”At ,
This is finite only in finite dimension.
Negative inverse temperature
Section titled “Negative inverse temperature”For , high energies are favored. The Hamiltonian must be bounded above and the full trace must converge. An upper bound alone does not suffice on an infinite-dimensional space; infinitely many states in a bounded energy interval already make the trace diverge.
Infinite volume
Section titled “Infinite volume”Even when a finite-volume partition function exists, the total usually has an exponential dependence on volume (growth or decay depends on the energy zero). The bulk object is often
or the associated free-energy density, not a finite infinite-volume trace.
Partition Functions Generate Moments
Section titled “Partition Functions Generate Moments”Assume has no explicit dependence and the required moments exist; this holds inside an open interval of Gibbs-trace convergence. Differentiating gives
Therefore
A second derivative gives
Thus
The convexity of in is a variance statement.
Moment-Generating Interpretation
Section titled “Moment-Generating Interpretation”Within the canonical state at inverse temperature , consider
Because commutes with every function of itself,
whenever both traces converge.
The cumulant-generating function of energy is
Consequently,
For example,
and
Higher derivatives generate higher connected energy fluctuations. The parameter here has inverse-energy units and is a generating variable, not physical time.
Source-Dependent Partition Functions
Section titled “Source-Dependent Partition Functions”Introduce a source coupled to an observable :
Define
The first derivative is
This remains true even if
The derivative of a noncommuting operator exponential is handled by the Duhamel formula, and cyclicity of the trace reduces the first derivative to the thermal expectation value.
The second derivative requires more care. For noncommuting and , it produces an imaginary-time or Kubo–Mori correlation rather than simply
The ordinary variance is recovered when the relevant operators commute. Fluctuations and Susceptibilities develops the Kubo–Mori covariance, static response interpretation, and thermodynamic examples.
Parameter Derivatives and Generalized Forces
Section titled “Parameter Derivatives and Generalized Forces”Let
Then
The Helmholtz free energy
satisfies
If the generalized force is defined by
then
Explicit or temperature dependence in an effective Hamiltonian adds derivative terms and must be stated.
Grand Partition Function as a Number Generator
Section titled “Grand Partition Function as a Number Generator”Assume
Fock space decomposes as
The grand partition function is
With fugacity
this becomes
Thus is an ordinary generating function for the fixed- canonical partition functions.
The probability of particle number is
Coefficient Extraction
Section titled “Coefficient Extraction”If is analytic around the origin,
where denotes the coefficient of .
Equivalently,
where encloses the origin inside the domain of analyticity.
This contour formula is exact. Saddle-point evaluation at large connects fixed-number and fixed-chemical-potential descriptions.
Number Cumulants
Section titled “Number Cumulants”It is convenient to define
Then
and
More generally,
Fixed and fixed are the same constraint; either differs from fixed during a derivative. This is the negative of the alternative multiplier used on the grand-canonical page.
Factorization for Independent Subsystems
Section titled “Factorization for Independent Subsystems”Suppose
and
The two terms commute, so
Using
one obtains
Therefore
The logarithm is additive here because the trace factorizes. This is an exact independence statement; extensivity in a thermodynamic limit additionally requires suitable scaling of the Hamiltonian.
When Factorization Fails
Section titled “When Factorization Fails”Naive factorization fails when:
- the Hamiltonian contains interactions between and ;
- the Hilbert space does not factor into independent tensor factors;
- a global constraint couples otherwise independent subsystems;
- identical-particle symmetrization links particle labels;
- gauge or superselection constraints restrict the physical subspace;
- the trace is projected onto one total-charge sector.
Weak interactions can sometimes be treated perturbatively, but
is the generic interacting case.
Single-Particle Versus Many-Body Partition Functions
Section titled “Single-Particle Versus Many-Body Partition Functions”Let the one-particle Hamiltonian act on a one-particle space , with energies . Define
The symbol is a one-particle partition function. It is not automatically the partition function of identical quantum particles.
Distinguishable Noninteracting Particles
Section titled “Distinguishable Noninteracting Particles”For labeled, noninteracting particles,
and
The partition function factorizes:
This formula counts permutations of one-particle occupations as distinct labeled states.
Identical Bosons and Fermions
Section titled “Identical Bosons and Fermions”For identical particles, the trace is restricted to the symmetric or antisymmetric subspace:
The plus sign denotes bosons and the minus sign fermions. In general,
For noninteracting identical particles, an exact recurrence is
with
To derive the recurrence, expand the logarithm of the independent-mode product near :
Differentiate with respect to , multiply by , and compare coefficients in . The left coefficient is ; the product on the right gives the displayed convolution. This proves the recurrence without treating identical particles as independent labeled copies. The terms with are exchange contributions.
Maxwell–Boltzmann Limit
Section titled “Maxwell–Boltzmann Limit”In the dilute, nondegenerate regime, exchange corrections become small and the identical-particle canonical partition function approaches
The factor prevents classical overcounting of particle labels. This is an approximation to the quantum bosonic or fermionic result, not an exact formula at arbitrary density.
Classical Limit of Quantum Statistics derives the controlling parameter , the low-fugacity cycle expansion, and the leading Bose and Fermi virial corrections.
Noninteracting Modes in Fock Space
Section titled “Noninteracting Modes in Fock Space”Suppose
The grand partition function factorizes over modes.
For bosons,
provided
for every mode, with convergence of the full product also required if infinitely many modes are present.
For fermions,
Taking logarithms turns products into sums:
and
Example: Two One-Particle Levels
Section titled “Example: Two One-Particle Levels”Let
and define
The one-particle partition function is
Two distinguishable particles
Section titled “Two distinguishable particles”For two labeled particles,
The coefficient counts which labeled particle occupies the excited level.
Two identical bosons
Section titled “Two identical bosons”The allowed occupation states are
Therefore
Two identical spinless fermions
Section titled “Two identical spinless fermions”Pauli exclusion allows only
Hence
The three answers differ despite sharing the same one-particle spectrum.
Two particles share one-particle levels . The numbers beside the many-body levels give degeneracy . The labeled system has two states at total energy ; the bosonic system has one; spinless fermions can occupy only the middle total energy. These counts produce the three distinct partition functions above.
Density-of-States Representation
Section titled “Density-of-States Representation”Define
Then
The partition function is the Laplace transform of the density of states.
For a discrete spectrum,
and the integral reduces to the spectral sum.
Formally, the inverse transform is
where the vertical contour lies in a domain of convergence. Inverse Laplace transforms are often numerically ill-conditioned; formal invertibility does not guarantee stable reconstruction from noisy data.
Low-Temperature Expansion
Section titled “Low-Temperature Expansion”For a discrete spectrum with finite degeneracies and a Gibbs trace convergent at some positive inverse temperature, let the ground energy be with degeneracy , and let the next distinct energy be
Then
At large positive ,
The leading exponential reveals the ground energy, while the constant term reveals its degeneracy.
Finite Systems and Analyticity
Section titled “Finite Systems and Analyticity”For a finite spectrum,
is analytic for finite real and strictly positive there. Consequently,
has no real-axis singularity at finite system size.
Sharp thermodynamic phase transitions require a limit in which system size diverges. In the complex plane, finite-system partition functions can have zeros. Families of such zeros can approach the physical real axis in a thermodynamic limit, producing nonanalytic bulk free energies.
Imaginary-time traces and exchange
Section titled “Imaginary-time traces and exchange”The operator is an imaginary-time propagator of duration . For a confined particle with under the usual Trotter convergence assumptions,
The trace closes coordinate paths. For identical particles it also sums permutations of their endpoints, with positive weights for bosons and permutation signs for fermions. This is distinct from the periodic or antiperiodic boundary conditions of coherent-state fields in an unprojected Fock-space trace. Fixed-number projection requires an additional constraint and changes the simple field-boundary argument. See thermal path integrals and coherent-state thermal traces for the respective constructions.
Stable spectral sums
Section titled “Stable spectral sums”For a retained list of distinct energies and degeneracies, define and . Then
Every remaining exponential is at most one. This log-sum-exp form handles either sign of temperature in a finite spectrum and accounts for large degeneracies, whereas shifting only by the lowest energy is adapted to .
For independent modes compute sums of logarithms instead of products. Use log1p for when is small, and a stable softplus or logaddexp for when can be large.
Numerical stabilization does not cure an incomplete spectrum. Increase the cutoff until and the target observables converge, or bound the omitted Boltzmann tail using known state-count growth. The correct particle-number and symmetry sectors must also be included before summation.
Exercises
Section titled “Exercises”Basis independence
Section titled “Basis independence”Let be unitary. Show that
Solution
Functional calculus gives
Using cyclicity,
The partition function depends on the spectrum with multiplicity, not on the chosen basis.
Energy cumulants
Section titled “Energy cumulants”Starting from
show that the first two cumulants are the mean and variance of .
Solution
The first derivative at is
The second derivative is
Direct differentiation gives
Hence
Recover fixed-number sectors
Section titled “Recover fixed-number sectors”For two fermionic modes with one-particle energies and , expand
and identify , , and .
Solution
Expanding,
Comparing with
gives
and
The sector has one state because Pauli exclusion forces both modes to be occupied.
Factorization test
Section titled “Factorization test”Let
For which value of does exact factorization follow immediately? Explain why commutation of with the uncoupled Hamiltonian is not by itself enough to give .
Solution
At
the Hamiltonian is a sum of operators on independent tensor factors, so
If and commutes with the uncoupled Hamiltonian, then
with the tensor factors understood on the full space. The extra operator generally couples the trace over and , so its trace does not split into .
Commutation simplifies the exponential but does not remove the interaction or restore a product state count.
References
Section titled “References”- A. L. Fetter and J. D. Walecka, Quantum Theory of Many-Particle Systems, Dover (2003), chapters 1 and 2.
- R. P. Feynman and A. R. Hibbs, Quantum Mechanics and Path Integrals, emended ed., Dover (2010), chapters 2 and 10.
- K. Huang, Statistical Mechanics, 2nd ed., Wiley (1987), chapters 7–12.
- M. Kardar, Statistical Physics of Particles, Cambridge University Press (2007), chapters 2–6.
- H. Kleinert, Path Integrals in Quantum Mechanics, Statistics, Polymer Physics, and Financial Markets, 5th ed., World Scientific (2009), chapters 2 and 7.
- L. D. Landau and E. M. Lifshitz, Statistical Physics, Part 1, 3rd ed., Butterworth–Heinemann (1980), sections 31–56.
- R. K. Pathria and P. D. Beale, Statistical Mechanics, 4th ed., Elsevier (2021), chapters 3–8.
- C. N. Yang and T. D. Lee, “Statistical Theory of Equations of State and Phase Transitions. I. Theory of Condensation”, Physical Review 87, 404–409 (1952).