A straw that looks broken
Put a straw in a glass of water and it looks broken at the surface. The straw is fine. What bends is the path of the light traveling from the straw to your eye.
Let's poke at this a little harder. By what rule does light bend? What happens if it hits a surface so obliquely that it cannot bend enough to get out? Why does a triangular block of glass turn white light into a band of colors? And why does a rainbow always appear opposite the Sun, at the same angle?
Here's a surprise: the rule for how light bends, as the next section shows, fits on a single line. Yet nearly fifteen hundred years passed between Ptolemy's measurements and the day that line first appeared in print. In this simulation you place prisms, glass blocks, half-discs and discs on a table, shine light at them, and watch the light paths, each one computed ray by ray. At the end we send light through a water droplet and find the rainbow angle ourselves.
Finding the one-line rule
Light travels at different speeds in different materials. The ratio of its speed in vacuum to its speed in the material is the refractive index: about 1 for air, 1.33 for water, about 1.5 for ordinary glass.
When light crosses a boundary between materials at an angle, it changes direction. That is refraction. Think of a marching band stepping obliquely from pavement onto sand: the side that reaches the sand first slows down first, and the whole line swings around. This is more than an analogy; it is the wave explanation of refraction that Christiaan Huygens worked out in 1678. We'll derive the exact rule in a moment.
Angles are measured from the normal, the line perpendicular to the surface. Call the angle of incidence in material 1 and the angle of refraction in material 2 . In the second century Ptolemy measured these two angles for light entering water and tabulated them, but he never found the right rule. Around 1600 Johannes Kepler searched for years and got no further than noting that, for small angles, the two are roughly proportional. The answer lay not in the angles themselves but in their sines:
This is the law of refraction, also called Snell's law. Why sines? Turn the marching band into geometry. A wavefront reaches the boundary obliquely; call the end that arrives first A and the other end B. Let be the time B takes to travel through material 1 to the point B′ on the boundary; in that time B travels , while the wave that entered material 2 at A travels and reaches A′. The new wavefront is A′B′.
That's the law. The ratio of the sines is simply the ratio of the speeds.
Try numbers. Send light from air, where , into glass, where , at : , so . The light bends toward the normal.
The hunt for the law of refraction was a long detour. Ptolemy really did measure, but his tables have been smoothed to fit a neat numerical pattern: with each 10° step in the angle of incidence, the angle of refraction grows by half a degree less than in the step before. The values are close to the true ones over much of the range but drift off at large angles. It was the light that was supposed to bend, not the data. Around 984 Ibn Sahl, at the court in Baghdad, used the correct relation in his book On Burning Mirrors and Lenses to design lens shapes; this came to light only when a scholar studied the manuscripts near the end of the twentieth century. In England Thomas Harriot had found the sine law by about 1601 but never published it, and in the Netherlands Willebrord Snellius found it around 1621 but did not publish it in his lifetime either. The law finally appeared in print in Descartes' Dioptrics of 1637.
Does light speed up or slow down?
The history wasn't that tidy, though. René Descartes, who published the law in 1637, derived it assuming that light goes faster in a denser material. Pierre de Fermat got the same formula from the opposite assumption: light goes slower there and follows the path that takes the least time. The same equation from opposite premises!
Fermat's idea is easy to picture with a lifeguard. Someone is drowning out in the water; the lifeguard can run fast on sand but swims slowly. The quickest route is not the straight line to the swimmer but a bent one: run a bit farther along the sand, then swim. Work out where to enter the water to minimize the time and you get , Snell's law exactly. Light, of course, doesn't plan its route; the wavefronts simply advance in such a way that the path they trace is the quickest one. Newton's particle theory of light also predicted that light should speed up in water. The question was settled only in 1850, when Léon Foucault used a rotating mirror to show that light travels more slowly in water than in air. The picture behind rests on that experiment.
Refraction itself follows from Huygens' principle if light is a wave that travels more slowly in glass, which is why sound and water waves refract too whenever their speed changes across a boundary.
The refractive index of air changes slightly with temperature. On a hot day the road ahead can look wet: near the hot surface, light from the sky curves gradually upward, so the sky appears to lie on the road. Even without a sharp boundary, the same idea of refraction applies.
Light that can't get out
Not all the light gets through. Some is reflected, like in a mirror. This partial reflection is why you can see the room reflected in a window at night.
How much light is reflected is given by the Fresnel equations. At normal incidence on glass the reflectance is , about 4%. At grazing incidence it approaches 100%. Deriving these equations needs electromagnetism, treating light as an electromagnetic wave, so here we just use the results.
Light leaving a denser material, one with a higher , for a less dense one bends away from the normal. The more obliquely it arrives, the more it bends, until at a certain angle, the critical angle, there is no way out at all. All the light is reflected. That is total internal reflection.
Going the other way, from glass into air, . Make large enough and the right-hand side exceeds 1. No angle has a sine bigger than 1, so there is no refracted ray. The boundary case is the critical angle :
Into air, this becomes . For glass with , ; for water with , it is about ; for diamond with , about .
Total internal reflection is a kind of nervous system for modern society. Most of the world's internet traffic travels as light bouncing along hair-thin glass fibers by repeated total internal reflection. Charles Kao, who showed that purer glass would make long-distance optical communication possible, received the 2009 Nobel Prize in Physics. Inside binoculars, right-angle prisms fold the light path the same way and turn the image the right way up; since total internal reflection returns essentially all the light, the image is brighter than with ordinary mirrors.
Each color bends its own way
The refractive index depends very slightly on color, that is, on wavelength. In glass, violet light has a larger index than red light and is bent more. This is dispersion. White light is a mixture of colors, so a prism sends each color off in a slightly different direction.
Isaac Newton worked out what white light is. The old view, going back to Aristotle, was that white light is pure and colors arise when it is mixed with darkness. In experiments he reported to the Royal Society in London in 1672, Newton took a single color from one prism and sent it through a second prism; it did not split any further. Each color has its own degree of bending, which is to say its own refractive index, and white light is a mixture of them all. The report sparked a bitter dispute with Robert Hooke, and Newton held back his book Opticks until 1704, the year after Hooke died. In France, many natural philosophers said the prism experiments were hard to reproduce and refused to accept them.
Dispersion is modeled here with Cauchy's formula , where is the wavelength. It is an empirical formula, built to fit measured values. For BK7 crown glass, for violet at 400 nm and for red at 700 nm. The difference is only 0.018. Yet after a 60° prism, red and violet leave about 1.5° apart.
A lens is refraction put to work to bring light to a focus, and the color errors you meet in the convex and concave lens simulation come from exactly the dispersion seen here.
Dispersion can also be a nuisance: it makes a simple lens focus different colors at slightly different points, so camera lenses combine crown and flint glass, which disperse differently, to cancel most of the error.
Diamonds sparkle thanks to total internal reflection and dispersion together. With a high index and a critical angle of only about 24°, light entering the top of a cut diamond bounces around inside before coming back out, and strong dispersion adds flashes of color.
A prism reads the stars
Then the prism became a way to find out what stars are made of. William Wollaston in 1802, and Joseph von Fraunhofer in 1814, noticed dark lines crossing the Sun's spectrum; Fraunhofer measured more than 570 of them. Around 1859 Gustav Kirchhoff and Robert Bunsen showed that they are made by elements in the Sun's atmosphere absorbing particular colors. During the total eclipse of August 1868 Jules Janssen saw a yellow line in sunlight that matched no known element, and that October Norman Lockyer independently caught the same line. The element was named helium, after helios, the Greek for Sun, and it was not found on Earth until 1895.
Splitting light by wavelength also reveals what emitted it. Just as helium was found in the Sun, astronomers today sort light by wavelength to learn what distant stars and galaxies are made of, and even what is in the atmospheres of planets around other stars. Modern spectrometers often use diffraction gratings instead of prisms, but the idea of sorting light by wavelength is the same.
Why the rainbow sits at 42°
The rainbow has an even longer history. Around the beginning of the 14th century, Theodoric of Freiberg and the Persian scholar Kamāl al-Dīn al-Fārisī are said to have used water-filled glass spheres to show that rainbows come from refraction and reflection inside drops. In 1637 Descartes traced many rays through a drop by calculation and showed why the bow appears at about 42°. Newton's dispersion explained the order of the colors.
The rainbow's 42° can be derived with the same tools. Sunlight enters a drop at angle of incidence , travels inside at angle of refraction , reflects once off the back, and refracts again on the way out, as in the figure below. The light turns by on entering, by at the reflection, and by again on leaving, a total turn of . Measured from the direction straight away from the Sun, which is toward the shadow of your head, the outgoing light makes an angle .
| Angle of incidence | Angle of refraction | Outgoing angle |
|---|---|---|
| 20° | 14.9° | 19.5° |
| 40° | 28.8° | 35.3° |
| 50° | 35.1° | 40.3° |
| 59.4° | 40.2° | 42.1° |
| 70° | 44.8° | 39.3° |
| 80° | 47.6° | 30.5° |
As the angle of incidence grows, the outgoing angle rises, levels off at about 42°, then falls. Near that turning point, a fair spread of incidence angles all send light out in almost the same direction, so light piles up there: that is the bright ring of the rainbow. With calculus you can show the turning point is where . Water's index is about 1.331 for red and 1.343 for violet, so the same calculation gives about 42.4° for red and 40.6° for violet. That is why the primary bow is red on the outside and violet on the inside.
And the rainbow sky has more to show. The sky between the primary and secondary bows is darker. This is Alexander's dark band, and it is there because once-reflected light cannot leave beyond about 42°, and twice-reflected light cannot leave inside about 51°. Faint extra bands just inside the primary bow, the supernumerary bows, cannot be explained with rays at all; they come from interference. Where ray optics runs out, wave optics takes over.
To be honest, we are treating light as rays. Light is also a wave, and a closer look shows interference and diffraction. But when the objects are much larger than the wavelength, which is about half a micrometer, the ray picture works extremely well.
Bend some light yourself
- White light enters a BK7 prism and leaves split into colors. Under "Results", check that the two values of "n₁ sin θ₁ and n₂ sin θ₂" agree.
- Press "Slowly rotate the selected shape". Predict: how does the "Deviation" readout change? At minimum deviation, how does the light run inside the prism?
- Set "Dispersion" to "Exaggerated ×20", then back to "Actual values". How far apart are red and violet really? Read it from "Angle between red 700 nm and violet 400 nm".
- Drag the right-angle prism into the beam between the light source and the triangular prism. The angles are labeled at the first two boundaries the light meets. Predict: does the light cross the long face, or is it totally reflected? Compare the angle of incidence on the long face with the "Critical angle".
- Change the selected shape's "Material" to "Diamond". What happens to total internal reflection?
- Add a disc with "+ Circle" and shine light at it from outside. Predict: can the light be totally reflected inside? It cannot: inside, it always meets the wall at its refraction angle. Now make the disc diamond, drag the source inside, and aim at the wall at a grazing angle. The light is trapped, and the calculation stops after 60 reflections.
- Set "Mode" to "Water drop and rainbow". Press "Trace one ray at a time": the exit angle rises, then falls. Rays bunch up at the turning point, and that bright direction is the rainbow.
- Under "Paths to follow", choose "2 reflections inside (secondary rainbow)". What is the angle, and are the colors in the same order?
About the display: dispersion uses real values by default. When you choose an exaggeration, only the color-dependent part of the index is enlarged, and a notice appears at the top right. Line opacity is proportional to the square root of intensity, so 4% reflections stay visible. The calculation is two-dimensional and ignores interference and diffraction.
From one line to a rainbow
At a boundary, light bends according to , and part of it is reflected. Light trying to leave a denser material is totally reflected beyond the critical angle. The index depends slightly on color, so a prism separates white light; the real spread is small, but it grows with distance. A rainbow is light that has reflected once inside drops and is concentrated near 42°, while two reflections give a fainter bow near 51° with the colors reversed.
The one-line law of refraction took from Ptolemy to Descartes to find, and the argument over the speed of light that followed helped establish light as a wave that slows down in matter. And the simple act of splitting light with a prism went on to reveal the elements in the Sun, while total internal reflection now carries the internet.
One last question: a rainbow sits on a 42° circle around the point directly opposite the Sun from your eye. Is the rainbow your friend sees, standing next to you, made by the same drops as yours?
Sources and further reading
- August 1868: Discovery of helium (APS News, American Physical Society, 2014)
- I. Newton, "A Letter ... containing his New Theory about Light and Colors" (Philosophical Transactions, 1672; The Newton Project, University of Oxford)
- A. M. Smith, "Optics to the Time of Kepler" (Encyclopedia of the History of Science, Carnegie Mellon University Libraries)
- J. J. Roche, "Harriot, Thomas" (Oxford Dictionary of National Biography, via MacTutor, University of St Andrews)
- Refractive index of water at 20 °C, from M. Daimon and A. Masumura, Applied Optics 46, 3811 (2007) (RefractiveIndex.INFO)
- The Nobel Prize in Physics 2009 (Nobel Foundation)
- R. A. Houstoun, "Kepler's law of refraction" (Edinburgh Mathematical Notes 23, 1925)
Further reading (encyclopedia):