008 / LIGHT AND FILMS
Where does the rainbow in a puddle come from?
A gasoline film is hundreds of times thinner than a hair. Light reflects from its top and from the water beneath, and the two waves add up. Change the thickness, the angle and the light, and see which colours vanish and which remain.
Find the cancellation
Move the thickness until the sum is almost flat: the waves cancel. Now change the wavelength and for another colour there is no cancellation. That is why the film is coloured: at one thickness one colour fades and the rest remain.
Theory behind the experimentWhy a thin gasoline film is coloured, why it shows many colours rather than one, and why they drift when you move your headPlain explanation, equations and how the model works
In plain words
A drop of gasoline on a puddle does not stay a drop. The water pulls its edges harder than the gasoline holds itself together, and the drop spreads into a film a few hundred nanometres thick. That is less than a micron, about the wavelength of visible light.
Light hitting such a film reflects twice: off the top of the gasoline and off the water below it. The second wave travels an extra path inside the film, down and back up. There is a catch: the first wave flips when it reflects off the gasoline, turning a crest into a trough, while the second reflects off the water without flipping. So if the extra path is a whole wave, crest meets trough and the reflection fades. If it is half a wave, that makes up for the flip, the crests line up and the reflection gets stronger.
The extra path is the same for every colour, but their wavelengths differ. So at one thickness blue can cancel while red is reinforced. White light without blue looks yellow; without green it looks purple. The film takes on the colour of what is left of the white.
Why so many colours: the spot is not equally thick everywhere. It is thicker in the middle and thinner towards the edge. Each thickness has its own colour, so the spot draws rings. Look from a different angle and the ray crosses the film on a slant, the path changes, and every colour shifts.
The bottom of the puddle plays no part in the interference. It is millimetres away, thousands of times the wavelength, and light from there adds to the first two waves without any order. Only two close surfaces make the fringes. The bottom still affects how they look: dark asphalt sends little light back, so the colours over it have more contrast than they would over a light bottom.
Try it yourself
- In “Two waves”, move the thickness until the sum of the waves at the bottom is almost flat. Now change the wavelength: for another colour there is no cancellation.
- Turn on “True strength of wave 2”. Little light reflects from the water under the gasoline, so wave 2 can never cancel the light completely. That is why puddle colours are pastel.
- In “Colour and thickness”, run along the scale from 0 to 3000 nm. The colours start bright, fade, and by 2–3 µm are almost white. With the sodium lamp this does not happen: the stripes stay.
- Pick “Soap film” and take the thickness down towards zero. The film turns black, as a bubble does just before it pops.
- Pick “Lens coating” and find the thickness near 100 nm where the reflection almost vanishes.
- In “Puddle”, switch on the sodium street lamp. The rainbow becomes yellow and dark rings.
Physics and equations
Light falls from air () onto a film of index and thickness , with a medium below. Inside the film the ray travels at the angle given by Snell’s law:
The ray reflected from the lower boundary travels an extra path and is shifted in phase by
How much light each boundary reflects is given by the Fresnel equations (here for polarisation):
The sign matters. For gasoline on water (, ) while : the wave flips only at the top boundary. That adds another half wave, so the condition for cancellation reads
A soap film has air on both sides, again one flip, and as the waves cancel completely. An anti-reflection layer on glass flips at both boundaries, and the cancellation moves by half a wave.
Summing all the reflections inside the film gives the exact Airy formula:
When the reflections are weak, the first two waves are enough:
This is the sum shown in “Two waves”. For gasoline on water : the second wave is about 7 times weaker than the first. The film’s reflectance swings between roughly 2 and 4%, and the light never goes out completely.
Where the colour comes from
Sunlight contains every wavelength. The film reflects each one with its own , and the eye reduces the whole spectrum to three numbers:
Here is the spectrum of the source and are the CIE 1931 standard observer curves. The colour on the screen is computed from . As the film gets thicker, the spectrum gains more and more cancellation bands. In white light, beyond 1–2 µm they come so close together that every colour is both cancelled and reinforced at neighbouring points, and the colour gradually fades to almost white. That is why a thick film looks colourless in sunlight. With nearly single-colour light, such as a sodium lamp, the fringes stay visible on thick film too.
When you tilt your view, drops, the extra path gets shorter, and every point of the spot looks like a thinner film.
More: why the drop spreads
A drop on water spreads if the spreading coefficient is positive:
Here mN/m is the surface tension of water, mN/m that of gasoline, and the tension of the gasoline–water boundary, about 40-50 mN/m. The water pulls the edge of the drop harder than the other two boundaries pull it back, and the drop spreads until it is very thin. The profile of such a spot is a solution of the thin-film equation:
A 30 µL drop over a circle of radius 12 cm is about 900 nm thick in the middle. On the Bonn Agreement scale used for oil spills, a rainbow sheen means 0.3-5 µm and a silvery sheen 0.04-0.3 µm.
How the model works
The film’s reflectance uses the exact Airy formula with every internal reflection, for unpolarised light as the mean of and . Refractive indices follow Cauchy’s formula : water 1.33, gasoline about 1.40, mineral oil 1.47, magnesium fluoride 1.38, glass 1.52 at 550 nm. Under the puddle there is dark asphalt reflecting 5%; its light adds to the film without interference.
Colour uses the CIE 1931 2° tables at 1 nm steps, with D65 as daylight. The sodium lamp is the 589.0 and 589.6 nm doublet; the three lasers are 638, 532 and 450 nm mixed to give white. The real difference in reflectance is only a few per cent, so the contrast is stretched: one black point and one exposure for the whole scale, with no per-colour tuning.
In “Puddle” every pixel knows its film thickness and the angle it is seen at. When one pixel covers several fringes, as on a fresh thick drop, it shows their average colour, as a camera would. For speed the spectrum here uses 5 nm steps. The sky is overcast, darker towards the horizon. The spot keeps the volume of gasoline constant; the spreading and evaporation speeds are chosen for clarity.
The calculation on the page matches the reference Python code: the Fresnel and Airy formulas, an independent transfer-matrix calculation, energy conservation and the final colours are all checked.
Sources and further reading
HyperPhysics: oil film ↗: a short explanation with a picture.
Wikipedia: Thin-film interference ↗: formulas and examples.
CIE: 1931 colour matching functions ↗: the tables the colour is computed from.
Bonn Agreement ↗: the scale linking oil film thickness to its appearance.