Visual walkthrough — Blackbody radiation from statistical mechanics — Planck distribution
Before we write the destination formula, we need the names of two constants of nature that will appear inside it. We meet them properly (with pictures) in Steps 6 and 7 — here we only give their plain-word meaning so no symbol is unexplained.
Our destination — the thing every step is building toward:
Here is the energy per unit volume per unit frequency — how much light-energy sits in the box between colour and colour . The little is a thin slice of frequency. (Greek "nu") is frequency, is temperature, the speed of light, and the two constants just introduced. Everything else we define as we go.
Step 1 — Put light in a box
WHAT. Imagine a hollow metal cube, side length . Heat its walls to temperature . The walls glow, filling the inside with electromagnetic (light) waves. In equilibrium the light bouncing around must form standing waves — patterns that don't drift, like a plucked guitar string.
WHY. A wave that isn't a standing wave would slosh energy around forever and never settle. Only the standing patterns are stable, so those are the only ones we count. A standing wave must be pinned to zero at both walls (the metal shorts out the field there), exactly like a rope tied at both ends.
PICTURE. Look at the figure. The first pattern fits half a wavelength across the box, the next fits one full wavelength, then one-and-a-half, and so on. Only whole numbers of half-wavelengths fit.

Because a whole number of half-wavelengths must fit along each axis, the wave's "tightness" along can only take special values:
- — the wavenumber along : how many radians of wave per metre. Bigger = tighter ripples.
- — a counting integer : which harmonic (how many bumps).
- — the smallest step; each extra bump adds this much to .
The same holds for and with their own integers .
Step 2 — Every mode is a dot in "mode-space"
WHAT. A mode is fixed by three integers . Plot each triple as a point on a 3D grid. Every mode = one dot, and the dots sit exactly one unit apart in each direction.
WHY. Counting waves is hard; counting evenly-spaced dots is easy. By turning "how many modes" into "how many grid points," we can use volume to count instead of adding one-by-one.
PICTURE. The figure shows the grid of dots in the first octant (all three integers positive). One dot occupies exactly one unit cube of space, so the number of dots inside a region ≈ the volume of that region.

We measure how far a dot sits from the corner:
- — the radius in mode-space, the straight-line distance from the origin to the dot. (We use , not , so it never collides with the counting integer we will meet in Step 7.)
- The square-root-of-sum-of-squares is just Pythagoras in 3D: it turns three counts into one distance.
All dots with the same lie on a sphere of radius . That's the key: modes of the same "size" form a shell.
Step 3 — Count modes with a sphere (careful: one-eighth, and only when )
WHAT. To count all modes out to radius , take the volume of a sphere of radius — but keep only the corner where all three integers are positive.
WHY. Since each dot fills one unit cube, the count is the volume. But must be positive (there's no "minus-first harmonic"), so only of the sphere counts — the single octant nearest the corner.
PICTURE. The figure shows the full sphere faded, and the solid amber wedge is the one-eighth we keep.

- — total number of modes with radius up to .
- — the positive-integer restriction; drop it and you'd overcount eightfold.
- — ordinary volume of a ball of radius .
Step 4 — Translate mode-count into frequency
WHAT. Physicists want colour (frequency ), not the abstract radius . Convert.
WHY. Two facts link to . The wavevector magnitude is (Pythagoras on the 's from Step 1). And any light wave satisfies (wave speed = frequency × wavelength). Set them equal.
PICTURE. The figure is a "dial converter": turn the knob, read off — a straight-line (linear) relationship.

- Left side: wave tightness from the box geometry.
- Right side: wave tightness from being light at frequency .
- The 's cancel; and set the scale. Bigger box or higher → bigger .
Substitute into :
Step 5 — Two polarizations, then differentiate → density of states
WHAT. Double the count (light has two independent polarizations per direction), divide by the box volume to get a per-volume number, then differentiate to get the count in a thin frequency slice.
WHY.
- ×2: for every wavevector, light can wiggle in two perpendicular directions — two distinct modes.
- ÷ : we want a property of the material, not of our particular box size.
- Differentiate: we don't want "all modes up to ," we want "how many modes at within a sliver ." The derivative is exactly "how fast the count grows per unit frequency."
PICTURE. The figure shows as a rising curve; its slope at each point is , the number living in one thin vertical strip.

- — density of states: modes per unit volume per unit frequency. See Density of states.
- The cancels — good, the answer shouldn't care about box size.
- The derivative of is ; the 3 cancels the 3 in the denominator.
Step 6 — The classical energy per mode (and why it explodes)
WHAT. Classical physics (Equipartition theorem) says every oscillator holds the same average energy , whatever its frequency. Here is Boltzmann's constant — the exchange rate between temperature and energy — so is the typical thermal energy at temperature .
WHY it's a catastrophe. Multiply "how many modes" by "energy each":
This is the Rayleigh-Jeans law. As the climbs forever — the box would hold infinite energy. That impossible result is the ultraviolet catastrophe.
PICTURE. The figure overlays the true (measured) spectrum against the Rayleigh–Jeans curve rocketing to infinity. They agree only at low ; the classical curve then runs off the top of the page.

- — Boltzmann's constant, the conversion between temperature and energy.
- — the classical energy per oscillator; the same for every mode — that's the fatal assumption.
We need to replace the flat with something that shrinks at high .
Step 7 — Quantize the energy: the staircase, not the ramp
WHAT. Planck's leap: a mode of frequency can only hold energy in whole lumps of size , where is Planck's constant:
WHY. If energy came in a smooth ramp, every mode could accept an arbitrarily tiny sip and equipartition would win. Force energy onto a staircase and a high- mode faces a first step so tall that a thermal kick of size can't climb it. So it stays on step 0, holding zero energy.
PICTURE. The figure contrasts the classical smooth ramp with the quantum staircase; the amber arrow shows a thermal kick of height — it easily reaches many low steps but falls short of a single tall step.

- — Planck's constant, the size of one energy lump per unit frequency.
- — the step height; grows with frequency, so high- steps are unaffordable.
- — how many lumps this mode currently holds (an occupation number, a different integer from the geometric radius of Steps 2–4).
Now compute the true average. First we need a way to turn "list of allowed energies" into "average energy at temperature ." That machinery is the Partition function.
Each energy level carries a Boltzmann weight — a relative probability that says "how likely is the mode to sit on step ." The partition function is just the sum of all those weights (a normaliser):
- The sum is a geometric series with ratio , so it closes to .
Apply it:
(last step: multiply top and bottom by and put back). This is times the Bose–Einstein occupation — the average number of lumps in the mode.
Step 8 — Assemble, and watch the catastrophe die
WHAT. Multiply Step 5 (count) by Step 7 (energy):
WHY it now converges. The up top still wants to explode — but at high the denominator grows exponentially, and exponential decay beats any power. So rises, peaks, and falls to zero.
PICTURE. The figure plots the finished Planck curve: rising as on the left, bending over at the peak, dying exponentially on the right. The disaster is contained.

Edge cases — check both ends:
- Low frequency (, where ): use , so and we recover Rayleigh–Jeans. Classical physics is the cheap-photon corner of Planck's law.
- High frequency (): , so — Wien's exponential tail.
- Degenerate : every step is infinitely expensive, at all — a cold body doesn't glow. ✓
- Degenerate : because (no modes at zero frequency), even though each holds . ✓
Recall Verify the low-frequency limit yourself
What does become for tiny , and what energy per mode results? ::: , so — the classical equipartition value.
The one-picture summary
Everything on one canvas: count grows as (green, climbing), energy per mode falls off (cyan, dropping via the exponential), and their product is the Planck bump (amber). " up, down."

Recall Feynman retelling of the whole walkthrough
Trap light in a hot metal box. Only certain neat wave-patterns survive — those pinned to zero at the walls, like ropes tied at both ends. Label each pattern by three whole numbers and you get a tidy grid of dots; counting dots is just measuring volume, and since only positive numbers count you keep one-eighth of a sphere. Translate that "size" into colour, double it for the two ways light can wiggle, and you learn there are tons of high-colour patterns — the count climbs like . Old physics gave each pattern the same energy , so with infinitely many high-colour patterns the box would blaze with infinite energy — nonsense. Planck's rescue: energy for a pattern comes only in lumps of , and high-colour lumps are so big that a gentle heat-tap can't buy even one, so those patterns stay dark. Multiply "lots of patterns" by "but the fast ones are frozen" and you get a curve that rises, peaks, and gently dies — the glow of every warm thing in the universe.