Diffraction applications

Rule a glass plate with thousands of fine, evenly spaced lines and you have built one of optics' most useful instruments: a diffraction grating. Where a single slit merely spreads light into a broad, blurry pattern, a grating with many slits does something sharper and more useful — it sorts light by colour. Building on the single-slit Fraunhofer pattern from the previous article, this article looks at what happens when light passes not through one slit but through an entire periodic array of them, each interfering with all the others. This is the grating's role as a dispersing element — the working principle behind spectrometers used to identify the elements in a star's light or check the purity of a sodium lamp. You will learn the condition for a grating's bright principal maxima, why more slits give sharper lines, and how to compute the angular spread of a spectrum, all without needing the full multi-slit intensity algebra.

The core insight

A diffraction grating's many equally spaced slits interfere constructively at angles given by dsin⁡θ=mλd\sin\theta=m\lambda, producing sharp, wavelength-dependent bright lines that spread light into a spectrum — the basis of grating spectroscopy.

The core idea

A diffraction grating is a periodic array of NN identical slits (or reflecting grooves), each of width aa, separated by a distance dd called the grating period. Light diffracted from every slit interferes with light from every other slit, and the pattern on a distant screen is built from that mutual interference rather than from any one slit alone. A principal maximum — a bright fringe reinforced by all NN slits at once — appears in a direction θ\theta whenever the path difference between light leaving adjacent slits equals a whole number of wavelengths:

dsin⁡θ=mλ,m=0,±1,±2,…d\sin\theta=m\lambda,\qquad m=0,\pm1,\pm2,\dots

where: dd is the grating period, θ\theta is the angle measured from the straight-through direction, λ\lambda is the wavelength, and mm is the order of the maximum — an integer labelling which reinforcement condition is satisfied. The order m=0m=0 gives the undiffracted central beam, common to every wavelength and therefore carrying no colour information; the orders m=±1,±2,…m=\pm1,\pm2,\dots spread out on either side, each order landing at a different angle for each wavelength present. Two features distinguish a grating from a simple double slit, both arising because NN is large (often thousands, not two):

Sharper lines. With NN slits interfering, each principal maximum is squeezed into a narrow angular width that shrinks roughly as 1/N1/N, with faint secondary ripples crowded between successive principal maxima. As NN grows large, these secondary ripples become negligible and the principal maxima stand out as sharp, bright lines on an almost dark background — very different from the smooth, broad cosine-squared fringes of a two-slit pattern. The full multi-slit intensity formula behind this is beyond this course; only the qualitative picture — narrow bright lines, not broad fringes — is required.

Wavelength-dependent angle. Since sin⁡θ=mλ/d\sin\theta=m\lambda/d, two different wavelengths present in the same order mm land at two different angles. A grating therefore spreads white light into a rainbow-like spectrum in each order, exactly as a prism does, but by interference between many diffracted beams rather than by refraction through glass. This wavelength sorting is what makes a grating disperse light, and it is the operating principle of a grating spectrometer: measuring the angle of a bright line tells you the wavelength that produced it.

Figure
Diagram of a diffraction grating showing many equally spaced slits with parallel wavefronts arriving from the left and diffracted rays leaving at an angle theta toward a first order bright fringe on a screen, with the path difference between adjacent slits equal to d sin theta
A grating: many slits, one direction of reinforcement incident plane wave grating, period d d m = 0 screen m = 1 bright line θ Bright line where adjacent-slit path difference d sin θ equals a whole number of wavelengths
Derivation AThe grating equation for principal maxima

The goal is to show, using only the geometry of two adjacent slits and the ordinary condition for constructive interference, that bright principal maxima of a grating occur exactly where dsin⁡θ=mλd\sin\theta=m\lambda, and that the reasoning is identical for every pair of adjacent slits in the array — which is precisely why all NN slits reinforce together in that one direction.

Step 1. Consider a plane wave of wavelength λ\lambda striking the grating normally, so that every slit receives the wave in phase, with no path-length difference at the grating plane itself. Pick any two adjacent slits, separated by the grating period dd.

Step 2. Look at light leaving these two slits in a direction making angle θ\theta with the straight-through direction. The ray from the lower slit travels a little farther to reach a distant point in that direction than the ray from the upper slit does. Standard geometry — dropping a perpendicular from the upper slit onto the ray from the lower slit — shows this extra path length is dsin⁡θd\sin\theta.

Step 3. For the two waves to arrive in phase and add constructively, this path difference must equal a whole number of wavelengths: dsin⁡θ=mλd\sin\theta=m\lambda, with mm an integer. Because dd is the same spacing between every pair of adjacent slits in the grating, this single condition on θ\theta makes the path difference between any two adjacent slits equal to mλm\lambda simultaneously — not just the one pair examined.

Step 4. Since all NN slits are equally spaced, satisfying the adjacent-pair condition satisfies it for every pair at once, so all NN diffracted waves arrive in phase in that direction and add constructively to a strong, sharp principal maximum. Any direction that fails this condition for even one adjacent pair will, with many slits present, have contributions that interfere destructively almost completely — which is the underlying reason the maxima are narrow rather than broad.

Worked example

A diffraction grating has 50005000 lines per centimetre. Light of wavelength λ=589 nm\lambda=589\ \text{nm} (the sodium D line) falls on it normally. Find the grating period dd, the angles of the first- and second-order principal maxima, and the highest order the grating can produce for this wavelength.

Step 1. The grating period is the reciprocal of the line density: d=1 cm5000=1×10−2 m5000=2.0×10−6 m=2000 nmd=\dfrac{1\ \text{cm}}{5000}=\dfrac{1\times10^{-2}\ \text{m}}{5000}=2.0\times10^{-6}\ \text{m}=2000\ \text{nm}.

Step 2. For the first order (m=1m=1), sin⁡θ1=mλd=5892000=0.2945\sin\theta_1=\dfrac{m\lambda}{d}=\dfrac{589}{2000}=0.2945, so θ1=sin⁡−1(0.2945)≈17.1∘\theta_1=\sin^{-1}(0.2945)\approx17.1^\circ.

Step 3. For the second order (m=2m=2), sin⁡θ2=2×5892000=0.589\sin\theta_2=\dfrac{2\times589}{2000}=0.589, so θ2=sin⁡−1(0.589)≈36.1∘\theta_2=\sin^{-1}(0.589)\approx36.1^\circ.

Step 4. Since sin⁡θ\sin\theta can never exceed 11, the highest possible order is mmax⁡=⌊d/λ⌋=⌊2000/589⌋=3m_{\max}=\lfloor d/\lambda\rfloor=\lfloor2000/589\rfloor=3. So orders m=1,2,3m=1,2,3 appear on each side of the central beam; a fourth order would require sin⁡θ>1\sin\theta>1, which is impossible. Answer: d=2000 nmd=2000\ \text{nm}, θ1≈17.1∘\theta_1\approx17.1^\circ, θ2≈36.1∘\theta_2\approx36.1^\circ, and only three orders (m=1,2,3m=1,2,3) exist on each side.

Competitive stretch

White light (roughly 400400–700 nm700\ \text{nm}) falls normally on a grating with d=1.5 μm=1500 nmd=1.5\ \mu\text{m}=1500\ \text{nm}. In the first order, violet (400 nm400\ \text{nm}) appears at sin⁡θv=400/1500=0.2667⇒θv≈15.5∘\sin\theta_v=400/1500=0.2667\Rightarrow\theta_v\approx15.5^\circ, while red (700 nm700\ \text{nm}) appears at sin⁡θr=700/1500=0.4667⇒θr≈27.8∘\sin\theta_r=700/1500=0.4667\Rightarrow\theta_r\approx27.8^\circ. The first-order spectrum spans Δθ=θr−θv≈12.3∘\Delta\theta=\theta_r-\theta_v\approx12.3^\circ — red bends farther than violet, the opposite ordering from a prism, since the grating disperses by diffraction, not refraction.

Common traps

  • Mixing up the grating equation dsin⁡θ=mλd\sin\theta=m\lambda (bright maxima, slit spacing dd) with the single-slit minima condition asin⁡θ=mλa\sin\theta=m\lambda (dark fringes, individual slit width aa) — same algebraic form, very different physical roles.
  • Assuming a grating disperses colours like a prism through refraction — it does so by diffraction and multi-slit interference, and typically sends red to a larger angle than violet in a given positive order, opposite to a prism.
  • Forgetting to check ∣sin⁡θ∣=∣mλ/d∣≤1|\sin\theta|=|m\lambda/d|\le1 before claiming an order exists — only a finite number of orders fit for any given dd and λ\lambda.
  • Treating "more lines per unit length" as simply making a "bigger" spectrum, without separating sharper lines (an NN effect, qualitative here) from a wider angular spread (a dd and mm effect, which is quantitative and examinable).

Ask the tutor: Want to work through how many orders a different grating supports, or check an angular-spread calculation step by step?

Why does a grating give much sharper spectral lines than a double slit?

Both obey the same interference logic, but a double slit has only two beams reinforcing, so the bright fringes are broad and gradually fade into dark regions. A grating has thousands of slits; a direction that satisfies the reinforcement condition for one adjacent pair satisfies it for every adjacent pair at once, giving a very strong maximum, while directions only slightly off this condition suffer near-total cancellation among the many beams. More slits therefore squeeze the same bright condition into a much narrower angular range.

Why does the grating equation look just like the single-slit minima formula?

Both are (spacing)sin⁡θ=(integer)λ(\text{spacing})\sin\theta=(\text{integer})\lambda, but the spacing means something different in each case. In a grating, dd is the distance between neighbouring slits, and the condition marks bright principal maxima built from constructive interference between slits. In single-slit diffraction, aa is the width of one slit, and the same-looking condition marks dark minima from destructive interference within that one slit. A real grating actually has both effects layered together, with the single-slit pattern acting as an envelope that can suppress some grating orders.

Can a grating ever fail to show a particular order, even a low one?

Yes, in two different ways. First, purely geometrically, if mλ/d>1m\lambda/d>1 that order simply cannot exist, since sin⁡θ\sin\theta cannot exceed one — always check this before assuming an order appears. Second, even when geometrically allowed, the single-slit diffraction envelope (governed by slit width aa) can happen to have a minimum exactly at that order's angle, suppressing it almost entirely; this "missing order" effect combines both the grating spacing dd and the slit width aa, though the full quantitative treatment goes beyond what is required here.

Before this

Where this leads