Wave Propagation, Diffraction & Gratings
Wave Propagation, Diffraction & Gratings
One dimension gave us superposition and standing waves. Three dimensions give us the rest of wave physics: a wave now has a direction, and directions can be added. Everything follows — two plane waves crossing at an angle print a fringe pattern in space; a wave squeezed through a gap fans out by an angle ; a row of scatterers throws light into a discrete set of beams. Those three facts are the entire experimental toolkit of the next two courses, and the last one is how humanity first caught an electron behaving like a wave. A cat's whiskers, incidentally, are a diffraction problem: they must out-span the gap to be worth anything.
Learning Objectives
After this lesson you will be able to:
- Write the three-dimensional wave equation with the Laplacian, and verify by direct differentiation that the plane wave solves it exactly when .
- Interpret the wavevector geometrically — direction of travel, wavefronts perpendicular to it, spacing — and superpose two plane waves to get a spatial fringe pattern.
- Apply the Huygens–Fresnel construction: rebuild a propagating wavefront from secondary point sources, and explain why a finite aperture cannot re-emit a perfectly plane wave.
- Estimate the diffraction angle for an aperture or source of width , and use the inverse relation between aperture size and angular spread.
- Derive the grating equation for equally spaced scatterers, identify diffraction orders, and predict how many orders exist for a given .
Intuition
In one dimension a wave has two choices: left or right. In three it has a whole sphere of them, and the bookkeeping device for "which way" is the wavevector — a vector pointing along propagation whose length is the wavenumber . Everything in this lesson is a consequence of being allowed to add plane waves with different .
Add two, and where their crests coincide you get bright bands, where crest meets trough you get dark ones — interference is no longer a pattern in time at one point but a standing pattern painted across space. Add a continuum of them, radiating from every point of a slit, and you get diffraction: the wave spreads into the geometric shadow, because a finite piece of a wavefront simply does not contain the ingredients to keep marching in a perfectly straight line. Add the waves scattered by a regular row of atoms, and almost every direction cancels — except the special ones where every scatterer's contribution arrives in step, which come out as sharp beams at angles set by and the spacing.
That last mechanism deserves flagging now: it is how X-ray crystallography reads molecules, and in 1927 it is how a nickel crystal proved that electrons have wavelengths (P.3.2). Diffraction is the instrument that detects waviness. Build it here, classically, and it is ready when matter turns out to need it.
Theory
The wave equation in three dimensions
The 1D wave equation of P.1.1 generalizes by replacing with the Laplacian , the sum of second derivatives along all three axes. For a scalar field — a pressure in air, a component of an electric field, later a wavefunction — propagating at speed :
Equivalently , the divergence of the gradient, with
Writing it as is not decoration: it is what makes the plane-wave check below two lines of vector algebra instead of nine partial derivatives. The equation is still linear and still second order in time, so both structural lessons of P.1.1 survive intact — solutions superpose, and initial value plus initial velocity fix the future.
Plane-wave solutions
A monochromatic plane wave — one frequency, one direction — is
Claim: it solves the 3D wave equation precisely when .
Proof. The gradient brings down , because is linear in each coordinate:
Taking the divergence of that vector field brings down a second factor of , dotted into the first:
The time derivative is the familiar one, . Substituting both:
Note what the derivation did not require: any relation among individually. Every direction of works, provided the length is — the allowed wavevectors of a given frequency fill a sphere of radius in -space. That sphere is the reason a single frequency can produce two-dimensional patterns at all.
Three readings of worth memorizing:
- Direction. Surfaces of constant phase — wavefronts — are the planes , which are perpendicular to ; hence "plane" wave. They advance along at the phase speed .
- Magnitude. Along the phase advances by over a distance , so exactly as in 1D.
- Components. is the wavenumber seen along : a wave travelling at angle to the -axis has , , so it prints a stripe pattern along of period — always longer than . This projection is the whole of the grating equation, met later in this lesson.
Caution. measures the spacing of wavefronts along , never along an arbitrary axis. A wave crossing a screen at a shallow angle paints stripes far wider than its own wavelength — the same projection that lets a grating with still diffract, and the same effect that makes a "wavelength read off the screen" meaningless unless you also state the angle.
Two plane waves: interference in space
Because the wave equation is linear, the sum of two plane-wave solutions with the same but different directions (equal lengths , different orientations) is again a solution. Factor out the mean phase, :
Read it as an ordinary travelling wave — direction , the bisector — multiplied by a stationary spatial envelope that does not move at all. The intensity is a set of straight, motionless bright bands perpendicular to , spaced by
where is the angle between and (using for equal lengths). Nearly parallel beams give coarse fringes; beams meeting head-on () give — the 3D version of the standing wave of P.1.1, whose nodes sit half a wavelength apart. This is the operating principle of holography, of laser interference lithography, and of the optical lattices that hold cold atoms in place for quantum simulation.
Point sources and the Huygens–Fresnel construction
The other elementary solution is the spherical wave radiated by a point source at the origin,
whose wavefronts are concentric spheres (circles, in a 2D cross-section) expanding at . The is energy conservation, not decoration: intensity spread over a sphere of area carries constant total power. Far from the source, a small patch of a huge sphere is indistinguishable from a plane — which is why a distant star delivers plane waves.
Huygens' principle (1678), sharpened by Fresnel: every point of a wavefront acts as a source of secondary spherical wavelets, and the field at a later time is their superposition. It is a computational recipe, and its power is best seen by watching it converge. Illuminate a slit of width with a plane wave from the left and rebuild the transmitted field from equally spaced point sources across the opening:
- . A lumpy mess. Three circles cannot imitate a wavefront; the result is a three-source interference pattern, not a beam.
- . Recognizably wrong near the slit, but already plausible far away — the wavelets' common tangent begins to look like a straight front.
- . The right-hand edges of the circles visibly line up along a straight line. Plane wavefronts emerge on the far side, as though the incident wave had simply marched through the gap.
- . Converged, for the purpose of drawing pictures. Adding more sources changes nothing visible.
The moral is that a plane wave "continuing in a straight line" is not a primitive fact — it is the collective result of infinitely many wavelets whose sideways contributions cancel. And that immediately tells you what a finite aperture must do: with the wavefront clipped at the edges, the cancellation is incomplete, so the transmitted beam cannot stay perfectly collimated. It spreads. The rest of the lesson is the size of that spread.
flowchart LR
A["Plane wave<br/>hits aperture of width d"] --> B["Huygens: every point in the gap<br/>re-radiates a spherical wavelet"]
B --> C["Wavelets superpose"]
C --> D["Interior: sideways contributions<br/>cancel → beam goes straight"]
C --> E["Edges: cancellation incomplete<br/>(no neighbours beyond the rim)"]
E --> F["Beam fans out by θ ~ λ/d<br/>= diffraction"]
D --> FThe diffraction angle
A wave leaving a source or aperture of transverse width emerges as a beam that spreads into a cone of half-angle
— the single most useful estimate in wave physics. Three complementary derivations, all worth having:
1. Cancellation (the textbook argument). Pair each Huygens source in the top half of the slit with its partner below. In the direction , that pair has a path difference . Every pair cancels when this equals , i.e. at — the first zero of the single-slit pattern. Between and sits the central lobe containing most of the energy, so its half-width is the diffraction angle. (The full pattern is with , the classic envelope of P.3.2.)
2. Transverse wavevector. Confining the wave to width means the field is nonzero only over an interval . Fourier analysis (0.3.2) then requires a spread of transverse wavenumbers . Since a component corresponds to propagation at angle , the angular spread is . Same answer, and this one shows why: diffraction is the uncertainty principle of the Fourier transform, no quantum mechanics required. When arrives, multiply both sides by it and this becomes (P.4.3) — the same theorem, re-labelled.
3. Dimensional analysis. The only length scales are and ; an angle must be their ratio. This is why the estimate deserves the "": prefactors depend on aperture shape (a circular aperture gives , the Rayleigh criterion), but the scaling never changes.
The relation is inverse, and the numbers are worth feeling:
| Aperture | Behaviour |
|---|---|
| rad — a recognizable, mildly spreading beam | |
| rad — a broad fan | |
| rad — nearly hemispherical; the slit is now essentially a point source |
Larger aperture, smaller angle; smaller aperture, larger angle. Squeeze a beam and it fights back. This single inequality sets the resolution limit of every microscope and telescope, the minimum spot size of a lithography stepper, and the divergence of every laser and antenna beam ever built.
Diffraction from periodic structures
Now replace one aperture with a row of identical scatterers spaced by , illuminated by a monochromatic plane wave. Each scatterer radiates a spherical wavelet; their sets of concentric circles interfere. In a general direction the contributions carry unrelated phases and cancel; the survivors are the directions where every scatterer arrives in step.
Take a direction at angle to the incident beam (which arrives along the normal). The path difference between wavelets from adjacent scatterers is — read straight off the right triangle whose hypotenuse is . Constructive interference for all at once requires that this be a whole number of wavelengths:
the grating equation. The integer labels the diffraction order:
- — straight ahead, . Zero path difference for any spacing or wavelength: the zeroth order always exists and is not dispersive.
- — the first orders, one deflected up and one down, at . (With normal incidence the geometry is symmetric, so the sign is bookkeeping, not physics.)
- — successively higher orders, each needing an extra wavelength of path per scatterer pair.
Since , order exists only if : the number of observable orders is set by the spacing measured in wavelengths.
Two consequences run in opposite directions, and confusing them is the classic error:
- More scatterers ⇒ sharper beams. With sources the intensity is , : the maxima keep their positions but their width shrinks as . Two slits give broad fringes (P.3.2); a few thousand give the needle-sharp spots that make a grating a precision spectrometer.
- Wider spacing ⇒ more, but closer-packed, beams. Increasing decreases every , crowding the orders toward the axis while admitting more of them. At only survive, widely splayed; by there are nine orders packed into the same angular range.
The wavelength dependence is what makes gratings instruments: depends on , so white light is fanned into a spectrum, and measuring measures . Point the same geometry the other way — known , unknown spacing — and it measures . That inversion is X-ray crystallography, and it is exactly the experiment Davisson and Germer performed with electrons in 1927, using a nickel crystal's atomic rows as the grating: their scattered peak at from rows measured an electron wavelength of , against de Broglie's predicted (P.3.2). A classical instrument, built entirely from the mathematics of this section, is what proved matter is wavelike.
Worked Examples
Example 1 — Two crossed laser beams write an optical lattice
Two beams of a He–Ne laser, , cross at . What is the fringe spacing, and what does it become for counter-propagating beams?
Using with , :
Counter-propagating (): , the tightest spacing two beams of this colour can produce — and the standard geometry for trapping cold atoms one per well. Note the fringes are stationary even though both beams travel at : the envelope carries no time dependence.
Example 2 — Reading a grating, then reading a crystal
(a) A grating with 600 lines/mm () is illuminated at normal incidence by . Which orders exist, and where?
. So , and
plus their negatives and : seven beams, with the third order grazing the plane of the grating. Red light at has , so only orders survive and each sits at a larger angle than green's — the fan of a spectrum.
(b) Same equation, unknown spacing. First-order diffraction of X-rays (Cu K) is observed at . Then
an atomic-scale spacing measured with nothing but an angle and a wavelength. Note the requirement for any first order to exist: this is why you cannot see atoms with visible light — against a lattice gives , no orders beyond , no information. Probing a structure requires a wavelength no larger than the structure.
Hands-on (Python)
import numpy as np
import matplotlib.pyplot as plt
# --- 1. Two plane waves crossing: stationary fringes in space ---------------
lam = 1.0 # wavelength (arbitrary units)
k = 2*np.pi/lam
alpha = np.deg2rad(30.0) # full angle between the beams
# Both wavevectors have length k; they straddle the z-axis by +/- alpha/2.
k1 = k*np.array([ np.sin(alpha/2), np.cos(alpha/2)])
k2 = k*np.array([-np.sin(alpha/2), np.cos(alpha/2)])
x = np.linspace(-6, 6, 600); z = np.linspace(0, 8, 400)
X, Z = np.meshgrid(x, z)
phi = np.exp(1j*(k1[0]*X + k1[1]*Z)) + np.exp(1j*(k2[0]*X + k2[1]*Z)) # t = 0
plt.imshow(np.abs(phi)**2, extent=[x[0], x[-1], z[0], z[-1]],
origin="lower", aspect="auto", cmap="viridis")
plt.xlabel("x"); plt.ylabel("z"); plt.title("Two crossed plane waves")
plt.colorbar(label=r"$|\phi|^2$"); plt.show()
print("predicted fringe spacing:", lam/(2*np.sin(alpha/2))) # 1.932
# Expected: vertical bright bands, uniformly spaced by ~1.93 lambda, running
# along z. They do not move with t -- only the carrier does.# --- 2. Huygens convergence: N point sources filling one aperture ----------
lam, kk = 1.0, 2*np.pi # lambda = 1
d = 6.0*lam # aperture width
x = np.linspace(-12, 12, 500); z = np.linspace(0.15, 16, 400)
X, Z = np.meshgrid(x, z)
fig, axes = plt.subplots(1, 4, figsize=(14, 3.6), sharey=True)
for ax, N in zip(axes, (3, 5, 9, 17)):
ys = np.linspace(-d/2, d/2, N) # source positions in the gap
field = np.zeros_like(X, dtype=complex)
for y0 in ys: # each source: circular wavelet
r = np.hypot(X - y0, Z)
field += np.exp(1j*kk*r)/np.sqrt(r) # 2D wavelet falls as 1/sqrt(r)
ax.imshow(field.real, extent=[x[0], x[-1], z[0], z[-1]],
origin="lower", aspect="auto", cmap="RdBu")
ax.set_title(f"N = {N}"); ax.set_xlabel("x")
axes[0].set_ylabel("z (propagation)")
plt.tight_layout(); plt.show()
# Expected: N=3 lumpy interference; N=9 straight wavefronts appear beyond the
# gap; N=17 converged. In every panel the beam fans out past |x| ~ z*lam/d.# --- 3. Single slit and N-slit grating: envelope, orders, sharpening -------
def slit_pattern(sin_t, d_over_lam):
"""sinc^2 envelope of one slit of width d."""
beta = np.pi*d_over_lam*sin_t
return np.sinc(beta/np.pi)**2 # np.sinc(u) = sin(pi u)/(pi u)
def grating_pattern(sin_t, s_over_lam, N):
"""N equally spaced scatterers: [sin(N delta/2)/(N sin(delta/2))]^2."""
delta = 2*np.pi*s_over_lam*sin_t
num, den = np.sin(N*delta/2), np.sin(delta/2)
out = np.divide(num, den, out=np.full_like(num, N), where=np.abs(den) > 1e-12)
return (out/N)**2
sin_t = np.linspace(-1, 1, 4000)
# (a) diffraction angle scales as lambda/d
plt.figure(figsize=(7, 4))
for d_lam in (1.0, 2.0, 4.0):
plt.plot(np.degrees(np.arcsin(sin_t)), slit_pattern(sin_t, d_lam),
label=f"d = {d_lam:.0f}$\\lambda$ (first zero at "
f"{np.degrees(np.arcsin(min(1/d_lam, 1))):.0f}°)")
plt.xlabel("θ (degrees)"); plt.ylabel("I / I(0)"); plt.legend(); plt.show()
# Expected: first zeros at 90°, 30°, 14.5° -- halving lambda/d halves the angle.
# (b) grating orders and the 1/N sharpening
s_lam = 2.5
plt.figure(figsize=(7, 4))
for N in (2, 5, 20):
plt.plot(np.degrees(np.arcsin(sin_t)), grating_pattern(sin_t, s_lam, N),
lw=1.0, label=f"N = {N}")
for m in range(-int(s_lam), int(s_lam) + 1): # predicted order positions
plt.axvline(np.degrees(np.arcsin(m/s_lam)), color="gray", ls=":", lw=0.7)
plt.xlabel("θ (degrees)"); plt.ylabel("I / I(0)")
plt.title(f"s = {s_lam}$\\lambda$: orders m = 0, ±1, ±2"); plt.legend(); plt.show()
# Expected: peaks land exactly on the dotted lines predicted by sin(theta)=m*lam/s
# (0°, ±23.6°, ±53.1°); N=2 gives broad cos^2 humps, N=20 gives sharp spikes at
# the SAME angles -- N sets the width, s sets the positions.
for s_lam in (1.5, 2.0, 2.5, 3.0, 4.0):
print(f"s = {s_lam}λ -> {2*int(s_lam) + 1} orders, "
f"first at {np.degrees(np.arcsin(1/s_lam)):5.1f}°")
# s = 1.5λ -> 3 orders, first at 41.8°
# s = 2.0λ -> 5 orders, first at 30.0°
# s = 2.5λ -> 5 orders, first at 23.6°
# s = 3.0λ -> 7 orders, first at 19.5°
# s = 4.0λ -> 9 orders, first at 14.5° <- wider spacing: more, tighter beamsExercises
E1 (easy). A plane wave of wavelength travels in the -plane at from the -axis. Write , and find the spacing of the stripes it prints on the plane .
Solution
, so $\mathbf k = k(\sin 30^\circ,\hat{\mathbf x} + \cos 30^\circ,\hat{\mathbf z}) = (6.28\times10^6,\hat{\mathbf x} + 1.088\times10^7,\hat{\mathbf z})\ \mathrm{m^{-1}}$. On the phase varies as , so the period is — twice the wavelength. Stripes on a screen are always wider than , by the factor .
E2 (easy). Show by direct substitution that solves the 3D wave equation under the same condition , and explain why the complex form was worth using anyway.
Solution
and ; also . Substituting gives , hence ✓ — unsurprising, since is the real part of the exponential and the equation has real coefficients. The exponential is worth it because differentiation becomes multiplication by (no sign-flipping between sin and cos), and superposing waves becomes adding complex numbers. In quantum mechanics the complex form stops being a convenience and becomes the state itself (P.4.1).
E3 (medium). A laser of wavelength leaves an aperture of diameter . Estimate the beam diameter after , and after (the Moon). Then explain why a bigger telescope sees finer detail.
Solution
rad. After the beam has grown by roughly ; after , by — which is why lunar laser-ranging returns a vanishing fraction of the light it sends, and why the Apollo experiments used the largest available launch telescope. Same relation, run backwards, for imaging: a telescope of aperture cannot resolve angles below , because each point source arrives as a blob of that width. Doubling halves the blob. Resolution is diffraction.
E4 (medium). Show that for a grating with only the zeroth order exists, and give the physical reading. Then find how large must be to produce at least 5 beams.
Solution
Order requires with , i.e. . If then , so no nonzero integer qualifies: only , the undeflected beam. Physically, adjacent scatterers can never accumulate a full wavelength of path difference no matter how far you swing the detector — the structure is too fine for this wavelength to resolve, and the wave passes as if through a uniform medium (the basis of metamaterials and of anti-reflection sub-wavelength textures). For 5 beams we need , hence : with exactly, (grazing), so for five beams that are actually observable.
E5 (hard). Derive the -slit intensity with , then show its principal maxima occur exactly at the grating angles and that their angular width scales as .
Solution
Scatterer (at height ) contributes an extra path , hence phase . The total amplitude is a geometric series:
using twice; the modulus squared gives the stated . Principal maxima: when both sine factors vanish, and l'Hôpital (or noting each term is ) gives , so . The condition is , i.e. ✓ — independent of . Width: the nearest zero has , i.e. from the peak, so : the peak narrows as while its height grows as — total energy , as conservation demands. Positions from , sharpness from : that is why spectrometers use gratings ruled with – lines.
Checkpoint
- Write the 3D wave equation and show that solves it. What condition on is required, and what is not constrained?
- Two plane waves of the same frequency cross at angle . Describe the resulting pattern and give its spacing. Does it move?
- State Huygens' principle. Why does it predict that a wave leaving a finite aperture cannot stay perfectly collimated?
- Estimate the diffraction angle of an aperture of width , and state which way the relation runs. What is the Fourier-analysis reading of the same estimate?
- Write the grating equation, define the diffraction order, and say how many orders exist for .
Answers
- . Two applications of give , and , so the equation reduces to , i.e. . Only the length of is fixed; the direction is completely free, so every wavevector on the sphere of radius is a solution.
- Straight, stationary intensity fringes perpendicular to , spaced . The pattern does not move: the travelling factor is the carrier , while the envelope has no time dependence.
- Every point of a wavefront is a source of secondary spherical wavelets; the field later is their superposition. Straight-line propagation is the collective cancellation of the wavelets' sideways contributions, so clipping the wavefront at an aperture's edges removes the neighbours that would have done the cancelling — the beam necessarily spreads.
- : larger aperture, smaller angle; smaller aperture, larger angle. In Fourier terms, confining the field to forces a transverse-wavenumber spread , and — diffraction is the Fourier uncertainty relation, the classical ancestor of .
- ; is the diffraction order, the number of whole wavelengths of path difference between adjacent scatterers. For , , so — seven beams.
Further Reading
- [Hec] Hecht, Optics, Ch. 9–10 — interference, Huygens–Fresnel, single-slit and grating diffraction; the definitive classical treatment of everything in this lesson.
- [ER] Eisberg & Resnick, §3-1 — the same diffraction mathematics turned into the detector that revealed matter waves.
- [Gri] Griffiths & Schroeter, §1.6 — how the Fourier reading of becomes the uncertainty principle.
← Prev: Waves & the Wave Equation · Up: Pre-Term · Next: Lagrangian Mechanics →