11.03.02 · stat-mech-physics / ensembles

Grand canonical ensemble: chemical potential, fugacity, and variable particle number

shipped3 tiersLean: none

Anchor (Master): Landau & Lifshitz, Statistical Physics, Part 1, 3rd ed. (1980), §35–36; Huang, Statistical Mechanics, 2nd ed. (1987), Ch. 6–7

Intuition Beginner

The canonical ensemble describes a system at fixed temperature and fixed particle number . The system exchanges energy with a reservoir but not particles. Many physical systems do exchange particles with their environment: water in an open glass evaporates (molecules leave for the air), a semiconductor doped with impurities gains and loses charge carriers, a chemical reactor has reactants flowing in and products flowing out.

The grand canonical ensemble handles this case. The system exchanges both energy and particles with a large reservoir. The reservoir fixes the temperature and the chemical potential — a quantity that measures how much the energy of the system changes when you add one particle. High chemical potential means particles "want" to enter the system; low chemical potential means they "want" to leave.

The probability of finding the system in a state with energy and particles is proportional to . The extra factor rewards states with more particles when (adding particles lowers the effective energy) and penalises them when . The normaliser — the total of all these Boltzmann-weighted terms over every possible and every state at that — is the grand partition function .

Visual Beginner

Picture a container connected to a large reservoir by a small opening. Molecules hop in and out. The reservoir is so big that its temperature and chemical potential are fixed regardless of what the small system does. The small system fluctuates in both energy and particle number.

At any instant, the system might have particles or or . The average is set by : increase and the system fills up; decrease and it empties. The fluctuations are tiny for macroscopic systems () but can be significant for small systems.

Worked example Beginner

A system has just one energy level at energy , and any number of distinguishable particles can occupy it (a simplification). The grand partition function adds up the weights for particles:

This is a geometric series. If (i.e., ), it sums to

The mean particle number is obtained from the rate of change of with respect to , giving

When is far below , the occupation is small (). As from below, the occupation diverges — this is the signal of Bose-Einstein condensation in a more realistic system.

Check your understanding Beginner

Formal definition Intermediate+

The grand canonical ensemble describes a system at fixed temperature , fixed chemical potential , and fixed volume . The probability of finding the system in a microstate with energy and particle number is

where and the grand partition function (or grand canonical sum over states) is

Here is the canonical partition function at fixed . The fugacity is , giving the alternative form

The grand potential (Landau potential, or "big Phi") is

where the second equality holds for a homogeneous system. Thermodynamic quantities follow from derivatives of :

Fluctuation-response relations

The particle-number variance is

This connects a fluctuation (left side) to a thermodynamic derivative (right side). Using where is the isothermal compressibility, one finds

For an ideal gas, , giving — the relative fluctuation vanishes in the thermodynamic limit.

Key derivation: Grand partition function for non-interacting particles Intermediate+

Proposition. For a system of non-interacting identical particles with single-particle energy levels , the grand partition function factorises as

where the product runs over all single-particle states . For fermions, . For bosons, for .

Proof. The total energy of a configuration (occupation numbers) is and the total particle number is . The grand canonical weight is

The grand partition function is

For fermions, : .

For bosons, : for .

The mean occupation number of state is

For fermions: — the Fermi-Dirac distribution 11.05.02.

For bosons: — the Bose-Einstein distribution 11.05.01.

Bridge. The factorisation of the grand partition function builds toward the quantum statistics of ideal Bose and Fermi gases [11.05.01, 11.05.02], where the single-state occupation numbers carry the entire physics. This is exactly the structure that produces the Bose-Einstein and Fermi-Dirac distributions from a single unified framework: the grand canonical ensemble treats particles as excitations of single-particle modes, and the mode occupations are independent because the particles are non-interacting. The foundational reason the grand canonical ensemble is the natural framework for quantum statistics is that particle number is not conserved in relativistic quantum field theory (particles can be created and destroyed), and the chemical potential is the Lagrange multiplier that controls the expected number. Putting these together, the grand partition function generalises from the canonical ensemble what the partition function generalises from the microcanonical: a generating function for the thermodynamics of an open system.

Exercises Intermediate+

Lean formalization Intermediate+

The grand canonical ensemble has no Mathlib formalization. The grand partition function is a generating function for the canonical partition functions, and the thermodynamic quantities follow from its logarithmic derivatives. Formalising this requires: (1) a probability distribution on the disjoint union of state spaces at each particle number; (2) the factorisation for non-interacting systems; (3) the identification . The first item is the load-bearing prerequisite.

Advanced results Master

Lee-Yang zeros and phase transitions

The grand partition function is a polynomial in (for a finite system) or an entire function (in the thermodynamic limit). The roots of — the Lee-Yang zeros — lie on the unit circle for ferromagnetic systems (Lee-Yang circle theorem, 1952). In the thermodynamic limit, these roots can pinch the positive real -axis, creating a singularity in that is the signature of a phase transition.

The grand canonical approach thus provides a mathematically precise characterisation of phase transitions: a phase transition occurs when develops a non-analyticity as a function of in the thermodynamic limit. For first-order transitions, a zero of crosses the positive real axis; for continuous transitions, the zeros accumulate and approach the axis.

Chemical potential and thermodynamic equilibrium

The condition for chemical equilibrium between two phases (or two species) is equality of chemical potentials: . In the grand canonical framework this is automatic: a system in contact with a reservoir at chemical potential equilibrates to . For a reacting mixture , the equilibrium condition is , which in the ideal-gas limit becomes the law of mass action .

Functional derivatives and the density functional

In density-functional theory, the grand potential is written as a functional of the one-particle density :

where is the intrinsic Helmholtz free energy functional and is the external potential. The equilibrium density minimises , and the Euler-Lagrange equation for this minimisation reproduces the grand canonical equilibrium condition.

Synthesis. The grand canonical ensemble builds toward the quantum statistics of ideal gases [11.05.01, 11.05.02] and the theory of phase transitions 11.06.01, where the chemical potential controls the occupation of quantum states. The central insight is that the grand partition function factorises for non-interacting particles, reducing the many-body problem to a product of single-particle partition functions. This is dual to the canonical ensemble, where factorisation works for independent energy modes but not for particles. The foundational reason is that the chemical potential is the Lagrange multiplier for the particle-number constraint, just as is the Lagrange multiplier for the energy constraint; putting these together, the grand canonical ensemble treats both energy and particle number on equal footing, which is exactly the structure needed for quantum field theory where particle number is not conserved. The generalisation from canonical to grand canonical mirrors the Legendre transform from Helmholtz to Gibbs free energy in thermodynamics.

Full proof set Master

Proposition. The grand canonical ensemble is equivalent to the canonical ensemble in the thermodynamic limit: the probability distribution is sharply peaked around with relative width .

Proof. Consider . Write where . Expand around its maximum at :

where gives and . The distribution is Gaussian with width . From the fluctuation relation, . For an ideal gas, , giving and as .

Connections Master

  • 11.05.01 The Bose-Einstein distribution is the mean occupation number from the bosonic grand partition function .
  • 11.05.02 The Fermi-Dirac distribution is the mean occupation number from the fermionic grand partition function .
  • 11.05.04 Bose-Einstein condensation occurs when the chemical potential reaches the ground-state energy and the ground-state occupation becomes macroscopic — the grand canonical signature of the transition.
  • 11.04.01 The canonical ensemble is the special case (or more precisely, the -fixed sector of the grand canonical ensemble); the grand potential reduces to the Helmholtz free energy.
  • 11.06.01 The Lee-Yang zeros of the grand partition function provide a mathematically precise characterisation of phase transitions in the Ising model.

Historical and philosophical context Master

Gibbs introduced the grand canonical ensemble in his 1902 Elementary Principles in Statistical Mechanics, recognising that systems that exchange particles with their environment require a distribution that accounts for variable particle number. The chemical potential, which had been introduced by Gibbs in his earlier thermodynamic work (1875–78), found its natural statistical-mechanical interpretation as the parameter conjugate to particle number in the grand canonical distribution.

The grand canonical ensemble was initially viewed as a mathematical convenience — equivalent to the canonical ensemble in the thermodynamic limit but sometimes easier to compute with. Its importance grew with the development of quantum statistics: the Bose-Einstein and Fermi-Dirac distributions are most naturally derived in the grand canonical framework, where particle number is a derived quantity controlled by rather than a fixed parameter.

Bibliography Master

@book{gibbs1902,
  author = {Gibbs, J. Willard},
  title = {Elementary Principles in Statistical Mechanics},
  publisher = {Yale University Press},
  year = {1902}
}

@book{pathria-beale2011,
  author = {Pathria, R. K. and Beale, Paul D.},
  title = {Statistical Mechanics},
  edition = {3rd},
  publisher = {Academic Press},
  year = {2011}
}

@book{reif1965,
  author = {Reif, Frederick},
  title = {Fundamentals of Statistical and Thermal Physics},
  publisher = {McGraw-Hill},
  year = {1965}
}

@book{huang1987,
  author = {Huang, Kerson},
  title = {Statistical Mechanics},
  edition = {2nd},
  publisher = {Wiley},
  year = {1987}
}