Visual walkthrough — Diffraction grating — condition for maxima
Step 1 — Draw the gaps, and what "in phase" means
WHAT. We line up the slits vertically and shine a flat wavefront (a wall of light) straight at them.
WHY. If the light hits perpendicular ("normally"), every slit is struck at the same moment, so we don't have to worry about any starting difference. The only difference will come later, from the direction light leaves in. That keeps the bookkeeping honest.
PICTURE. The blue vertical lines are wavefronts marching rightward; each yellow dot is a slit. Notice all the dots sit on the same wavefront — that is what "all in phase" looks like.

Step 2 — Pick a viewing direction
WHAT. From two neighbouring slits we draw one ray each, both heading off at the same angle .
WHY. A far-away screen (or a lens) collects rays that travel in the same direction and brings them to one spot. So the light arriving at a single point on the screen is exactly the set of rays leaving all the slits at one shared angle . To understand one bright spot, we study one angle.
PICTURE. Two green rays leave adjacent slits parallel to each other, tilted by from the dashed normal line.

Step 3 — Find the extra distance one ray travels
WHAT. Drop a perpendicular from the upper slit onto the lower ray. This chops off a tiny right triangle. The short leg of that triangle is the extra path the lower ray travels — we name it (Greek "delta", meaning "the difference").
WHY a right triangle, and why does appear? The triangle has:
- hypotenuse (the slit spacing — the line joining the two slits),
- the angle at the top equals (same tilt as the rays, by geometry of perpendicular lines),
- the side opposite that angle .
of an angle is defined as — it is exactly the tool that answers "how long is the opposite side if I know the hypotenuse and the angle?" That is precisely our question, so:
PICTURE. The red segment is ; the right-angle box shows where the perpendicular lands; is the hypotenuse, the angle inside the triangle.

Step 4 — When do the two waves add up bright?
WHAT. The lower ray is behind by . If equals a whole number of wavelengths, then sliding it back by that amount lands crest-on-crest — the waves reinforce.
WHY whole numbers, not halves? Slide by , , : identical picture every time, crests aligned → bright. Slide by half a wavelength: crest lands on trough → they cancel → dark. So brightness demands an integer number of wavelengths. We call that integer — the order.
PICTURE. Top: two waves offset by exactly — crests aligned, sum is tall (bright). Bottom: offset by — crest meets trough, sum is flat (dark).

Step 5 — Why "neighbours agree" makes ALL slits agree
WHAT. Number the slits Slit 2 is behind slit 1 by . Slit 3 is behind slit 2 by the same , so it is behind slit 1 by . Slit 4 by , and so on.
WHY it matters. Every one of those totals — — is a whole number of wavelengths. So every slit lands crest-on-crest with slit 1. All slits stack in phase.
This is why grating maxima are so violently bright (intensity grows like ) and razor-sharp — far sharper than the two-slit fringes of Young's double-slit experiment.
PICTURE. A staircase: each slit's wave shifted by one more than the last, all crests forming a vertical column — total is enormous.

Step 6 — The special case : straight ahead
WHAT. At the two rays travel equal distances — no path difference at all, for any wavelength.
WHY it's special. Because the condition is met regardless of , every colour piles up in the same straight-ahead spot. White light in → white spot straight through. Only the higher orders () fan the colours apart into a spectrum (see Wavelength and the visible spectrum).
PICTURE. All colours' rays leaving straight ahead, overlapping into one white central maximum; higher orders shown peeling off to the sides in colour order.

Step 7 — The edge case: how many orders can exist?
WHAT. Rearrange into . For a real angle we need , i.e. .
WHY the floor function. must be a whole number, so we take the largest integer not exceeding — written with the floor brackets ("round down"):
Degenerate check: if (wavelength bigger than the spacing), then , so — only the central spot exists, no side orders at all. The formula handles it gracefully.
PICTURE. A quarter-circle of allowed directions ( to ). Each order marks a tick; once a tick would pass it falls off the edge — that order is forbidden.

The one-picture summary
Everything above compressed into a single frame: the slits (spacing ), the tilted rays (angle ), the little red path-difference triangle (), the whole-wavelength match (), and the forbidden zone where .

Recall Feynman retelling — the whole walk in plain words
Picture a row of tiny gaps in a wall, all the same distance apart, and a flat sheet of light hitting them dead-on so every gap starts rippling at the same heartbeat. Now stand off to one side and pick a slanting direction — that tilt is our angle . Light heading that way from a lower gap has to travel a little extra before it lines up alongside the light from the gap above it. That extra crumb of distance is one leg of a skinny right triangle whose long side is ; the leg comes out to , because "sine" is precisely the tool that turns hypotenuse and angle into the opposite side. If that crumb is exactly one full wavelength — or two, or three, any whole number of them — the crest from the lower gap lands right on the crest from the upper gap, and they add up bright. And here's the magic: if neighbours match by a whole , then gap 3 is two whole steps behind gap 1, gap 4 is three, and so on — so every gap lines up at once and the light explodes into a needle-sharp line. Straight ahead () all colours agree, so you get one white spot. Tilt further and the colours fan apart. But you can't tilt past , so can never top 1 — which quietly caps how many bright orders the universe will let you see: up to , and no further.
Quick self-check
Connections
- Interference and path difference — the crest-on-crest rule powering Step 4.
- Young's double-slit experiment — the two-slit ancestor; grating is its -slit sharpening.
- Single-slit diffraction — why each slit spreads light in the first place (Step 1).
- Wavelength and the visible spectrum — why higher orders fan into colour (Step 6).
- Resolving power and spectrometers — what the sharpness of Step 5 buys you.
- Parent: Diffraction grating — condition for maxima.