Canonical Ensemble
The canonical ensemble describes a system that can exchange energy with a thermal environment while its particle number and external control parameters are fixed. Its standard macroscopic controls are
with Hamiltonian acting on the fixed- Hilbert space.
The equilibrium state is
where
The subscript is often suppressed, but the trace domain is part of the ensemble definition. The general operator properties of this state live in Thermal Density Operators. Here the focus is fixed- thermodynamics.
What Is Fixed and What Fluctuates?
Section titled “What Is Fixed and What Fluctuates?”| Quantity | Canonical status |
|---|---|
| temperature | externally fixed |
| volume and other controls | externally fixed |
| particle number | fixed exactly |
| energy | fluctuates |
| density operator | |
| thermodynamic potential | Helmholtz free energy |
The ensemble describes a probability distribution over energy eigenstates in one fixed-particle-number sector. It does not imply that particles are exchanged with the environment. Particle exchange belongs to the grand-canonical ensemble.
Reservoir Motivation
Section titled “Reservoir Motivation”Consider a small system weakly coupled to a much larger reservoir . The combined system is isolated with total energy
If occupies an energy eigenstate with energy , the reservoir can occupy
compatible states. Therefore
Using
expand the reservoir entropy:
The thermodynamic identity
then gives
Normalizing over system states yields the canonical probabilities.
This argument assumes:
- the reservoir is much larger than the system;
- the coupling energy is negligible at leading order;
- the reservoir temperature changes negligibly across relevant system energies;
- the combined system explores or is assigned the appropriate energy shell;
- the fixed particle-number and external-parameter constraints are respected.
At strong system–bath coupling, the reduced equilibrium state need not be the bare Gibbs state of .
Quantum Density Operator
Section titled “Quantum Density Operator”For a spectral decomposition
the canonical state is
If , the energy probability is
The partition function is
The sum is over the fixed- spectrum. Including states with other particle numbers silently changes the ensemble.
The Partition Function as a Generating Object
Section titled “The Partition Function as a Generating Object”The canonical partition function is not only a normalization. Its logarithm generates equilibrium thermodynamics. Partition Functions owns the general trace, cumulant, factorization, quantum-statistics, and path-integral structure; this section records the identities needed for fixed- thermodynamics.
Define
Equivalently,
The internal energy is
for a Hamiltonian with no explicit temperature or dependence.
Another useful identity is
The entropy follows from
and equals
These relations use the natural logarithm.
Helmholtz Free Energy
Section titled “Helmholtz Free Energy”The Helmholtz free energy is the thermodynamic potential appropriate to fixed , , and :
At equilibrium, the Gibbs state minimizes the state functional
over normalized density operators on .
The equilibrium value is
Free energy balances energy against entropy. A low-energy state is favored energetically; a large set of accessible states is favored entropically.
Generalized Forces
Section titled “Generalized Forces”Let the Hamiltonian depend on an external parameter . Even when and do not commute, cyclicity of the trace gives
If the physical generalized force is defined by
then
Examples include:
for pressure and
for magnetization when the Hamiltonian contains the appropriate magnetic-field coupling.
Sign conventions follow the definition of the Hamiltonian term. They should be checked rather than memorized independently of .
Differential Form
Section titled “Differential Form”For a simple system,
The canonical ensemble holds fixed during fluctuations, but can still be defined by comparing neighboring fixed- systems:
in a thermodynamic or smoothly interpolated description.
At finite integer , addition and removal chemical potentials are naturally finite differences:
They need not coincide in a finite system or across a gap.
Energy Fluctuations
Section titled “Energy Fluctuations”The second derivative of is
Therefore
For a temperature-independent Hamiltonian,
Thus
in the canonical ensemble under these assumptions.
This does not prove that every definition of heat capacity in every ensemble is nonnegative. Microcanonical and nonadditive long-range systems can require separate analysis.
Energy Distribution
Section titled “Energy Distribution”The canonical probability of energy is
Its mean and variance are
For ordinary additive systems away from criticality,
Hence the relative energy width scales as
Macroscopic energy density becomes sharply concentrated even though total energy still fluctuates.
Near criticality, long-range correlations can modify simple scaling. At first-order coexistence, the energy distribution can become bimodal. Finite-size data should be inspected rather than forced into a Gaussian assumption.
Density-of-States Representation
Section titled “Density-of-States Representation”Let count fixed- states near energy . The partition function is the Laplace transform
or the corresponding discrete sum.
Writing
gives
For a large system, a saddle point satisfies
At leading order,
This is the Legendre relation between microcanonical entropy and canonical free energy. Its validity can fail or require convexification in nonadditive systems and coexistence regions.
Factorization for Independent Subsystems
Section titled “Factorization for Independent Subsystems”Suppose
on
The terms commute, so
Therefore
and
This factorization assumes a tensor-product decomposition with independent Hamiltonians. Identical-particle symmetrization, global particle-number constraints, or interactions can prevent a naive product of one-particle partition functions.
Canonical Ensemble and Identical Particles
Section titled “Canonical Ensemble and Identical Particles”For identical particles, the trace must be taken over the appropriate symmetric or antisymmetric -particle subspace:
One should not begin with an -fold labeled-particle trace and forget to impose exchange symmetry.
For a dilute classical gas, a factor of emerges in the appropriate limit. For a quantum-degenerate gas, Bose–Einstein or Fermi–Dirac statistics must be treated directly.
The canonical ensemble fixes exactly. It can still describe identical particles, occupation numbers, and exchange correlations.
Finite-Size Analyticity
Section titled “Finite-Size Analyticity”For a finite-dimensional Hamiltonian analytic in a real parameter ,
at finite positive temperature. Therefore
is analytic under the stated assumptions.
Finite systems can have sharp peaks, rapid crossovers, and bimodal distributions. A genuine thermal nonanalyticity requires an infinite-system or another singular limit.
Zero temperature is different: taking can expose a finite-system level crossing in the ground-state energy.
Ensemble Equivalence and Its Limits
Section titled “Ensemble Equivalence and Its Limits”The canonical ensemble allows energy fluctuations; the microcanonical ensemble fixes an energy shell. For short-range additive systems in a regular thermodynamic limit, local observables often agree between the two ensembles when their mean energies are matched.
The reason is concentration:
Equivalence is not automatic for:
- finite systems;
- long-range nonadditive interactions;
- phase coexistence;
- observables sensitive to global fluctuations;
- constrained sectors;
- nonconcave entropy regions.
“Thermodynamic limit” should not be used as a universal spell that erases ensemble definitions. Ensemble Equivalence gives the full concentration, entropy-concavity, local-state, coexistence, and long-range analysis.
Temperature-Dependent Effective Hamiltonians
Section titled “Temperature-Dependent Effective Hamiltonians”The familiar identity
assumes has no explicit dependence. If an effective Hamiltonian is written as , then
The extra term cannot be dropped.
Temperature-dependent effective Hamiltonians can arise after integrating out degrees of freedom or fitting phenomenological parameters. Their thermodynamic consistency must be derived from the underlying model rather than assumed from formal resemblance.
Example: One Two-Level System
Section titled “Example: One Two-Level System”Let
With
the partition function is
The free energy and internal energy are
The energy variance is
Therefore
The heat capacity vanishes as and and has a finite-temperature Schottky peak.
Example: Independent Two-Level Sites
Section titled “Example: Independent Two-Level Sites”For distinguishable noninteracting copies,
Factorization gives
Consequently,
The energy standard deviation grows as , while the mean energy grows as at fixed finite temperature. Relative energy fluctuations therefore scale as .
Example: Harmonic Oscillator
Section titled “Example: Harmonic Oscillator”For
define
The partition function is
The internal energy is
The heat capacity is
As , and . At high temperature, approaches and approaches .
Canonical Boundaries
Section titled “Canonical Boundaries”This page owns:
- the fixed- ensemble;
- the reservoir motivation for Boltzmann weights;
- as a fixed-sector trace;
- Helmholtz free energy and its derivatives;
- canonical energy fluctuations and heat capacity;
- the density-of-states transform and large-system saddle;
- factorization and ensemble-equivalence caveats.
Other pages own:
- the general operator structure and temperature limits of the Gibbs state: Thermal Density Operators;
- partition functions as general spectral and generating objects: Partition Functions;
- natural variables, Legendre transforms, Gibbs free energy, and stability identities: Thermodynamic Potentials;
- thermal entropy versus information and entanglement entropy: Entropy in Quantum Statistical Mechanics;
- the general constrained-entropy derivation and multiplier duality: Maximum Entropy Principle;
- the unified static fluctuation–response dictionary and noncommuting correction: Fluctuations and Susceptibilities;
- variable-particle-number traces and number fluctuations: Grand-Canonical Ensemble;
- finite-system addition and removal chemical potentials: Chemical Potential;
- isolated energy shells and microcanonical entropy: Microcanonical Ensemble;
- open-system heat, work, and entropy production: Quantum Thermodynamics;
- Bose–Einstein and Fermi–Dirac occupation laws: Quantum Statistics and Ideal Gases.
Common Mistakes
Section titled “Common Mistakes”- Forgetting that the trace is restricted to fixed .
- Calling a variable-particle-number calculation canonical.
- Treating as only a normalization and missing its derivative structure.
- Using instead of the natural logarithm.
- Dropping degeneracy factors in an energy-level sum.
- Multiplying one-particle partition functions for identical quantum particles without exchange corrections.
- Inferring a preparation or thermalization mechanism from the equilibrium ensemble.
- Assuming the reservoir derivation remains exact at strong coupling.
- Using when depends explicitly on .
- Forgetting what is held fixed in a thermodynamic derivative.
- Assuming every generalized-force sign convention is the same.
- Concluding that canonical heat capacity can be negative for a temperature-independent finite Hamiltonian.
- Calling a finite-size peak a phase transition without scaling.
- Assuming canonical and microcanonical ensembles are always equivalent.
- Confusing total energy fluctuations with uncertainty in a pure-state energy measurement.
Exercises
Section titled “Exercises”Two-level heat capacity
Section titled “Two-level heat capacity”Starting from
derive the heat capacity and show its low- and high-temperature limits.
Solution
The mean energy is
Let . Differentiating with respect to gives
For ,
For ,
Shift the energy zero
Section titled “Shift the energy zero”If , determine how , , , , , and change.
Solution
The partition function changes by
The normalized state is unchanged:
The free energy and internal energy shift:
The entropy is
and is unchanged when is temperature independent.
Independent-site factorization
Section titled “Independent-site factorization”For independent two-level sites with energies and , derive , , and the probability that exactly sites are excited.
Solution
Each site has
Independence gives
There are configurations with excitations, each of energy . Hence
This is a binomial distribution with single-site excitation probability .
Fluctuation identity
Section titled “Fluctuation identity”Show that
Solution
First,
Differentiating again,
Canonical versus grand canonical
Section titled “Canonical versus grand canonical”A calculation sums over states with and weights each state by . Is it canonical? Identify the correct ensemble and explain what must change to make the calculation canonical.
Solution
It is grand canonical because particle number varies and the chemical potential appears in the weight.
To make the calculation canonical, choose one particle number and restrict the trace to :
The chemical-potential term is then unnecessary because is fixed. Different fixed- partition functions can be compared afterward to define addition or removal chemical potentials.
Cross-Links
Section titled “Cross-Links”- Statistical Ensembles Overview
- Microcanonical Ensemble
- Grand-Canonical Ensemble
- Partition Functions
- Thermodynamic Potentials
- Entropy in Quantum Statistical Mechanics
- Maximum Entropy Principle
- Chemical Potential
- Ensemble Equivalence
- Thermal Density Operators
- Ensemble Formula Sheet
- Thermodynamic Limit
- Trace Rule for Expectation Values
- Entropy Overview
- Density of States
- Quantum Thermodynamics
- Statistical Mechanics Checklist
References
Section titled “References”- R. K. Pathria and P. D. Beale, Statistical Mechanics, 3rd ed., Elsevier (2011).
- K. Huang, Statistical Mechanics, 2nd ed., Wiley (1987).
- M. Kardar, Statistical Physics of Particles, Cambridge University Press (2007).
- L. D. Landau and E. M. Lifshitz, Statistical Physics, Part 1, 3rd ed., Butterworth–Heinemann (1980).
- H. B. Callen, Thermodynamics and an Introduction to Thermostatistics, 2nd ed., Wiley (1985).
- L. E. Reichl, A Modern Course in Statistical Physics, 4th ed., Wiley–VCH (2016).