Difficulty: Intermediate | Prerequisites: Part 1 of these notes (light as EM wave, index of refraction, double-slit interference).
Diffraction gratings and thin films take the double-slit interference idea and apply it to more practical situations. A diffraction grating uses hundreds or thousands of slits to produce extremely sharp, well-separated bright fringes, which is how scientists measure the exact wavelengths of light emitted by atoms. Thin-film interference explains the colours you see in soap bubbles, oil slicks, and anti-reflective coatings. Both topics rest on the same core principle: waves arriving at the same point either reinforce or cancel depending on their path-length difference.
A diffraction grating is a multi-slit device that uses the same bright-fringe equation as the double slit, but produces much narrower, brighter fringes because hundreds of waves reinforce at once. Thin-film interference occurs when light reflects off the front and back surfaces of a thin layer (soap film, lens coating), and whether you get constructive or destructive interference depends on the film thickness, the wavelength, and whether each reflection introduces a phase change.
Diffraction grating
An optical element with a large number of equally spaced parallel slits (often hundreds or thousands per millimetre). Think of it as a double slit scaled up dramatically, which produces much sharper interference fringes.
Spectroscopy
The science of measuring the wavelengths of light emitted or absorbed by atoms and molecules, typically using a diffraction grating. In simple terms, it is how scientists figure out what elements are present in a star or a gas by looking at which colours of light appear.
Thin-film interference
Interference caused by the partial reflection of light from the front and back surfaces of a thin transparent layer. This is what produces the swirling colours in soap bubbles and oil slicks on wet roads.
Phase change on reflection
When a light wave reflects off a boundary where the index of refraction increases (going from a lower-n material to a higher-n material), the reflected wave is inverted. This inversion is equivalent to adding an extra half-wavelength to the path. Think of it as the wave flipping upside down when it bounces off a denser medium.
Anti-reflective coating
A thin film applied to a lens or glass surface, designed so that reflected waves from the front and back of the coating cancel each other through destructive interference. The result is that more light passes through instead of reflecting back.
A diffraction grating has N slits, all equally spaced a distance d apart. All emerging waves start in phase (crests and troughs arrive at each slit simultaneously).
After a short distance the waves from all slits overlap and interfere.
The condition for bright fringes is the same as for the double slit: sin(theta_m) = m (lambda / d), where m = 0, 1, 2, ...
The position of each bright fringe on a screen at distance L: y_m = L tan(theta_m). Note: for gratings, the angles can be large, so you use tan rather than the small-angle approximation.
As the number of slits N increases, the bright fringes become narrower and brighter. More waves reinforcing at the same point produce a sharper peak.
The slit spacing d is found from the grating specification. For example, a grating with 1000 slits per mm has d = 1 mm / 1000 = 1.0 x 10^-6 m.
Spectroscopy
A diffraction grating can separate light into its component wavelengths because different wavelengths produce bright fringes at different angles.
Sodium light, for instance, has two closely spaced yellow lines at about 589.0 nm and 589.6 nm. A good grating can resolve them as separate fringes.
When light hits a thin transparent film (such as a soap bubble or a lens coating), part reflects off the top surface and part off the bottom surface. These two reflected waves then interfere.
Phase changes on reflection
A reflected wave is inverted (undergoes a phase change equivalent to an extra half-wavelength) when the light moves from a lower-n medium to a higher-n medium.
A reflected wave is not inverted when the light moves from a higher-n medium to a lower-n medium.
You must check both surfaces to count how many phase changes occur: 0, 1, or 2.
Interference conditions
The wave that reflects off the bottom surface travels an extra distance of 2t through the film (down and back up), where t is the film thickness. The wavelength inside the film is lambda / n.
With 0 or 2 reflective phase changes (they cancel out):
Constructive: 2t = m (lambda / n), where m = 0, 1, 2, ...
Destructive: 2t = (m + 1/2)(lambda / n)
With exactly 1 reflective phase change:
Constructive: 2t = (m + 1/2)(lambda / n)
Destructive: 2t = m (lambda / n)
The key step in any thin-film problem is to determine how many phase changes occur, then pick the correct equation.
Worked example: anti-reflective coating
A film with n = 1.38 is coated onto a plastic lens with n = 1.55. Both reflections go from lower n to higher n, so both get a phase change (2 total). Use the destructive interference condition for 0 or 2 phase changes: 2t = (m + 1/2)(lambda / n). The thinnest film corresponds to m = 0, giving t = lambda / (4n) = 550 / (4 x 1.38) = 100 nm.
\sin\theta_m = m\left(\frac{\lambda}{d}\right) \quad (\text{diffraction grating bright fringes})y_m = L\tan\theta_m \quad (\text{positions of grating bright fringes})2t = m\,\frac{\lambda}{n} \quad (\text{constructive, 0 or 2 phase changes; destructive, 1 phase change})2t = \left(m + \tfrac{1}{2}\right)\frac{\lambda}{n} \quad (\text{destructive, 0 or 2 phase changes; constructive, 1 phase change})Diffraction gratings are the working heart of spectrometers used in chemistry labs, astronomy, and telecommunications. When you see a rainbow pattern reflected off a CD or DVD, you are looking at diffraction from the disc's spiral track acting as a grating. Anti-reflective coatings on eyeglasses, camera lenses, and smartphone screens all use thin-film destructive interference to reduce glare and increase the light that passes through.
Students often mix up the double-slit and grating formulas. The bright-fringe angle condition is identical (sin theta = m lambda / d), but for a grating the angles are typically large enough that you cannot use the small-angle approximation. Use y = L tan(theta), not y = m lambda L / d.
A frequent error in thin-film problems is forgetting to count the number of phase changes. You must check each reflecting surface independently: does the index increase or decrease at that boundary?
Students sometimes use the vacuum wavelength instead of the wavelength in the film. Inside a thin film of index n, the relevant wavelength is lambda / n.
It is common to think the thinnest possible film always corresponds to m = 1. For the formula 2t = (m + 1/2)(lambda / n), the thinnest film is m = 0, giving t = lambda / (4n).
Expect grating problems that give slits per mm and ask you to find d, then calculate wavelength from a measured fringe position. Watch the unit conversion carefully.
Thin-film problems almost always require a two-step approach: first determine the number of phase changes (0, 1, or 2), then pick the correct equation.
Be ready for questions that ask for the minimum film thickness. This is nearly always m = 0 in the constructive or destructive formula, not m = 1.
Conceptual questions may ask you to explain why a grating produces sharper fringes than a double slit, or why a soap bubble shows different colours at different thicknesses.
True or false: A diffraction grating with more slits produces broader, dimmer fringes. (False, more slits produce narrower, brighter fringes)
Fill in the blank: A grating has 500 slits per mm. The slit spacing d is ___ m. (2.0 x 10^-6 m)
True or false: A reflected wave is always inverted. (False, only when reflecting off a boundary where n increases)
Fill in the blank: In a thin film, the extra distance travelled by the wave reflecting off the back surface is ___. (2t)
True or false: For an anti-reflective coating, you want destructive interference of the reflected waves. (True)
Q: Light from a sodium lamp passes through a diffraction grating with 1000 slits per mm. A bright fringe is observed at 72.88 cm from the central maximum on a screen 1.0 m behind the grating. What is the wavelength?
A: d = 1 x 10^-3 / 1000 = 1.0 x 10^-6 m. theta = arctan(0.7288 / 1.0) = 36.085 degrees. For m = 1: lambda = d sin(theta) = (1.0 x 10^-6) sin(36.085) = 589 nm.
Q: A thin film of material (n = 1.38) coats a plastic lens (n = 1.55). What is the thinnest film that will minimise reflection for lambda = 550 nm?
A: Both reflections encounter an increase in n, so there are 2 phase changes (which cancel). Use destructive interference with 0 or 2 phase changes: 2t = (m + 1/2)(lambda / n). Thinnest film is m = 0: t = (1/2)(550 / (2 x 1.38)) = 100 nm.
Q: A soap film (n = 1.33) in air shows constructive interference for green light (lambda = 530 nm). How many phase changes occur at its surfaces?
A: The top surface reflects from air (n = 1.00) to soap (n = 1.33), so n increases: 1 phase change. The bottom surface reflects from soap (n = 1.33) to air (n = 1.00), so n decreases: no phase change. Total: 1 phase change.
Q: Why does a diffraction grating produce sharper fringes than a double slit?
A: With N slits, constructive interference requires all N waves to arrive perfectly in phase. Any slight departure from the exact angle causes the waves to fall out of step, so the range of angles over which constructive interference occurs is much narrower. The result is sharper, brighter peaks.
Diffraction gratings extend the double-slit interference from Part 1 to many slits. The thin-film equations rely on the index of refraction and wavelength-in-a-material concepts from Section 17.1. Phase changes on reflection connect to the wave behaviour at boundaries covered in Chapter 16. Single-slit diffraction (Part 3 of these notes) explains why each bright fringe from a grating has a finite width, and ultimately sets a limit on how many orders you can observe.
Diffraction grating, multi-slit interference, N slits, spectroscopy, spectrometer, slits per mm, grating equation, thin film interference, thin film optics, soap bubble colours, anti-reflective coating, AR coating, phase change on reflection, reflection phase shift, constructive interference thin film, destructive interference thin film, minimum thickness, oil slick colours, Newton's rings, Chapter 17, General Physics, wave optics