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=∫0∞dnxdnydnze−βℏ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)Nln⁡Z=Nln⁡V−3Nln⁡λ−ln⁡N!

Thermodynamic Quantities

Using Stirling's approximation (ln⁡N!≈Nln⁡N−N):

⟨E⟩=−∂ln⁡Z∂β=32NkBTP=kBT∂ln⁡Z∂V=NkBTV⇒PV=NkBTS=kB(ln⁡Z+β⟨E⟩)=NkB[ln⁡VNλ3+52]ext(Sackur−Tetrode)

Classical Limit

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

Z=1N!h3N∫d3Npd3Nqe−βH

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