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

Partition Function

For a system with energy states Ei:

Z=ieEi/kBT

Key quantities derived from Z:

Quantity Formula
Free energy F=kBTlnZ
Average energy E=lnZβ, where β=1kBT
Heat capacity CV=ET
Entropy S=kB(lnZ+βE)
If a system is composed of independent subsystems: Z=Z1Z2

1D Quantum Harmonic Oscillator (QHO)

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

Z=n=0eβω(n+1/2)=eβω/21eβω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=NkBTVPV=NkBTS=NkB[lnVNλ3+52](Sackur-Tetrode equation)