Grand Canonical Ensemble/The Three Ensembles and the Thermodynamic Web

Lesson 6.31,101 words

The Three Ensembles and the Thermodynamic Web

The microcanonical, canonical, and grand canonical ensembles hold different variables fixed and generate different potentials — the entropy SS, the Helmholtz free energy FF, and the grand potential Φ\Phi — linked by Legendre transforms that trade each fixed variable for its conjugate. Each successive ensemble lets one more quantity fluctuate.

╌╌╌╌

Three ensembles have been built, each from the same postulate of equal a priori probabilities applied to an isolated compound of system plus surroundings. They differ only in what the surroundings hold fixed: nothing (the isolated system), the temperature (a heat bath), or the temperature and chemical potential (a heat and particle bath). Each choice fixes a different set of variables, lets a different set fluctuate, and generates a different thermodynamic potential. This lesson assembles the three into one structure, shows that the potentials are Legendre transforms of one another, and confirms by direct calculation that they give the same physics for the ideal gas.

The three ensembles side by side

The distinguishing data of each ensemble are the variables it fixes, the sum over microstates that normalizes its distribution, and the thermodynamic potential that logarithm produces.

  • Microcanonical ensemble — an isolated system at fixed energy, volume, and particle number . Every accessible microstate is equally probable. The count of accessible microstates generates the entropy .
  • Canonical ensemble — a system at fixed in contact with a heat bath. Microstate has probability . The partition function generates the Helmholtz free energy .
  • Grand canonical ensemble — a system at fixed in contact with a heat and particle bath. Microstate has probability . The grand partition function generates the grand potential .

Each step down the list replaces one fixed extensive variable by its intensive conjugate held by a larger reservoir: fixing becomes fixing its conjugate , and fixing becomes fixing its conjugate . The quantity released from constraint then fluctuates.

EnsembleFixedFluctuatingSumPotential
Microcanonicalnone
Canonical
Grand canonical
The three ensembles fix progressively fewer extensive variables, trading for and for ; each generating sum has its logarithm as a thermodynamic potential, and each released variable fluctuates.

The potentials as Legendre transforms

The three potentials are not independent functions; each follows from the one before by a Legendre transform that swaps a fixed variable for its conjugate. The fundamental relation in the energy representation is , so the conjugate pairs are and . The microcanonical entropy inverts to the energy , the potential whose natural variables are all extensive. Trading the entropy for the temperature gives the Helmholtz free energy, and trading the particle number for the chemical potential gives the grand potential,

Each transform removes an extensive variable from the list of natural variables and installs its intensive conjugate. The differentials record the swap:

Reading the coefficients back off each differential recovers the state variables by differentiation: and and from , and and and from . The ladder is the thermodynamic web in miniature — one fundamental relation, three potentials, connected by two Legendre steps.

The energy sits at the top; a Legendre transform trading for gives the Helmholtz free energy , and a further transform trading for gives the grand potential , each generated by its ensemble.

Fixed versus fluctuating variables

The ensembles differ physically in what is allowed to fluctuate, and the size of those fluctuations decides whether the distinction matters. In the microcanonical ensemble the energy and particle number are both sharp by construction. The canonical ensemble lets the energy fluctuate, with variance tied to the heat capacity. The grand ensemble lets the particle number fluctuate as well, with variance tied to the compressibility. Both variances are extensive, so both relative spreads scale as

For a macroscopic system both are of order . The fluctuating variables are pinned to their means so tightly that a canonical system behaves as if its energy were fixed and a grand-canonical system as if its particle number were fixed. This is the quantitative content of ensemble equivalence: the three descriptions of the same substance give identical intensive thermodynamics in the limit .1

The equivalence can fail where a fluctuation ceases to be small. At a first-order phase transition the energy distribution becomes bimodal and diverges; near a critical point the compressibility diverges and density fluctuations grow to macroscopic scale. In those regimes the ensembles can give genuinely different answers, and the choice of which variable is fixed becomes a physical statement about the system rather than a computational convenience. Away from transitions, and for any system with short-range interactions, the equivalence is exact in the thermodynamic limit.

The ideal gas three ways

The equivalence is best seen by computing one quantity in all three ensembles. Take the equation of state of the classical monatomic ideal gas, with single-particle partition function and thermal wavelength .

The same ideal-gas equation of state emerges from all three ensembles — as a volume derivative of the entropy, of the free energy, and directly from — confirming their equivalence.

Choosing an ensemble

Because the three agree, the working rule is to pick the ensemble whose sum is easiest for the system at hand.

  • Microcanonical — natural when the energy is genuinely conserved and the microstate count is tractable: isolated systems, small models with a combinatorial multiplicity, and the definition of entropy itself. The constrained sum over a fixed-energy shell is usually the hardest to perform.
  • Canonical — the default for a system at a set temperature. Fixing removes the energy constraint and turns the shell sum into an unrestricted sum of Boltzmann factors, which factorizes over independent degrees of freedom. Most equilibrium calculations start here.
  • Grand canonical — the choice when the particle-number constraint is the obstruction. For indistinguishable quantum particles, fixing couples the mode occupations through ; releasing factorizes over single-particle modes and delivers the Bose-Einstein and Fermi-Dirac distributions directly. It is also the natural setting for open systems, adsorption, chemical and phase equilibrium, and density fluctuations.
A practical guide: fix the temperature unless the energy is conserved and easily counted, and release the particle number whenever the fixed- constraint blocks the sum, as it does for quantum gases.

Summary

  • The three ensembles apply the equal-probability postulate to an isolated compound; they differ in what the reservoir fixes — nothing, , or — and generate , , and .
  • The potentials are Legendre transforms along the chain : each step trades a fixed extensive variable (, then ) for its intensive conjugate (, then ), as recorded by the differentials and .
  • Each ensemble releases one more variable to fluctuate, with relative spreads and of order ; the three give identical intensive thermodynamics as and can differ only where a fluctuation diverges, at a phase transition.
  • The ideal gas yields in all three ensembles. The choice among them is set by which sum is easiest: canonical by default, microcanonical when the energy count is simple, grand canonical when the fixed- constraint blocks the sum, as for quantum gases.

Footnotes

  1. The suppression of relative fluctuations and the resulting equivalence of the canonical and microcanonical ensembles are established in the energy-fluctuations and ensemble-equivalence lesson; the number-fluctuation analogue is in the chemical potential and number-fluctuations lesson. Kardar, Statistical Physics of Particles, §4.9–4.10; MIT OCW 8.333, https://ocw.mit.edu/courses/8-333-statistical-mechanics-i-statistical-mechanics-of-particles-fall-2013/. Pathria & Beale, Statistical Mechanics (4th ed.), §4.5–4.6.

╌╌ END ╌╌