Derive the partition function for an ideal gas and extract thermodynamic quantities from it.

Single Particle in a Box

Energy levels for a particle in a 3D box of side L:

Enx,ny,nz=2π22mL2(nx2+ny2+nz2)

Single-particle partition function — convert sum to integral (valid when kBT level spacing):

z=0dnxdnydnzeβ2π22mL2(nx2+ny2+nz2)=(Lλ)3=Vλ3

where λ=2π2mkBT is the thermal de Broglie wavelength.

N-Particle Partition Function

Particles are indistinguishable, so divide by N!:

Z=zNN!=1N!(Vλ3)NlnZ=NlnV3NlnλlnN!

Thermodynamic Quantities

Using Stirling's approximation (lnN!NlnNN):

E=lnZβ=32NkBTP=kBTlnZV=NkBTVPV=NkBTS=kB(lnZ+βE)=NkB[lnVNλ3+52]ext(SackurTetrode)

Classical Limit

The classical partition function arrives at the same result via phase space integration:

Z=1N!h3Nd3Npd3NqeβH

The h3N factor sets the fundamental phase space cell size — needed to make Z dimensionless and S extensive.