Intuition What this page is for
The parent note Diffraction grating — condition for maxima gave you the one rule that runs everything:
d sin θ m = mλ .
Here θ m just means "the angle θ of the maximum whose order is m " — we tack the little subscript m on to remind us which bright spot we're pointing at (the m = 1 one, the m = 2 one, and so on). When there's no ambiguity we drop the subscript and write plain θ .
Here we don't learn new physics — we hunt down every kind of question that rule can be bent into, and solve one of each. If you can do all of these, no grating problem can surprise you.
Before we start, let us re-earn every symbol so a reader arriving cold can follow:
d = the centre-to-centre distance between two neighbouring slits , measured in metres. Picture two tiny gaps in a fence; d is the gap-to-gap step.
θ = the angle the outgoing ray makes with the straight-ahead direction (the "normal", a line perpendicular to the grating). Straight ahead is θ = 0 ; hard to the side is θ = 9 0 ∘ . With a subscript, θ m is the angle of the m -th maximum.
λ (lambda) = the wavelength , the length of one full crest-to-crest ripple of the light. See Wavelength and the visible spectrum .
m = the order , a whole counting number 0 , ± 1 , ± 2 , … . It counts how many whole wavelengths of extra path separate neighbouring rays.
sin θ = "opposite over hypotenuse" of a right triangle. We use it (and not tan or cos ) because the extra path a ray travels is the side of a right triangle opposite the angle θ , with d as the hypotenuse — exactly what the parent note drew.
Intuition Signs, negative orders and the two answers of arcsine
Every worked example below solves for a positive θ , but the physics is symmetric left–right , so we must be honest about the signs:
Negative orders. Because m ranges over 0 , ± 1 , ± 2 , … , each positive maximum has a mirror twin. If m = + 1 sits at + θ , then m = − 1 sits at − θ — the same angle on the other side of the centre. That is why counting problems (Cell D) always give an odd total 2 m m a x + 1 .
The two answers of arcsine. When you write θ = sin − 1 ( x ) , remember sin takes the same value at θ and at 18 0 ∘ − θ . For a grating we only keep the branch − 9 0 ∘ ≤ θ ≤ + 9 0 ∘ , because a ray leaving the grating must point into the forward half-space (it cannot travel backwards through the grating). So we always take the "principal" arcsine and never the obtuse partner.
The ceiling. sin θ can never exceed 1 nor drop below − 1 , so − 9 0 ∘ ≤ θ ≤ + 9 0 ∘ is the entire physically allowed range. Any m forcing ∣ mλ / d ∣ > 1 has no real angle — that order simply does not exist.
Keep this in mind: whenever we report "θ 1 = 19. 3 ∘ ", there is silently a matching − 19. 3 ∘ for m = − 1 .
Every grating question is one (or a blend) of these cells. Each worked example below is tagged with the cell it kills.
Cell
What makes it different
Example
A. Forward — find angle
Given d , λ , m ; solve for θ
Ex 1
B. Backward — find d
Given θ , λ , m ; solve for spacing / lines-per-mm
Ex 2
C. Backward — find λ
Given θ , d , m ; solve for wavelength
Ex 3
D. Counting orders
How many maxima fit; uses sin θ ≤ 1 and ± m symmetry
Ex 4
E. Degenerate: m = 0
Zero order — all colours overlap, no dispersion
Ex 5
F. Limiting: order at exactly 9 0 ∘
sin θ = 1 boundary; the "just barely fits / just fails" case
Ex 6
G. Two wavelengths / dispersion
Angular separation of two colours in same order
Ex 7
H. Real-world word problem
Starlight spectrometer, must extract the numbers
Ex 8
I. Exam twist — overlapping orders
A colour's order m lands at the same angle as another colour's order m ′
Ex 9
Cells covered: A B C D E F G H I — all of them.
Worked example Example 1 (Cell A)
Green light, λ = 550 nm , strikes a grating of 600 lines/mm . Where is the first-order (m = 1 ) maximum?
Forecast: With d only a few wavelengths wide, do you expect a tiny angle (a few degrees) or a big one (tens of degrees)? Guess, then read on.
Step 1 — get d in metres.
d = 600 mm − 1 1 = 600 1 mm = 1.667 × 1 0 − 6 m .
Why this step? The equation needs the physical spacing, not "lines per mm". We invert, and convert mm→m so d and λ share SI units (see the "lines vs spacing" mistake in the parent note).
Step 2 — rearrange the grating rule for sin θ .
sin θ 1 = d mλ = 1.667 × 1 0 − 6 1 ⋅ 550 × 1 0 − 9 = 0.330.
Why this step? θ is the unknown; isolating sin θ is the only algebra needed. Look at the step figure below — mλ / d is literally the "opposite ÷ hypotenuse" ratio.
Step 3 — undo the sine.
θ 1 = sin − 1 ( 0.330 ) = 19. 3 ∘ .
Why this step? sin − 1 (arcsine) answers "which angle has this sine?" — it undoes the sine to reveal the angle. We keep the principal value in [ − 9 0 ∘ , + 9 0 ∘ ] ; the twin maximum m = − 1 sits at − 19. 3 ∘ .
Verify: Plug back: d sin θ = 1.667 × 1 0 − 6 × sin ( 19. 3 ∘ ) = 1.667 × 1 0 − 6 × 0.330 = 5.5 × 1 0 − 7 m = 550 nm = 1 ⋅ λ . ✓ Angle is large (tens of degrees) — the small-angle shortcut would have failed.
Worked example Example 2 (Cell B)
A red laser, λ = 633 nm , produces its third-order maximum at θ = 35. 0 ∘ . Find the grating spacing d and the number of lines per mm.
Forecast: Higher order at a modest angle means the slits are relatively... wide or narrow? Guess.
Step 1 — solve the rule for d .
d = s i n θ mλ = s i n 3 5 ∘ 3 ⋅ 633 × 1 0 − 9 .
Why this step? Now d is the unknown, so we divide both sides by sin θ .
Step 2 — evaluate.
sin 3 5 ∘ = 0.5736 , d = 0.5736 1.899 × 1 0 − 6 = 3.31 × 1 0 − 6 m .
Why this step? We turn the symbolic answer into a number: compute sin 3 5 ∘ from the calculator, form the numerator mλ = 3 × 633 nm , then divide, so we can read off a physical spacing.
Step 3 — convert to lines per mm.
lines/mm = d 1 = 3.31 × 1 0 − 3 mm 1 ≈ 302 lines/mm .
Why this step? Lines-per-mm is the reciprocal of the spacing expressed in mm.
Verify: d sin θ = 3.31 × 1 0 − 6 × 0.5736 = 1.90 × 1 0 − 6 m , and mλ = 3 × 633 × 1 0 − 9 = 1.90 × 1 0 − 6 m . ✓ Slits are fairly wide (≈300/mm), which is why order 3 sits at a modest 35°.
Worked example Example 3 (Cell C)
An unknown spectral line appears at second order (m = 2 ), θ = 28. 0 ∘ , on a grating of 400 lines/mm . What wavelength is it, and is it visible?
Forecast: Visible light runs ~400–700 nm. Will your answer land inside that band?
Step 1 — get d .
d = 400 mm − 1 1 = 2.5 × 1 0 − 6 m .
Why this step? The equation is written in terms of the physical spacing d , but the data comes as "lines per mm"; we invert to convert that ruling density into a metre-scale gap so d and λ share SI units.
Step 2 — solve the rule for λ .
λ = m d s i n θ = 2 2.5 × 1 0 − 6 × s i n 2 8 ∘ .
Why this step? λ is now the unknown; divide the path difference d sin θ by the order m .
Step 3 — evaluate.
sin 2 8 ∘ = 0.4695 , λ = 2 2.5 × 1 0 − 6 × 0.4695 = 5.87 × 1 0 − 7 m = 587 nm .
Verify: 587 nm sits in the yellow of the visible spectrum — it's the famous sodium line. Plug back: d sin θ = 2.5 × 1 0 − 6 × 0.4695 = 1.174 × 1 0 − 6 ; mλ = 2 × 5.87 × 1 0 − 7 = 1.174 × 1 0 − 6 . ✓
Worked example Example 4 (Cell D)
Blue light λ = 450 nm on a grating of 800 lines/mm . How many bright maxima appear in total?
Forecast: Guess the total before computing. (Remember maxima appear on both sides!)
Step 1 — get d .
d = 800 mm − 1 1 = 1.25 × 1 0 − 6 m .
Why this step? The counting formula uses the physical spacing d ; the data is a ruling density in lines/mm, so we invert (and read it in metres) to get the gap that actually enters d / λ .
Step 2 — find the largest possible order.
λ d = 450 × 1 0 − 9 1.25 × 1 0 − 6 = 2.78.
Why this step? Setting sin θ to its physical ceiling of 1 gives m m a x = ⌊ d / λ ⌋ ; any bigger m demands sin θ > 1 , which no real angle can supply.
Step 3 — floor and count both sides.
m m a x = ⌊ 2.78 ⌋ = 2.
Orders present: m = − 2 , − 1 , 0 , + 1 , + 2 → 5 maxima .
Why this step? The pattern is symmetric about the centre: every positive order + m has a negative twin − m at the mirror angle, and m = 0 is the single central spot — giving 2 m m a x + 1 .
Verify: Check order 2 is real: sin θ 2 = 2 × 450 × 1 0 − 9 /1.25 × 1 0 − 6 = 0.72 ≤ 1 . ✓ Check order 3 is impossible: 3 × 450/1250 = 1.08 > 1 → no solution. ✓ Count = 2 × 2 + 1 = 5 . ✓
Worked example Example 5 (Cell E)
White light (all wavelengths 400–700 nm) hits any grating. Where is the zero-order (m = 0 ) maximum, and what colour is it?
Forecast: Does the zero-order angle depend on colour? Guess yes or no.
Step 1 — put m = 0 into the rule.
d sin θ 0 = 0 ⋅ λ = 0 ⇒ sin θ 0 = 0 ⇒ θ 0 = 0 ∘ .
Why this step? With zero extra path difference, every wavelength interferes constructively straight ahead.
Step 2 — reason about colour.
Because θ 0 = 0 is independent of λ , all colours land on the same spot and recombine.
Why this step? No wavelength gets bent, so no dispersion happens at the centre.
What to look at in the figure: the red arrow straight ahead is the m = 0 ray — notice it is a single arrow carrying every colour at once, because all wavelengths pile onto θ = 0 . Now follow the black arrows fanning up and down: those are the m = ± 1 rays, and here the colours split apart (blue nearer the centre, red further out) because for m ≥ 1 the angle finally depends on λ . The picture is the whole point of this cell: the centre is white; the fans are coloured.
Verify: The equation gives θ 0 = 0 for λ = 400 nm and for λ = 700 nm alike, so the spread between them is 0 ∘ — a single white central maximum. ✓ (Only for m ≥ 1 do colours fan out into spectra.)
Worked example Example 6 (Cell F)
A grating has spacing d = 1200 nm . For λ = 600 nm , does the second-order maximum exist? Where does it appear, and what happens if you nudge λ slightly larger?
Forecast: d / λ = 2 exactly — a razor-edge case. Will order 2 be visible, invisible, or grazing the edge?
Step 1 — compute sin θ 2 .
sin θ 2 = d mλ = 1200 2 × 600 = 1.000.
Why this step? We test the order against the ceiling sin θ ≤ 1 .
Step 2 — interpret sin θ = 1 .
θ 2 = sin − 1 ( 1 ) = 9 0 ∘ .
Why this step? θ = 9 0 ∘ means the ray skims along the grating surface — mathematically it exists but is infinitely spread and never actually reaches a screen in front. It is the exact boundary of visibility.
Step 3 — nudge the wavelength.
For λ = 610 nm: sin θ 2 = 2 × 610/1200 = 1.017 > 1 . No real angle — order 2 vanishes.
Why this step? This shows the boundary is a genuine cliff: just past d / λ = m , that order disappears.
Verify: At λ = 600 nm, m m a x = ⌊ 1200/600 ⌋ = 2 (edge counts). At λ = 610 nm, ⌊ 1200/610 ⌋ = ⌊ 1.97 ⌋ = 1 — order 2 is gone. ✓
Worked example Example 7 (Cell G)
A grating of 500 lines/mm is lit by two lines: λ 1 = 486 nm (blue) and λ 2 = 656 nm (red), both from hydrogen. Find the angular separation of these two lines in the first order .
Forecast: Which colour bends more — the shorter blue or the longer red? Guess before computing.
Step 1 — get d .
d = 500 mm − 1 1 = 2.0 × 1 0 − 6 m .
Step 2 — angle of each colour (m = 1 ).
sin θ 1 , blue = 2.0 × 1 0 − 6 486 × 1 0 − 9 = 0.243 ⇒ θ = 14.0 6 ∘ .
sin θ 1 , red = 2.0 × 1 0 − 6 656 × 1 0 − 9 = 0.328 ⇒ θ = 19.1 4 ∘ .
Why this step? Same equation applied twice; the only change is λ , so the longer wavelength must bend to a larger angle.
Step 3 — subtract.
Δ θ = 19.1 4 ∘ − 14.0 6 ∘ = 5.0 8 ∘ .
Why this step? "Angular separation" is literally the gap between the two directions, so we subtract the smaller angle from the larger to get how far apart the two coloured spots sit.
Verify: Red (656 ) bends more than blue (486 ) because sin θ ∝ λ — consistent with a grating fanning red furthest, opposite to a raindrop but correct here. Separation ≈ 5. 1 ∘ is comfortably resolvable; this is the basis of Resolving power and spectrometers . ✓
Worked example Example 8 (Cell H)
An astronomer feeds starlight into a spectrometer whose grating has 1200 lines/mm . A calcium absorption line appears in the first order at a measured angle of θ = 28. 4 ∘ . What is the wavelength, and does it match the known Ca II K line at ≈ 393.4 nm ?
Forecast: 1200 lines/mm is a fine grating (small d ). Will first order sit at a small or large angle for near-UV light? Guess.
Step 1 — extract the numbers. Let N ℓ = 1200 lines/mm be the ruling density (the "lines per mm" quoted for the grating), m = 1 , θ = 28. 4 ∘ .
Why this step? Word problems hide the variables in prose — name them first. Note N ℓ is lines per length ; the spacing d is its reciprocal, exactly as in every example above.
Step 2 — get d .
d = N ℓ 1 = 1200 mm − 1 1 = 8.333 × 1 0 − 7 m .
Step 3 — solve for λ .
λ = m d s i n θ = 1 8.333 × 1 0 − 7 × s i n 28. 4 ∘ .
sin 28. 4 ∘ = 0.4756 , λ = 8.333 × 1 0 − 7 × 0.4756 = 3.96 × 1 0 − 7 m = 396 nm .
Verify: 396 nm is in the violet/near-UV. It is closest to the Ca II H line at ≈ 396.8 nm , not the K line at 393.4 nm — a genuinely useful distinction, since the H and K lines are the two famous calcium absorption features and lie only ≈ 3 nm apart. Plug back: d sin θ = 8.333 × 1 0 − 7 × 0.4756 = 3.96 × 1 0 − 7 m = 1 ⋅ λ . ✓
Worked example Example 9 (Cell I)
On a grating, red light λ R = 700 nm in its second order happens to overlap (same angle) with a shorter wavelength λ x in its third order . What is λ x , and what colour is it?
Forecast: For the same angle, does the higher order need a longer or shorter wavelength? Guess.
Step 1 — write the overlap condition.
Same d , same θ , so the value of d sin θ is identical for both rays. Writing the grating rule once per ray:
d sin θ = m R λ R and d sin θ = m x λ x ,
so the left-hand sides match and
m R λ R = m x λ x ⇒ 2 × 700 = 3 × λ x .
Why this step? "Same angle" means d sin θ is common to both — set the two mλ products equal. The d and sin θ cancel, so the grating spacing never even enters!
Step 2 — solve.
λ x = 3 2 × 700 = 466.7 nm .
Why this step? Straight algebra: divide the known product m R λ R by the other order m x = 3 .
Step 3 — identify.
466.7 nm is blue in the visible band .
Why this step? We convert the bare number into a physical colour so the answer is meaningful, not just arithmetic.
Verify: Check the equal path difference — pick any grating, say d = 2000 nm. Red order 2: sin θ = 2 × 700/2000 = 0.700 . Blue order 3: sin θ = 3 × 466.7/2000 = 0.700 . Identical angle ✓. Higher order needs the shorter wavelength — as forecast-checked.
Common mistake Overlap problems: don't drag in
d
Why it feels right: Every other grating problem needs d , so students hunt for it here. The fix: When two maxima share the same angle, the quantity d sin θ is common to both rays. Write the grating rule for each (d sin θ = m 1 λ 1 and d sin θ = m 2 λ 2 ), notice the left-hand sides are equal, and set m 1 λ 1 = m 2 λ 2 . The d sin θ cancels completely, so you solve for the unknown wavelength (or order) without ever knowing the spacing — as Example 9 shows.
Common mistake Forgetting the negative orders when counting
Why it feels right: You solve for one angle, see one bright spot, and report that count. The fix: For every order + m there is a mirror order − m at − θ (see the signs intuition at the top). The total is 2 m m a x + 1 , always odd because the single m = 0 centre has no twin.
Recall Self-test the whole matrix
Which cell would each of these be? "Find lines/mm from a measured angle" ::: Cell B (backward for d ).
"How many spots on the screen?" ::: Cell D (counting orders, remember ± m ).
"Does order 4 exist?" ::: Cell F (limiting / boundary at sin θ ≤ 1 ).
"Two spectral lines' angular gap" ::: Cell G (dispersion).
"Colour x order 3 overlaps red order 2" ::: Cell I (overlapping orders).
Mnemonic The one algebra move
Every cell is the same equation solved for a different letter: "d sin θ = mλ — cover the letter you want, solve for it." Angle → sin − 1 ( mλ / d ) . Spacing → mλ / sin θ . Wavelength → d sin θ / m . Count → 2 ⌊ d / λ ⌋ + 1 .