Part I: Ensembles | Chapter 3

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\):

\[p(E_s, N_s) \propto \Omega_R(E_{\text{tot}} - E_s, N_{\text{tot}} - N_s)\]

Taylor expanding the reservoir entropy to first order:

\[S_R \approx S_R(E_{\text{tot}}, N_{\text{tot}}) - \frac{E_s}{T} + \frac{\mu N_s}{T}\]

where we used \(\partial S/\partial E = 1/T\) and \(\partial S/\partial N = -\mu/T\). Exponentiating:

\[\boxed{p_i(E_i, N_i) = \frac{1}{\Xi} e^{-\beta(E_i - \mu N_i)}}\]

2. The Grand Partition Function

Derivation 2: Structure of \(\Xi\)

The grand partition function is the normalization constant:

\[\Xi(\beta, \mu, V) = \sum_{N=0}^{\infty} \sum_{\{i\}_N} e^{-\beta(E_i^{(N)} - \mu N)} = \sum_{N=0}^{\infty} z^N Z_N(\beta, V)\]

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:

\[\Phi_G = F - \mu N = E - TS - \mu N\]

From the Euler relation for extensive quantities (\(E = TS - PV + \mu N\)):

\[\Phi_G = -PV\]

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:

\[\langle (\Delta N)^2 \rangle = \frac{1}{\beta}\frac{\partial \langle N \rangle}{\partial \mu}\bigg|_{T,V} = k_BT\left(\frac{\partial \langle N \rangle}{\partial \mu}\right)_{T,V}\]

This can be related to the isothermal compressibility \(\kappa_T = -\frac{1}{V}\frac{\partial V}{\partial P}\big|_T\):

\[\boxed{\frac{\langle(\Delta N)^2\rangle}{\langle N \rangle} = \frac{k_BT}{V}\langle N \rangle \kappa_T = \frac{\rho k_BT \kappa_T}{1}}\]

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})\):

\[\Xi = \sum_{N=0}^{\infty} \frac{z^N}{N!}\left(\frac{V}{\lambda_{dB}^3}\right)^N = \exp\left(\frac{zV}{\lambda_{dB}^3}\right)\]
\[\langle N \rangle = z\frac{\partial}{\partial z}\ln\Xi = \frac{zV}{\lambda_{dB}^3}, \qquad PV = k_BT\ln\Xi = \langle N \rangle k_BT\]

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:

\[\xi = 1 + ze^{\beta\epsilon}\]

For \(M\) independent sites: \(\Xi = \xi^M\). The mean occupation fraction (coverage) is:

\[\theta = \frac{\langle N \rangle}{M} = \frac{ze^{\beta\epsilon}}{1 + ze^{\beta\epsilon}} = \frac{P/P_0}{1 + P/P_0}\]

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\))

\[\xi_{\text{BE}} = \sum_{n=0}^{\infty} (ze^{-\beta\epsilon})^n = \frac{1}{1 - ze^{-\beta\epsilon}}\]
\[\langle n \rangle_{\text{BE}} = \frac{1}{z^{-1}e^{\beta\epsilon} - 1}\]

Fermions (\(n = 0,1\))

\[\xi_{\text{FD}} = 1 + ze^{-\beta\epsilon}\]
\[\langle n \rangle_{\text{FD}} = \frac{1}{z^{-1}e^{\beta\epsilon} + 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

Python
script.py120 lines

Click 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
Rate this chapter: