A microstate is a complete specification of the state of a system (positions and momenta of all particles). A macrostate is specified by macroscopic variables (energy, volume, particle number).
The fundamental postulate of statistical mechanics states that for an isolated system in equilibrium, every accessible microstate is equally probable.
Definition. The multiplicity Ω ( E , V , N ) \Omega(E, V, N) Ω ( E , V , N ) is the number of microstates consistent with the macrostate ( E , V , N ) (E, V, N) ( E , V , N ) . The statistical entropy is
S = k B ln Ω S = k_B \ln \Omega S = k B ln Ω
Proposition 2.1. This definition of entropy agrees with the thermodynamic entropy: Δ S = k B ln ( Ω f / Ω i ) \Delta S = k_B \ln(\Omega_f / \Omega_i) Δ S = k B ln ( Ω f / Ω i ) .
Theorem 2.1 (Canonical Ensemble). For a system in thermal equilibrium with a heat bath at temperature T T T The probability of the system being in microstate i i i with energy E i E_i E i is
P i = 1 Z e − E i / ( k B T ) P_i = \frac{1}{Z} e^{-E_i / (k_B T)} P i = Z 1 e − E i / ( k B T )
Where the partition function is
Z = ∑ i e − E i / ( k B T ) Z = \sum_{i} e^{-E_i / (k_B T)} Z = ∑ i e − E i / ( k B T )
Proof. Consider the combined system (system + reservoir) with total energy E t o t E_{\mathrm{tot}} E tot . The probability of the system being in state i i i is proportional to the number of reservoir microstates compatible with it, which is Ω R ( E t o t − E i ) \Omega_R(E_{\mathrm{tot} - E_i)} Ω R ( E tot − E i ) . Using S R = k B ln Ω R S_R = k_B \ln \Omega_R S R = k B ln Ω R :
P_i \propto \Omega_R(E_{\mathrm{tot} - E_i) = \exp\left(\frac{S_R(E_{\mathrm{tot} - E_i)}{k_B}\right)}}
Expanding S R S_R S R around E t o t E_{\mathrm{tot}} E tot : S R ( E t o t − E i ) ≈ S R ( E t o t ) − E i ( ∂ S R ∂ E ) = S R ( E t o t ) − E i T S_R(E_{\mathrm{tot} - E_i) \approx S_R(E_{\mathrm{tot}) - E_i \left(\frac{\partial S_R}{\partial E}\right) = S_R(E_{\mathrm{tot}) - \frac{E_i}{T}}}} S R ( E tot − E i ) ≈ S R ( E tot ) − E i ( ∂ E ∂ S R ) = S R ( E tot ) − T E i
Since ( ∂ S R / ∂ E ) = 1 / T (\partial S_R / \partial E) = 1/T ( ∂ S R / ∂ E ) = 1/ T . Therefore P i ∝ e − E i / ( k B T ) P_i \propto e^{-E_i / (k_BT)} P i ∝ e − E i / ( k B T ) And normalising gives the result. ■ \blacksquare ■
Theorem 2.2. The partition function determines all thermodynamic quantities:
⟨ E ⟩ = − ∂ ln Z ∂ β , F = − k B T ln Z , S = ⟨ E ⟩ − F T \langle E \rangle = -\frac{\partial \ln Z}{\partial \beta}, \quad F = -k_B T \ln Z, \quad S = \frac{\langle E \rangle - F}{T} ⟨ E ⟩ = − ∂ β ∂ l n Z , F = − k B T ln Z , S = T ⟨ E ⟩ − F
Where β = 1 / ( k B T ) \beta = 1/(k_BT) β = 1/ ( k B T ) .
Proof. ⟨ E ⟩ = ∑ i E i P i = 1 Z ∑ i E i e − β E i = − 1 Z ∂ Z ∂ β = − ∂ ln Z ∂ β \langle E \rangle = \sum_i E_i P_i = \frac{1}{Z}\sum_i E_i e^{-\beta E_i} = -\frac{1}{Z}\frac{\partial Z}{\partial \beta} = -\frac{\partial \ln Z}{\partial \beta} ⟨ E ⟩ = ∑ i E i P i = Z 1 ∑ i E i e − β E i = − Z 1 ∂ β ∂ Z = − ∂ β ∂ l n Z .
F = − k B T ln Z F = -k_BT \ln Z F = − k B T ln Z follows from F = U − T S = ⟨ E ⟩ − T S F = U - TS = \langle E \rangle - TS F = U − T S = ⟨ E ⟩ − T S and the identification Z = e − β F Z = e^{-\beta F} Z = e − β F . ■ \blacksquare ■
Theorem 2.3 (Partition Function of an Ideal Gas). For N N N indistinguishable particles in a 3D box of volume V V V :
Z_N = \frac{1}{N!}\left(\frac{V}{\lambda_{\mathrm{th}^3}\right)^N, \quad \lambda_{\mathrm{th} = \frac{h}{\sqrt{2\pi m k_B T}}}}
Where λ t h \lambda_{\mathrm{th}} λ th is the thermal de Broglie wavelength .
Proof. The single-particle energy levels in a 3D box of side L L L (V = L 3 V = L^3 V = L 3 ) are:
ε n x , n y , n z = h 2 8 m L 2 ( n x 2 + n y 2 + n z 2 ) \varepsilon_{n_x, n_y, n_z} = \frac{h^2}{8mL^2}(n_x^2 + n_y^2 + n_z^2) ε n x , n y , n z = 8 m L 2 h 2 ( n x 2 + n y 2 + n z 2 )
The single-particle partition function is:
z = ∑ n x , n y , n z = 0 ∞ e − β h 2 ( n x 2 + n y 2 + n z 2 ) / ( 8 m L 2 ) ≈ ( ∫ 0 ∞ e − β h 2 n 2 / ( 8 m L 2 ) d n ) 3 = ( L h 2 π m β ) 3 = V λ t h 3 z = \sum_{n_x, n_y, n_z = 0}^{\infty} e^{-\beta h^2(n_x^2 + n_y^2 + n_z^2)/(8mL^2)} \approx \left(\int_0^{\infty} e^{-\beta h^2 n^2/(8mL^2)} dn\right)^3 = \left(\frac{L}{h}\sqrt{\frac{2\pi m}{\beta}}\right)^3 = \frac{V}{\lambda_{\mathrm{th}^3}} z = ∑ n x , n y , n z = 0 ∞ e − β h 2 ( n x 2 + n y 2 + n z 2 ) / ( 8 m L 2 ) ≈ ( ∫ 0 ∞ e − β h 2 n 2 / ( 8 m L 2 ) d n ) 3 = ( h L β 2 π m ) 3 = λ th 3 V
For N N N indistinguishable particles (correct Boltzmann counting): Z N = z N / N ! Z_N = z^N / N! Z N = z N / N ! . ■ \blacksquare ■
Corollary 2.4. From Z N Z_N Z N We recover the ideal gas law:
F = -k_BT \ln Z_N = -k_BT\left[N\ln\left(\frac{V}{\lambda_{\mathrm{th}^3}\right) - \ln N!\right]}
P = − ( ∂ F ∂ V ) T = N k B T V P = -\left(\frac{\partial F}{\partial V}\right)_T = \frac{Nk_BT}{V} P = − ( ∂ V ∂ F ) T = V N k B T
Giving P V = N k B T PV = Nk_BT P V = N k B T .
Theorem 2.5 (Equipartition). For a classical system in thermal equilibrium, each quadratic degree of freedom in the Hamiltonian contributes 1 2 k B T \frac{1}{2}k_BT 2 1 k B T to the average energy.
Proof. Consider a single degree of freedom with Hamiltonian H = a p 2 H = ap^2 H = a p 2 (or b q 2 bq^2 b q 2 ). The average energy is:
⟨ a p 2 ⟩ = ∫ − ∞ ∞ a p 2 e − β a p 2 d p ∫ − ∞ ∞ e − β a p 2 d p = − ∂ ∂ β ln ( ∫ − ∞ ∞ e − β a p 2 d p ) = − ∂ ∂ β ln ( π a β ) = 1 2 β = k B T 2 \langle ap^2 \rangle = \frac{\int_{-\infty}^{\infty} ap^2 e^{-\beta ap^2}\, dp}{\int_{-\infty}^{\infty} e^{-\beta ap^2}\, dp} = -\frac{\partial}{\partial \beta}\ln\left(\int_{-\infty}^{\infty} e^{-\beta ap^2}\, dp\right) = -\frac{\partial}{\partial \beta}\ln\left(\sqrt{\frac{\pi}{a\beta}}\right) = \frac{1}{2\beta} = \frac{k_BT}{2} ⟨ a p 2 ⟩ = ∫ − ∞ ∞ e − β a p 2 d p ∫ − ∞ ∞ a p 2 e − β a p 2 d p = − ∂ β ∂ ln ( ∫ − ∞ ∞ e − β a p 2 d p ) = − ∂ β ∂ ln ( a β π ) = 2 β 1 = 2 k B T
The same calculation for b q 2 bq^2 b q 2 gives another k B T / 2 k_BT/2 k B T /2 . ■ \blacksquare ■
Application. A monatomic ideal gas has 3 translational degrees of freedom: U = 3 2 N k B T U = \frac{3}{2}Nk_BT U = 2 3 N k B T and C V = 3 2 N k B C_V = \frac{3}{2}Nk_B C V = 2 3 N k B . A diatomic gas also has 2 rotational degrees of freedom: U = 5 2 N k B T U = \frac{5}{2}Nk_BT U = 2 5 N k B T and C V = 5 2 N k B C_V = \frac{5}{2}Nk_B C V = 2 5 N k B (at temperatures where vibration is frozen out).
Fermi—Dirac Statistics (for fermions, particles with half-integer spin):
⟨ n i ⟩ = 1 e ( E i − μ ) / ( k B T ) + 1 \langle n_i \rangle = \frac{1}{e^{(E_i - \mu)/(k_BT)} + 1} ⟨ n i ⟩ = e ( E i − μ ) / ( k B T ) + 1 1
Where μ \mu μ is the chemical potential .
Bose—Einstein Statistics (for bosons, particles with integer spin):
⟨ n i ⟩ = 1 e ( E i − μ ) / ( k B T ) − 1 \langle n_i \rangle = \frac{1}{e^{(E_i - \mu)/(k_BT)} - 1} ⟨ n i ⟩ = e ( E i − μ ) / ( k B T ) − 1 1
Maxwell—Boltzmann Statistics (classical limit, μ \mu μ very negative):
⟨ n i ⟩ = e − ( E i − μ ) / ( k B T ) \langle n_i \rangle = e^{-(E_i - \mu)/(k_BT)} ⟨ n i ⟩ = e − ( E i − μ ) / ( k B T )
The classical limit applies when the thermal de Broglie wavelength is much smaller than the inter-particle spacing: λ t h 3 ≪ V / N \lambda_{\mathrm{th}^3 \ll V/N} λ th 3 ≪ V / N .
Definition. The Fermi energy ε F \varepsilon_F ε F is the chemical potential at T = 0 T = 0 T = 0 :
ε F = ℏ 2 2 m ( 3 π 2 n ) 2 / 3 \varepsilon_F = \frac{\hbar^2}{2m}\left(3\pi^2 n\right)^{2/3} ε F = 2 m ℏ 2 ( 3 π 2 n ) 2/3
Where n = N / V n = N/V n = N / V is the particle number density.
Proposition 2.6. At T = 0 T = 0 T = 0 All states with E ≤ ε F E \leq \varepsilon_F E ≤ ε F are occupied and all states with E > ε F E > \varepsilon_F E > ε F are empty. The ground-state energy of a 3D Fermi gas is:
U 0 = 3 5 N ε F U_0 = \frac{3}{5}N\varepsilon_F U 0 = 5 3 N ε F
Proof. U 0 = ∫ 0 ε F E ⋅ g ( E ) d E U_0 = \int_0^{\varepsilon_F} E \cdot g(E)\, dE U 0 = ∫ 0 ε F E ⋅ g ( E ) d E where g ( E ) = V 2 π 2 ( 2 m ℏ 2 ) 3 / 2 E g(E) = \frac{V}{2\pi^2}\left(\frac{2m}{\hbar^2}\right)^{3/2}\sqrt{E} g ( E ) = 2 π 2 V ( ℏ 2 2 m ) 3/2 E is the density of states. Evaluating: U 0 = V 2 π 2 ( 2 m ℏ 2 ) 3 / 2 ⋅ 2 5 ε F 5 / 2 = 3 5 N ε F U_0 = \frac{V}{2\pi^2}\left(\frac{2m}{\hbar^2}\right)^{3/2} \cdot \frac{2}{5}\varepsilon_F^{5/2} = \frac{3}{5}N\varepsilon_F U 0 = 2 π 2 V ( ℏ 2 2 m ) 3/2 ⋅ 5 2 ε F 5/2 = 5 3 N ε F . ■ \blacksquare ■
Planck”s Law gives the spectral energy density of blackbody radiation:
u ( ν , T ) = 8 π h ν 3 c 3 ⋅ 1 e h ν / ( k B T ) − 1 u(\nu, T) = \frac{8\pi h \nu^3}{c^3} \cdot \frac{1}{e^{h\nu/(k_BT)} - 1} u ( ν , T ) = c 3 8 π h ν 3 ⋅ e h ν / ( k B T ) − 1 1
Stefan—Boltzmann Law: The total radiated power per unit area:
j = σ T 4 , σ = π 2 k B 4 60 ℏ 3 c 2 j = \sigma T^4, \quad \sigma = \frac{\pi^2 k_B^4}{60 \hbar^3 c^2} j = σ T 4 , σ = 60 ℏ 3 c 2 π 2 k B 4
Wien’s Displacement Law: The peak frequency satisfies ν m a x / T = c o n s t \nu_{\mathrm{max} / T = \mathrm{const}} ν max / T = const .
Problem. Calculate the Fermi energy and Fermi temperature for copper. Given: electron density n ≈ 8.5 × 10 28 m − 3 n \approx 8.5 \times 10^{28}\,\mathrm{m}^{-3} n ≈ 8.5 × 1 0 28 m − 3 , m e = 9.109 × 10 − 31 m_e = 9.109 \times 10^{-31} m e = 9.109 × 1 0 − 31 kg.
Solution ε F = ℏ 2 2 m e ( 3 π 2 n ) 2 / 3 \varepsilon_F = \frac{\hbar^2}{2m_e}(3\pi^2 n)^{2/3} ε F = 2 m e ℏ 2 ( 3 π 2 n ) 2/3
= ( 1.055 × 10 − 34 ) 2 2 × 9.109 × 10 − 31 × ( 3 π 2 × 8.5 × 10 28 ) 2 / 3 = \frac{(1.055 \times 10^{-34})^2}{2 \times 9.109 \times 10^{-31}} \times (3\pi^2 \times 8.5 \times 10^{28})^{2/3} = 2 × 9.109 × 1 0 − 31 ( 1.055 × 1 0 − 34 ) 2 × ( 3 π 2 × 8.5 × 1 0 28 ) 2/3
( 3 π 2 × 8.5 × 10 28 ) 1 / 3 = ( 2.52 × 10 30 ) 1 / 3 ≈ 1.36 × 10 10 (3\pi^2 \times 8.5 \times 10^{28})^{1/3} = (2.52 \times 10^{30})^{1/3} \approx 1.36 \times 10^{10} ( 3 π 2 × 8.5 × 1 0 28 ) 1/3 = ( 2.52 × 1 0 30 ) 1/3 ≈ 1.36 × 1 0 10
( 3 π 2 n ) 2 / 3 = ( 1.36 × 10 10 ) 2 = 1.85 × 10 20 (3\pi^2 n)^{2/3} = (1.36 \times 10^{10})^2 = 1.85 \times 10^{20} ( 3 π 2 n ) 2/3 = ( 1.36 × 1 0 10 ) 2 = 1.85 × 1 0 20
ε F = 1.113 × 10 − 68 1.822 × 10 − 30 × 1.85 × 10 20 ≈ 1.13 × 10 − 18 J ≈ 7.0 e V \varepsilon_F = \frac{1.113 \times 10^{-68}}{1.822 \times 10^{-30}} \times 1.85 \times 10^{20} \approx 1.13 \times 10^{-18}\,\mathrm{J} \approx 7.0\,\mathrm{eV} ε F = 1.822 × 1 0 − 30 1.113 × 1 0 − 68 × 1.85 × 1 0 20 ≈ 1.13 × 1 0 − 18 J ≈ 7.0 eV
T F = ε F / k B = 1.13 × 10 − 18 / 1.381 × 10 − 23 ≈ 81800 K T_F = \varepsilon_F / k_B = 1.13 \times 10^{-18} / 1.381 \times 10^{-23} \approx 81800\,\mathrm{K} T F = ε F / k B = 1.13 × 1 0 − 18 /1.381 × 1 0 − 23 ≈ 81800 K
The Fermi temperature is much larger than room temperature, confirming that copper electrons are in the degenerate regime. ■ \blacksquare ■
Worked Example: Entropy of Mixing Solution. Two ideal gases of N N N particles each, initially separated by a partition, are allowed to mix. Calculate the entropy change.
Before mixing: the total entropy is 2 × N k B [ ln ( V N λ 3 ) + 5 2 ] 2 \times Nk_B\left[\ln\left(\frac{V}{N\lambda^3}\right) + \frac{5}{2}\right] 2 × N k B [ ln ( N λ 3 V ) + 2 5 ] (for a monatomic gas).
After mixing: each gas occupies volume 2 V 2V 2 V So the total entropy is:
S f = 2 × N k B [ ln ( 2 V N λ 3 ) + 5 2 ] S_f = 2 \times Nk_B\left[\ln\left(\frac{2V}{N\lambda^3}\right) + \frac{5}{2}\right] S f = 2 × N k B [ ln ( N λ 3 2 V ) + 2 5 ]
Δ S m i x = S f − S i = 2 N k B ln ( 2 V N λ 3 ) − 2 N k B ln ( V N λ 3 ) = 2 N k B ln 2 \Delta S_{\mathrm{mix} = S_f - S_i = 2Nk_B\ln\left(\frac{2V}{N\lambda^3}\right) - 2Nk_B\ln\left(\frac{V}{N\lambda^3}\right) = 2Nk_B\ln 2} Δ S mix = S f − S i = 2 N k B l n ( N λ 3 2 V ) − 2 N k B l n ( N λ 3 V ) = 2 N k B l n 2
For 1 mole of each gas: Δ S m i x = 2 R ln 2 ≈ 11.5 J / K \Delta S_{\mathrm{mix} = 2R\ln 2 \approx 11.5\,\mathrm{J}/K} Δ S mix = 2 R l n 2 ≈ 11.5 J / K .
Gibbs paradox. If the two gases are identical, the entropy of mixing is zero (no physical change). The resolution is that identical particles are indistinguishable, and the correct counting already accounts for this via the 1 / N ! 1/N! 1/ N ! factor in the partition function. ■ \blacksquare ■
The classical limit does not always apply. When λ t h 3 ≳ V / N \lambda_{\mathrm{th}^3 \gtrsim V/N} λ th 3 ≳ V / N Quantum …/4-statistics-and-probability/2_statistics (Fermi-Dirac or Bose-Einstein) must be used. This is critical for electrons in metals and for helium-4 at low temperatures.The Boltzmann distribution applies to systems in contact with a heat bath, not isolated systems. For isolated systems, use the microcanonical ensemble (all accessible microstates equally probable).The partition function must account for indistinguishability. The 1 / N ! 1/N! 1/ N ! factor in Z N Z_N Z N is essential for obtaining the correct entropy (otherwise the entropy is not extensive and the Gibbs paradox arises).