Thin Film Interference
Thin Film Interference
Thin film interference explains the rainbow colors in soap bubbles, oil slicks, and anti-reflective coatings. It arises because light reflects from both the top and bottom surfaces of a thin transparent film.
Phase Shifts on Reflection
A key subtlety: light undergoes a phase shift of (half a wavelength) when it reflects off a medium with a higher refractive index. No phase shift occurs when reflecting off a lower-index medium.
| Reflection | Phase shift |
|---|---|
| Low- → High- | (half wavelength) |
| High- → Low- | None |
Condition for Constructive Interference
For a film of thickness and refractive index surrounded by air (), light reflects from the top surface (with phase shift) and the bottom surface (no phase shift). The one net phase shift from reflection means the condition for constructive interference is:
This simplifies for (minimum thickness):
General Thickness for Constructive Interference
For order :
However, a cleaner convention used in many textbooks counts the minimum as order giving:
And subsequent maxima at:
(where gives the second constructive maximum).
Example: For in glass ():
Your Task
Implement the two formulas. Wavelength inputs are in nm; return thickness in nm.