Photon Gas and Planck Radiation Law

Open a small hole in the wall of a furnace and the light that leaks out carries no fingerprint of what the furnace is made of — only its temperature. Iron, ceramic, or coal, heated to 1000 K, all glow the same dull red; at 6000 K all glow the same white as the Sun. That universality is the signature of a photon gas: the electromagnetic field in thermal equilibrium inside a cavity, a collection of field oscillators — one per standing-wave mode — each holding an integer number of photons of energy ℏω\hbar\omega. We take one thing from quantum mechanics and add one thing of our own. From aq-qm-blackbody-radiation-planck-quantum we inherit the single-mode result: the mean number of photons in a mode is the Planck factor ⟨n⟩=1/(eℏω/kBT−1)\langle n\rangle = 1/(e^{\hbar\omega/k_BT}-1), and the classical mode count 8πν2/c38\pi\nu^2/c^3 survives quantization untouched — that article "keep[s] the classical mode count, quantize[s] the energy exchange," and its ⟨n⟩\langle n\rangle "is the mean number of quanta in the mode." The microscopic reason photons are freely made and destroyed lives in aq-qm-spontaneous-emission-einstein-coefficients. What statistical mechanics owns is the step from one mode to the whole radiation field as a thermodynamic body: because photon number is not conserved, the free energy is minimized over NN, forcing μ=0\mu=0; integrating the Planck spectrum over the density of states then delivers the Stefan–Boltzmann T4T^4 energy density, a radiation pressure equal to one third of that density, and an entropy scaling as T3T^3. The photon gas is the simplest nontrivial quantum gas and a recurring template — it shares its mathematics with lattice phonons, with relic particle backgrounds, and with any gas of massless number-non-conserving bosons. The cosmic microwave background is a real photon gas that has been expanding and cooling for 13.8 billion years while keeping its Planck shape.

Key takeaways
  • A photon gas is an ideal Bose gas with zero chemical potential, because photon number is not conserved — walls freely create and absorb photons, so μ=0\mu=0 at every temperature.
  • The mean occupation of a mode of frequency ω\omega is the Planck factor ⟨n⟩=1/(eℏω/kBT−1)\langle n\rangle = 1/(e^{\hbar\omega/k_BT}-1) — the μ=0\mu=0 special case of the Bose–Einstein distribution.
  • Multiplying by the photon density of states (two polarizations, linear dispersion ω=ck\omega=ck) gives Planck's spectral energy density, whose limits reproduce Rayleigh–Jeans and Wien.
  • Integrating over frequency yields Stefan–Boltzmann U/V=aT4U/V=aT^4 with a=π2kB4/15ℏ3c3a=\pi^2 k_B^4/15\hbar^3c^3, radiation pressure P=U/3VP=U/3V, and photon number N/V∝T3N/V\propto T^3.
  • Thermodynamics closes: S=43aVT3S=\tfrac43aVT^3, CV=4aVT3C_V=4aVT^3, and adiabats PV4/3=PV^{4/3}=const that cool the CMB as T∝1/ascaleT\propto 1/a_{\rm scale}.
  • Key idea: set μ=0\mu=0 in the Bose–Einstein occupation because photons are not conserved; everything — Planck's law, T4T^4, P=u/3P=u/3 — then follows from counting field modes and integrating.
The core insight

Set μ=0\mu=0 in the Bose–Einstein occupation because photons are not conserved; everything — Planck's law, the T4T^4 energy density, and P=u/3P=u/3 — then follows from counting field modes and integrating.

Where this lives today

The photon gas is not a historical relic — it is working infrastructure. The cosmic microwave background is the most precisely measured blackbody in nature: COBE/FIRAS found its spectrum Planckian to a few parts in 10510^5 at T=2.725T=2.725 K, and the tiny anisotropies map the seeds of every galaxy. In astrophysics, the radiation pressure P=aT4/3P=aT^4/3 sets the Eddington luminosity that caps how bright a star can shine before its own light blows it apart, and it supports the cores of the most massive stars against gravity. On the laboratory bench, because a cavity's spectral radiance depends only on TT, blackbody radiation is an absolute, material-independent thermometer — the basis of non-contact pyrometry, the calibration of infrared cameras, and, since the 2019 SI redefinition fixed kBk_B and hh exactly, of primary temperature metrology itself.

The physical picture

Picture the cavity field as an infinite orchestra of independent oscillators, one per standing-wave mode. At temperature TT each oscillator is thermally excited to a mean energy ℏω ⟨n⟩\hbar\omega\,\langle n\rangle. The low-frequency instruments (ℏω≪kBT\hbar\omega\ll k_BT) play loudly and classically, carrying ∼kBT\sim k_BT each; the high-frequency instruments (ℏω≫kBT\hbar\omega\gg k_BT) are frozen silent, because exciting even one photon there costs more than the thermal budget kBTk_BT. The balance point ℏω∼kBT\hbar\omega\sim k_BT is the Planck peak — and the frozen high-frequency modes are exactly what save the total energy from the classical ultraviolet catastrophe. The chemical potential vanishes because the cavity can always lower its free energy by adjusting NN. Equilibrium with the walls fixes TT and VV but lets the photon number float; photons cost no rest energy to create, so NN self-adjusts until μ=(∂F/∂N)T,V=0\mu=(\partial F/\partial N)_{T,V}=0. This is the one structural fact that separates the photon gas from a conserved-number atomic Bose gas — and the reason ordinary blackbody photons never Bose-condense. The hero figure below is the Planck spectrum at three temperatures. Read three things off it: the low-frequency ω2\omega^2 rise (Rayleigh–Jeans), the exponential Wien cutoff at high frequency, and the peak sliding rightward and the whole area (the total energy density) swelling as T4T^4 — a modest temperature increase makes the furnace vastly brighter and bluer at once.

Figure
Planck spectrum at three temperatures — the peak slides and the area grows as T⁴
frequency ω → u(ω,T) T 1.4 T 2 T peak at ℏω ≈ 2.82 kT area ∝ ∫u dω = a T⁴ Wien cutoff (frozen modes)

The second picture is the mode-counting and pressure story. Each allowed wavevector k\mathbf{k} occupies a cell of volume (2π/L)3(2\pi/L)^3 in k\mathbf{k}-space; a thin shell of radius kk holds ∝k2 dk\propto k^2\,dk modes, and with two transverse polarizations and ω=ck\omega=ck this becomes the density of states g(ω)∝ω2g(\omega)\propto\omega^2. The pressure factor 1/31/3 is pure geometry: photons carry momentum p=ε/cp=\varepsilon/c, and a wall feels the flux averaged over directions, ⟨cos⁡2θ⟩=1/3\langle\cos^2\theta\rangle=1/3.

Figure
Mode counting in k-space and the 1/3 pressure factor from angular averaging
k-space mode lattice shell k → k+dk : ∝ k² dk modes cell (2π/L)³ · × 2 polarizations θ photon p = ε/c wall flux ⟨cos²θ⟩ = 1/3 → P = u/3

The core equations

The starting point is the one thing statistical mechanics supplies that quantum mechanics does not fix on its own: the value of the chemical potential. Because the cavity walls create and destroy photons at no rest-energy cost, the equilibrium state minimizes the free energy over the photon number itself.

μ=(∂F∂N)T,V=0(1)\mu = \left(\frac{\partial F}{\partial N}\right)_{T,V}=0 \qquad (1)

where: μ\mu — chemical potential of the photon gas; FF — Helmholtz free energy; NN — total photon number, itself a free variable. The vanishing is exact and temperature-independent — it is the defining property that makes the photon gas the cleanest of all quantum gases, and the reason no fugacity z=eβμ≠1z=e^{\beta\mu}\neq1 ever appears. With μ=0\mu=0, the mean occupation of a mode is the Planck factor. This single-mode result is owned by the quantum-mechanics track (aq-qm-blackbody-radiation-planck-quantum); we quote it and build on it rather than re-deriving it.

⟨n(ω)⟩=1eℏω/kBT−1(2)\langle n(\omega)\rangle=\frac{1}{e^{\hbar\omega/k_BT}-1} \qquad (2)

where: ⟨n⟩\langle n\rangle — mean photon number in a mode of frequency ω\omega; ℏω\hbar\omega — photon energy. At low frequency ⟨n⟩≈kBT/ℏω≫1\langle n\rangle\approx k_BT/\hbar\omega\gg1 (many photons per mode, classical); at high frequency ⟨n⟩≈e−ℏω/kBT≪1\langle n\rangle\approx e^{-\hbar\omega/k_BT}\ll1 (mode almost empty). To turn one mode into a spectrum we need the density of modes. Counting wavevectors in k\mathbf{k}-space, including the factor 2 for the two transverse polarizations and the linear dispersion ω=ck\omega=ck, gives a density of states rising as ω2\omega^2.

g(ω) dω=Vω2π2c3 dω(3)g(\omega)\,\mathrm{d}\omega=\frac{V\omega^2}{\pi^2 c^3}\,\mathrm{d}\omega \qquad (3)

where: g(ω)g(\omega) — number of field modes per unit angular frequency; VV — cavity volume; cc — speed of light. The ω2\omega^2 growth (not the ε\sqrt{\varepsilon} of massive particles) reflects the linear photon dispersion; it is the same 8πν2/c38\pi\nu^2/c^3 "pure wave geometry" the QM owner keeps intact. Multiplying energy per photon, occupation, and mode density gives Planck's spectral energy density — the curve plotted above.

u(ω,T)=ℏπ2c3 ω3eℏω/kBT−1(4)u(\omega,T)=\frac{\hbar}{\pi^2 c^3}\,\frac{\omega^3}{e^{\hbar\omega/k_BT}-1} \qquad (4)

where: u(ω,T)u(\omega,T) — energy per unit volume per unit angular frequency. The ω3\omega^3 numerator is mode-count ×\times photon-energy; the Bose denominator is the quantized occupation. This is Planck's 1900 law, the historical birthplace of the quantum. Integrating u(ω,T)u(\omega,T) over all frequencies collapses the spectrum to a single power law — the Stefan–Boltzmann result. The temperature dependence factors out completely, leaving a pure number (a Bose integral) times T4T^4.

UV=a T4,a=π2kB415ℏ3c3≈7.566×10−16 J m−3 K−4(5)\frac{U}{V}=a\,T^4,\qquad a=\frac{\pi^2 k_B^4}{15\hbar^3 c^3}\approx 7.566\times10^{-16}\ \mathrm{J\,m^{-3}\,K^{-4}} \qquad (5)

where: UU — total internal energy; aa — radiation constant, a=4σ/ca=4\sigma/c. Four powers of TT: three from phase space (∫ω2 dω\int\omega^2\,d\omega) and one from the energy ℏω∼kBT\hbar\omega\sim k_BT of each active mode. The equation of state is what most sharply separates radiation from an ordinary gas. Because photons are ultrarelativistic (ε=cp\varepsilon=cp), the pressure is one third of the energy density, not two thirds.

P=13UV=a3T4(6)P=\frac{1}{3}\frac{U}{V}=\frac{a}{3}T^4 \qquad (6)

where: PP — radiation pressure. The 1/31/3 is the ⟨cos⁡2θ⟩\langle\cos^2\theta\rangle hemisphere average combined with p=ε/cp=\varepsilon/c; contrast the non-relativistic P=23uP=\tfrac23u. At fixed TT this pressure is independent of volume — unlike PV=NkBTPV=Nk_BT. The radiant power leaving a black surface follows from the energy density by a geometric factor c/4c/4, giving the familiar Stefan–Boltzmann constant.

j⋆=σT4,σ=π2kB460ℏ3c2=5.670×10−8 W m−2 K−4(7)j^\star=\sigma T^4,\qquad \sigma=\frac{\pi^2 k_B^4}{60\hbar^3 c^2}=5.670\times10^{-8}\ \mathrm{W\,m^{-2}\,K^{-4}} \qquad (7)

where: j⋆j^\star — radiant exitance (power per unit area of a black surface); σ=ac/4\sigma=ac/4. This constant is, in the QM owner's phrase, just "hh, kBk_B, and cc in a trench coat" — no new constant of nature. Finally the caloric quantities. Differentiating and integrating the energy gives an entropy and heat capacity that both scale as T3T^3, and a photon number that also scales as T3T^3.

S=43 a V T3,CV=4aVT3=3S,NV=2ζ(3)π2(kBTℏc)3(8)S=\frac{4}{3}\,a\,V\,T^3,\qquad C_V=4aVT^3=3S,\qquad \frac{N}{V}=\frac{2\zeta(3)}{\pi^2}\left(\frac{k_BT}{\hbar c}\right)^3 \qquad (8)

where: SS — entropy; CVC_V — heat capacity at constant volume; ζ(3)≈1.20206\zeta(3)\approx1.20206. As T→0T\to0 every one of these vanishes, so the third law is manifest — there is nothing left to excite in an empty cavity at absolute zero.

Derivation AFrom mode counting to Planck's law

The goal is to assemble Planck's spectral energy density from three ingredients and then check that it reduces to the two known classical limits. We combine the QM-owned single-mode occupation ⟨n⟩\langle n\rangle (at μ=0\mu=0) with the photon density of states, forming the energy in a frequency shell as (number of modes) ×\times (energy per photon) ×\times (mean occupation). The subtlety to watch is that the density of states here grows as ω2\omega^2 because the dispersion is linear — a massive gas with ε∝p2\varepsilon\propto p^2 would give g∝εg\propto\sqrt\varepsilon instead, and a completely different spectrum. Success is recovering Rayleigh–Jeans at low ω\omega and Wien at high ω\omega from one formula.

Step 1. Write the energy in modes with frequency in [ω,ω+dω][\omega,\omega+\mathrm{d}\omega]: dU=ℏω ⟨n(ω)⟩ g(ω) dω\mathrm{d}U=\hbar\omega\,\langle n(\omega)\rangle\,g(\omega)\,\mathrm{d}\omega. Why: each mode carries energy ℏω\hbar\omega times its mean occupation, and there are g(ω) dωg(\omega)\,\mathrm{d}\omega modes in the shell.

Step 2. Insert the Planck occupation (2) and the density of states (3): dU=ℏω⋅1eℏω/kBT−1⋅Vω2π2c3 dω\mathrm{d}U=\hbar\omega\cdot\dfrac{1}{e^{\hbar\omega/k_BT}-1}\cdot\dfrac{V\omega^2}{\pi^2c^3}\,\mathrm{d}\omega. Why: the occupation is QM-owned (aq-qm-blackbody-radiation-planck-quantum, "the mean number of quanta in the mode"); the mode density is the standing-wave count with two polarizations.

Step 3. Divide by VV to get the spectral energy density:

u(ω,T)=1VdUdω=ℏω3π2c3 1eℏω/kBT−1.u(\omega,T)=\frac{1}{V}\frac{\mathrm{d}U}{\mathrm{d}\omega}=\frac{\hbar\omega^3}{\pi^2 c^3}\,\frac{1}{e^{\hbar\omega/k_BT}-1}.

Why: this is Planck's law (4). The peak sits where ∂u/∂ω=0\partial u/\partial\omega=0, i.e. x=3(1−e−x)x=3(1-e^{-x}), giving xmax⁡=2.8214x_{\max}=2.8214 — Wien's displacement.

Step 4. Low-frequency limit (ℏω≪kBT\hbar\omega\ll k_BT): expand eℏω/kBT−1≈ℏω/kBTe^{\hbar\omega/k_BT}-1\approx\hbar\omega/k_BT, so u→ω2kBT/π2c3u\to\omega^2k_BT/\pi^2c^3. Why: this is Rayleigh–Jeans — classical equipartition, ℏ\hbar-free, and it diverges on integration. The ultraviolet catastrophe is real; quantization cures it by freezing the high-frequency modes.

Step 5. High-frequency limit (ℏω≫kBT\hbar\omega\gg k_BT): the −1-1 is negligible, so u→(ℏω3/π2c3)e−ℏω/kBTu\to(\hbar\omega^3/\pi^2c^3)e^{-\hbar\omega/k_BT}. Why: exponential suppression makes the frequency integral converge — Wien's empirical law, recovered when ⟨n⟩≈e−βℏω\langle n\rangle\approx e^{-\beta\hbar\omega}. *Verified: the Wien peak xmax⁡=2.8214x_{\max}=2.8214 and both classical limits are checked numerically in verify_photon-gas-planck-radiation.py.*

Go deeper · Derivation B · 1 minStefan-Boltzmann law by frequency integration
Derivation BStefan-Boltzmann law by frequency integration

The goal is to integrate the Planck spectrum over all frequencies and obtain the total energy density U/V=aT4U/V=aT^4, with the radiation constant aa expressed in fundamental constants. The strategy is a dimensionless substitution x=ℏω/kBTx=\hbar\omega/k_BT that pulls every factor of TT out front, leaving a pure number — the Bose integral ∫0∞x3/(ex−1) dx\int_0^\infty x^3/(e^x-1)\,\mathrm{d}x. The one slip to avoid is dropping the Γ(4)=6\Gamma(4)=6: the integral is a standard Γζ\Gamma\zeta form, and the same integral is evaluated by the QM owner for exactly this photon gas, so our value must match theirs.

Step 1. Integrate the spectral density over all frequencies: UV=∫0∞ℏω3π2c3dωeℏω/kBT−1\dfrac{U}{V}=\displaystyle\int_0^\infty\frac{\hbar\omega^3}{\pi^2c^3}\frac{\mathrm{d}\omega}{e^{\hbar\omega/k_BT}-1}. Why: total energy density is the spectrum summed over its whole support; photons have no frequency ceiling, so the range is [0,∞)[0,\infty).

Step 2. Substitute x=ℏω/kBTx=\hbar\omega/k_BT, so dω=(kBT/ℏ) dx\mathrm{d}\omega=(k_BT/\hbar)\,\mathrm{d}x:

UV=(kBT)4π2c3ℏ3∫0∞x3 dxex−1.\frac{U}{V}=\frac{(k_BT)^4}{\pi^2c^3\hbar^3}\int_0^\infty\frac{x^3\,\mathrm{d}x}{e^x-1}.

Why: four powers of TT come out — three from ω3 dω→(kBT/ℏ)4\omega^3\,\mathrm{d}\omega\to(k_BT/\hbar)^4 and the visible one — leaving a pure number.

Step 3. Evaluate the standard Bose integral:

∫0∞x3 dxex−1=Γ(4) ζ(4)=6⋅π490=π415.\int_0^\infty\frac{x^3\,\mathrm{d}x}{e^x-1}=\Gamma(4)\,\zeta(4)=6\cdot\frac{\pi^4}{90}=\frac{\pi^4}{15}.

Why: expanding 1/(ex−1)=∑n≥1e−nx1/(e^x-1)=\sum_{n\ge1}e^{-nx} and integrating term by term gives Γ(s)ζ(s)\Gamma(s)\zeta(s) at s=4s=4; Γ(4)=6\Gamma(4)=6, ζ(4)=π4/90\zeta(4)=\pi^4/90. This is the identical integral aq-qm-blackbody-radiation-planck-quantum evaluates for the same gas — the seam check.

Step 4. Collect: UV=π2kB415ℏ3c3 T4≡aT4\dfrac{U}{V}=\dfrac{\pi^2 k_B^4}{15\hbar^3c^3}\,T^4\equiv aT^4, and the emissive power is j⋆=c4 aT4=σT4j^\star=\tfrac{c}{4}\,aT^4=\sigma T^4. Why: identifying the prefactor as aa finishes Stefan–Boltzmann; the c/4c/4 is the geometric conversion from energy density to one-sided flux. *Verified: a=7.566×10−16a=7.566\times10^{-16} and σ=ac/4=5.670×10−8\sigma=ac/4=5.670\times10^{-8} reproduced from kB,ℏ,ck_B,\hbar,c to CODATA precision, and ∫x3/(ex−1) dx=π4/15\int x^3/(e^x-1)\,\mathrm{d}x=\pi^4/15 confirmed, in verify_photon-gas-planck-radiation.py.*

Go deeper · Derivation C · 1 minThermodynamics: the 1/3 pressure, entropy, and adiabats
Derivation CThermodynamics: the 1/3 pressure, entropy, and adiabats

The goal is to derive the equation of state P=U/3VP=U/3V, the entropy S=43aVT3S=\tfrac43aVT^3, and the adiabatic law PV4/3=PV^{4/3}=const from the grand potential of the massless μ=0\mu=0 Bose gas. The clean route is Ω=kBT∫gln⁡(1−e−βℏω) dω\Omega=k_BT\int g\ln(1-e^{-\beta\hbar\omega})\,\mathrm{d}\omega; integrating by parts converts the logarithm into the energy integral and produces Ω=−U/3\Omega=-U/3 exactly, whence P=−Ω/V=u/3P=-\Omega/V=u/3. The number 1/31/3 is set entirely by the linear dispersion — the same ω2→ω3/3\omega^2\to\omega^3/3 antiderivative that a massive gas would replace by a different power. Success is a closed thermodynamics with a manifest third law.

Step 1. Write the grand potential of the photon gas (μ=0\mu=0, two polarizations): Ω=kBTVπ2c3∫0∞ω2ln⁡ ⁣(1−e−βℏω) dω\Omega=k_BT\dfrac{V}{\pi^2c^3}\displaystyle\int_0^\infty\omega^2\ln\!\big(1-e^{-\beta\hbar\omega}\big)\,\mathrm{d}\omega. Why: for bosons Ω=kBT∑modesln⁡(1−e−βℏω)\Omega=k_BT\sum_{\rm modes}\ln(1-e^{-\beta\hbar\omega}); converting the sum to a frequency integral introduces the ω2\omega^2 density of states.

Step 2. Integrate by parts with dv=ω2 dω\mathrm{d}v=\omega^2\,\mathrm{d}\omega (so v=ω3/3v=\omega^3/3); the boundary term vanishes at both ends, leaving

Ω=−13 Vℏπ2c3∫0∞ω3 dωeβℏω−1=−13U.\Omega=-\frac{1}{3}\,\frac{V\hbar}{\pi^2c^3}\int_0^\infty\frac{\omega^3\,\mathrm{d}\omega}{e^{\beta\hbar\omega}-1}=-\frac{1}{3}U.

Why: the surviving integral is exactly the total energy UU; the 1/31/3 comes entirely from the ω3/3\omega^3/3 antiderivative of ω2\omega^2.

Step 3. For a homogeneous system Ω=−PV\Omega=-PV, so P=−Ω/V=13(U/V)=13uP=-\Omega/V=\tfrac13(U/V)=\tfrac13u. Why: this is the ultrarelativistic equation of state; a non-relativistic gas (ε∝p2\varepsilon\propto p^2) would give Ω=−23U\Omega=-\tfrac23U and P=23uP=\tfrac23u instead.

Step 4. Entropy from S=−(∂Ω/∂T)VS=-(\partial\Omega/\partial T)_V with Ω=−aVT4/3\Omega=-aVT^4/3: S=43aVT3S=\tfrac43aVT^3, and CV=T(∂S/∂T)V=4aVT3=3SC_V=T(\partial S/\partial T)_V=4aVT^3=3S. Why: differentiating the T4T^4 potential; as T→0T\to0, S→0S\to0, so the third law holds automatically.

Step 5. Adiabat: S=S=const gives VT3=VT^3=const, and with P∝T4P\propto T^4 eliminating TT yields PV4/3=PV^{4/3}=const. Why: the photon gas has adiabatic index γ=4/3\gamma=4/3; this governs CMB cooling, T∝V−1/3∝ascale−1T\propto V^{-1/3}\propto a_{\rm scale}^{-1}. *Verified: ⟨cos⁡2θ⟩=1/3\langle\cos^2\theta\rangle=1/3, the symbolic U/PV=3U/PV=3 for photons versus 3/23/2 for a massive gas, and CV=3SC_V=3S with S→0S\to0 are all checked in verify_photon-gas-planck-radiation.py.*

Limiting cases

The single Planck spectrum interpolates between two classical laws and obeys one scaling relation.

CaseResultMeaning
Rayleigh–Jeans (ℏω≪kBT\hbar\omega\ll k_BT)u→ω2π2c3 kBTu\to \dfrac{\omega^2}{\pi^2 c^3}\,k_BTClassical equipartition, kBTk_BT per mode; ∫ω2 dω\int\omega^2\,\mathrm{d}\omega diverges — the ultraviolet catastrophe.
Wien (ℏω≫kBT\hbar\omega\gg k_BT)u→ℏω3π2c3 e−ℏω/kBTu\to \dfrac{\hbar\omega^3}{\pi^2 c^3}\,e^{-\hbar\omega/k_BT}High modes frozen; exponential cutoff makes the total energy finite.
Wien displacementℏωmax⁡=2.821 kBT\hbar\omega_{\max}=2.821\,k_BT; λmax⁡T=2.898×10−3\lambda_{\max}T=2.898\times10^{-3} m KSpectral peak shifts linearly with TT; solves x=3(1−e−x)x=3(1-e^{-x}) in ω\omega, x=5(1−e−x)x=5(1-e^{-x}) in λ\lambda.
Equation of stateP=13u=13aT4P=\tfrac13 u=\tfrac13 aT^4Ultrarelativistic; at fixed TT, pressure is independent of VV.
Non-relativistic contrastP=23uP=\tfrac23 uSame ⟨cos⁡2θ⟩\langle\cos^2\theta\rangle geometry, but ε∝p2\varepsilon\propto p^2 — the source of 2/32/3 versus 1/31/3.

Worked examples

1 · The Stefan-Boltzmann constant and the Sun's surface flux (confidence builder)

Step 1. Assemble σ\sigma from fundamental constants: σ=π2kB460ℏ3c2\sigma=\dfrac{\pi^2 k_B^4}{60\hbar^3 c^2}. Plugging kB=1.381×10−23k_B=1.381\times10^{-23}, ℏ=1.055×10−34\hbar=1.055\times10^{-34}, c=2.998×108c=2.998\times10^8 gives σ=5.670×10−8 W m−2 K−4\sigma=\mathbf{5.670\times10^{-8}\ W\,m^{-2}\,K^{-4}} — matching the measured Stefan–Boltzmann constant, with no adjustable parameter.

Step 2. The Sun's effective temperature is Teff≈5772T_{\rm eff}\approx5772 K. The surface radiant exitance is j⋆=σT4=(5.670×10−8)(5772)4j^\star=\sigma T^4=(5.670\times10^{-8})(5772)^4.

Step 3. Evaluate (5772)4=1.110×1015 K4(5772)^4=1.110\times10^{15}\ \mathrm{K^4}, so j⋆=(5.670×10−8)(1.110×1015)=6.29×107 W m−2j^\star=(5.670\times10^{-8})(1.110\times10^{15})=\mathbf{6.29\times10^{7}\ W\,m^{-2}}.

Step 4. Sanity check: multiply by the solar surface area 4πR⊙2=6.09×1018 m24\pi R_\odot^2=6.09\times10^{18}\ \mathrm{m^2} to get the luminosity L=j⋆⋅4πR⊙2≈3.8×1026L=j^\star\cdot4\pi R_\odot^2\approx3.8\times10^{26} W — the measured solar luminosity. The furnace formula, fed only kB,ℏ,ck_B,\hbar,c and the surface temperature, reproduces the Sun's power output.

2 · Radiation pressure and photon number in the cosmic microwave background (exam level)

Step 1. The CMB is a photon gas at T=2.725T=2.725 K. Its energy density is u=aT4u=aT^4 with a=7.566×10−16a=7.566\times10^{-16}: u=(7.566×10−16)(2.725)4=(7.566×10−16)(55.13)=4.17×10−14 J m−3u=(7.566\times10^{-16})(2.725)^4=(7.566\times10^{-16})(55.13)=\mathbf{4.17\times10^{-14}\ J\,m^{-3}}.

Step 2. The radiation pressure is one third of this: P=u/3=1.39×10−14 PaP=u/3=\mathbf{1.39\times10^{-14}\ Pa} — utterly negligible today, but in the radiation-dominated early universe (when TT was ∼104\sim10^4 times larger, so uu was ∼1016\sim10^{16} times larger) it drove the expansion.

Step 3. The photon number density is NV=2ζ(3)π2(kBTℏc)3\dfrac{N}{V}=\dfrac{2\zeta(3)}{\pi^2}\left(\dfrac{k_BT}{\hbar c}\right)^3. Compute kBTℏc=(1.381×10−23)(2.725)(1.055×10−34)(2.998×108)=1.19×103 m−1\dfrac{k_BT}{\hbar c}=\dfrac{(1.381\times10^{-23})(2.725)}{(1.055\times10^{-34})(2.998\times10^8)}=1.19\times10^{3}\ \mathrm{m^{-1}}, cube it to 1.68×109 m−31.68\times10^{9}\ \mathrm{m^{-3}}.

Step 4. Multiply by 2ζ(3)/π2=2(1.202)/9.87=0.24372\zeta(3)/\pi^2=2(1.202)/9.87=0.2437: N/V=(0.2437)(1.68×109)=4.1×108 m−3≈411 cm−3N/V=(0.2437)(1.68\times10^{9})=\mathbf{4.1\times10^{8}\ m^{-3}}\approx411\ \mathrm{cm^{-3}}. There are roughly 411 relic photons in every cubic centimetre of the universe — about a billion for every atom.

Origins · 1 minPhoton and how this was discovered
P
Photon
coined 1926 (G. N. Lewis) · quantum of the electromagnetic field

The word "photon" was coined by the chemist Gilbert N. Lewis in a 1926 letter to Nature, though the object long predates its name. Planck (1900) quantized the exchange of energy between cavity walls and field but resisted the idea that light itself is grainy; Einstein (1905) took the decisive step, treating radiation as a gas of energy quanta to explain the photoelectric effect, and (1917) derived the A and B coefficients that fix emission and absorption rates. The photon gas thus sits at the confluence of thermodynamics, electromagnetism, and quantum theory — the first system where "counting states" and "quantizing energy" had to be done together.

History
1859
— Kirchhoff states that cavity radiation depends only on temperature, defining the blackbody problem.
1879
— Josef Stefan infers the T4T^4 law empirically from Tyndall's platinum-wire data.
1884
— Boltzmann derives the T4T^4 law thermodynamically from P=u/3P=u/3 and a Carnot cycle on radiation.
1900
— Planck fits Rubens' far-infrared data and introduces the quantum hypothesis En=nhνE_n=nh\nu.
1905
— Einstein proposes light quanta to explain the photoelectric effect.
1917
— Einstein derives the A and B coefficients, re-obtaining Planck's law from rate balance.
1924
— Bose re-derives Planck's law from photon statistics alone, with Einstein championing the paper.
1926
— Lewis coins the word "photon" for the light quantum.
1990
— COBE/FIRAS measures the cosmic microwave background as a 2.725 K Planck curve.

Going further

References. Pathria & Beale, Statistical Mechanics, 3rd ed., §7.3–7.4 (Black-body radiation) · Kardar, Statistical Physics of Particles, Ch. 7 · Reif, Fundamentals of Statistical and Thermal Physics, §9.13–9.15 · Landau & Lifshitz, Statistical Physics Part 1, §63 · Sethna, Statistical Mechanics: Entropy, Order Parameters, and Complexity, Ch. 7.

Provenance. Equations and limits cross-checked against Pathria & Beale §7.3–7.4, Kardar Ch. 7, Reif §9.13–9.15, and Landau–Lifshitz §63. The single-mode occupation and mode count are owned by aq-qm-blackbody-radiation-planck-quantum; the A/B emission mechanism by aq-qm-spontaneous-emission-einstein-coefficients. A verifier should recompute: (i) the density of states with polarization factor 2 and linear dispersion; (ii) the Bose integral ∫0∞x3/(ex−1) dx=Γ(4)ζ(4)=π4/15\int_0^\infty x^3/(e^x-1)\,\mathrm{d}x=\Gamma(4)\zeta(4)=\pi^4/15; (iii) the constants a=π2kB4/15ℏ3c3≈7.566×10−16a=\pi^2k_B^4/15\hbar^3c^3\approx7.566\times10^{-16} and σ=ac/4=5.670×10−8\sigma=ac/4=5.670\times10^{-8} (CODATA); (iv) the Wien peak xmax⁡=2.8214x_{\max}=2.8214; (v) the photon number density N/V=2ζ(3)(kBT/ℏc)3/π2N/V=2\zeta(3)(k_BT/\hbar c)^3/\pi^2.

Builds on: Quantum Statistics of Ideal Gases: Occupation Numbers · Density of States for Free Particles · Bose-Einstein Condensation in the Ideal Gas · Blackbody Radiation and the Planck Quantum (QM) · Spontaneous Emission and the Einstein Coefficients (QM). Leads to: Debye Model of Solids · Cosmic Microwave Background · Thermodynamics of the BEC Transition.

Why exactly is the chemical potential of the photon gas zero, and not just small?

It is exactly zero, and the reason is a conservation law that is absent. Ordinary particles are conserved, so their number NN is fixed and μ\mu adjusts to enforce it. Photons are freely created and absorbed by the cavity walls, so NN is not fixed — it is a free variable that the system relaxes to minimize the free energy. The minimum of F(N)F(N) at fixed T,VT,V occurs where (∂F/∂N)T,V=0(\partial F/\partial N)_{T,V}=0, and that derivative is the chemical potential. So μ=0\mu=0 is exact and temperature-independent, not an approximation.

If I open a hot oven, why does everything inside glow the same colour regardless of what it is made of?

Because the equilibrium radiation inside a cavity depends only on the temperature, never on the wall material — a result Kirchhoff proved in 1859. Any surface that absorbs strongly at a frequency must, in equilibrium, emit equally strongly there (otherwise it would heat up or cool relative to the field), so a good absorber is a good emitter and every object approaches the same universal blackbody spectrum. That universality is what makes the Planck curve a temperature standard: the colour tells you TT and nothing else.

The article says the mode count is owned by the quantum-mechanics track. What does statistical mechanics actually add?

Quantum mechanics (aq-qm-blackbody-radiation-planck-quantum) supplies two things per mode: the classical count of standing waves 8πν2/c38\pi\nu^2/c^3 and the quantized mean occupation ⟨n⟩=1/(eℏω/kBT−1)\langle n\rangle=1/(e^{\hbar\omega/k_BT}-1). What statistical mechanics adds is the step from one mode to the whole field as a thermodynamic body. That means fixing μ=0\mu=0 (the number is not conserved), integrating ℏω⟨n⟩g(ω)\hbar\omega\langle n\rangle g(\omega) over all frequencies to get U/V=aT4U/V=aT^4, and deriving the pressure, entropy, and adiabats. The occupation is quantum; the thermodynamics of the ensemble of modes is ours.

Why is the radiation pressure u/3u/3 while an ordinary gas gives 2u/32u/3?

It comes down to the dispersion relation. For any gas, the grand potential of massless-or-massive bosons integrated by parts gives Ω=−U/(d/n)\Omega=-U/(d/n) where the single-particle energy scales as ε∝pn\varepsilon\propto p^n in dd dimensions. Photons have ε=cp\varepsilon=cp (n=1n=1, d=3d=3), giving Ω=−U/3\Omega=-U/3 and P=u/3P=u/3. A non-relativistic gas has ε∝p2\varepsilon\propto p^2 (n=2n=2), giving Ω=−2U/3\Omega=-2U/3 and P=2u/3P=2u/3. Equivalently, the wall feels the momentum flux p=ε/cp=\varepsilon/c averaged over directions, ⟨cos⁡2θ⟩=1/3\langle\cos^2\theta\rangle=1/3. The exponent in the dispersion is literally the numerator of the pressure fraction.

Does the ultraviolet catastrophe mean classical physics is simply wrong here?

The Rayleigh–Jeans law is not garbage — it is the exact low-frequency limit of Planck's law and is still used as the "brightness temperature" formula in radio astronomy. What fails is extrapolating it to all frequencies: classical equipartition assigns kBTk_BT to every mode, and since there are infinitely many high-frequency modes, the total energy diverges. Quantization fixes this by making high-frequency modes expensive — exciting one costs ℏω≫kBT\hbar\omega\gg k_BT, so they stay empty and the integral converges. The catastrophe is real; it is the sharpest early evidence that energy exchange is quantized.

How can there be so many CMB photons — 411 per cubic centimetre — yet the radiation pressure be negligible?

Number density and pressure measure different things. The photon number density ∼(kBT/ℏc)3\sim(k_BT/\hbar c)^3 is large because the wavelengths are long (millimetre-scale) so many modes fit in a small volume. But each CMB photon carries a tiny energy ∼kBT≈2.3×10−4\sim k_BT\approx2.3\times10^{-4} eV, so the energy density u=aT4≈4×10−14 J m−3u=aT^4\approx4\times10^{-14}\ \mathrm{J\,m^{-3}} is minuscule, and the pressure u/3u/3 with it. In the early universe the same T4T^4 scaling made both enormous — at recombination (T∼3000T\sim3000 K) the energy density was ∼1012\sim10^{12} times today's, and radiation pressure genuinely governed the dynamics.

Why does the Debye model of solids reuse the photon-gas mathematics?

Because lattice vibrations (phonons) are also number-non-conserving bosons with an approximately linear dispersion ω=csk\omega=c_s k. Replace the speed of light cc by the sound speed csc_s, use three polarizations (two transverse, one longitudinal) instead of two, and impose a high-frequency Debye cutoff (a crystal has a finite number of modes, unlike the field), and the identical mode-counting gives the Debye T3T^3 heat-capacity law at low temperature. The photon gas is the template; the Debye solid is the same calculation with a ceiling — which is why aq-sm-debye-model-phonons builds directly on this article.

Before this

Where this leads