The Grand Canonical Ensemble
Systems exchanging both energy and particles with a reservoir: the grand partition function, chemical potential, grand potential, and particle number fluctuations
Historical Context
Gibbs introduced the grand canonical ensemble to handle systems with variable particle number. The chemical potential \(\mu\), first defined by Gibbs in his 1876 thermodynamic work, controls the flow of particles just as temperature controls the flow of energy. The grand canonical formalism became indispensable for quantum statistical mechanics, where particle creation and annihilation are natural.
The fugacity \(z = e^{\beta\mu}\) introduced by R.H. Fowler provides an elegant parameterization that simplifies many calculations, especially for quantum gases.
1. Derivation of the Grand Canonical Distribution
Derivation 1: From the Microcanonical Ensemble
Consider a system S in contact with a reservoir R that can exchange both energy and particles. The total energy \(E_{\text{tot}}\) and particle number \(N_{\text{tot}}\)are fixed. When S is in a microstate with energy \(E_s\) and particle number \(N_s\):
Taylor expanding the reservoir entropy to first order:
where we used \(\partial S/\partial E = 1/T\) and \(\partial S/\partial N = -\mu/T\). Exponentiating:
2. The Grand Partition Function
Derivation 2: Structure of \(\Xi\)
The grand partition function is the normalization constant:
where \(z = e^{\beta\mu}\) is the fugacity and\(Z_N\) is the canonical partition function for \(N\) particles. This beautifully separates the particle-number sum from the energy sum.
Thermodynamic Relations from \(\Xi\)
Grand potential: \(\Phi_G = -k_BT \ln \Xi = -PV\)
Average particle number: \(\langle N \rangle = z\frac{\partial \ln \Xi}{\partial z}\bigg|_{\beta,V} = k_BT\frac{\partial \ln \Xi}{\partial \mu}\bigg|_{\beta,V}\)
Average energy: \(\langle E \rangle = -\frac{\partial \ln \Xi}{\partial \beta}\bigg|_{z,V} + \mu\langle N\rangle\)
Pressure: \(PV = k_BT \ln \Xi\)
Entropy: \(S = k_B\left(\ln \Xi + \beta\langle E\rangle - \beta\mu\langle N\rangle\right)\)
Derivation 3: Grand Potential and the Euler Relation
The grand potential is the Legendre transform of the Helmholtz free energy:
From the Euler relation for extensive quantities (\(E = TS - PV + \mu N\)):
This remarkable result means that \(k_BT\ln\Xi = PV\), connecting the grand partition function directly to the equation of state.
3. Particle Number Fluctuations
Derivation 4: Compressibility Sum Rule
The variance in particle number is:
This can be related to the isothermal compressibility \(\kappa_T = -\frac{1}{V}\frac{\partial V}{\partial P}\big|_T\):
For an ideal gas, \(\kappa_T = 1/P = V/(Nk_BT)\), giving Poisson-like fluctuations:\(\langle(\Delta N)^2\rangle = \langle N \rangle\). Near a critical point where\(\kappa_T\) diverges, particle fluctuations become anomalously large, leading to critical opalescence.
4. Applications
Ideal Gas in the Grand Canonical Ensemble
For the classical ideal gas with \(Z_N = V^N/(N!\lambda_{dB}^{3N})\):
Adsorption: The Langmuir Isotherm
Consider \(M\) independent adsorption sites, each either empty or occupied by one particle with binding energy \(-\epsilon\). The grand partition function for a single site is:
For \(M\) independent sites: \(\Xi = \xi^M\). The mean occupation fraction (coverage) is:
where \(P_0 = k_BT\lambda_{dB}^{-3}e^{-\beta\epsilon}\). This is the celebrated Langmuir isotherm.
5. Preview: Quantum Occupation Numbers
Derivation 5: Single-Mode Grand Partition Function
For a single quantum mode with energy \(\epsilon\), the grand partition function depends on the quantum statistics:
Bosons (\(n = 0,1,2,\ldots\))
Fermions (\(n = 0,1\))
The total grand partition function is a product over all single-particle states:\(\Xi = \prod_k \xi_k\), giving \(\ln\Xi = \sum_k \ln\xi_k\).
6. Computational Exploration
This simulation explores the grand canonical ensemble, demonstrating particle number fluctuations, the Langmuir isotherm, and quantum occupation numbers.
Grand Canonical Ensemble: Particle Fluctuations, Langmuir Isotherm, and Quantum Statistics
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server
7. Summary and Key Results
Core Formulas
- Distribution: \(p \propto e^{-\beta(E-\mu N)}\)
- Grand potential: \(\Phi_G = -k_BT\ln\Xi = -PV\)
- Fluctuations: \(\langle(\Delta N)^2\rangle = k_BT\partial\langle N\rangle/\partial\mu\)
- Fugacity expansion: \(\Xi = \sum_N z^N Z_N\)
Physical Insights
- Chemical potential controls particle flow
- Ideal gas: Poisson particle statistics
- Compressibility links to density fluctuations
- Natural framework for quantum gases