Skip to main content
Sandbox Physics

Optics 059 · Diffraction, Fourier optics, and computational imaging

Diffraction-Grating Spectrometer

What sets how finely a grating spectrometer can separate two close wavelengths? Resolving power is the number of illuminated grooves times the diffraction order: light twice as many grooves and you separate lines half as far apart. A wide slit or large pixels smear each line and waste that. Blaze tilts the groove faces to send most light into one order. Different orders can land at the same angle, so a filter or a known order is needed to identify the wavelength.

Light follows the front-side path of a reflection-grating spectrometer. Resolve the sodium lines, change the number of grooves and the entrance slit, inspect the blaze facets, calibrate the detector pixels and use a filter to diagnose overlapping orders.

Interactive modelDiffraction-Grating Spectrometer
Central angle / ideal resolving power βm,Rideal\beta_m,R_{\rm ideal}0.500.50
Rayleigh limit / slit width in wavelength δλR,δλslit\delta\lambda_R,\delta\lambda_{\rm slit}50%50\%
Illuminated grating length / sensor pitch L,pL,p0.00π0.00\pi
Model regimevalid model regime\text{valid model regime}

Physics tutorial

Audit the physics of Diffraction-Grating Spectrometer

BackgroundA grating turns colour into angle by matching the phase between neighbouring grooves: d(sin⁡α+sin⁡β)=mλd(\sin\alpha+\sin\beta)=m\lambda. A reflection grating does not send these rays through its opaque back. The source and the camera that receives the diffracted light are both on the side the outward normal points to.

Why it mattersWhat sets how finely a grating spectrometer can separate two close wavelengths?

Start with the essentials

Focus question
What sets how finely a grating spectrometer can separate two close wavelengths?
One-sentence intuition
A given angle does not pin down a unique wavelength: m1λ1=m2λ2m_1\lambda_1=m_2\lambda_2. Different wavelengths in different orders can land on the same pixel. You need to know the order, or use an order-sorting filter, before you assign a wavelength.

Core mathematical model

Reflection geometry with signed angles

sin⁡βm=mλ/d−sin⁡αβ0=−α∣mλ/d−sin⁡α∣≤1\begin{aligned}\sin\beta_m&=m\lambda/d-\sin\alpha\\\beta_0&=-\alpha\\|m\lambda/d-\sin\alpha|&\le1\end{aligned}

The normal is the positive laboratory horizontal axis, and the grooves are vertical. The direction toward the source and the outgoing direction both have positive normal components, while the incoming propagation direction points toward the grating. The zero order follows ordinary reflection. An order whose sine falls outside this bound has no propagating ray.

Peaks from summing a finite array of grooves

t=dλ(sin⁡α+sin⁡β)AN(t)=1N∑j=0N−1e2πijtJλ=Eλ ∣AN∣2\begin{aligned}t&=\frac d\lambda(\sin\alpha+\sin\beta)\\A_N(t)&=\frac1N\sum_{j=0}^{N-1}e^{2\pi ijt}\\J_\lambda&=E_\lambda\,|A_N|^2\end{aligned}

All the whole, uniformly illuminated grooves add their complex amplitudes. An integer phase gives a principal maximum, and the first null lies one over the groove count away. Every order, its side lobes and its width come from this one array sum, multiplied by a scalar facet envelope. The normalization is fixed; it does not follow whichever pixel is currently brightest.

Blaze is reflection from the groove facets

α+βb=2φb=dcos⁡αcos⁡(α−φ)Eλ=k sinc⁡2 ⁣(πbλS)S=sin⁡(α−φ)+sin⁡(β−φ)\begin{aligned}\alpha+\beta_b&=2\varphi\\b&=d\frac{\cos\alpha}{\cos(\alpha-\varphi)}\\E_\lambda&=k\,\operatorname{sinc}^2\!\left(\frac{\pi b}{\lambda}S\right)\\S&=\sin(\alpha-\varphi)+\sin(\beta-\varphi)\end{aligned}

The sawtooth is drawn with equal magnification in both directions. It has a right-angle apex, and the blaze angle sets its facet normal. The Casini–Nelson scalar facet integral uses the illuminated length of the facet, not its projected width. A shadow factor weakens outgoing directions that neighbouring facets hide. This relative scalar response is not a calibrated efficiency for a metal grating, and it does not solve for polarization.

Ideal resolution is only one limit

Rideal=∣m∣NδλR=λ/(∣m∣N)δλslit≃dcos⁡α∣m∣wfc\begin{aligned}R_{\rm ideal}&=|m|N\\\delta\lambda_R&=\lambda/(|m|N)\\\delta\lambda_{\rm slit}&\simeq\frac{d\cos\alpha}{|m|}\frac w{f_c}\end{aligned}

The Rayleigh spacing applies to an ideal narrow line and a slit of zero width. For a real slit, points across it are uniform and incoherent; each gives its own incidence angle through the ideal collimator, and the intensities are averaged. The slit wavelength width shown is the small-angle geometric full width; it is not added in quadrature to the Rayleigh spacing. The recorded profile also includes averaging over finite pixels.

Calibrate the actual receiving plane

u=ftan⁡(β−βc)λm(u)=dm [sin⁡α+sin⁡β(u)]β(u)=βc+arctan⁡(u/f)\begin{aligned}u&=f\tan(\beta-\beta_c)\\\lambda_m(u)&=\frac d m\,[\sin\alpha+\sin\beta(u)]\\\beta(u)&=\beta_c+\arctan(u/f)\end{aligned}

The camera arm follows the central wavelength in the selected order. The normal of its 12 mm sensor points back toward the camera pupil. The data row and the physical sensor face use the same 4096 pixel records. Enlarged curves stay outside the apparatus, and the colour bands repeat a one-dimensional record vertically so it is easier to see.

Overlapping orders, sorted before the grating

λ2=λ1/21λ1=2λ2Jrecord=∑ℓwℓT(λℓ) ⟨Jℓ⟩\begin{aligned}\lambda_2&=\lambda_1/2\\1\lambda_1&=2\lambda_2\\J_{\rm record}&=\sum_\ell w_\ell T(\lambda_\ell)\,\langle J_\ell\rangle\end{aligned}

The half-wavelength pair is a deliberately synthetic source, not a sodium emission spectrum. Its long wavelength in first order and its short wavelength in second order leave at the same angle. A perfect long-pass filter removes the short-wavelength light before it reaches the grating, and the data for the surviving channel stay the same. The infrared and ultraviolet are shown in false colour; they are not visible light.

Common difficulties

More grooves do not fix every blur

Typical misconceptionThe ideal resolving power set by the groove count guarantees that two lines will be separated, even with a wide entrance slit.

Better mental modelLook at the acquired pixels. Slit averaging, sensor pitch and the chosen angular window can each set the limit. A calculated ideal resolving power is not the measured resolution of an instrument.

Run the experiment

  1. 01

    Scene 1: Resolve sodium doublet

    Use sodium. Compare a zero-width slit with a wide slit, change the groove count, and look at the raw profile at the center.

    What to observe: More grooves narrow the peaks of the finite array, but a wide slit can still merge the sodium doublet.
  2. 02

    Scene 2: Blaze without moving lines

    Use blaze. Change the facet angle and look at the groove profile, drawn with equal magnification in both directions; compare it with the fixed tick for the ideal line.

    What to observe: Blaze changes the facet normal and the relative envelope, but the line positions from the grating equation stay where they are.
  3. 03

    Scene 3: Overlapping orders and filter

    Use overlap. Read the candidate wavelengths for each order at the central pixel, insert the 500 nm long-pass filter, and compare both source channels.

    What to observe: The filter removes a source channel; it does not delete a diffraction order by number. Overlap means that one pixel cannot tell which order it is seeing.

Related experiments and articles

Continue exploring

Aperture, propagation, measurement

Change one physical assumption at a time: slit count, coherence, aperture shape or propagation distance.

  1. LabDiffraction StudioStart with a focal-plane scan of one, two or many slits.
  2. LabYoung Double-Slit BenchAdd unequal amplitudes and partial coherence to two slits.
  3. LabAperture Diffraction StudioDraw a two-dimensional opening and inspect its complement.
  4. LabHuygens–Fresnel Propagation LabMove the receiving plane from near field toward far field.
  5. You are hereDiffraction-Grating SpectrometerConnect groove spacing and illuminated count to spectral resolution.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy