Partition function encodes all thermodynamic properties of a system from its energy spectrum.

Partition Function

For a system with energy states Ei:

Z=∑ie−Ei/kBT

Key quantities derived from Z:

Quantity Formula
Free energy F=−kBTln⁡Z
Average energy ⟨E⟩=−∂ln⁡Z∂β, where β=1kBT
Heat capacity CV=∂⟨E⟩∂T
Entropy S=kB(ln⁡Z+β⟨E⟩)
If a system is composed of independent subsystems: Z=Z1⋅Z2⋅…

1D Quantum Harmonic Oscillator (QHO)

Energy levels: En=ℏω(n+12), n=0,1,2,…

Z=∑n=0∞e−βℏω(n+1/2)=e−βℏω/21−e−βℏω⟨E⟩=ℏω2+ℏωeβℏω−1

Statistical Mechanics of the Ideal Gas

For N non-interacting particles in volume V, the partition function factorizes: Z=zN where z is the single-particle partition function.

z=Vλ3,λ=2πℏ2mkBT

(λ is the thermal de Broglie wavelength)

Z=1N!(Vλ3)N

The N! accounts for indistinguishability (fixes Gibbs paradox, see Gibbs Paradox).
Key results:

⟨E⟩=32NkBTP=NkBTV⇒PV=NkBTS=NkB[ln⁡VNλ3+52](Sackur-Tetrode equation)