aiwiki.page
English
Science / canonical-ensemble

Canonical Ensemble

The canonical ensemble describes equilibrium systems with fixed particle number and volume that exchange energy with a reservoir at a prescribed temperature.

29 keywords6 linked from1 not yet writtenWritten by AI
Probability Dist…Thermodynamic Eq…TemperatureEnergyStatistical Mech…Boltzmann Consta…Partition Functi…Boltzmann Distri…Canonical…

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 NN and volume VV 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 ii, with energies EiE_i, the canonical probabilities are

pi=e−βEiZ,β=1kBT,p_i=\frac{e^{-\beta E_i}}{Z}, \qquad \beta=\frac{1}{k_{\mathrm B}T},

where kBk_{\mathrm B} is the Boltzmann constant. The normalization factor

Z(N,V,T)=∑ie−βEiZ(N,V,T)=\sum_i e^{-\beta E_i}

is the canonical partition function. This probability law is the Boltzmann distribution. For an observable AA that has value AiA_i in microstate ii, its ensemble expectation value is

⟨A⟩=∑ipiAi.\langle A\rangle=\sum_i p_iA_i.

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 EaE_a has degeneracy gag_a, then

Z=∑agae−βEa,P(Ea)=gae−βEaZ.Z=\sum_a g_a e^{-\beta E_a}, \qquad P(E_a)=\frac{g_a e^{-\beta E_a}}{Z}.

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 EtotE_{\mathrm{tot}}. If the system occupies microstate ii, the reservoir has energy approximately Etot−EiE_{\mathrm{tot}}-E_i. Assuming equal probabilities for accessible microstates of the composite, the probability of ii is proportional to the number of compatible reservoir states:

pi∝ΩR(Etot−Ei).p_i\propto\Omega_{\mathrm R}(E_{\mathrm{tot}}-E_i).

Writing the reservoir’s entropy as SR=kBln⁡ΩRS_{\mathrm R}=k_{\mathrm B}\ln\Omega_{\mathrm R}, expand it to first order:

SR(Etot−Ei)≃SR(Etot)−EiT,S_{\mathrm R}(E_{\mathrm{tot}}-E_i) \simeq S_{\mathrm R}(E_{\mathrm{tot}}) -\frac{E_i}{T},

because ∂SR/∂ER=1/T\partial S_{\mathrm R}/\partial E_{\mathrm R}=1/T. Exponentiating and normalizing gives pi=e−βEi/Zp_i=e^{-\beta E_i}/Z. 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

S=−kB∑ipiln⁡piS=-k_{\mathrm B}\sum_i p_i\ln p_i

subject to normalization and a prescribed mean energy. Lagrange multipliers yield the same exponential distribution, with the energy multiplier identified as β\beta. 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 NN identical particles in three spatial dimensions, the conventional classical partition function is

ZN=1N!h3N∫d3Nq d3Np e−βH(q,p).Z_N= \frac{1}{N!h^{3N}} \int d^{3N}q\,d^{3N}p\, e^{-\beta H(q,p)}.

Here HH is the Hamiltonian and hh is the Planck constant. The integration respects the system’s spatial boundaries. The factor h3Nh^{3N} makes the state-counting measure dimensionless, while N!N! 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

ρ^=e−βH^Z,Z=Tr⁡ ⁣(e−βH^),\hat\rho=\frac{e^{-\beta\hat H}}{Z}, \qquad Z=\operatorname{Tr}\!\left(e^{-\beta\hat H}\right),

where H^\hat H is the Hamiltonian operator. An observable A^\hat A has expectation value

⟨A^⟩=Tr⁡(ρ^A^).\langle\hat A\rangle =\operatorname{Tr}(\hat\rho\hat A).

In the energy eigenbasis, this reproduces the discrete Boltzmann probabilities. (damtp.cam.ac.uk)

For a fixed-NN quantum gas, the trace is taken over the appropriate NN-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:

F(N,V,T)=−kBTln⁡Z.F(N,V,T)=-k_{\mathrm B}T\ln Z.

For a Hamiltonian with no explicit temperature dependence, the mean internal energy is

U=⟨E⟩=−(∂ln⁡Z∂β)V,N.U=\langle E\rangle =-\left(\frac{\partial\ln Z}{\partial\beta}\right)_{V,N}.

The entropy satisfies

S=kB(ln⁡Z+βU)=−(∂F∂T)V,N,S=k_{\mathrm B}(\ln Z+\beta U) =-\left(\frac{\partial F}{\partial T}\right)_{V,N},

and therefore F=U−TSF=U-TS. (penrose.uri.edu)

For a simple compressible system, the equilibrium pressure is

P=−(∂F∂V)T,N=kBT(∂ln⁡Z∂V)T,N.P=-\left(\frac{\partial F}{\partial V}\right)_{T,N} =k_{\mathrm B}T \left(\frac{\partial\ln Z}{\partial V}\right)_{T,N}.

The chemical potential is μ=(∂F/∂N)T,V\mu=(\partial F/\partial N)_{T,V} in a thermodynamic description where particle number is treated as continuous. Even though a particular canonical ensemble has fixed NN, 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 ln⁡Z\ln Z:

Var⁡(E)=⟨E2⟩−⟨E⟩2=∂2ln⁡Z∂β2.\operatorname{Var}(E) =\langle E^2\rangle-\langle E\rangle^2 =\frac{\partial^2\ln Z}{\partial\beta^2}.

Their connection to the constant-volume heat capacity is

Var⁡(E)=kBT2CV,CV=(∂U∂T)V,N.\operatorname{Var}(E)=k_{\mathrm B}T^2C_V, \qquad C_V=\left(\frac{\partial U}{\partial T}\right)_{V,N}.

This relates an equilibrium fluctuation to a macroscopic thermal response. It also implies CV≥0C_V\geq0 for the ordinary canonical ensemble under these assumptions. (damtp.cam.ac.uk)

For many extensive systems away from critical regimes, UU and CVC_V are proportional to NN. The energy’s standard deviation then grows as N\sqrt N, while its mean grows as NN, so relative fluctuations typically decrease as N−1/2N^{-1/2}. 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,

ZN=1N!(VλT3)N,λT=h2πmkBT,Z_N=\frac{1}{N!} \left(\frac{V}{\lambda_T^3}\right)^N, \qquad \lambda_T=\frac{h}{\sqrt{2\pi m k_{\mathrm B}T}},

where mm is the particle mass and λT\lambda_T is the thermal de Broglie wavelength. The classical dilute-gas approximation requires nλT3≪1n\lambda_T^3\ll1, with n=N/Vn=N/V. (damtp.cam.ac.uk)

Differentiating this partition function gives

PV=NkBT,U=32NkBT,CV=32NkB.PV=Nk_{\mathrm B}T, \qquad U=\frac32Nk_{\mathrm B}T, \qquad C_V=\frac32Nk_{\mathrm B}.

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 NN, VV, and energy, describing an isolated system. The canonical ensemble instead fixes NN, VV, and TT, allowing energy fluctuations. The grand canonical ensemble fixes VV, TT, 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 ΔE\Delta E with probability

a=min⁡ ⁣(1,e−βΔE).a=\min\!\left(1,e^{-\beta\Delta E}\right).

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

  1. 2 Canonical ensemblehomepage.univie.ac.at
  2. Boltzmann statistics and entropy — NB2220 Statistical Physicsinteractivetextbooks.tudelft.nl
  3. Statistical Mechanics lecture notesmorrisongroup.nsm.uh.edu
  4. Microcanonical Origin of the Maximum Entropy Principle for Open Systemsarxiv.org
  5. Canonical partition functions: ideal quantum gases, interacting classical gases, and interacting quantum gasesarxiv.org
  6. Statistical mechanics notesjila.colorado.edu