Animations › How does a rainbow work?
How does a rainbow work?
Sunlight refracts into a raindrop, is partly reflected at the back and refracts out again. Rays traced exactly with Snell's law show why the light comes back brightest at about 42°, why red is on the outside of the bow, and why a fainter second bow sometimes appears outside it. C.3 Refraction and Snell's law
What the animation shows
The refractive index of water is about 1.33. It changes slightly with the colour of the light (dispersion, beyond the course): about 1.331 for red light and 1.343 for violet. The raindrop is drawn hugely enlarged, and the light is slowed down enormously.
- A rainbow appears when the Sun is behind you, fairly low in the sky (lower than 42°), and rain is falling in front of you.
- Each raindrop is a tiny sphere of water. To see what a drop does to sunlight, the animation zooms in on one.
- Sunlight refracts as it enters the drop, bending towards the normal (Snell's law, $n_1 \sin\theta_1 = n_2 \sin\theta_2$).
- The ray drawn meets the drop at $i = 59.5°$. Inside, $$\sin r = \frac{\sin 59.5°}{1.331} = 0.647$$ so $r = 40.3°$.
- At the back of the drop most of the light refracts out through the back, but a little (about 6%) is reflected.
- This is not total internal reflection. The ray meets the back of the drop at $40.3°$ to the normal (the triangle inside the drop is isosceles, so this equals $r$), which is less than the critical angle of water: $\sin c = \dfrac{1}{1.331}$, so $c = 48.7°$.
- The reflected light refracts again as it leaves, heading back towards the side the sunlight came from.
- It comes out turned back through 137.6°: 42.4° away from heading straight back towards the Sun.
- Predict: sunlight falls on the whole drop. Do all the rays come back out at 42°?
- No: each ray comes out at a different angle, depending on where it hits the drop.
- For red light ($n = 1.331$), none comes out at more than 42.4°, and near that angle many rays come out almost together, so the light is brightest there. The graph counts rays equally spaced across one slice of the drop, for each quarter of a degree.
- Rays that hit the lower half of the drop do the same, mirrored. So each drop sends a bright cone of light back at about 42°.
- The refractive index of water depends slightly on the colour of the light: this is dispersion (beyond the course).
- Red light ($n = 1.331$) comes out brightest at 42.4°. Violet light ($n = 1.343$) is bent a little more and comes out brightest at 40.6°.
- The view from the side: sunlight arrives in parallel rays from behind you.
- The point directly opposite the Sun, where the shadow of your head falls, is the antisolar point.
- Drops 42.4° from that direction send red light to your eye; drops 40.6° from it send violet. The other colours from each drop miss your eye.
- So red is on the outside of the bow and violet on the inside. Each drop sends you one bright colour (and weaker light of other colours), and millions of drops make the bow.
- All the drops at about 42° round the antisolar point form a circle. The ground hides the lower part, so you see an arc; from an aeroplane you can see a full circle, with the plane's shadow at its centre.
- Some light is reflected twice inside a drop before it leaves. Those rays bunch at 50.4° (red) to 53.5° (violet).
- They make a fainter secondary bow outside the main one, with its colours reversed: red inside, violet outside.
- Inside the main bow the sky is brighter, because drops there send you once-reflected light at smaller angles.
- Between the two bows the sky is darker (Alexander's band): no once-reflected light comes from more than 42.4°, and no twice-reflected light from less than 50.4°.
How it is drawn: every ray is traced exactly through a sphere with Snell's law, so each angle comes from the calculation. The largest angle for once-reflected light is 42.37° for red and 40.65° for violet; the smallest for twice-reflected light is 50.37° for red and 53.48° for violet. The colours in between use refractive indices from a standard formula through the red and violet values. In the sky, the Sun is 15° above the horizon behind you, so the top of the main bow is $42.4° - 15° = 27.4°$ up, and each bow is drawn as the exact cone of directions at its angle round the antisolar point. Simplified: the graphs count rays without including how much of the light is reflected (about 6% at the back of the drop for the main bow, less again after two reflections), and real raindrops are not quite spherical. Beyond the course: dispersion, the 6% (from Fresnel's equations), and the fact that rainbow light is polarised.
Read more in C.3 section 2: reflection and transmission, section 3: refraction and Snell's law and section 4: critical angle and total internal reflection.