Grand Canonical Ensemble and Particle Exchange
The grand canonical ensemble describes a system that exchanges both energy and particles with a reservoir. It is the natural language for gases, adsorption, chemical equilibrium, quantum occupation numbers, and field-theoretic many-body systems. Instead of fixing exactly, it fixes the mean particle number through the chemical potential .
In Schwabl's development, the grand ensemble completes the hierarchy from isolated systems to open subsystems. It also prepares the notation for ideal Fermi and Bose gases, where each single-particle state can be treated as a small subsystem exchanging particles with the rest.
Definitions
Let be the particle-number operator. The grand canonical density matrix is
The grand potential is
Many texts denote it by , but this wiki page uses to avoid confusion with the microcanonical density of states. Thermodynamics gives
for a homogeneous bulk system. The average particle number and energy are generated by
when is held fixed in the second derivative.
The fugacity is
For a classical ideal gas,
Key results
The grand ensemble is obtained by expanding the reservoir entropy in both energy and particle number. If the subsystem has energy and particle number , the reservoir has and . To first order,
The subsystem weight is therefore
Number fluctuations are controlled by derivatives of :
For a classical ideal gas, , so the number distribution is Poisson:
In second quantization, noninteracting quantum particles have
The grand partition function factorizes over single-particle levels:
This factorization leads directly to the Fermi-Dirac and Bose-Einstein distributions.
The chemical potential has several complementary meanings. Thermodynamically it is the change in free energy when a particle is added:
Statistically it is the Lagrange multiplier that fixes . Physically it controls diffusive equilibrium: particles flow, on average, from higher chemical potential to lower chemical potential until the chemical potentials match. In mixtures and reactions, equality or stoichiometric balance of chemical potentials replaces the simpler equality of temperature used for energy exchange.
Number fluctuations are not just noise; they encode compressibility. For a one-component system,
Since the isothermal compressibility is related to density response, large density fluctuations occur near liquid-gas criticality. In a stable macroscopic phase away from criticality, and relative fluctuations vanish. Near a critical point, the same formula warns that the grand ensemble becomes visually and physically fluctuation dominated.
The grand ensemble is also the cleanest language for occupation-number statistics. For one level, the variance is
for fermions and
for bosons. The signs are not cosmetic. Pauli exclusion suppresses fluctuations, while Bose enhancement increases them. Photon bunching and Fermi degeneracy pressure are two experimentally important consequences of these formulas.
Finally, equivalence with the canonical ensemble assumes ordinary short-range systems in the thermodynamic limit. If one studies small systems, phase coexistence, long-range forces, or constrained particle numbers, grand-canonical fluctuations may represent a different physical preparation rather than a harmless calculational convenience.
The grand potential is especially useful because it is extensive in volume at fixed and . For a homogeneous phase,
so pressure can be computed directly from without first solving for the Helmholtz free energy. This is why quantum ideal gases are often treated by computing , then deriving , , and by differentiation.
In phase coexistence problems, fixed is also natural. Two phases can exchange particles until their chemical potentials are equal. At coexistence the grand potentials per volume compete; the stable phase is the one with lower under the imposed reservoir conditions. This viewpoint is the particle-exchange analogue of minimizing at fixed .
Adsorption gives a concrete use case. A surface in contact with a gas does not have a fixed number of adsorbed particles; sites fill and empty according to the gas chemical potential. Simple lattice adsorption models are grand-canonical systems, and their coverage curves are occupation-number problems. When adsorbates interact, the same framework becomes a lattice gas and can show cooperative transitions.
The ensemble also clarifies chemical equilibrium. Reactions change particle numbers of several species while conserving atoms and charge. Equilibrium is obtained by minimizing the appropriate thermodynamic potential subject to those conservation laws, which leads to stoichiometric relations among chemical potentials.
This is why is best treated as an experimentally meaningful control variable, not just an algebraic device.
Visual
| Ensemble | Fixed externally | Fluctuates | Potential |
|---|---|---|---|
| Microcanonical | none of these | ||
| Canonical | |||
| Grand canonical |
Worked example 1: Classical ideal gas from the grand partition function
Problem: Use
to derive and .
Method:
- Compute the mean particle number:
- The grand potential is
- For a homogeneous system, , so
- Substitute the result for :
Checked answer: the ideal-gas law emerges with because fluctuates in this ensemble.
Worked example 2: Occupation of one fermionic level
Problem: A single fermionic state has energy . Find its average occupation in the grand ensemble.
Method:
- Fermion occupation is restricted to .
- The single-level grand partition function is
- The average occupation is
- Simplify:
Checked answer: this is the Fermi-Dirac distribution. The plus sign in the denominator is the signature of Pauli exclusion.
Code
import numpy as np
def classical_grand_stats(T, mu, V=1.0, m=1.0, h=1.0, kB=1.0):
lam = h / np.sqrt(2 * np.pi * m * kB * T)
z = np.exp(mu / (kB * T))
mean_N = z * V / lam**3
pressure = mean_N * kB * T / V
return mean_N, pressure
def fermi_level(T, eps, mu, kB=1.0):
return 1.0 / (np.exp((eps - mu) / (kB * T)) + 1.0)
print(classical_grand_stats(T=2.0, mu=-1.0))
for eps in [-1.0, 0.0, 1.0]:
print(eps, fermi_level(T=0.25, eps=eps, mu=0.0))
Common pitfalls
- Treating as an arbitrary fitting constant. It is fixed by the desired mean particle number or by chemical equilibrium with a reservoir.
- Forgetting that fluctuates. Equations using in the grand ensemble usually mean .
- Using the same symbol for both density of states and grand potential without context.
- Allowing Bose fugacity to violate for the lowest level. This signals the onset of Bose condensation rather than a valid ordinary product.
- Missing the sign change between Fermi and Bose factorization over occupation numbers.