Grand Canonical Ensemble §
The grand canonical ensemble is the probability measure for a system that exchanges both energy and particles with a reservoir. Temperature and chemical potential are fixed; the energy and particle number are random. It is the right tool whenever the particle count is not conserved in the subsystem you care about: an open gas, the electron gas in a metal, a superfluid or superconductor, a reacting mixture, a blackbody cavity, or the occupation of a single quantum state.
Use it when (a) the system is open to particles, or (b) you want the average occupation of a state without committing to a total . It is the natural home for Fermi–Dirac and Bose–Einstein statistics.
Authoritative sources
Probability weight §
Each microstate of the system (volume fixed) has probability
This is the generalized Boltzmann factor: the canonical factor multiplied by . The term makes adding particles favorable when is high. For independent species, becomes .
Details
The weight is derived by cutting a small system out of a large isolated (microcanonical) reservoir. The reservoir has particles and energy ; giving the system leaves the reservoir . The probability is proportional to the reservoir’s entropy, expanded to first order:
Using and for the reservoir and dropping the constant gives exactly . The chemical potential is defined by the reservoir’s entropy slope:
so it is the free-energy cost of adding one particle. This is the same construction that turns the microcanonical ensemble into the canonical one, with particle exchange added on top. See MicrocanonicalEnsemble and CanonicalEnsemble.
Grand partition function §
The normalization constant is the grand partition function (also written or ):
For non-interacting particles in single-particle levels it factorizes over levels, which is what makes the grand ensemble so powerful:
Every thermodynamic quantity is a derivative of .
Details
Because is the log-sum-exp of all weights, it is the single object that plays the role of the canonical partition function. The factorization is the key: an ideal gas of independent levels has as a product of one-level factors, so the mean occupation of a level is independent of all the others. This is why the grand ensemble turns a many-body sum into a sum of one-particle terms.
The derivative identities that follow are the workhorses of the subject:
The last line says the variance of the particle number is the second derivative of — the same pattern as the canonical ensemble, where energy variance is the second -derivative of .
Grand potential §
The thermodynamic potential conjugate to is the grand potential :
It is the Legendre transform of the Helmholtz free energy that removes the dependence:
From you read off every extensive quantity:
Details
The grand potential is the free energy of a system allowed to trade particles: . Minimizing over at fixed gives the most probable particle number, and in the thermodynamic limit the fluctuations vanish. See Thermodynamic Potentials and Equilibrium.
Mean number and fluctuations §
The ensemble average particle number and its variance are
For non-interacting particles these reduce to per-level sums:
where is the mean occupation of level . The fluctuation–dissipation relation ties the variance to a response:
Details
The relation says that how much jitters is the same number as how much shifts when you nudge . It is the grand-canonical fluctuation formula; see Statistical Foundations of Thermodynamics.
Note the three statistics give different fluctuations for the same mean number: fermions are anti-bunched (), bosons are bunched (), and classical particles are Poisson (). This is the seed of phenomena like fermion pressure and Bose condensation. For the thermodynamic limit of these fluctuations and the onset of collective behavior, see PhaseTransitions.
Ensemble equivalence
In the thermodynamic limit (), the grand canonical and canonical ensembles give identical thermodynamic quantities. The relative particle-number fluctuation scales as , so for macroscopic systems the two ensembles are indistinguishable in practice. This is why one can safely use the grand canonical ensemble (which factorizes over levels) even when the total particle number is effectively fixed: the constraint and the constraint lead to the same macroscopic predictions. The equivalence breaks down for small systems (nanoparticles, single molecules) or near critical points where fluctuations are enhanced.
Occupation numbers §
The mean occupation of a single-particle level at energy is the distribution function. With :
| Statistics | Level factor Ξi | Occupation f(ε) | Allowed f |
|---|---|---|---|
| Fermi–Dirac (fermions) | 1 + e−x | 1/(ex+1) | 0 ≤ f ≤ 1 |
| Bose–Einstein (bosons) | 1/(1 − e−x) | 1/(ex−1) | f ≥ 0 (requires μ<ε) |
| Maxwell–Boltzmann (classical) | exp(e−x) | e−x | f ≪ 1 |
All three reduce to when the level is dilute (). The exact classical level factor reduces to in the dilute limit (since makes ), which is the same form as the fermion factor — the two statistics become indistinguishable when occupation is low.
Details
The difference is the exclusion rule on a single level. A fermion level can hold 0 or 1 particle, so and . A boson level can hold particles, so is a geometric series that converges only when — this is why the boson chemical potential is bounded above by the ground-state energy. A classical particle has no restriction, and the dilute limit makes both quantum formulas collapse to .
The interactive simulation below plots the three distributions versus at fixed . The Fermi curve is a smooth step at (sharp as ), the boson curve blows up as (a precursor of Bose condensation), and the classical curve is the common exponential tail.
The occupation of a state is the bridge to PhaseTransitions: when a boson level’s occupation diverges as , the excess particles pile into the ground state — Bose–Einstein condensation.
Interactive simulation §
The simulation below fixes and for a system of 12 single-particle levels (, ). It draws the particle-number distribution , the per-level occupations , and a live sample of particles, and it checks the fluctuation–dissipation identity in real time.
Example problem §
A two-level fermionic system has levels and (energy units), in contact with a reservoir at and (). Find the mean occupation of each level, , , and the grand potential .
Solution
For a fermion, .
- Level 0: .
- Level 1: .
Mean number: .
Variance (fermion levels are independent): .
Check with fluctuation–dissipation: . ✓
Grand partition function: , so .
The mean energy is .
Note that for fermions (exclusion), and the variance is smaller than the classical/Poisson value — a signature of anti-bunching.
How this fits together §
The grand canonical ensemble is the canonical ensemble with particle exchange added. The chain of ideas is: a reservoir fixes and (the two intensive slopes of the reservoir’s entropy), the generalized Boltzmann factor weights microstates, is the generating function from which every quantity is a derivative, is the thermodynamic potential, and the per-level occupations encode the exclusion statistics. Fluctuations of are not a nuisance — through they measure the system’s susceptibility to particle exchange, the same link between fluctuations and response that runs through all of statistical mechanics. See CanonicalEnsemble for the fixed- limit, PhaseTransitions for what happens when diverges, and NonequilibriumStatisticalMechanics for driven systems where is not uniform.