Close

Explaining the Grating Equation: The Tale of the Negative Sign

A project log for JASPER: VIS-NIR SPECTROMETER

Grating-based VIS-NIR Spectrometer: Customizable for spectral range, resolution, SNR, and detector options aided by a software design tool

tony-francisTony Francis 08/20/2025 at 18:370 Comments

If you've spent any time working with diffraction gratings, you may have seen the grating equation written in two seemingly different ways: with a plus sign, mλ=d(sinα+sinβ), and with a minus sign, mλ=d(sinα−sinβ). This can be confusing, but the two forms are actually just different representations of the same underlying physics, determined by how you define your angles and the relative positions of the incident and diffracted beams

Let's break down how the negative sign arises by looking at the fundamental principle of constructive interference, which occurs when the total optical path difference (OPD) between diffracted rays is an integer multiple (m) of the wavelength (λ).

Path Difference Before and After the Grating

To understand the negative sign, we need to consider the optical path difference in two stages, as shown in the diagram below.

  1. Before the Grating: Imagine a plane wavefront incident on the grating at an angle α to the grating's normal. The path difference between two parallel rays hitting adjacent slits is dsinα. This is the extra distance the second ray must travel before it reaches the plane where the first ray hits its slit.
  2. After the Grating: After passing through the grating, the rays leave at a diffraction angle β. For these diffracted rays, there is an additional path difference of dsinβ. This is the difference in path length after the slits.

The Role of Subtraction

The key to the negative sign lies in the relative directions of the incident and diffracted beams.

When the incident and diffracted beams are on the same side of the grating normal, the path length difference after the grating (dsinβ) actually reduces the total optical path difference. In other words, the effective path length after the grating must be subtracted from the path length before the grating. This is exactly what the equation mλ=d(sinα−sinβ) represents.

Reconciling the Two Equations

So, when do you use the plus sign? The equation mλ=d(sinα+sinβ) is considered the general form. This works universally if you apply a consistent sign convention to your angles. For example, if you define angles on one side of the grating normal as positive and those on the other as negative, the signs of the angles themselves will correctly account for their position relative to the normal.

By understanding the physics of optical path difference and applying a consistent sign convention, both forms of the grating equation lead to the same result. The negative sign is a helpful reminder that when the incident and diffracted beams are on the same side of the normal, you must subtract one path length from the other.

Discussions