Skip to content

Lenses and the prism

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

Before a lens, one curved face. Rays from a point on the axis meet the glass at different places, and the normal there, the radius, tilts more the further out they hit. So the outer rays are bent more, and all of them come together at a point inside the glass. Bring the object closer and that point runs away; closer still and the rays are spreading even after the surface, as though from a point behind the object.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

Three rays from the top of the object. The one parallel to the axis is bent through the far focus. The one through the centre of the lens goes straight on. The one that passes through the near focus comes out parallel. They meet at the top of the image.

Drag the object in. Beyond 2F the image is smaller; at 2F the same size; between 2F and F larger, and further away. At the focus the rays leave parallel and there is no image. Inside the focus they spread, and traced back they give an upright, enlarged, virtual image on the same side as the object: a magnifying glass.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

A concave lens is thinner in the middle and spreads light. The ray parallel to the axis leaves as though it had come from the focus on the object’s own side. The image is always there, between the lens and that focus: upright, smaller, virtual. Lenses like this correct short sight.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

Here the lens is real: glass, with two curved faces, and Snell’s law at each. Make a face more curved and the focus moves in. Use denser glass and it moves in again. That is all a lens maker has to work with.

Now widen the beam with the knob. The outer rays cross the axis short of where the inner ones do. A lens with spherical faces has no single focus for a wide beam; the formula gives the focus for rays near the axis.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

The first lens bends the beam towards its focus; the second, right behind it, bends it again. Together they act as one lens whose power is the sum of the two. Slide the second lens’s focal length negative to make it concave: its power is negative, it undoes part of the first, and the focus moves away. Make the two equal and opposite and the beam goes on parallel, as through a window.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

A prism bends a ray towards its base at the first face and again at the second. Drag the incoming ray and watch the deviation. It is large for a glancing ray, falls as the ray steepens, reaches a least value, and rises again. At the least value the path is symmetrical: the ray inside runs parallel to the base and comes out at the angle it went in. Measuring that one angle is how the refractive index of a glass is found.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

White light is every colour together. Send it into a prism and it comes out as a fan: red turned least, violet most, and the rest in order between.

The reason is that glass slows violet light a little more than red, so its refractive index is slightly larger for violet. Snell’s law then bends violet more at the first face. A glass slab would undo this at its second face, which is parallel to the first, and the colours would leave side by side going the same way. In a prism the second face turns the light the same way again, and the small difference grows.

Open the parameters and raise the difference between the two indices. The fan widens. This is the difference between crown glass, which spreads colours a little, and flint glass, which spreads them twice as much.

Live in your browser: every ray traced by the engine. Drag the knob.Open in the playground with sliders and graphs ↗

A rainbow is sunlight sent back by raindrops. Follow the bright ray into the drop. It bends as it enters, crosses the drop, and meets the back. Most of it leaves there, but some is reflected. That part crosses again and bends once more as it comes out, heading back roughly the way it came.

Each colour is bent by its own amount going in and coming out, so red and violet leave in slightly different directions.

That explains the colours but not the bow. For that, look at the faint rays. Sunlight strikes the drop at every height, and most of it comes back spread over a wide range of angles, too thin to notice. Slide the height. Near 0.86 of the radius the outgoing direction stops changing: rays a little higher and a little lower all come out together. Light is concentrated there, at 42° from the point opposite the Sun for red and 41° for violet. Every drop at that angle from your eye sends you that colour, and the drops at that angle form a circle.

Set the reflections to two for the second, fainter bow. It is higher, near 51°, and its colours are the other way round.