Home / Learn / Exam prep / GATE Physics / Lesson 5.2
All lessons

Module 5: Thermodynamics and statistical physics · Lesson 5.2 · about 45 min

Partition functions and thermodynamics

The canonical partition function as a machine for thermodynamics: F, U, S and C from Z, factorisation, the two-level system and Schottky anomaly, the quantum oscillator, rotors with symmetry numbers and ortho/para hydrogen, paramagnets, Curie’s law and adiabatic demagnetisation.

Key points, meanings and formulas on one page: choose "Save as PDF" in the print box.

Module 5 · about 45 minutes. By the end you will be able to write down Z for any system with known levels, extract F, U, S, C, P and M from it, and work the standard models (two-level, oscillator, rotor, paramagnet) that GATE and CSIR NET use again and again. The ensemble ideas come from lesson 5.1.

Z is a sum of Boltzmann factors. Its logarithm is the free energy in disguise, so once you have Z, every thermodynamic property is one derivative away.

1. From Z to everything

Z=∑jgje−βEj,F=−kTln⁡Z
gj
degeneracy: the number of microstates with energy Ej
β
1/kT. Derivatives with respect to β are often cleaner than with respect to T: ∂/∂β = −kT²∂/∂T.
Physical meaning
Z counts the number of states that are thermally accessible: about 1 when only the ground state is reached, and the total number of states when kT is much larger than every gap.

The derivatives you need, all from F=−kTln⁡Z:

Quantity From Z
internal energy U=−∂ln⁡Z/∂β=kT2∂ln⁡Z/∂T
entropy S=(U−F)/T=k(ln⁡Z+βU)
heat capacity CV=∂U/∂T=kβ2∂2ln⁡Z/∂β2
pressure P=kT∂ln⁡Z/∂V
magnetisation M=kT∂ln⁡Z/∂B
chemical potential μ=−kT∂ln⁡Z/∂N

Factorisation. If the energy is a sum of independent parts, Z is a product, and ln⁡Z, F, U, S, C are sums. N independent distinguishable units (spins on lattice sites): Z=Z1N. A dilute gas of identical molecules: Z=Z1N/N!, with Z1=ZtransZrotZvibZel. Only Ztrans=V/λ3 depends on volume, so internal motions never change PV=NkT (lesson 5.3).

2. The two-level system and the Schottky anomaly

Levels 0 (degeneracy 1) and ε (degeneracy g), x=ε/kT:

Z=1+ge−x,U=gεex+g,C=kx2gex(ex+g)2

For g=1, U=ε/(ex+1) rises to ε/2 and C/k=x2ex/(1+ex)2 has a single bump of height 0.44 at kT=0.42ε. At low T it is exponentially small (∝x2e−x, the gap freezes the system); at high T it falls as 1/T2 (the system is already as disordered as it can be). Such a bump on top of the lattice T3 in a heat-capacity measurement reveals crystal-field or hyperfine splittings.

Upper-level share, entropy and heat capacity of a two-level system against kT/ε. The entropy climbs to k ln(1 + g); the heat capacity is a single Schottky bump. Changing g moves the high-temperature limits.

Worked example. At kT=ε with g=1: Z=1.368, U=0.269ε, S/k=ln⁡1.368+0.269=0.582, C/k=e/(1+e)2=0.197.

3. The quantum harmonic oscillator

Levels (n+12)ℏω, a geometric series:

Z=e−x/21−e−x=12sinh⁡(x/2),U=ℏω(12+1ex−1),C=kx2ex(ex−1)2

with x=ℏω/kT. The mean quantum number ⟨n⟩=1/(ex−1) is the Bose-Einstein occupation with μ=0: it is what we will use for photons and phonons in lesson 5.5. Limits: kT≫ℏω gives U→kT (equipartition) and C→k; kT≪ℏω gives C≈kx2e−x, which is why the Einstein solid fails at low T (it predicts an exponential, while experiment shows T3).

Worked example (vibrations). Cl₂ has θv=ℏω/k=805 K. At 300 K, x=2.68 and the share of molecules with v≥1 is e−x=6.8%; the vibrational C/R=0.57.

4. Rotors: symmetry numbers and ortho/para hydrogen

A linear rotor has levels J(J+1)kθr with degeneracy 2J+1, θr=ℏ2/2Ik:

Zrot=∑J=0∞(2J+1)e−J(J+1)θr/T≈Tσθr+13+…(T≫θr)

The symmetry number σ=2 for homonuclear molecules, because only half the J values are allowed for each nuclear-spin state. For H₂ the coupling between nuclear spin and J is strict: para-H₂ (singlet) takes even J, ortho-H₂ (triplet, weight 3) odd J. At high T the ratio is 3 : 1; in true equilibrium at 77 K it falls to about 1 : 1, and at 20 K almost everything is para. The slow conversion releases heat, which plagued early hydrogen liquefiers.

The heat capacity of a whole diatomic gas puts sections 3 and 4 together. Pick a molecule:

CV/R of an ideal diatomic gas from the partition function: 3/2 from translation, then rotation switching on around θr (with a small overshoot, a quantum effect) and vibration around θv/3. Classical equipartition would give 7/2 at all temperatures.

5. Paramagnets

A moment μ with two orientations in field B (energies ∓μB), x=μB/kT:

Z1=2cosh⁡x,M=Nμtanh⁡x,χ≈μ0Nμ2VkT  (x≪1)

For ions of angular momentum J the sum over mJ=−J,…,J gives the Brillouin function BJ, with saturation moment gJμB and Curie constant ∝g2J(J+1). A classical moment free to point anywhere gives the Langevin function coth⁡x−1/x and a susceptibility 3 times smaller than the two-state result at the same μ.

Adiabatic demagnetisation. For an ideal paramagnet Z depends on B/T only, so S=S(B/T). Magnetise at fixed T (entropy falls, heat flows out), isolate, then lower B slowly: S constant means B/T constant. Going from 2 T at 1 K to 0.05 T gives 25 mK (internal fields set the real floor).

“Adding a constant to every energy level changes the thermodynamics.” It changes Z by a factor e−βE0, and so shifts F and U by E0, but probabilities pi=e−βEi/Z are untouched. Entropy, heat capacity, magnetisation and pressure (if E0 does not depend on V) are unchanged. This is why the oscillator’s zero-point energy never shows up in CV.

  • Z=∑gje−βEj, F=−kTln⁡Z, U=−∂βln⁡Z, S=k(ln⁡Z+βU), CV=kβ2∂β2ln⁡Z.
  • Independent parts: Z multiplies; identical gas molecules: Z1N/N!.
  • Two-level: U=ε/(ex+1)≤ε/2; Schottky peak 0.44k at kT=0.42ε.
  • Oscillator: Z=1/2sinh⁡(x/2), ⟨n⟩=1/(ex−1), C=kx2ex/(ex−1)2.
  • Rotor: Zrot≈T/σθr; H₂ ortho : para → 3 : 1 at high T.
  • Paramagnet: M=Nμtanh⁡(μB/kT), Curie law, S=S(B/T) → adiabatic demagnetisation.

Practise: exam questions on this lesson

They start easy and climb to top-rank level. Check each answer, then read the full solution. More on the GATE practice page.

Next: lesson 5.3, the classical ideal gas and equipartition, where Z is an integral over phase space. For heat-capacity data, fibub’s heat capacity fitter separates electronic, Debye and Schottky terms.

Check yourself

1A two-level system has levels 0 and ε. Its mean energy at very high temperature tends to
2Every energy level of a system is shifted up by E₀. Which quantity is unchanged?
3For an ideal paramagnet the magnetisation depends on B and T only through

Sources

  • R. K. Pathria and P. D. Beale, Statistical Mechanics, 4th ed. (Academic Press, 2021), chapter 3
  • S. J. Blundell and K. M. Blundell, Concepts in Thermal Physics, 2nd ed. (Oxford, 2010), chapters 20 and 21
  • F. Reif, Fundamentals of Statistical and Thermal Physics (McGraw-Hill, 1965; reissued 2009), chapter 7
  • C. Kittel and H. Kroemer, Thermal Physics, 2nd ed. (W. H. Freeman, 1980), chapters 3 and 4
  • GATE Physics (PH) syllabus, Statistical Physics section, published by the organising institute each year

Your ticks stay in this browser. Save them as a file on the course home.

Updated 2026-11-22. Not affiliated with the IITs, IISc or the GATE organising institute. The general aptitude part of GATE is not covered here. Check the official GATE website for the current pattern. All questions are original.