— Following the derivation in lecture notes (8) (for second- and third-year undergraduates)
The simulator computes the spectrum of light from the temperature as
— 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
(the equipartition theorem).
However, if energy can be taken only in steps of ,
then a high-frequency mode with
“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
, and
multiplying this by gives
“the energy per unit volume at frequencies between and .”
Our approach has two stages.
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
and take the average with the Boltzmann distribution.
(1)
The integrals are Gaussian, so they can be done by hand. The term and the
term each yield
, so together they give
. Regardless of frequency, every mode has the same
— this is the equipartition theorem.
⚠ It breaks down here
As we will see in §3, the number of modes is
and hence the classical prediction is
(the Rayleigh–Jeans formula). It grows without bound as the frequency is raised, so
the total energy 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 ().
Then the integral in Eq. (1) turns into a sum.
(2)
2.1 The denominator — just a geometric series
With
the sum is a geometric series with common ratio .
(3)
2.2 The numerator — obtained by differentiation
The numerator carries an extra factor . Summing it straightforwardly is laborious,
but with the clever trick from the notes it takes an instant.
That is because, setting ,
the operation of multiplying by can be produced by .
(4)
2.3 Dividing to finish
(5)
This equation determines everything
(low frequency):
, so
.
We recover classical theory.
(high frequency):
and thus it vanishes exponentially. If the “minimum unit” of energy is larger than the thermal energy,
that mode cannot be excited even by a single quantum — this intuition is what kills the ultraviolet catastrophe.
Incidentally, Eq. (5) is nothing other than the Bose–Einstein distribution
that bosons (photons) obey, multiplied by (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
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
, with
(we write the volume of the box as ). In k-space, the volume occupied by one mode is
.
Since , only
of the sphere can be used, and in addition there are two polarizations.
(6)
The last step is just substituting .
The important point is that the box volume 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
by actually counting the modes. In a cube of side 100 µm, if
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)
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.
Limit
Formula
Name
Behavior
Rayleigh–Jeans
Agrees with classical theory (which was correct on the low-frequency side)
Wien
Falls 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
is a quantity
“per unit frequency.” When we want to view it per unit wavelength,
simply replacing with
is not allowed. Instead, we start from
so that no light is left out of the count.
(8)
5.2 So the two peaks are different things
Differentiating
with respect to and setting the result equal to 0 gives, for
,
.
For , it is
.
The difference between 5 and 3 comes from multiplying by the Jacobian in Eq. (8) (that is, dividing by ).
(9)
⚠
Taking the ratio gives
— 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
, the normalization factor is
or
, 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 ,
the factor comes out in front, and only a number remains.
(10)
The radiation going out (the radiant exitance) is
, so
(11)
The Stefan–Boltzmann constant can be written with nothing but
— 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, 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.”
Apply the eye’s sensitivity. Multiply the spectrum by the CIE 1931 color-matching functions
and integrate over 360–830 nm to obtain the three numbers of the XYZ colorimetric system.
Convert to screen color. XYZ is converted to sRGB. Colors outside the gamut are desaturated by adding white.
Brightness is handled separately. The large color swatch shows only the “hue,” with the brightness equalized. The total radiation increases
as 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
.
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
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 checked
Agreement
Eq. (3), geometric series: direct sum vs. closed form
relative difference < 2×10−16
Eq. (4), numerator: direct sum vs. result of differentiation
relative difference < 5×10−16
Eq. (5): from the direct sum
relative difference < 6×10−16
Eq. (6): counting the modes (100 µm cube)
96–98 % (finite-box effect)
Eq. (9): found directly by numerical search
relative difference 2×10−7
Eq. (10):
relative difference 2×10−12
Eq. (11): value of
5.670374419×10−8
Eq. (8):
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
What we want is “the number of modes × the average energy per mode.”
In classical theory the average is regardless of frequency, and
diverges (the ultraviolet catastrophe) — Eq. (1).
Quantizing the energy as turns the integral into a sum,
and the average follows from a geometric series and a single differentiation — Eqs. (2)–(5).
At high frequencies,
freezes out exponentially. This is what removes the catastrophe.
Counting standing waves, the number of modes is
. The size of the box drops out — Eq. (6).
Converting to a wavelength representation requires a Jacobian. Hence
— Eqs. (8), (9).
Adding everything up gives .
can be expressed with 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).