Where Does Planck’s Formula Come From?

— Following the derivation in lecture notes (8) (for second- and third-year undergraduates)

The simulator computes the spectrum of light from the temperature as U(ν)=8πhc3⋅ν3ehν/kT−1 — a formula made of two parts: “how much energy one mode carries on average” and “how many modes there are.” The notes calculate the former, and here we assemble everything through to the end, including the latter.

The conclusion first In classical theory, the average energy of a single vibrational mode was always kT (the equipartition theorem). However, if energy can be taken only in steps of hν, then a high-frequency mode with hν≫kT “can’t afford even a single quantum,” and so it is effectively frozen out. This one point alone eliminates the ultraviolet catastrophe and brings the theory into agreement with experiment.

0. What Do We Want to Find?

Consider the electromagnetic waves in a cavity kept at temperature T. What we want to find is the energy per unit volume and per unit frequency U(ν), and multiplying this by dν gives “the energy per unit volume at frequencies between ν and ν+dν.” Our approach has two stages.

U(ν)⏟what we want = g(ν)⏟number of modes (§3) × ⟨E⟩⏟average energy per mode (§1–2)

1. What Happens in Classical Theory, and Why It Breaks Down

This is the equation at the start of the notes. Regard a single vibrational mode as a harmonic oscillator with energy E=p2/2m+12mω2q2 and take the average with the Boltzmann distribution.

(1) ⟨E⟩= ∬Ee−E/kTdpdq ∬e−E/kTdpdq =kT

The integrals are Gaussian, so they can be done by hand. The p2 term and the q2 term each yield 12kT, so together they give kT. Regardless of frequency, every mode has the same kT — this is the equipartition theorem.

⚠ It breaks down here As we will see in §3, the number of modes is g(ν)∝ν2 and hence the classical prediction is U=8πν2kT/c3 (the Rayleigh–Jeans formula). It grows without bound as the frequency is raised, so the total energy ∫Udν diverges. A body at any temperature would end up with infinite energy — this is the ultraviolet catastrophe.

2. Planck’s Quantum Hypothesis — Turning the Integral into a Sum

The heart of the notes is this single line. We assume that energy can take only integer multiples of hν (E=nhν). Then the integral in Eq. (1) turns into a sum.

(2) ⟨E⟩= ∑n=0∞nhνe−nhν/kT ∑n=0∞e−nhν/kT

2.1 The denominator — just a geometric series

With y≡hν/kT the sum is a geometric series with common ratio e−y<1.

(3) Z≡∑n=0∞ e−ny =11−e−y

2.2 The numerator — obtained by differentiation

The numerator carries an extra factor nhν. Summing it straightforwardly is laborious, but with the clever trick from the notes it takes an instant. That is because, setting x≡1/kT, the operation of multiplying by nhν can be produced by −∂/∂x.

(4) ∑n=0∞ nhνe−nhνx = −∂∂x ∑n=0∞ e−nhνx = −∂∂x (11−e−hνx) = hνe−y(1−e−y)2

2.3 Dividing to finish

(5) ⟨E⟩= hνe−y1−e−y = hνehν/kT−1
This equation determines everything Incidentally, Eq. (5) is nothing other than the Bose–Einstein distribution ⟨n⟩=1/(ehν/kT−1) that bosons (photons) obey, multiplied by hν (as noted in the margin of the notes).

3. How Many Modes Are There? — The Part the Notes Pass Over with “From the Above”

The notes take the prefactor in U(ν)=(8πν2/c3)⟨E⟩ as known. Only that part is supplied here.

Standing waves in a cube of side ℓ must have nodes at the walls, so they are restricted to k=(π/ℓ)(n1,n2,n3), with nj=1,2,3,… (we write the volume of the box as V=ℓ3). In k-space, the volume occupied by one mode is (π/ℓ)3. Since nj>0, only 1/8 of the sphere can be used, and in addition there are two polarizations.

(6) N(k)= 2×18× 43πk3(π/ℓ)3 =k3V3π2 ⟹ g(ν)= 1VdNdν =8πν2c3

The last step is just substituting k=2πν/c. The important point is that the box volume V cancels out: for a sufficiently large cavity, the result does not depend on its shape or size, so the formula is universal.

You can also check this g(ν) by actually counting the modes. In a cube of side 100 µm, if (n1,n2,n3) runs through all its values and the modes are counted, the count comes to 96–98 % of Eq. (6). The remainder is a surface effect due to the finite size of the box, and the larger the box, the closer the ratio approaches 100 %.

4. Assembling Planck’s Formula

(7) U(ν)= 8πν2c3 ⋅ hνehν/kT−1 = 8πhc3 ⋅ ν3ehν/kT−1

This is the equation about which the notes say, “This formula agrees astonishingly well with experiment!!” Let us look at the limits at both ends.

LimitFormulaNameBehavior
hν≪kT U→8πν2kT/c3 Rayleigh–JeansAgrees with classical theory (which was correct on the low-frequency side)
hν≫kT U→(8πh/c3)ν3e−hν/kT WienFalls off exponentially, so the integral converges

5. The Peak Moves When Viewed in Wavelength — Wien’s Displacement Law

5.1 The conversion requires a Jacobian

U(ν) is a quantity “per unit frequency.” When we want to view it per unit wavelength, simply replacing ν with c/λ is not allowed. Instead, we start from U(λ)dλ=U(ν)dν so that no light is left out of the count.

(8) U(λ)= U(ν) |dνdλ| =U(ν)cλ2 = 8πhcλ5 ⋅1ehc/λkT−1

5.2 So the two peaks are different things

Differentiating U(λ) with respect to λ and setting the result equal to 0 gives, for x=hc/λkT, x=5(1−e−x). For U(ν), it is y=3(1−e−y). The difference between 5 and 3 comes from multiplying by the Jacobian c/λ2 in Eq. (8) (that is, dividing by λ2).

(9) x=4.965114⟹ λmaxT=2.8978×10−3 m·K , y=2.821439⟹ νmax/T=5.8789×1010 Hz/K
⚠ c/νmax≠λmax Taking the ratio gives c/νmax=1.76λmax — they are off by as much as 76 %. This is not because one of them is wrong, but because “the most abundant color when counted per unit wavelength” and “the most abundant color when counted per unit frequency” are simply different questions. Whenever you speak of “the peak wavelength,” always state which way you counted. The same pitfall appears whenever a distribution is rewritten in terms of a different variable. In single-slit diffraction, too, depending on whether the intensity distribution is measured by the position x on the screen or by the dimensionless αx, the normalization factor is α/π or 1/π, respectively (α is a constant with the dimension of inverse length).

The same light at the same temperature, counted by wavelength in the left panel and by frequency in the right panel. The solid vertical line is the peak of that graph itself; the dotted line is the position of the other graph’s peak, converted and carried over. The two lines do not coincide.

6. Adding Everything Up Gives Stefan–Boltzmann

Integrate Eq. (7) over all frequencies. Substituting y=hν/kT, the factor T4 comes out in front, and only a number remains.

(10) u=∫0∞U(ν)dν =8πhc3 (kTh)4 ∫0∞y3ey−1dy⏟= π⁴/15 =8π5k415c3h3T4

The radiation going out (the radiant exitance) is M=(c/4)u, so

(11) M=σT4 , σ=2π5k415c2h3 =5.6704×10−8  W/(m²·K⁴)

The Stefan–Boltzmann constant can be written with nothing but h,k,c — very strong evidence that Planck’s formula is correct. Its exact agreement with the measured σ was what proved decisive at the time (in the current SI, h,k,c are defined values, so σ is determined exactly by this formula).

7. What Does the Simulator Calculate?

The spectrum is just Eq. (7) evaluated as it stands. The laborious part is the color, which is less a matter of physics than of “how the human eye perceives it.”

  1. Apply the eye’s sensitivity. Multiply the spectrum by the CIE 1931 color-matching functions x‾,y‾,z‾ and integrate over 360–830 nm to obtain the three numbers of the XYZ colorimetric system.
  2. Convert to screen color. XYZ is converted to sRGB. Colors outside the gamut are desaturated by adding white.
  3. Brightness is handled separately. The large color swatch shows only the “hue,” with the brightness equalized. The total radiation increases as T4 according to Eq. (11), but the brightness of the visible light reaching the eye lies in the Wien tail and so changes far more steeply; taking the Sun’s surface as 1, iron at 900 K has only about 10−10. The band below shows this ratio of visible-light brightness compressed onto a logarithmic scale.
⚠ No “color” is shown at low temperatures When the visible range lies far out in the Wien tail, the chromaticity is determined by nothing but the approximation error of the color-matching functions, and so has no meaning as a number. At body temperature (310 K) the visible-light brightness is only 1.6×10−30 times that of the Sun’s surface, which is as much as 15 orders of magnitude dimmer than the detection limit of a dark-adapted eye. Below roughly 600 K the color swatch is made black and a message to that effect is displayed.
Reading temperature from color Heated iron appears to change from red → orange → yellow → white because, as the temperature rises, the peak moves toward shorter wavelengths (§5) and the mixture of light falling in the visible range changes. Stars are read the same way: in observations, the surface temperature is estimated from the color (the color index). However, since neither iron nor stars are perfect blackbodies, what is obtained this way is the temperature of the blackbody that looks the same color — a quantity called the color temperature, which gives a rough guide to the effective temperature.

8. Checking with Numbers

What was checkedAgreement
Eq. (3), geometric series: direct sum vs. closed formrelative difference < 2×10−16
Eq. (4), numerator: direct sum vs. result of differentiationrelative difference < 5×10−16
Eq. (5): ⟨E⟩ from the direct sumrelative difference < 6×10−16
Eq. (6): counting the modes (100 µm cube)96–98 % (finite-box effect)
Eq. (9): λmax found directly by numerical searchrelative difference 2×10−7
Eq. (10): ∫y3/(ey−1)dy=π4/15 relative difference 2×10−12
Eq. (11): value of σ5.670374419×10−8
Eq. (8): U(λ)=U(ν)c/λ2 relative difference < 1×10−15

At 1300 K, the total energy density of 2.161×10−3 J/m3 and the radiant exitance of 1.620×105 W/m2 both agree with the values read from the simulator.

9. Summary

  1. What we want is “the number of modes × the average energy per mode.”
  2. In classical theory the average is kT regardless of frequency, and ∫Udν diverges (the ultraviolet catastrophe) — Eq. (1).
  3. Quantizing the energy as E=nhν turns the integral into a sum, and the average follows from a geometric series and a single differentiation — Eqs. (2)–(5).
  4. At high frequencies, ⟨E⟩ freezes out exponentially. This is what removes the catastrophe.
  5. Counting standing waves, the number of modes is 8πν2/c3. The size of the box drops out — Eq. (6).
  6. Converting to a wavelength representation requires a Jacobian. Hence c/νmax≠λmax — Eqs. (8), (9).
  7. Adding everything up gives σT4. σ can be expressed with h,k,c alone — Eqs. (10), (11).

Mochizuki Research Group, Tokyo University of Science / From lecture notes (8), “Planck’s Formula” (in Japanese). The mode density in §3 and the Stefan–Boltzmann law in §6 supplement the parts that the notes use as known. The numerical checks use direct summation of series, explicit counting of modes, and Simpson’s rule. The equations are typeset in the browser’s native MathML (no external libraries or network communication are used at all).