Grand canonical ensemble
The grand canonical ensemble models a system that can exchange both energy and particles with a reservoir, so temperature and chemical potential are fixed while energy and particle number fluctuate.
It is the natural ensemble for open systems, lattice gases, and quantum gases, and it provides a direct route to the thermodynamic grand potential and pressure.
Fix an inverse temperature inverse temperature and a chemical potential . For each particle number , let be the -particle phase space (or Hilbert space sector), and let be the corresponding Hamiltonian .
The grand canonical weight of a microstate is proportional to . The normalized probability density is
where the normalizing constant
is the grand partition function (also called the grand canonical partition function).
(Quantum version: .)
Ensemble averages
For an observable that may depend on and , the ensemble average is
Derivative formulas (mean values and fluctuations)
Thermodynamic observables are generated by derivatives of (see observables from log partition functions ):
Mean particle number:
Particle-number fluctuations:
which connects directly to response coefficients such as compressibility (a special case of susceptibility–fluctuation relations ).
Mean energy:
More generally, mixed derivatives of generate covariances, fitting into fluctuation formulas from log partition functions .
Grand potential and pressure
The thermodynamic grand potential is obtained from by
matching the thermodynamic grand potential and arising as a Legendre transform of free energy in equilibrium thermodynamics.
For a homogeneous system of volume , one has , so the pressure can be read from the partition function as in pressure from the partition function :
Relation to other ensembles
If particle-number fluctuations are suppressed (e.g., by conditioning on a fixed ), the grand canonical ensemble reduces to the canonical ensemble . In the thermodynamic limit , predictions for many bulk observables often coincide across these ensembles under suitable conditions (ensemble equivalence).