applets.

Rainbows

← All apps

About Rainbows

A rainbow is not an object hanging somewhere in the rain. It is light coming back to you from millions of falling drops, and it always sits on a circle about 42° round the point exactly opposite the sun: the shadow of your own head. Someone standing beside you gets light from different drops, so they see a different bow, and as you walk the bow walks with you. That is why you can never reach its end.

THE SKY: a view away from the sun across wet fields, with rain falling ahead. Move the sun height and the circle's centre sinks below the horizon by the same amount, so the bow sinks too: with the sun higher than about 42° the main bow is wholly below the horizon (you can still see one from a plane, or in a garden hose's spray below eye level). The fainter second bow at about 51° has its colours the other way round, and the sky between the two bows, Alexander's dark band, is darker than the sky inside the main bow. A low sun shines through more air, so the page makes its light redder, and a bow at sunset comes out red and orange. Right at the horizon that light is also very weak, so the scene is lit mostly by the grey daylight from the rest of the sky and the bow fades. WHO SEES IT is the view from the side: each of two people gets the light from their own set of drops. The drop size buttons are the same ones as on DROP SIZE.

ONE DROP: the classic experiment. Sunlight comes through a hole in a white card and lights a glass globe of water, which stands in for one raindrop. Each ray bends going in, reflects off the back of the globe and bends again coming out. Move the ray slider to follow one ray. The chart shows where each ray comes back, against how far from the middle it went in: the angle climbs, stops at about 42° and turns back, so lots of rays come back at very nearly that angle. That pile-up is the bow. With COLOURS on, each colour bends by its own amount, so each turns back at its own angle, red outside and violet inside. SHINE sends 2,000 rays through, one at a time, and the card builds up the ring of colour that the drop throws back round the hole. TWO reflections give the second bow.

DROP SIZE: light is a wave, and in small drops the waves on either side of the bow's ray interfere. Big raindrops give a narrow, vivid bow; smaller drops spread it out, add faint pink and green bands just inside it (supernumerary bows), and at the size of fog droplets the colours overlap into a broad, nearly white fogbow, a little smaller than a rainbow. The chart shows the brightness for red, green and blue light; tick AIRY to lay Airy's 1838 theory over the full calculation.

THE STORY

Alexander of Aphrodisias, a Greek commentator on Aristotle writing around AD 200, described the dark band between the two bows, which still carries his name. Around 1300, two scholars working independently, Theodoric of Freiberg in Germany and Kamāl al-Dīn al-Fārisī in Persia, both had the same idea: fill a round glass vessel with water and treat it as a giant raindrop. Both found that the light of the main bow enters a drop, reflects once inside and comes out, and that the second bow comes from two reflections.

René Descartes, in Les Météores (1637, one of the essays published with his Discourse on Method), traced ray after ray through a sphere by calculation and found that they crowd together near 42° for the main bow and about 51.5° for the second. His explanation of the colours themselves did not last. Isaac Newton's did: white light is a mixture of colours, and water bends each by a different amount. In his Opticks (1704) he worked out that the main bow runs from about 42° for red to a little over 40° for violet.

Rays alone cannot explain the faint extra bands sometimes seen just inside a bright bow. Thomas Young explained them in 1804 as waves interfering, one of his arguments that light is a wave. George Airy, Astronomer Royal since 1835, worked out the light near the bow as a wave pattern in 1838, in "On the intensity of light in the neighbourhood of a caustic", introducing the function now named after him. Gustav Mie's exact theory of light scattered by a sphere followed in 1908; with a computer it describes a rainbow from first principles.

HOW IT WORKS

Water: the refractive index of pure water at 20 °C from Daimon and Masumura's 2007 formula, divided by air's own index (Ciddor 1996) because the light arrives from air: from 1.3432 at 400 nm (violet) to 1.3302 at 700 nm (red). Rays: Snell's law at each surface; the share of light kept at each surface comes from the Fresnel equations. Descartes' ray, the one that turns back, enters where cos² i = (n² − 1) / 3 for one reflection and (n² − 1) / 8 for two. The flat drawing is a slice through the middle of the drop, with its rays spaced evenly across it. SHINE spreads its rays over the drop's round face instead, so more go in near the edge, as they do in sunlight. The card is shown at the same exposure for ONE and TWO, so the second bow's ring really is fainter: at its brightest it gets about a twelfth of the light of the first bow's. Angles are measured from straight back towards the sun (the direction of the shadow of your head, seen from the drop): a ray at 42° has been turned through 138°.

Waves: DROP SIZE and the colours on THE SKY come from Mie theory, the exact answer for a perfectly round drop, worked out every 10 nm from 400 to 720 nm and averaged over the width of the sun's disc (0.53°, treated as evenly bright). The sums take up to 20 seconds for 2 mm drops, so they were done once and stored with the page; the file that does them is included with the page's code. Airy's theory, drawn with AIRY, comes from the shape of the wave leaving the drop near Descartes' ray; it is a very good approximation for raindrops and noticeably wrong for fog, which is the point of comparing them.

Colour: sunlight above the air (ASTM G173), dimmed and reddened by the air on its way down (Rayleigh scattering by air molecules, ozone and a light haze) for the sun's height, then turned into screen colours with the CIE 1931 colour-matching functions, as on this site's Blue Sky page. On THE SKY the exposure follows the light, as your eyes do, so a low sun makes the scene redder rather than darker.

WHAT THE PAGE LEAVES OUT

Every drop in a picture is the same size and perfectly round. Real rain mixes sizes, which smooths away most supernumerary bands, and drops bigger than about 1 mm are noticeably flattened as they fall, which changes the bow. That is why supernumerary bands are usually seen near the top of a bow, made by light passing through the flattened drops: Alistair Fraser showed in 1983 that there, drops of different sizes, around half a millimetre across, put their bands in nearly the same place. Only light scattered by one drop is followed, not light bounced between drops. The rain fills the whole view, and how bright the bow looks against the cloud is the page's choice; so is the light haze. The landscape is a picture tinted by the computed colour of the sunlight. Bows from three or more reflections inside the drop exist but are very faint (the third and fourth lie on the sun's side of the sky), and are not drawn.

FURTHER WATCHING AND READING

A rainbow is a circle of light 42° round the shadow of your head. Nobody else sees the same one, and you can never reach its end.

The view away from the sun

The sun is behind you. Rain is falling ahead.

SUN HEIGHT20°
DROPS, MM
Centre of the circle
20° below the horizon
Top of the main bow
22° up
Top of the second bow
31° up
TRY

WHO SEES IT: the view from the side