Zeroth Law: If system A is in thermal equilibrium with system BAnd B is in thermal Equilibrium with system CThen A is in thermal equilibrium with C.
This law establishes the existence of temperature as an equivalence relation. Two systems are in Thermal equilibrium if and only if they are at the same temperature.
1.2 First Law
First Law (Conservation of Energy): The change in internal energy of a system equals the heat Added to the system minus the work done by the system:
dU=δQ−δW
Where δQ and δW are inexact differentials (path-dependent), while dU is an Exact differential (state function).
For a quasi-static process with pressure-volume work:
δW=PdV
So the first law becomes:
dU=δQ−PdV
Definition (Heat capacity). The heat capacity at constant volume and constant pressure are:
CV=(∂T∂U)V,CP=(∂T∂H)P
Where H=U+PV is the enthalpy.
1.3 Second Law
Second Law (Clausius Statement): Heat cannot spontaneously flow from a colder body to a hotter Body without external work.
Second Law (Kelvin-Planck Statement): No cyclic process can convert heat entirely into work.
Theorem 1.1 (Carnot”s Theorem). No engine operating between two heat reservoirs is more Efficient than a Carnot engine. All reversible engines operating between the same two reservoirs Have the same efficiency.
Proof. Suppose engine A (claimed more efficient than Carnot) operates between reservoirs at Th and Tc. Let A extract heat Qh from the hot reservoir, do work WAnd reject heat Qc=Qh−W to the cold reservoir. Run a Carnot engine C in reverse as a refrigerator using Work W from A: it extracts Qc′ from the cold reservoir and delivers Qh′=W+Qc′ to the Hot reservoir. If ηA>ηCThen Qc<Qc′So the combined system transfers net Heat from cold to hot with no external work, violating the Clausius statement. ■
1.4 Entropy and the Clausius Inequality
Definition (Entropy). For a reversible process, the entropy change is:
dS = \frac{\delta Q_{\mathrm{rev}}{T}}
Clausius Inequality: For any cyclic process:
∮TδQ≤0
With equality if and only if the process is reversible.
Proof of entropy increase for irreversible processes. Consider a system undergoing an Irreversible process from state 1 to state 2Then returning via a reversible process. By the Clausius inequality:
Using the identity CP/CV=(∂P/∂T)S/(∂P/∂T)V and simplifying gives γ=κT/κS. ■
1.7 Second Law from Statistical Mechanics
Theorem 1.4 (Statistical basis of the second law). For an isolated system, the entropy S=kBlnΩ can only increase or remain constant.
Proof. Consider an isolated system with fixed energy EVolume VAnd particle number N. The system evolves through accessible microstates. If the system starts in a non-equilibrium Macrostate A with ΩA microstates and evolves to macrostate B with ΩB microstates, The evolution is driven by the ergodic exploration of phase space.
Since the system explores all accessible microstates with equal probability over time, it will Overwhelmingly be found in the macrostate with the largest number of microstates. If ΩB≥ΩA, then SB=kBlnΩB≥kBlnΩA=SA.
More rigorously: suppose the system starts in a subset of w0 microstates out of a total Ω. The probability that the system remains in this subset after randomising over all Microstates is w0/Ω≪1. The system therefore evolves toward the macrostate that Maximises ΩAnd hence maximises S. ■
This shows that the second law is not absolute but statistical: fluctuations can temporarily Decrease entropy, but the probability of a macroscopic fluctuation is exponentially small in N.
Solution: Worked Example — Response Functions for an Ideal Gas
For an ideal gas PV=NkBT:
α=V1(∂T∂V)P=PVNkB=T1
κT=−V1(∂P∂V)T=PVV=P1
CP−CV=1/PTV⋅(1/T)2=TVP=NkB
This confirms CP−CV=NkB for an ideal gas, a result that also follows directly from Equipartition.
2. Thermodynamic Potentials
2.1 The Four Potentials
The internal energy U is the fundamental thermodynamic potential. By performing Legendre Transformations on U(S,V,N)We obtain the other potentials:
Potential
Symbol
Natural Variables
Differential
Internal energy
U
S,V,N
dU=TdS−PdV+μdN
Enthalpy
H
S,P,N
dH=TdS+VdP+μdN
Helmholtz free energy
F
T,V,N
dF=−SdT−PdV+μdN
Gibbs free energy
G
T,P,N
dG=−SdT+VdP+μdN
The Legendre transforms are:
H=U+PV,F=U−TS,G=H−TS=U−TS+PV
2.2 Derivation of the Differential Relations
Starting from the first law for a reversible process:
dU=TdS−PdV+μdN
This tells us T=(∂U/∂S)V,N, P=−(∂U/∂V)S,NAnd μ=(∂U/∂N)S,V.
For enthalpy, H=U+PVSo:
dH=dU+PdV+VdP=TdS+VdP+μdN
For Helmholtz free energy, F=U−TSSo:
dF=dU−TdS−SdT=−SdT−PdV+μdN
For Gibbs free energy, G=U−TS+PVSo:
dG=−SdT+VdP+μdN
2.3 Physical Meaning of the Potentials
U: Total energy at constant entropy and volume.
H: Total energy plus the work needed to make room for the system (PV). Useful for constant-pressure processes (e.g., chemical reactions at atmospheric pressure).
F: The maximum work extractable from a system at constant temperature. Minimised at equilibrium for systems in contact with a heat bath at fixed T,V.
G: The maximum non-expansion work extractable. Minimised at equilibrium for systems at fixed T,P.
2.4 Maxwell Relations from Thermodynamic Potentials
Since each thermodynamic potential is a state function, its differential is exact. By Euler’s Reciprocity, mixed second partial derivatives are equal. This yields the four Maxwell relations Directly:
From potential
Exact differential
Maxwell relation
U(S,V)
dU=TdS−PdV
(∂T/∂V)S=−(∂P/∂S)V
H(S,P)
dH=TdS+VdP
(∂T/∂P)S=(∂V/∂S)P
F(T,V)
dF=−SdT−PdV
(∂S/∂V)T=(∂P/∂T)V
G(T,P)
dG=−SdT+VdP
(∂S/∂P)T=−(∂V/∂T)P
These relations allow us to express unmeasurable quantities (entropy changes) in terms of Measurable ones (equations of state).
Solution: Worked Example — Free Energy Minimisation
A gas cylinder at T=300 K is divided by a frictionless piston. Side A has volume VA=1 L With NA=0.04 mol of ideal gas. Side B has volume VB=3 L with NB=0.02 mol of ideal Gas. The piston is released and the system equilibrates at constant T. Find the equilibrium Volumes.
Where λ=h/2πmkBT is the thermal de Broglie wavelength. At constant Tλ is constant, so minimising F with respect to VA (with VB=Vtot−VA):
∂VA∂F=−VANAkBT+VBNBkBT=0
VANA=VBNB
So VA/VB=NA/NB=2. With VA+VB=4 L: VA=8/3 L, VB=4/3 L.
This is just mechanical equilibrium: PA=PBI.e., NAkBT/VA=NBkBT/VB.
2.5 Equilibrium Conditions
Theorem 2.1. At equilibrium:
For an isolated system: S is maximised (at fixed U,V,N).
For a system in contact with a heat bath at temperature T and pressure P: G is minimised.
For a system at constant T,V: F is minimised.
Proof (for G). Consider a system in contact with a reservoir at T0,P0. The total entropy Of system plus reservoir is Stot=S+SR. At equilibrium, Stot is Maximised, so δStot≤0 for any variation. Since dSR=δQR/T0 And by energy conservation δQR=−δQ=−(dU+P0dV):
δStot=δS−T01(dU+P0dV)=−T01δG≤0
Where δG=δU+P0δV−T0δS. Hence δG≥0So G is Minimised. ■
3. Maxwell Relations
3.1 Derivation from Exact Differentials
Since U,H,F,G are state functions, their differentials are exact. By the symmetry of second Derivatives (Euler’s reciprocity), if dz=Mdx+NdyThen:
(∂y∂M)x=(∂x∂N)y
Applying this to each thermodynamic potential:
From dU=TdS−PdV+μdN:
(∂V∂T)S,N=−(∂S∂P)V,N
(∂N∂T)S,V=(∂S∂μ)V,N
(∂N∂P)S,V=−(∂V∂μ)S,N
From dH=TdS+VdP+μdN:
(∂P∂T)S,N=(∂S∂V)P,N
From dF=−SdT−PdV+μdN:
(∂V∂S)T,N=(∂T∂P)V,N
From dG=−SdT+VdP+μdN:
(∂P∂S)T,N=−(∂T∂V)P,N
3.2 Applications
Derivation of the heat capacity relation. From dU=TdS−PdV:
CV=T(∂T∂S)V,CP=T(∂T∂S)P
Using the chain rule and Maxwell relations:
CP−CV=T(∂T∂P)V(∂T∂V)P
Proof. Expand S(T,V) as S(T,P(T,V)):
(∂T∂S)V=(∂T∂S)P+(∂P∂S)T(∂T∂P)V
Multiply by T:
CV=CP+T(∂P∂S)T(∂T∂P)V
Using the Maxwell relation (∂S/∂P)T=−(∂V/∂T)P:
CV=CP−T(∂T∂V)P(∂T∂P)V
■
3.3 Applications of Maxwell Relations
Application: entropy change of an ideal gas. Using (∂S/∂V)T=(∂P/∂T)V And the ideal gas law P=NkBT/V:
(∂V∂S)T=VNkB
Integrating: ΔS=NkBln(Vf/Vi) for an isothermal expansion.
Similarly, using (∂S/∂P)T=−(∂V/∂T)P:
(∂P∂S)T=−PNkB
So ΔS=−NkBln(Pf/Pi)=NkBln(Vf/Vi)Consistent.
Application: internal energy of an ideal gas. Using (∂U/∂V)T=T(∂P/∂T)V−P (a Maxwell relation consequence from dU=TdS−PdV):
(∂V∂U)T=T⋅VNkB−VNkBT=0
This confirms that the internal energy of an ideal gas depends only on T (Joule’s law).
Solution: Worked Example — Maxwell Relation for a Van der Waals Gas
For a van der Waals gas (P+a/v2)(v−b)=RT where v=V/n:
Using (∂U/∂V)T=T(∂P/∂T)V−P:
From the EOS: P=RT/(v−b)−a/v2So (∂P/∂T)V=R/(v−b)=(P+a/v2)/T.
Therefore:
(∂V∂U)T=T⋅TP+a/v2−P=v2a=V2an2
Integrating at constant T:
ΔU=−Vfan2+Vian2
For a free expansion (W=0, δQ=0Hence ΔU=0 for ideal gas), the van der Waals Gas heats up because the internal energy depends on volume through the a/v2 term representing Intermolecular attraction. The temperature change is:
ΔT=−CVa(Vf1−Vi1)
Which is negative for Vf>Vi: the gas cools during free expansion.
4. Heat Engines and Refrigerators
4.1 The Carnot Cycle
The Carnot cycle consists of four reversible stages operating between temperatures Th (hot) and Tc (cold):
Isothermal expansion at Th: absorb heat Qh from hot reservoir.
Adiabatic expansion: temperature drops from Th to Tc.
Isothermal compression at Tc: reject heat Qc to cold reservoir.
Adiabatic compression: temperature rises from Tc to Th.
The efficiency is:
η=1−QhQc=1−ThTc
Derivation. For the isothermal steps, ΔShot=Qh/Th and ΔScold=−Qc/Tc. Since entropy is a state function and the cycle returns to The initial state, ΔStotal=0So Qh/Th=Qc/Tc. ■
4.2 Heat Pumps and Refrigerators
A refrigerator is a Carnot engine run in reverse. The coefficient of performance (COP):
Otto cycle (idealised petrol engine): two isochoric and two adiabatic processes.
ηOtto=1−rγ−11
Where r=Vmax/Vmin is the compression ratio and γ=CP/CV.
Diesel cycle: one isobaric, two adiabatic, and one isochoric process:
ηDiesel=1−rγ−11⋅γ(α−1)αγ−1
Where α=Vmax/Vcutoff is the cutoff ratio.
4.4 Worked Example: Carnot Cycle Calculation
Solution: Carnot Cycle with a Monatomic Ideal Gas
A Carnot engine uses n=2 mol of monatomic ideal gas (CV=23nR, CP=25nRγ=5/3). The reservoirs are at Th=600 K and Tc=300 K. At state A (start of Isothermal expansion): PA=10 atm, VA=10 L.
Step 1: Isothermal expansion at Th=600 K from A to B. Let VB=20 L.
Qh=nRThlnVAVB=2×8.314×600×ln2≈6915J
WAB=Qh=6915J (isothermal, so ΔU=0)
PB=PAVA/VB=5 atm.
Step 2: Adiabatic expansion from B to C.TC=Tc=300 K. From TVγ−1=const:
Step 3: Isothermal compression at Tc=300 K from C to D. From TVγ−1=const On the adiabat DA: VD=VA(Th/Tc)1/(γ−1)=10×23/2≈28.3 L.
Qc=nRTclnVDVC=2×8.314×300×ln28.356.6≈3458J
WCD=Qc=3458 J (heat rejected; W<0 for compression).
Step 4: Adiabatic compression from D to A.QDA=0, WDA=−nCV(Th−Tc)=−7483 J.
Summary:
Quantity
Value
Qh (absorbed)
6915 J
Qc (rejected)
3458 J
Wnet=Qh−Qc
3457 J
η=Wnet/Qh
0.500
ηCarnot=1−Tc/Th
0.500
The efficiency matches the Carnot prediction exactly, as expected for a reversible cycle.
5. Entropy and Free Energy
5.1 Statistical Definition of Entropy
Definition (Boltzmann Entropy). For a macrostate with Ω accessible microstates:
S=kBlnΩ
Where kB=1.381×10−23 J/K is Boltzmann’s constant.
Justification. Consider two independent systems A and B. The total number of microstates is ΩAB=ΩA⋅ΩB. We require SAB=SA+SB (additivity). The logarithm Is the unique function satisfying f(xy)=f(x)+f(y). ■
5.2 Gibbs Entropy Formula
For a system with probability pi of being in microstate i:
S=−kB∑ipilnpi
This reduces to the Boltzmann formula when all accessible microstates are equally probable: pi=1/Ω.
Theorem 5.1 (Concavity of entropy). The Gibbs entropy is maximised when all accessible Microstates are equally probable.
Proof. Maximise S=−kB∑ipilnpi subject to ∑ipi=1 using a Lagrange Multiplier λ:
∂pj∂[−∑ipilnpi−λ(∑ipi−1)]=−lnpj−1−λ=0
This gives pj=e−1−λ=const for all j. The constraint ∑ipi=1 Then gives pi=1/Ω. ■
Derivation from Boltzmann. For N identical systems distributed among Ω equally probable Microstates, the most probable macrostate has ni=N/Ω systems in each microstate. The Number of ways to arrange this is:
W=∏ini!N!
Using Stirling’s approximation lnN!≈NlnN−N:
lnW=NlnN−N−∑i(nilnni−ni)=−N∑ipilnpi
Where pi=ni/N. Multiplying by kB gives the Gibbs entropy. ■
5.3 Helmholtz Free Energy and the Partition Function
The Helmholtz free energy connects thermodynamics to statistical mechanics:
F=−kBTlnZ
Where Z=∑ie−βEi is the canonical partition function and β=1/(kBT).
Derivation. From the Gibbs entropy with the Boltzmann distribution pi=e−βEi/Z:
S=−kB∑iZe−βEi(−βEi−lnZ)=kBβ⟨E⟩+kBlnZ
Since ⟨E⟩=U and kBβ=1/T:
S=TU+kBlnZ
F=U−TS=U−T(TU+kBlnZ)=−kBTlnZ
■
6. Phase Transitions
6.1 Classification of Phase Transitions
First-order transition: Discontinuity in first derivatives of G (e.g., S, V). There is a Latent heat L=TΔS.
Second-order (continuous) transition: First derivatives are continuous, but second derivatives (e.g., CP, κT, α) diverge or are discontinuous.
Ehrenfest classification: An n-th order transition has discontinuities in the n-th Derivatives of GWith all lower derivatives continuous.
6.2 The Clausius-Clapeyron Equation
For a first-order phase transition between phases α and β in equilibrium (Gα=Gβ):
dTdP=Vβ−VαSβ−Sα=TΔVL
Where L is the latent heat and ΔV=Vβ−Vα.
Derivation. Along the coexistence curve, dGα=dGβ. Since dG=−SdT+VdP:
−SαdT+VαdP=−SβdT+VβdP
dTdP=Vβ−VαSβ−Sα=TΔVL
■
Application: liquid-gas coexistence. Assuming the vapour is an ideal gas and Vgas≫Vliquid:
dTdP≈T⋅nRT/PL=nRT2PL
Integrating (assuming L is constant) gives the Clausius equation:
lnP=−nRTL+const
6.4 Worked Example: Clausius-Clapeyron Applications
Solution: Boiling Point at Different Pressures
The latent heat of vaporisation of water at 1 atm (Tb=373.15 K) is Lv=40700 J/mol. Find the Boiling point at P=0.5 atm.
Integrating the Clausius-Clapeyron equation:
lnP1P2=−RLv(T21−T11)
ln10.5=−8.31440700(T21−373.151)
−0.693=−4894(T21−0.00268)
T21=0.00268+48940.693=0.00282
T2≈354.6K≈81.5°C
This explains why water boils at a lower temperature at high altitude.
Solution: Solid-Liquid Coexistence — Pressure Melting of Ice
For the ice-water transition: Lf=6008 J/mol, Tm=273.15 K, ΔV=Vwater−Vice=18.0×10−6−19.7×10−6=−1.7×10−6 m3/mol.
The negative slope means increasing pressure lowers the melting point:
dPdT=−7.7×10−8K/Pa=−0.0077K/atm
At P=100 atm: ΔT≈−0.77 K, so ice melts at approximately 272.4 K. This is the Principle behind ice skating: the pressure under the blade slightly lowers the melting point, Creating a thin lubricating layer of water.
6.5 Worked Example: Phase Diagram Construction
Solution: Estimating the Triple Point
Given for a substance: normal boiling point Tb=353 K at P=1 atm, normal melting point Tm=280 K at P=1 atm, Lv=35000 J/mol, Lf=10000 J/mol, and ΔVSL=−5×10−6 m3/mol.
At the triple point, the solid-gas, solid-liquid, and liquid-gas coexistence curves meet. To Estimate, we find where the sublimation curve meets the vaporisation curve.
For the sublimation curve: Ls=Lf+Lv=45000 J/mol.
At T=Tm=280 K on the sublimation curve (assuming solid-gas equilibrium at the melting point At low P):
Psub(280)=P0exp[−8.31445000(2801−T01)]
For the vaporisation curve at T=280 K:
Pvap(280)=1atm×exp[−8.31435000(2801−3531)]
=exp[−4210×(0.00357−0.00283)]=exp(−3.12)≈0.044atm
The triple point is where the sublimation and vaporisation curves intersect. In this simplified Model (neglecting the curvature of the solid-liquid line), the triple point is near P≈0.04 atm, T≈275 K. More accurate treatment requires integrating both curves and finding Their intersection numerically.
7. The Boltzmann Distribution
7.1 Derivation from the Microcanonical Ensemble
Consider a system S in thermal contact with a large heat reservoir R at temperature T. The Total energy Etot=ES+ER is conserved.
The probability that S is in state i with energy Ei is proportional to the number of Microstates of the reservoir:
Pi∝ΩR(Etot−Ei)
Since the reservoir is large, expand lnΩR to first order:
lnΩR(Etot−Ei)≈lnΩR(Etot)−Ei(∂E∂lnΩR)V
=lnΩR(Etot)−kBTEi
Where we used ∂lnΩR/∂E=1/(kBT) (the thermodynamic definition of Temperature). Therefore:
Pi∝e−Ei/(kBT)=e−βEi
Normalising:
Pi=Ze−βEi,Z=∑ie−βEi
This is the Boltzmann distribution (canonical ensemble).
7.2 Connection to Thermodynamics
From the partition function, all thermodynamic quantities follow:
Internal energy: U=−∂β∂lnZ
Entropy: S=kB(lnZ+βU)
Helmholtz free energy: F=−kBTlnZ
Pressure: P=β1∂V∂lnZ
Heat capacity: CV=kBβ2(⟨E2⟩−⟨E⟩2)
7.3 Worked Example: Two-Level System
A system has two energy levels: E0=0 and E1=ε.
Z=1+e−βε
U=−∂β∂lnZ=1+e−βεεe−βε=eβε+1ε
C=∂T∂U=kBβ2ε2(1+eβε)2eβε
At high T (β→0): U→ε/2 and C→0 (equipartition). At low T (β→∞): U→0 and C→0 (Schottky anomaly).
8. Partition Functions
8.1 Molecular Partition Function
For a single molecule, the total partition function factors into contributions from different Degrees of freedom:
z=ztrans⋅zrot⋅zvib⋅zelec
8.2 Translational Partition Function
For a particle of mass m in a box of volume V:
ztrans=∑ke−βℏ2k2/(2m)
In the continuum limit (replace sum with integral):
ztrans=V(h22πmkBT)3/2=VnQ
Where nQ=(2πmkBT/h2)3/2 is the quantum concentration.
For a rigid rotor (diatomic molecule) with moment of inertia I:
zrot=∑J=0∞(2J+1)e−βℏ2J(J+1)/(2I)
At high temperature (T≫Θrot=ℏ2/(2IkB)), the sum can be approximated By an integral:
zrot≈Θrot=ℏ22IkBTT
For a heteronuclear diatomic, we multiply by the symmetry number σ=1. For a homonuclear Diatomic, σ=2 (exchange of identical nuclei gives indistinguishable configurations).
8.4 Vibrational Partition Function
For a harmonic oscillator with frequency ν:
zvib=∑n=0∞e−βℏν(n+1/2)=1−e−βℏνe−βℏν/2
The mean vibrational energy is:
⟨Evib⟩=2ℏν+eβℏν−1ℏν
The first term is the zero-point energy.
9. The Ideal Gas
9.1 Classical Ideal Gas
For N distinguishable particles, Z=zN. For Nindistinguishable particles:
Z=N!zN
The factor 1/N! corrects for overcounting (Gibbs paradox).
Proof (Gibbs paradox). Without the 1/N! factor, the entropy S=NkBlnz+U/T is not Extensive: mixing two identical gases gives Smix=2S+NkBln2=2S. With 1/N!Using Stirling’s approximation:
F=−NkBTln(Nz)−NkBT
S=−(∂T∂F)V=NkB[ln(Nz)+1]+TU
Which is now extensive. ■
9.2 Equation of State
From the translational partition function:
Z=N!1[V(h22πmkBT)3/2]N
F=−kBTlnZ=−NkBT[ln(NV(h22πmkBT)3/2)+1]
P=−(∂V∂F)T,N=VNkBT
This recovers the ideal gas lawPV=NkBT.
9.3 Maxwell-Boltzmann Speed Distribution
The probability distribution for the speed v of a molecule in an ideal gas at temperature T:
f(v)dv=4π(2πkBTm)3/2v2e−mv2/(2kBT)dv
Characteristic speeds:
Most probable speed:vp=2kBT/m
Mean speed:⟨v⟩=8kBT/(πm)
Root-mean-square speed:vrms=3kBT/m
9.4 Equipartition Theorem
Theorem 9.1 (Equipartition). Each quadratic degree of freedom in the Hamiltonian contributes 21kBT to the average energy.
Proof. If H contains a term aqi2 or bpi2 with a,b>0Then:
So ⟨aqi2⟩=kBT/2. Similarly for momentum terms. ■
This gives U=2fNkBT and CV=2fNkB where f is the number of quadratic Degrees of freedom.
9.5 Kinetic Theory of Gases
Mean Free Path
The mean free pathλmfp is the average distance a molecule travels between Collisions.
Theorem 9.2 (Mean free path). For a gas of N hard-sphere molecules of diameter d in volume V:
λmfp=2πd2n1
Where n=N/V is the number density.
Proof. A molecule of diameter d sweeps out a cylinder of cross-section σ=πd2 (per collision cross-section for identical particles, the effective cross-section is π(2d/2)2=πd2But the relative velocity correction introduces the factor 2). In time ΔtThe molecule travels vΔt and sweeps volume σvΔt. The Number of collisions is nσvΔtSo the mean free path is:
λmfp=nσvΔtvΔt=nσ1
For the correct treatment, one must use the mean relative velocity. Since both colliding molecules Are moving, the relative speed is 2 times the mean speed:
λmfp=2πd2n1
■
Numerical example. For air at STP (n≈2.7×1025 m−3, d≈3.7×10−10 m):
λmfp=2π(3.7×10−10)2×2.7×10251≈6.8×10−8m≈68nm
The collision frequency is fcoll=⟨v⟩/λmfp≈500/(6.8×10−8)≈7.4×109 s−1.
Transport Properties
Viscosity. The shear viscosity of a dilute gas:
η=31nm⟨v⟩λmfp=31πd22m⟨v⟩
Substituting ⟨v⟩=8kBT/(πm):
η=3π3/22d2mkBT
A key prediction: viscosity is independent of density for a dilute gas (Maxwell’s result, Verified experimentally). This is because λmfp∝1/n but the momentum Transfer per collision is proportional to the number of molecules per unit volume, giving η∝n⋅(1/n)=const.
Thermal conductivity. For a monatomic gas:
κ=31n⟨v⟩λmfp⋅2fkB=2fmkBη
Where f=3 for a monatomic gas. The ratio κ/(ηcV/m)=f/2 is predicted to be a Universal constant (Eucken’s formula).
Diffusion (self-diffusion). The self-diffusion coefficient:
D=31⟨v⟩λmfp=312πd2n⟨v⟩
Theorem 9.3 (Einstein relation). The diffusion coefficient is related to mobility μ by:
D=μkBT
This is a consequence of the fluctuation-dissipation theorem.
Solution: Worked Example — Viscosity of Nitrogen
For N2 at T=273 K: m=4.65×10−26 kg, d=3.7×10−10 m.
The experimental value is η≈1.66×10−5 Pa⋅S. The discrepancy is due to The hard-sphere model being an approximation; real molecules have softer repulsive potentials.
Derivation of the Maxwell-Boltzmann Speed Distribution
Theorem 9.4. The speed distribution for molecules in an ideal gas at temperature T is:
f(v)dv=4π(2πkBTm)3/2v2e−mv2/(2kBT)dv
Proof. In the canonical ensemble, the probability of a molecule having momentum p is Proportional to e−βp2/(2m). The velocity distribution is:
P(v)d3v=(2πkBTm)3/2exp(−2kBTmv2)d3v
To find the speed distribution, transform to spherical coordinates in velocity space and integrate Over angles:
For an ideal Bose gas in 3D, the critical temperature is:
Tc=mkB2πℏ2(ζ(3/2)n)2/3
Where n=N/V is the particle density and ζ(3/2)≈2.612.
Below TcThe chemical potential is essentially zero (μ≈0), and a macroscopic Fraction of particles condense into the ground state:
NN0=1−(TcT)3/2
Derivation. The number of particles in excited states is:
Nex=∫0∞eβε−1g(ε)dε=V(2πℏ2mkBT)3/2ζ(3/2)
This has a maximum value at μ=0. When N>NexmaxThe excess Particles must go to the ground state. Setting N=Nexmax at T=Tc Gives the critical temperature above. ■
10.5 Comparison of the Three Statistics
fMB=e−β(ε−μ),fFD=eβ(ε−μ)+11,fBE=eβ(ε−μ)−11
In the classical (dilute) limit eβ(ε−μ)≫1All three reduce to the Maxwell-Boltzmann distribution. This occurs when n≪nQ (dilute gas) or T≫TF for Fermions.
10.6 Worked Example: Electron Gas in Metals
For copper: one conduction electron per atom, n≈8.5×1028 m−3.
εF=2meℏ2(3π2n)2/3≈7.0×10−19J≈4.4eV
TF=kBεF≈51000K
At room temperature (T=300 K), T/TF≈0.006So the gas is deeply degenerate. The heat Capacity is:
CV≈2π2NkBTFT
This is much smaller than the classical prediction CV=23NkBExplaining why electrons Contribute negligibly to the heat capacity of metals at room temperature.
11. Grand Canonical Ensemble
11.1 Definition
The grand canonical ensemble describes a system that can exchange both energy and particles with A reservoir at temperature T and chemical potential μ.
The grand partition function:
Ξ=∑N∑ie−β(Ei−μN)
The probability of finding the system in state i with N particles:
Pi,N=Ξe−β(Ei−μN)
11.2 Connection to Thermodynamics
lnΞ=βPV
This follows from the Euler relation for the grand potential ΦG=−PV=F−μN.
Key relations:
Average particle number: ⟨N⟩=β1∂μ∂lnΞT,V
Pressure: P=β1∂V∂lnΞT,μ
Entropy: S=kB(lnΞ+β⟨E⟩−βμ⟨N⟩)
11.3 Fluctuations
The number fluctuations in the grand canonical ensemble:
⟨N⟩2⟨N2⟩−⟨N⟩2=VkBTκT
Where κT=−V1(∂V/∂P)T is the isothermal compressibility. For an Ideal gas, this gives ⟨N2⟩−⟨N⟩2=⟨N⟩Consistent With Poisson …/4-statistics-and-probability/2_statistics.
12. Fluctuation-Dissipation Theorem
12.1 Energy Fluctuations
In the canonical ensemble:
⟨E2⟩−⟨E⟩2=kBT2CV
Proof.⟨E2⟩−⟨E⟩2=∂β2∂2lnZ=−∂β∂U=kBT2CV. ■
This is a manifestation of the fluctuation-dissipation theorem: the response of the system (CV) is related to the equilibrium fluctuations.
12.2 General Fluctuation-Dissipation Relation
For a general observable X coupled to its conjugate field f via H′=−fX:
χ=β(⟨X2⟩−⟨X⟩2)
Where χ=∂⟨X⟩/∂f is the susceptibility. This connects the Linear response of a system to its spontaneous fluctuations.
13. Blackbody Radiation
13.1 Planck Distribution
Treating electromagnetic radiation in a cavity as a gas of non-interacting photons (bosons with μ=0):
⟨n(ω)⟩=eβℏω−11
The spectral energy density (energy per unit volume per unit frequency):
u(ω)=π2c3ℏω3⋅eβℏω−11
Derivation. The density of photon states in a cavity of volume V is g(ω)=Vω2/(π2c3). Each photon has energy ℏωAnd the mean occupation Number is the Bose-Einstein distribution with μ=0:
The Stefan-Boltzmann law for radiated power per unit area:
j=4cu=σT4,σ=60ℏ3c2π2kB4≈5.67×10−8Wm−2K−4
13.3 Wien’s Displacement Law
The peak of u(λ) occurs at:
λmaxT=2.898×10−3m⋅K
This follows from maximising u(λ)=(8πhc/λ5)(ehc/(λkBT)−1)−1 With respect to λ.
13.4 Detailed Derivation of Planck’s Law
Theorem 13.1 (Planck’s law). The spectral radiance of a blackbody is:
B(ω)=4π3c2ℏω3⋅eβℏω−11
Proof. Consider electromagnetic modes in a cavity of volume V=L3 with periodic boundary Conditions. The allowed wavevectors are k=(2π/L)(nx,ny,nz) with ni∈Z. The number of modes with wavevector magnitude between K and K+dk (counting two Polarisations) is:
g(k)dk=(2π)3V⋅4πk2dk×2=π2Vk2dk
Converting to frequency using ω=ck and dk=dω/c:
g(ω)dω=π2c3Vω2dω
Each mode is a quantum harmonic oscillator with energy ℏω(n+1/2). Since photons are Bosons with μ=0 (photon number is not conserved), the mean occupation number is:
⟨n(ω)⟩=eβℏω−11
The energy in modes between ω and ω+dω is:
dU=g(ω)dω⋅ℏω⋅⟨n(ω)⟩=π2c3Vℏω3⋅eβℏω−1dω
The spectral energy density is u(ω)=(1/V)dU/dω:
u(ω)=π2c3ℏω3⋅eβℏω−11
■
Historical note. Planck originally derived this result in 1900 by interpolating between the Rayleigh-Jeans law (valid at low frequencies, u(ω)∝ω2) and Wien’s law (valid At high frequencies, u(ω)∝ω3e−βℏω). The Rayleigh-Jeans law Leads to the “ultraviolet catastrophe” — infinite total energy — which Planck resolved by Postulating that energy is quantised in units of ℏω.
13.5 Derivation of the Stefan-Boltzmann Law
Theorem 13.2 (Stefan-Boltzmann). The total radiated power per unit area from a blackbody is:
j=σT4,σ=60ℏ3c2π2kB4
Proof. Integrate the spectral energy density:
u=∫0∞u(ω)dω=π2c3ℏ∫0∞eβℏω−1ω3dω
Substituting x=βℏω:
u=π2ℏ3c3(kBT)4∫0∞ex−1x3dx
The integral ∫0∞x3/(ex−1)dx=Γ(4)ζ(4)=6×π4/90=π4/15.
u=15ℏ3c3π2kB4T4
The radiated power per unit area (intensity) relates to the energy density by j=cu/4 (the Factor of 1/4 accounts for the projection effect and the average of cosθ over the Hemisphere):
j=4cu=60ℏ3c2π2kB4T4=σT4
■
13.6 Wien’s Displacement Law
Theorem 13.3 (Wien’s displacement law). The peak of u(λ) occurs at:
λmaxT=b=2.898×10−3m⋅K
Proof. Express the spectral energy density in terms of wavelength λ=2πc/ω:
u(λ)=λ58πhc⋅ehc/(λkBT)−11
Setting du/dλ=0 and substituting x=hc/(λkBT):
dxd(ex−1x5)=0⟹5(ex−1)−xex=0
This transcendental equation has the solution x≈4.965Giving λmaxT=hc/(4.965kB)=b. ■
Solution: Worked Example — Temperature of the Sun's Surface
The Sun’s emission peaks at λmax≈502 nm (green). Using Wien’s law:
T=λmax=502×10−92.898×10−3≈5770Kb
The total radiated power per unit area:
j=σT4=(5.67×10−8)(5770)4≈6.32×107W/m2
With solar radius R⊙≈6.96×108 m, the total luminosity is:
L=4πR⊙2⋅j≈4π(6.96×108)2×6.32×107≈3.85×1026W
This matches the measured solar luminosity to within a few percent, validating blackbody theory.
14. The Ising Model
14.1 Definition
The Ising model is a lattice of N spin-1/2 variables si∈+1,−1 with Hamiltonian:
H=−J∑⟨i,j⟩sisj−h∑isi
Where J is the coupling constant, ⟨i,j⟩ denotes nearest neighbours, and h is an External magnetic field.
J>0: ferromagnetic (spins tend to align).
J<0: antiferromagnetic (spins tend to anti-align).
14.2 Exact Solution in 1D
Theorem 14.1 (Ising, 1925). The 1D Ising model has no phase transition at T>0.
Proof sketch. Using the transfer matrix method, the partition function for N spins with Periodic boundary conditions is:
Z=λ+N+λ−N
Where λ±=eβJcosh(βh)±e2βJsinh2(βh)+e−2βJ.
In the thermodynamic limit (N→∞), Z→λ+N (the larger eigenvalue dominates).
The magnetisation per spin is:
m=β1∂h∂lnλ+
For h=0: λ+=eβJ+e−βJ=2cosh(βJ)And m=0 for all T>0. There is no spontaneous magnetisation, hence no phase transition. ■
14.3 Mean-Field Approximation
Replace the interaction of spin si with its neighbours by the mean field m=⟨s⟩:
HMF=−Jzm∑isi−h∑isi
Where z is the coordination number. The self-consistency equation:
m=tanh[β(Jzm+h)]
For h=0A non-zero solution exists when T<Tc=Jz/kB.
The critical exponents in mean-field theory: β=1/2, γ=1, δ=3.
14.4 Landau Theory of Phase Transitions
The Landau theory provides a phenomenological description of second-order phase transitions using a Free energy expanded in the order parameterϕ:
F(ϕ,T)=F0(T)+a(T−Tc)ϕ2+bϕ4+⋯
Where a>0 and b>0.
For T>Tc: the minimum is at ϕ=0 (disordered phase).
For T<Tc: the minimum is at ϕ=±a(Tc−T)/(2b) (ordered phase).
Specific heat jump. The entropy S=−∂F/∂T has a discontinuity at Tc:
ΔCP=−Tc∂T2∂2FTc+Tc−=2ba2Tc
Limitations. Landau theory neglects fluctuations and gives incorrect critical exponents in low Dimensions. It is exact in mean-field (infinite-range) models and above the upper critical dimension du=4.
14.5 Scaling and Critical Exponents
Near a critical point, thermodynamic quantities follow power laws:
Quantity
Power law
Exponent
Order parameter (T<Tc)
ϕ∝(Tc−T)β
β
Susceptibility
χ∝∣T−Tc∣−γ
γ
Specific heat
C∝∣T−Tc∣−α
α
Correlation length
ξ∝∣T−Tc∣−ν
ν
The scaling relations (from the homogeneity hypothesis):
α+2β+γ=2(Rushbrooke)
γ=β(δ−1)(Widom)
γ=(2−η)ν(Fisher)
These are verified experimentally and by renormalisation group calculations.
:::caution Common Pitfall The mean-field approximation overestimates Tc and gives incorrect Critical exponents. In 1D, it predicts a phase transition at Tc=Jz/kBWhereas the exact Solution shows no transition at T>0. Mean-field theory is only reliable in high dimensions (where fluctuations are small) or for long-range interactions. :::
15. The Microcanonical Ensemble
15.1 Definition and Fundamental Postulate
The microcanonical ensemble describes an isolated system with fixed energy EVolume VAnd Particle number N. The fundamental postulate of statistical mechanics states:
All accessible microstates of an isolated system are equally probable.
For a classical system, the number of microstates with energy between E and E+δE is:
Ω(E,V,N)=N!h3N1∫E<H(q,p)<E+δEd3Nqd3Np
The factor h3N makes Ω dimensionless (and is justified by quantum mechanics), and 1/N! accounts for indistinguishability.
15.2 Connection to Thermodynamics
Definition (Microcanonical temperature). The temperature is defined by:
T1=(∂E∂S)V,N,S=kBlnΩ
Definition (Microcanonical pressure).
P=T(∂V∂S)E,N
Definition (Microcanonical chemical potential).
μ=−T(∂N∂S)E,V
15.3 The Ideal Gas in the Microcanonical Ensemble
Theorem 15.1 (Sackur-Tetrode equation). The entropy of a monatomic ideal gas is:
S=NkB[ln(NV(3Nh24πmE)3/2)+25]
Proof. For N non-interacting particles, H=∑i=1Npi2/(2m). The number of Microstates with total energy between E and E+δE is the volume of a spherical shell in 3N-dimensional momentum space:
Ω=N!h3N1VN⋅Γ(3N/2)2π3N/2(2mE)3N/2⋅2E3NδE
The factor (3NδE)/(2E) is the shell thickness in radius. Taking the logarithm:
Using Stirling’s approximation lnN!≈NlnN−N and E=23NkBT:
S=kBlnΩ=NkB[ln(NV(3Nh24πmE)3/2)+25]+O(lnN)
The O(lnN) terms (from the shell thickness) are negligible compared to the O(N) Terms in the thermodynamic limit. ■
This is the Sackur-Tetrode equation, which gives the absolute entropy of a monatomic ideal gas. It satisfies the third law in the sense that S→−∞ as T→0Indicating the Breakdown of the classical description at low temperatures.
15.4 Derivation of the Canonical Ensemble from the Microcanonical Ensemble
Theorem 15.2. A small subsystem of a large microcanonical ensemble obeys the Boltzmann Distribution.
Proof. Consider a total system with energy Etot composed of subsystem S (with Energy ES) and reservoir R (with energy ER=Etot−ES). The probability that S is in a specific microstate with energy ES is:
Since the reservoir is large, expand to first order:
lnΩR(Etot−ES)≈lnΩR(Etot)−ES∂ER∂lnΩR
Using ∂lnΩR/∂ER=1/(kBT):
P(ES)∝e−ES/(kBT)=e−βES
Normalising gives the Boltzmann distribution Pi=e−βEi/Z. ■
Solution: Worked Example — Entropy of Mixing Revisited
Two ideal gases, each with N particles at the same T and PAre separated by a partition. The partition is removed. Find ΔS.
Before mixing: each gas occupies volume V. The total entropy is Si=2×S(N,V,T).
After mixing: each gas occupies volume 2V. The total entropy is:
Sf=S(N,2V,T)+S(N,2V,T)=2×S(N,2V,T)
From the Sackur-Tetrode equation, the change for each gas is:
ΔSonegas=NkBlnV2V=NkBln2
If the gases are different: ΔS=2NkBln2.
If the gases are identical: removing the partition does nothing observable. The total entropy is S(N,2V,T)=S(2N,2V,T) (using N! correction), and ΔS=0. The 1/N! factor in The partition function automatically resolves this paradox.
16. The Canonical Ensemble — Detailed Treatment
16.1 Derivation of Thermodynamic Quantities
The canonical partition function is Z=∑ie−βEi for a discrete spectrum, or
Z=N!h3N1∫e−βH(q,p)d3Nqd3Np
For a classical system.
Theorem 16.1. All thermodynamic quantities follow from lnZ:
Quantity
Formula
Internal energy
U=−∂lnZ/∂β
Helmholtz free energy
F=−kBTlnZ
Entropy
S=kB(lnZ+βU)
Pressure
P=kBT(∂lnZ/∂V)β,N
Chemical potential
μ=−kBT(∂lnZ/∂N)β,V
Heat capacity
CV=kBβ2(⟨E2⟩−⟨E⟩2)
Proof (energy and heat capacity).
U=⟨E⟩=Z1∑iEie−βEi=−Z1∂β∂Z=−∂β∂lnZ
⟨E2⟩=Z1∑iEi2e−βEi=Z1∂β2∂2Z
⟨E2⟩−⟨E⟩2=∂β2∂2lnZ=−∂β∂U=kBT2CV
■
16.2 The Classical Partition Function for an Ideal Gas
Theorem 16.2. The classical partition function for N indistinguishable ideal gas particles is:
Z=N!1(λ3V)N
Where λ=h/2πmkBT is the thermal de Broglie wavelength.
Proof. For non-interacting particles, H=∑i=1Npi2/(2m):
From this, all ideal gas thermodynamics follows: F=−NkBT[ln(V/Nλ3)+1], P=NkBT/V, S=NkB[ln(V/Nλ3)+5/2].
17. Problem Set
Problem 1: Entropy change in free expansion
Problem. One mole of ideal gas doubles its volume in a free expansion (no heat exchange, no Work done). Calculate ΔS. Does this violate the second law?
Solution. For a free expansion, Q=0 and W=0So ΔU=0 and ΔT=0 (ideal gas). The entropy change is:
ΔS=nRlnViVf=Rln2≈5.76J/K
This does not violate the second law. The second law states ΔSuniverse≥0. For the system, ΔS=Rln2>0. For the surroundings, ΔSsurr=0 (no heat exchanged). So ΔSuniverse=Rln2>0Consistent with an Irreversible process.
If you get this wrong, revise: Section 1.4 (Clausius inequality) and Section 9.2 (ideal gas Entropy).
Problem 2: Carnot efficiency with given temperatures
Problem. A Carnot engine operates between Th=500 K and Tc=300 K, absorbing 1000 J per Cycle from the hot reservoir. Find Qc, WAnd η.
Solution.
η=1−ThTc=1−500300=0.4
W=ηQh=0.4×1000=400J
Qc=Qh−W=600J
If you get this wrong, revise: Section 4.1 (Carnot cycle) and Theorem 1.1 (Carnot’s theorem).
Problem 3: Maxwell relation for a general equation of state
Problem. A gas obeys P=RT/(Vm−b)−a/Vm2 (van der Waals). Use a Maxwell relation to Find (∂S/∂V)T.
Solution. Using (∂S/∂V)T=(∂P/∂T)V:
(∂V∂S)T=(∂T∂P)V=Vm−bR
Integrating at constant T:
ΔS=RlnVm,i−bVm,f−b
If you get this wrong, revise: Section 3.1 (Maxwell relation derivation) and Section 3.3 (applications).
Problem 4: Heat capacity relation for a solid
Problem. A solid has α=3×10−5 K−1, κT=6×10−12 Pa−1Molar volume Vm=2.5×10−5 m3/mol, and CP=25 J/(mol⋅K). Find CP−CV and CV.
For a solid at room temperature, CP−CV is small (a few percent of CP).
If you get this wrong, revise: Section 1.6 (thermodynamic response functions) and Theorem 1.2.
Problem 5: Helmholtz free energy of a paramagnet
Problem. A paramagnetic system of N non-interacting spin-1/2 particles in a magnetic field B Has energy levels E=±μBB per particle (μB is the Bohr magneton). Find F, SAnd M=−(∂F/∂B)T.
At high T: M≈NμB2B/(kBT) (Curie’s law). At T=0: M=NμB (saturation).
If you get this wrong, revise: Section 7.1 (Boltzmann distribution) and Section 7.3 (two-level System).
Problem 6: Partition function of a quantum harmonic oscillator
Problem. A 1D quantum harmonic oscillator has En=ℏω(n+1/2). Calculate Z, UCVAnd S. Find the high- and low-temperature limits.
Solution.
Z=∑n=0∞e−βℏω(n+1/2)=1−e−βℏωe−βℏω/2
U=−∂β∂lnZ=2ℏω+eβℏω−1ℏω
CV=∂T∂U=kB(βℏω)2(eβℏω−1)2eβℏω
High T (βℏω≪1): U≈kBT, CV≈kB (equipartition). Low T (βℏω≫1): U≈ℏω/2 (zero-point energy), CV≈KB(βℏω)2e−βℏω→0 exponentially.
If you get this wrong, revise: Section 8.4 (vibrational partition function) and Section 9.4 (equipartition).
Problem 7: Fermi energy of a 3D electron gas
Problem. Sodium has one conduction electron per atom, atomic mass 23 g/mol, density 970 Kg/m3. Calculate the Fermi energy εF and Fermi temperature TF.
Solution. Number density: n=(ρNA/M)=(970×6.022×1023)/(0.023)=2.54×1028 m−3.
If you get this wrong, revise: Section 10.2 (Fermi-Dirac …/4-statistics-and-probability/2_statistics) and Section 10.6 (electron Gas in metals).
Problem 8: Bose-Einstein condensation temperature
Problem.104 rubidium-87 atoms are trapped in a harmonic potential. Estimate the BEC Transition temperature. (m=87×1.66×10−27 kg.)
Solution. For a harmonic trap, the density of states is g(ε)=ε2/(2(ℏωˉ)3) where ωˉ=(ωxωyωz)1/3. The BEC condition Is N=ζ(3)(kBTc/ℏωˉ)3:
Tc=kBℏωˉ(ζ(3)N)1/3
Assuming ωˉ=2π×100 Hz:
Tc=1.381×10−231.055×10−34×2π×100×(2.612104)1/3
=4.80×10−9×15.7≈7.5×10−8K=75nK
This is consistent with experimental BEC observations in laser-cooled atom traps.
If you get this wrong, revise: Section 10.3 (Bose-Einstein …/4-statistics-and-probability/2_statistics) and Section 10.4 (BEC).
Problem 9: Chemical potential of a classical ideal gas
Problem. Show that the chemical potential of a classical ideal gas is μ=kBTln(nλ3) Where n=N/V and λ is the thermal de Broglie wavelength. Discuss the sign of μ.
When nλ3≪1 (classical regime, dilute gas or high T): μ<0. When nλ3→1 (approaching quantum degeneracy): μ→0. For fermions, μ>0 in the degenerate Regime (T≪TF).
If you get this wrong, revise: Section 9.2 (equation of state) and Section 10.5 (comparison of Statistics).
Problem 10: Entropy of a spin system
Problem. A system of N=100 non-interacting spin-1/2 particles in zero magnetic field. What Is the total entropy? If a field is applied and all spins align, what is ΔS?
Solution. In zero field, all 2N microstates are equally probable:
This is the maximum entropy change achievable by applying a magnetic field to a spin system, and Forms the basis of magnetic cooling (adiabatic demagnetisation refrigeration).
If you get this wrong, revise: Section 5.1 (Boltzmann entropy) and Section 5.2 (Gibbs entropy).
Problem 11: Blackbody radiation in a cavity
Problem. A cavity of volume V=1 cm3 is maintained at T=1000 K. Find the total Radiant energy inside and the radiation pressure on the walls.
If you get this wrong, revise: Section 13.2 (Stefan-Boltzmann law) and Section 13.1 (Planck Distribution).
Problem 12: Clausius-Clapeyron application
Problem. The vapour pressure of benzene is 75 mmHg at 20°C and 300 mmHg at 50°C. Estimate the enthalpy of vaporisation and the normal boiling point.
Solution. From the integrated Clausius-Clapeyron equation:
lnP1P2=−RLv(T21−T11)
ln75300=−8.314Lv(3231−2931)
ln4=1.386=−8.314Lv(−3.16×10−4)
Lv=3.16×10−41.386×8.314≈36400J/mol
Normal boiling point (P=760 mmHg):
ln75760=−8.31436400(Tb1−2931)
2.313=−4378(Tb1−0.00341)
Tb1=0.00341+43782.313=0.00394
Tb≈354K≈81°C
(Experimental value: 80.1°C, showing good agreement.)
If you get this wrong, revise: Section 6.2 (Clausius-Clapeyron equation) and Section 6.4 (worked examples).
Problem 13: Grand canonical partition function of a single orbital
Problem. A single quantum orbital at energy ε is in contact with a reservoir at Chemical potential μ and temperature T. Calculate ⟨N⟩ and ⟨N2⟩−⟨N⟩2 for (a) fermions and (b) bosons.
Solution.
(a) Fermions:Z=1+e−β(ε−μ).
⟨N⟩=eβ(ε−μ)+11=fFD
⟨N2⟩=⟨N⟩ (since N2=N for N=0,1)
⟨N2⟩−⟨N⟩2=fFD(1−fFD)
(b) Bosons:Z=(1−e−β(ε−μ))−1.
⟨N⟩=eβ(ε−μ)−11=fBE
⟨N2⟩=(1−e−β(ε−μ))21+e−β(ε−μ)
⟨N2⟩−⟨N⟩2=fBE(1+fBE)
Note: boson fluctuations are larger than fermion fluctuations at the same ε,μ,T.
If you get this wrong, revise: Section 10.2 (Fermi-Dirac), Section 10.3 (Bose-Einstein), and Section 11 (grand canonical ensemble).
Problem 14: Ising model mean-field critical temperature
Problem. For a 2D square lattice Ising model with coupling J>0 and h=0Use mean-field Theory to find Tc. The exact result (Onsager, 1944) is Tcexact=2J/(kBln(1+2)). Compare.
Solution. The coordination number is z=4. Mean-field theory gives:
TcMF=kBJz=kB4J
Exact result:
Tcexact=kBln(1+2)2J=kB×0.8812J=kB2.27J
The ratio: TcMF/Tcexact=4/2.27≈1.76. Mean-field theory Overestimates Tc by 76% in 2D, because fluctuations (neglected in mean-field) are large in two Dimensions.
If you get this wrong, revise: Section 14.3 (mean-field approximation) and the Common Pitfall Box in Section 14.
Problem 15: Deriving the Sackur-Tetrode equation
Problem. Starting from the microcanonical ensemble, derive the Sackur-Tetrode equation for the Entropy of a monatomic ideal gas. State all assumptions.
Solution. See Theorem 15.1 for the full derivation. Key assumptions:
Particles are non-interacting (ideal gas).
Particles are indistinguishable (Gibbs factor 1/N!).
Classical phase space is quantised in units of h3N.
Thermodynamic limit (N→∞, V→∞, N/V=const).
If you get this wrong, revise: Section 15.3 (ideal gas in the microcanonical ensemble).
Problem 16: Transport coefficients from kinetic theory
Problem. Estimate the thermal conductivity of argon at STP. (m=6.63×10−26 kg, d=3.6×10−10 m, CV=23kB per atom.)
Solution. Mean free path: λmfp=1/(2πd2n).
With n=P/(kBT)=101325/(1.381×10−23×273)=2.69×1025 m−3:
λmfp=2π(3.6×10−10)2×2.69×10251≈6.5×10−8m
Mean speed: ⟨v⟩=8kBT/(πm)=8×1.381×10−23×273/(π×6.63×10−26)≈398 m/s.
The experimental value is approximately 0.018 W/(m⋅K) — reasonable agreement for the hard-sphere Model.
If you get this wrong, revise: Section 9.5 (kinetic theory, transport properties).
Problem 17: Landau theory specific heat jump
Problem. A system undergoes a second-order phase transition at Tc=100 K described by Landau theory with a=0.1 J/(mol⋅K) and b=0.05 J/mol. Calculate the order parameter at T=90 K and the specific heat jump ΔCP at Tc.
Solution. Order parameter below Tc:
ϕ=±2ba(Tc−T)=±2×0.050.1×10=±10≈±3.16
Specific heat jump:
ΔCP=2ba2Tc=0.10.01×100=10J/(mol⋅K)
If you get this wrong, revise: Section 14.4 (Landau theory) and Section 6.1 (classification of Phase transitions).
Problem 18: Grand canonical fluctuations
Problem. For an ideal gas in the grand canonical ensemble, show that the relative number Fluctuation is ⟨N2⟩−⟨N⟩2/⟨N⟩=1/⟨N⟩.
Solution. The grand partition function for an ideal gas factorises into single-particle Contributions. Each single-particle state contributes independently, so the particle number is a sum Of independent Bernoulli-like random variables. By the central limit theorem:
⟨N2⟩−⟨N⟩2=⟨N⟩
(Poisson …/4-statistics-and-probability/2_statistics for an ideal gas.)
⟨N⟩⟨N2⟩−⟨N⟩2=⟨N⟩1
For ⟨N⟩=1023: relative fluctuations are ∼10−11.5Completely negligible — the grand canonical and canonical ensembles are equivalent for macroscopic systems.
If you get this wrong, revise: Section 11.3 (grand canonical fluctuations) and Section 12 (fluctuation-dissipation theorem).
Problem 19: Wien's law and stellar classification
Problem. A star has peak emission at λmax=290 nm. (a) What is its surface Temperature? (b) What spectral class does it belong to? (c) What is the total power radiated per Square metre?
Solution.
(a)T=b/λmax=(2.898×10−3)/(290×10−9)≈9990 K ≈10000 K.
(b) A surface temperature of ∼10000 K corresponds to spectral class A (white stars, like Sirius).
(c)j=σT4=(5.67×10−8)(10000)4=5.67×108 W/m2.
If you get this wrong, revise: Section 13.3 (Wien’s displacement law) and Section 13.2 (Stefan-Boltzmann law).
Problem 20: Free energy and phase equilibrium
Problem. The Gibbs free energy of a substance near its melting point is given by: Gsolid=−10000+30T J/mol and Gliquid=−9500+25T J/mol (valid for T near the melting point). Find Tm and Lf.
We can verify with the Clausius-Clapeyron equation if ΔV is known.
If you get this wrong, revise: Section 2.3 (physical meaning of potentials), Section 2.5 (equilibrium conditions), and Section 6.2 (Clausius-Clapeyron).
:::caution Common Pitfall Do not confuse the different ensembles. Use the microcanonical ensemble (NVE) for isolated systems, the canonical ensemble (NVT) for systems in a heat bath, and the Grand canonical ensemble (μVT) for open systems. For macroscopic systems in equilibrium, all Ensembles give the same thermodynamic results, but they differ in their fluctuation predictions. :::
:::caution Common Pitfall When applying the equipartition theorem, remember that it applies only to quadratic degrees of freedom. Vibrational modes contribute kBT (not kBT/2) because they Have both kinetic and potential energy terms. Electronic and rotational degrees of freedom may be “frozen out” at low temperatures when kBT is much less than the level spacing. :::
:::caution Common Pitfall The Gibbs paradox arises when classical particles are treated as Distinguishable. Always include the 1/N! factor in the partition function for identical particles. This is not an optional correction — it is required by quantum mechanics (indistinguishability of Identical particles) and ensures that entropy is extensive. :::
13. Nonequilibrium Thermodynamics
13.1 Entropy Production and the Second Law
For a system not in equilibrium, the second law takes the form:
dtdS=dtdSe+dtdSi≥0
Where dSe/dt is the entropy exchange with the environment (can be positive or negative) and dSi/dt≥0 is the entropy production rate (always non-negative).
For coupled transport processes (heat flow Jq and particle flow Jn driven by ∇(1/T) and −∇(μ/T)):
dtdSi=∫[Jq⋅∇(T1)−Jn⋅∇(Tμ)]dV≥0
13.2 Onsager Reciprocal Relations
In the linear regime (small gradients), the fluxes are linear functions of the forces:
Ji=∑jLijFj
Onsager’s theorem: The Onsager coefficients satisfy Lij=Lji (when the forces and fluxes are chosen as conjugate pairs). This is a consequence of microscopic reversibility and has important implications:
Thermoelectric effects: The Seebeck coefficient and Peltier coefficient are related: Π=ST (Kelvin relation).
Cross-diffusion: The diffusivity of species A in a gradient of species B equals the diffusivity of B in a gradient of A.
13.3 Boltzmann Transport Equation
The Boltzmann equation describes the evolution of the distribution function f(r,v,t):
∂t∂f+v⋅∇rf+mF⋅∇vf=(∂t∂f)coll
The collision integral is often approximated by the relaxation time approximation:
(∂t∂f)coll≈−τ(v)f−f0
Where f0 is the equilibrium (Maxwell—Boltzmann) distribution and τ is the relaxation time.
The H-theorem: Define H=∫flnfd3v. The Boltzmann equation implies dH/dt≤0With equality only at equilibrium. This is the microscopic basis of the second law.
13.4 Fick’s Law and Diffusion
Fick’s first law:J=−D∇n where D is the diffusion coefficient.
Fick’s second law (diffusion equation):∂n/∂t=D∇2n.
Einstein relation:D=μkBT where μ is the mobility.
Green’s function solution (point source at origin, t=0):
n(r,t)=(4πDt)3/2Nexp(−4Dtr2)
The mean squared displacement: ⟨r2⟩=6Dt.
Worked Example 13.1: Thermal Diffusion (Soret Effect)
In a mixture of two gases with a temperature gradient, particles tend to migrate toward the cold end. The mass flux includes a thermal diffusion term:
Jn=−D∇n−nDT∇T
Where DT is the thermal diffusion coefficient. The Soret coefficientST=DT/D characterises the strength of the effect.
For a 50—50 mixture of 3He—4He below 2 K, ST is large and positive: 3He migrates toward the warm end. This is exploited in 3He—4He dilution refrigerators, the workhorses of millikelvin physics.
The steady-state concentration gradient is:
n∇n=−ST∇T
For ST=0.01 K−1 and ΔT=0.1 K across a 10 cm column:
nΔn=STΔT=0.001=0.1%
14. Kinetic Theory in Detail
14.1 Maxwell—Boltzmann Distribution
The velocity distribution of an ideal gas at temperature T:
f(v)=n(2πkBTm)3/2exp(−2kBTmv2)
Speed distribution (integrating over angles):
f(v)dv=4πn(2πkBTm)3/2v2exp(−2kBTmv2)dv
Characteristic speeds:
Most probable: vp=2kBT/m
Mean: ⟨v⟩=8kBT/(πm)=π2vp
RMS: vrms=3kBT/m=3/2vp
14.2 Mean Free Path and Collisions
The mean free path for hard-sphere molecules of diameter d:
ℓ=2nπd21
The factor 2 accounts for the relative motion of the scattering partners.
The collision frequency:ν=⟨v⟩/ℓ=2nπd2⟨v⟩.
For air at STP (n≈2.5×1025 m−3, d≈3.7×10−10 m):
ℓ=2×2.5×1025×π×(3.7×10−10)21=1.52×1071=66nm
ν=66×10−9m=6.7×109s−1445m/s
14.3 Transport Coefficients
Viscosity (gas):η=31nm⟨v⟩ℓ=31ρ⟨v⟩ℓ.
Thermal conductivity:κ=31n⟨v⟩ℓcV=31ρ⟨v⟩ℓcv where cv is the specific heat per unit mass.
Self-diffusion:D=31⟨v⟩ℓ.
Chapman—Enskog theory gives more accurate expressions with numerical corrections:
η=165πd2πmkBT
Worked Example 14.1: Effusion Through a Small Hole
A container of nitrogen (m=28 amu, T=300 K) has a small hole of area A. The effusion rate (molecules per second escaping):
Φ=41n⟨v⟩A=41nπm8kBTA
At P=100 Pa, T=300 K: n=P/(kBT)=100/(1.38×10−23×300)=2.42×1022 m−3.
Knudsen effusion: The ratio of effusion rates for two gases with masses m1 and m2:
Φ2Φ1=m1m2
This is the basis for isotope separation by gaseous diffusion.
15. Information Theory and Statistical Mechanics
15.1 Shannon Entropy
The Shannon entropy of a probability distribution {pi}:
SShannon=−∑ipilnpi
This is mathematically identical to the Boltzmann entropy (up to the constant kB), providing a deep connection between information theory and thermodynamics.
Maximum entropy principle: The least biased probability distribution, given constraints (e.g., fixed mean energy), is the one that maximises the Shannon entropy. This reproduces the canonical ensemble: maximising S subject to ∑piEi=⟨E⟩ gives the Boltzmann distribution.
15.2 Landauer’s Principle
Erasing one bit of information in a memory element necessarily dissipates at least:
E≥kBTln2
Of energy as heat. This establishes a fundamental lower bound on the energy cost of computation.
Reversible computation: If no information is erased (e.g., in logically reversible operations like NOT), no energy dissipation is required in principle. This motivates research into reversible computing architectures.
15.3 Maxwell’s Demon
Maxwell’s demon appears to violate the second law by sorting fast and slow molecules, creating a temperature difference from an initially uniform gas without doing work.
Resolution (Bennett, 1982): The demon must acquire information about molecular speeds (measurement) and then erase this information to reset its memory. By Landauer’s principle, erasing the information costs at least kBTln2 per bit, exactly compensating the entropy decrease of the gas. The second law is upheld: dSgas+dSdemon≥0.
Worked Example 15.1: Maximum Entropy Distribution
Find the probability distribution on {1,2,3,…} that maximises S=−∑npnlnpn subject to the constraint ∑nnpn=μ (fixed mean).
The constraint μ=∑npn=e−β/(1−e−β)=1/(eβ−1)So β=ln(1+1/μ).
For μ=5: β=ln(1.2)=0.182, pn=0.167×e−0.182n.
This shows that the exponential (geometric) distribution arises from maximum entropy with a constraint on the mean value --- a deep connection between information theory and statistical physics.
Common Pitfalls (Additional)
Onsager relations require careful force-flux pairing: The reciprocal relations Lij=Lji hold only when the forces Fi and fluxes Ji are properly chosen as conjugate pairs (both contributing positively to dSi/dt). An incorrect pairing can lead to wrong cross-coefficients.
The relaxation time approximation is not exact: Setting (∂f/∂t)coll=−(f−f0)/τ assumes a single relaxation time for all processes. In reality, τ depends on velocity (energy), and different scattering processes have different time scales. The approximation works well for order-of-magnitude estimates but fails for quantitatively accurate transport predictions.
Effusion vs. Hydrodynamic flow: Effusion (molecular flow through a small hole) occurs when the hole diameter is much smaller than the mean free path (d≪ℓKnudsen number ≫1). For larger holes (d≫ℓ), hydrodynamic flow (described by the Navier—Stokes equations) dominates. The transition between regimes is important in vacuum systems.
Landauer’s bound is per bit, not per operation: Only logically irreversible operations (those that erase information) incur the kBTln2 cost. Logically reversible operations (e.g., swapping two bits) have no minimum energy cost in principle, though real physical implementations always have some dissipation.
Maximum entropy is not the same as most probable: The maximum entropy distribution is the least biased distribution consistent with the constraints. It may not be the distribution you would observe in a specific realisation. The ergodic hypothesis connects time averages to ensemble averages, but the convergence can be very slow for systems with long-range interactions or glassy dynamics.
Problems (Additional)
Problem 21: Thermal Conductivity of a Gas
Calculate the thermal conductivity of argon at STP using kinetic theory.
Data: m=40 amu, d=3.6×10−10 m, cV=(3/2)kB (monatomic), n=2.69×1025 m−3.
Compare with the experimental value of κ=0.0177 W/(m⋅K) and comment on the discrepancy.
Solution:
Mean speed: ⟨v⟩=8kBT/(πm)=8×1.38×10−23×300/(π×40×1.66×10−27)=1.59×105=399 m/s.
Mean free path: ℓ=1/(2nπd2)=1/(1.414×2.69×1025×π×1.296×10−19)=1/(1.38×107)=72.5 nm.
The kinetic theory prediction (0.039) overestimates the experimental value (0.0177) by about a factor of 2.2. This discrepancy is systematic and is resolved by the Chapman—Enskog theory, which gives:
κCE=3225κsimple≈0.78×0.039=0.030W/(m⋅K)
Still an overestimate; the remaining discrepancy is due to the hard-sphere model not accurately representing the real intermolecular potential of argon (which has an attractive well that reduces the effective collision cross-section at lower temperatures).
Problem 22: Boltzmann $H$-Theorem
(a) Show that for a spatially uniform gas, the Boltzmann equation with the BGK collision operator C[f]=−(f−f0)/τ leads to dH/dt≤0 where H=∫flnfd3v.
(b) Identify the equilibrium state where dH/dt=0.
Solution:
(a) For a spatially uniform gas with no external forces: ∂f/∂t=−(f−f0)/τ.
dtdH=∫∂t∂f(1+lnf)d3v=−τ1∫(f−f0)(1+lnf)d3v
=−τ1[∫fd3v−∫f0d3v+∫flnfd3v−∫f0lnfd3v]
Since ∫fd3v=∫f0d3v=n (number conservation):
dtdH=−τ1[∫flnfd3v−∫f0lnfd3v]
=−τ1∫(f−f0)lnfd3v
Using the Gibbs inequality ∫(f−f0)lnfd3v≥0 (since xlnx−x+1≥0 with equality at x=1):
Since xlnx≥x−1 for x>0 (with equality at x=1), the integrand (f/f0)ln(f/f0)−(f/f0)+1≥0So ∫(f−f0)ln(f/f0)d3v≥0.
Therefore dtdH≤0. ■
(b) dH/dt=0 requires f=f0 everywhere, i.e., the distribution is Maxwell—Boltzmann. This is the equilibrium state, as expected.
16. Statistical Mechanics of Interacting Systems
16.1 The Ising Model Revisited
The 1D Ising model was solved exactly by Ising (1925) using the transfer matrix method. The 2D Ising model was solved by Onsager (1944), providing one of the most important exact results in statistical mechanics.
Correlation functions: The spin-spin correlation function:
⟨σiσj⟩=tanhn(βJ)
For the 1D chain with n=∣i−j∣. The correlation length:
ξ=−lntanh(βJ)1
As T→Tc−: ξ→∞ (critical point).
Scaling near Tc: The correlation function takes the scaling form:
⟨σ0σr⟩∼r(d−2+η)e−r/ξ
Where η is a critical exponent (η=1/4 for the 2D Ising model).
16.2 Renormalisation Group (Conceptual)
The renormalisation group (RG) provides a framework for understanding critical phenomena. The key idea: progressively integrate out short-wavelength fluctuations, rescaling, and look for fixed points.
RG flow diagram:
Start with a Hamiltonian H0 with coupling constants {Ki}.
Integrate out short-wavelength modes (thin out the lattice).
Rescale lengths: x′=x/b (b>1).
Rescale spins: σ′=b(d−2+η)/2σ.
Repeat.
Fixed points: Values of the coupling constants that are invariant under RG transformation. Fixed points correspond to scale-invariant theories (critical points).
Gaussian fixed point: The mean-field critical exponents (η=0, ν=1/2).
Wilson—Fisher fixed point: The nontrivial fixed point of the ϕ4 theory in d<4 dimensions, giving non-mean-field exponents.
IR-stable fixed point: Controls the low-energy (long-wavelength) physics.
** epsilon expansion:** Expand in ϵ=4−d. At one loop:
βu=ϵu−16π23u2+⋯
βλ=ϵλ−16π23λu+⋯
Setting βu=0: u∗=16π2ϵ/3+O(ϵ2).
The critical exponents to order ϵ:
ν=21+6ϵ+O(ϵ2)
For ϵ=1 (d=3): ν=2/3≈0.667 (compare with the numerical value ν≈0.630).
16.3 Mean-Field Theory of Phase Transitions
The Landau free energy for a scalar order parameter ϕ near Tc:
f(ϕ,T)=f0(T)+2a0(T−Tc)ϕ2+4bϕ4
Mean-field exponents:α=0 (jump in C), β=1/2, γ=1, δ=3, η=0.
These are exact above the upper critical dimension du=4. Below duFluctuations modify the exponents (as computed by the epsilon expansion).
Ginzburg criterion: Mean-field theory is valid when the fluctuation contribution to the free energy is small compared to the mean-field part:
ξd≪(Tc−T)−(4−d)/2b21
This gives a Ginzburg temperatureTG below which fluctuations become important. For conventional superconductors (ξ0∼100 nm, Tc∼10 K): TG/Tc∼10−14 (mean-field is excellent). For high-Tc superconductors (ξ0∼1 nm, Tc∼100 K): TG/Tc∼1 (fluctuations are important, explaining the broad fluctuation regime above Tc).
Worked Example 16.1: RG Flow for the Gaussian Model
Consider the Gaussian (free field) model: H=∫ddr[21(∇ϕ)2+21r0ϕ2].
After thinning out modes in the shell Λ/b<∣k∣<Λ and rescaling:
Integrate out short-wavelength modes: the correlation function ξ transforms as ξ′=ξ/b.
The rescaled coupling: r0′=b2r0 (since r0 has dimensions of mass2 and we rescale ϕ′=b(d−2)/2ϕ).
The RG flow for r0: dlnbdr0=2r0 (relevant operator).
This means r0 grows under RG, flowing away from the Gaussian fixed point (r0=0). The fixed point is unstable, indicating that the disordered phase (r0>0, ϕ=0 is stable) is separated from the ordered phase by the critical point.
The correlation length exponent: ξ∝r0−1/2Giving ν=1/2 (the mean-field value).
Worked Examples
Example 1: Carnot efficiency
Problem. A Carnot engine operates between 500K and 300K. Find the maximum efficiency.
Solution.η=1−TC/TH=1−300/500=1−0.6=0.4=40%.
■
Example 2: Entropy change
Problem. Find the entropy change when 2mol of ice at 0°C melts (ΔHfus=6.01kJ/mol).
Solution.ΔS=TQ=TnΔHfus=2732×6010=44.0J/K.
■
Common Pitfalls
Confusing heat, temperature, and internal energy. Temperature is a state variable; heat is energy transfer due to temperature difference; internal energy is the total kinetic energy of particles. Fix:ΔU=Q−W (first law); U is a state function, Q and W are path-dependent.
Wrong entropy interpretation. Entropy is a state function; ΔS=∫dQrev/T. Fix: The second law states ΔSuniverse≥0 for all processes; entropy of an isolated system never decreases.
Confusing microstates and macrostates. Macrostate: specified by macroscopic variables. Microstate: specific arrangement of particles. Fix:S=kBlnΩ where Ω is the number of microstates.
Summary
First law: ΔU=Q−W; conservation of energy.
Second law: ΔSuniverse≥0; entropy of an isolated system never decreases.
Carnot efficiency: η=1−TC/TH (maximum possible for given temperatures).