The canonical ensemble is a probability distribution over the microscopic states of a system in thermal equilibrium at a fixed temperature. In its standard form, the particle number and volume are also fixed, while energy can fluctuate through exchange with a heat reservoir. It is a central framework of statistical mechanics, connecting microscopic energy levels to macroscopic thermal properties. (damtp.cam.ac.uk)
Physical meaning
An ensemble represents a collection of hypothetical copies of a system, all subject to the same macroscopic constraints but potentially occupying different microscopic states. It is a statistical description, not necessarily a collection of physically interacting copies. The canonical ensemble specifies the probabilities of those states rather than the precise trajectory of any particular copy. (en.wikisource.org)
The usual physical realization is a system in thermal contact with a much larger reservoir. Energy exchange is allowed, but particles do not cross the boundary and the volume remains fixed. The reservoir is sufficiently large that energy transferred to or from the system produces a negligible change in its temperature. In the standard derivation, the interaction energy between system and reservoir is also negligible compared with their bulk energies. (homepage.univie.ac.at)
“Fixed temperature” does not mean that every microscopic state has the same energy. Temperature is a parameter of the equilibrium distribution; the system’s energy is a fluctuating quantity. This distinguishes the canonical ensemble from an isolated system with fixed energy. (damtp.cam.ac.uk)
Canonical distribution and partition function
For discrete microstates , with energies , the canonical probabilities are
where is the Boltzmann constant. The normalization factor
is the canonical partition function. This probability law is the Boltzmann distribution. For an observable that has value in microstate , its ensemble expectation value is
These expressions apply when the state sum converges. (damtp.cam.ac.uk)
The sum counts microstates, not merely distinct energy values. If an energy level has degeneracy , then
Consequently, although an individual high-energy state has a smaller probability than an individual low-energy state at positive temperature, an energy range containing many states can carry substantial total probability. (damtp.cam.ac.uk)
Derivation from a heat reservoir
Consider an isolated composite consisting of the system and its reservoir, with total energy . If the system occupies microstate , the reservoir has energy approximately . Assuming equal probabilities for accessible microstates of the composite, the probability of is proportional to the number of compatible reservoir states:
Writing the reservoir’s entropy as , expand it to first order:
because . Exponentiating and normalizing gives . The approximation expresses the reservoir’s effectively constant temperature; finite-reservoir corrections arise from higher-order terms. (homepage.univie.ac.at)
An alternative derivation maximizes the Gibbs entropy
subject to normalization and a prescribed mean energy. Lagrange multipliers yield the same exponential distribution, with the energy multiplier identified as . Fixing the mean energy in this derivation is not equivalent to requiring every state to have that energy. (morrisongroup.nsm.uh.edu)
Classical and quantum formulations
Classical phase space
In classical mechanics, a microscopic state is a point in phase space, specified by positions and momenta. For identical particles in three spatial dimensions, the conventional classical partition function is
Here is the Hamiltonian and is the Planck constant. The integration respects the system’s spatial boundaries. The factor makes the state-counting measure dimensionless, while corrects the overcounting caused by assigning labels to identical particles in the classical dilute-gas regime. Distinguishable particles require different counting. (damtp.cam.ac.uk)
Quantum density operator
In quantum mechanics, the canonical state is represented by the density operator
where is the Hamiltonian operator. An observable has expectation value
In the energy eigenbasis, this reproduces the discrete Boltzmann probabilities. (damtp.cam.ac.uk)
For a fixed- quantum gas, the trace is taken over the appropriate -particle state space, including the symmetry requirements for identical particles. Thus the canonical framework applies to both bosonic and fermionic systems; it is not restricted to classical particle statistics. (damtp.cam.ac.uk)
Thermodynamic relations
The principal connection to thermodynamics is the Helmholtz free energy:
For a Hamiltonian with no explicit temperature dependence, the mean internal energy is
The entropy satisfies
and therefore . (penrose.uri.edu)
For a simple compressible system, the equilibrium pressure is
The chemical potential is in a thermodynamic description where particle number is treated as continuous. Even though a particular canonical ensemble has fixed , comparing partition functions at different particle numbers determines the free-energy cost of adding particles. (diposit.ub.edu)
Energy fluctuations
Energy fluctuations follow directly from derivatives of :
Their connection to the constant-volume heat capacity is
This relates an equilibrium fluctuation to a macroscopic thermal response. It also implies for the ordinary canonical ensemble under these assumptions. (damtp.cam.ac.uk)
For many extensive systems away from critical regimes, and are proportional to . The energy’s standard deviation then grows as , while its mean grows as , so relative fluctuations typically decrease as . Macroscopic energy can therefore appear effectively constant even though it is not fixed microscopically. (damtp.cam.ac.uk)
Example: a classical ideal gas
For a monatomic ideal gas of identical particles, neglecting internal excitations,
where is the particle mass and is the thermal de Broglie wavelength. The classical dilute-gas approximation requires , with . (damtp.cam.ac.uk)
Differentiating this partition function gives
Thus both the gas’s equation of state and its thermal energy emerge from microscopic state counting. (damtp.cam.ac.uk)
Relation to other ensembles
The microcanonical ensemble fixes , , and energy, describing an isolated system. The canonical ensemble instead fixes , , and , allowing energy fluctuations. The grand canonical ensemble fixes , , and chemical potential, allowing both energy and particle-number fluctuations. The appropriate ensemble depends on which quantities are controlled and which exchanges are permitted. (damtp.cam.ac.uk)
For many additive systems with short-range interactions, the ensembles yield equivalent bulk thermodynamic predictions in the thermodynamic limit, with temperature and energy chosen consistently. This equivalence does not make their probability distributions identical or eliminate finite-size differences. (damtp.cam.ac.uk)
Equivalence is not universal. In some nonadditive systems with long-range interactions, microcanonical states can have negative heat capacity and no corresponding stable canonical equilibrium. An explicit example occurs in the infinite-range Blume–Emery–Griffiths model, where canonical and microcanonical phase diagrams differ in part of the parameter space. (arxiv.org)
Computational use and limitations
Canonical averages are frequently estimated using Markov chain Monte Carlo. With symmetric trial proposals, the Metropolis algorithm accepts a move with energy change with probability
The partition function cancels from the acceptance ratio. Detailed balance, together with suitable accessibility and convergence conditions, allows the resulting chain to sample the canonical distribution. (research.coe.drexel.edu)
The ensemble specifies equilibrium probabilities, not how rapidly a physical system reaches equilibrium. Likewise, a sampling procedure may have the correct stationary distribution yet explore it slowly. Insufficient equilibration or poor exploration of accessible states can therefore compromise numerical estimates without invalidating the ensemble itself. (websites.umich.edu)
The simple reservoir derivation also has a restricted domain: appreciable reservoir-temperature changes or substantial system–reservoir interaction energy prevent its assumptions from being applied directly. A finite or strongly coupled environment requires a treatment of the composite rather than an unqualified use of the isolated system’s Boltzmann weights. (homepage.univie.ac.at)
Historical development
J. Willard Gibbs systematically developed the canonical ensemble within his ensemble formulation of statistical mechanics in Elementary Principles in Statistical Mechanics, published in 1902. His approach replaced exclusive attention to individual mechanical trajectories with distributions over hypothetical systems, providing a general framework for the statistical foundations of thermodynamics. (en.wikisource.org)
References
- 2 Canonical ensemblehomepage.univie.ac.at
- Boltzmann statistics and entropy — NB2220 Statistical Physicsinteractivetextbooks.tudelft.nl
- Statistical Mechanics lecture notesmorrisongroup.nsm.uh.edu
- Microcanonical Origin of the Maximum Entropy Principle for Open Systemsarxiv.org
- Canonical partition functions: ideal quantum gases, interacting classical gases, and interacting quantum gasesarxiv.org
- Statistical mechanics notesjila.colorado.edu