Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 39 · Quantum Statistics: Fermi-Dirac and Bose-Einstein

Blackbody Radiation: The Photon Gas

Treat light in a cavity as a gas of bosons with zero chemical potential, derive Planck's law, the Stefan-Boltzmann law and Wien's displacement law, and compute them numerically.

The first quantum statistical result in physics was Planck's law of blackbody radiation (1900). Seen through the machinery of this chapter, it is a short calculation: light in a hot cavity is a gas of photons, which are bosons whose number is not conserved. This lesson derives the spectrum and the two famous laws that follow, and verifies the constants numerically.

A gas of photons

Photons differ from the atoms in an ordinary gas in two ways:

  1. They are bosons (spin 1), so the Bose-Einstein distribution applies.
  2. Their number is not fixed. The walls of the cavity absorb and emit photons freely. In equilibrium the free energy is minimized with respect to photon number, which sets the chemical potential to μ = 0.

The mean number of photons in a mode of frequency ν is therefore

Text
⟨n⟩ = 1 / ( e^(hν/kT) - 1 )

Each mode carries energy hν per photon. To get a spectrum we also need the number of modes. Light has two polarizations, and standing waves in a cavity of volume V give

Text
number of modes in dν  =  (8π V / c³) ν² dν

Multiplying modes by energy per mode and dividing by V gives Planck's law for the energy density per unit frequency:

Text
u(ν, T) = (8π h ν³ / c³) / ( e^(hν/kT) - 1 )

For hν ≪ kT this reduces to the Rayleigh-Jeans form 8π ν² kT / c³, which grows without bound and would imply infinite total energy (the "ultraviolet catastrophe"). Quantization cuts the high-frequency tail exponentially.

Total energy and the Stefan-Boltzmann law

Integrating u over all frequencies with the substitution x = hν/kT and the standard integral ∫₀^∞ x³/(eˣ - 1) dx = π⁴/15 gives

Text
u(T) = a T⁴,   a = 8π⁵ k⁴ / (15 h³ c³)

The power radiated per unit area from a black surface is σ T⁴, with σ = a c / 4 = 2π⁵k⁴/(15h³c²) = 5.670374419 × 10⁻⁸ W/(m²·K⁴). The same formula gives the photon-gas pressure P = u/3 and the entropy density s = (4/3) a T³.

Wien's displacement law

The frequency or wavelength where the spectrum peaks scales inversely with temperature. In wavelength form, λ_max T = b with b = 2.897771955 × 10⁻³ m·K. The peak wavelength of the Sun, with a surface temperature of about 5772 K, comes out near 500 nm in the green-blue part of the visible spectrum.

The peak of u per unit frequency and the peak per unit wavelength are at different places, because dν and dλ are related nonlinearly. Wien's constant b = 2.898 × 10⁻³ m·K refers to wavelength; the frequency-peak is ν_max = 5.879 × 10¹⁰ Hz/K × T.

Verifying the laws numerically

The next example integrates Planck's law with scipy to recover the constants a and σ, then locates the peak wavelength for several sources.

Python Stefan-Boltzmann and Wien from Planck's law

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numerical integral matches aT⁴ and the derived σ matches the CODATA value. The peak wavelengths agree with Wien's law: the Sun peaks in the visible, human skin in the far infrared near 9.5 µm, and the cosmic microwave background near 1 mm (a microwave).

Photon number and pressure

The photon number density is n_γ = (2 ζ(3) / π²) (kT / ħc)³, with ζ(3) ≈ 1.2020569. At T = 2.7255 K this gives about 411 photons per cm³. Radiation pressure P = u/3 = aT⁴/3 is tiny at ordinary temperatures but dominates in stars and the early universe. The code below evaluates these and plots Planck against Rayleigh-Jeans.

Python Photon density, radiation pressure and the ultraviolet catastrophe

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

At low frequency the two curves coincide; at high frequency Rayleigh-Jeans diverges while Planck decays.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Why is the chemical potential of a photon gas zero?

    Minimizing the free energy with respect to a freely varying photon number gives μ = 0.
  2. 2. How does the energy density of blackbody radiation scale with temperature?

    u = a T⁴ with a = 8π⁵k⁴/(15 h³ c³).
  3. 3. If the temperature of a blackbody doubles, its peak wavelength

    Wien: λ_max T is constant.
  4. 4. The Rayleigh-Jeans law fails at high frequency because

    Classical equipartition gives kT per mode at all frequencies; the quantized hν makes high-frequency modes exponentially unlikely.

Summary

  • A photon gas is a Bose gas with μ = 0, two polarizations and mode density 8πVν²/c³.
  • Planck's law: u(ν) = (8πhν³/c³)/(e^(hν/kT) - 1); the total is aT⁴, giving σ = 5.670374419 × 10⁻⁸ W/(m²·K⁴).
  • Wien's law: λ_max T = 2.897771955 × 10⁻³ m·K.
  • Radiation pressure is u/3.

Next: Bose-Einstein Condensation