One piece of glass, three different jobs
Take a magnifying glass outside on a sunny day. Hold it above a dry leaf, and move it up and down. At one height the sunlight shrinks to a small, very bright spot, hot enough to scorch the leaf. That is the first job: it gathers light to a point.
Now go indoors and stand at the back of a room, facing a bright window. Hold a sheet of white paper about a hand's width behind the glass, and move the paper slowly. At one place a small, sharp picture of the window appears on the paper. It is upside down, and the trees outside are upside down too. That is the second job: it makes a picture you can catch on a screen.
Finally, hold the glass close to this page. The letters look larger and the right way up, but no paper behind the glass will catch them. That is the third job.
One lens, three jobs, and the only change is where the object sits. This lecture explains all three, starting from the law you already have.
A lens is two refracting surfaces
The last lecture ended with a promise. The quantity runs through all of optics, and it is why a lens bends light the same way at every surface. Here is how.
A lens is a piece of glass with two curved faces. Nothing happens inside the glass. The light travels in straight lines there. All the bending happens at the two surfaces, and each surface obeys Snell's law, . So a lens is nothing new. It is two refractions, one after the other.
For rays close to the axis, every angle is small. In radians, for small angles, so Snell's law becomes . Applied to a thin wedge of glass with a small angle between its faces, this gives a simple result. A ray that passes nearly straight through is turned by an angle
Here is the index of the glass, in air. As long as all the angles are small, the deviation does not depend on the angle at which the ray arrives.
Now look at a lens as a stack of thin wedges. At the centre, the two faces are parallel, like a window, so . Further from the centre, the faces are tilted more and more. For a spherical face of radius , the tilt at height is about . With two faces of radii and , the wedge angle at height is
This is the key step. Spend time here. The wedge angle grows in proportion to the height. So the deviation also grows in proportion to the height. A ray twice as far from the axis is bent twice as much.
Now send in rays parallel to the axis. A ray at height , bent towards the axis by a small angle , reaches the axis after a distance . Put in the deviation:
The height has cancelled. Every parallel ray, at every height, reaches the axis at the same distance. That is it. That is the whole idea. A lens has a focus because the bending grows in step with the distance from the centre.
Rays parallel to the axis of a thin converging lens meet at one point after the lens, the principal focus . Its distance from the centre of the lens is the focal length .
For a thin lens in air: .
Light can travel through a lens either way, so there is a focus on each side, at the same distance . Parallel rays from the left meet at on the right. Parallel rays from the right meet at on the left.
A lens that is thinner in the middle has wedges pointing the other way. Each ray is bent away from the axis, again in proportion to its height. The rays leave spreading out, as if they came from one point in front of the lens. That point is a virtual focus. In this library, is positive for a converging lens and negative for a diverging lens.
Thicker in the middle is not the whole story
The formula has a hidden condition. The factor is really , the relative index. In air the outside index is 1, so the condition stays hidden. Put the lens in water and the factor becomes much smaller. Put an air-filled lens in water and the factor is negative. Then a lens that is thicker in the middle spreads the light.
The model below traces real rays through a real lens shape, using Snell's law at both surfaces. Choose the surroundings and see what happens.
Choose what the lens is made of and what is around it. Six parallel rays are traced through both surfaces with Snell's law. The lens is 6 cm across, with both faces of radius 10 cm.
What the model leaves out: the slightly different index for each colour, light reflected at the surfaces, and the rim of a real lens.
Six parallel rays traced through a glass lens in air with Snell's law at both surfaces. The table gives the result for four choices of lens and surroundings.
| Lens in surroundings | Relative index | Rays near the axis |
|---|---|---|
| glass (1.52) in air (1.00) | 1.520 | converge, cross ≈ 10.0 cm after the lens |
| glass (1.52) in water (1.33) | 1.143 | converge, cross ≈ 35.3 cm after the lens |
| glass (1.52) in oil (1.52) | 1.000 | pass straight through |
| air (1.00) in water (1.33) | 0.752 | diverge, as if from ≈ 20.0 cm in front |
The glass lens in water still converges, but its focus moves out to about 35 cm, three and a half times further. In an oil with the same index as the glass, the lens does nothing at all. It is almost invisible, because light needs a change of index to bend. The air pocket in water is thicker in the middle, yet it spreads the light. So the true rule is this: a lens that is thicker in the middle converges when it has a higher index than its surroundings.
The model also shows a limit. The edge rays cross a little closer to the lens than the rays near the axis. The small-angle steps above are exact only near the axis. Every ray diagram in this lecture uses a thin lens and rays near the axis.
Three rays that locate any image
Every point of an object sends rays in all directions. Some of them pass through the lens. For a thin lens, all of these rays meet again at one point, the image of that point. So you only need two rays to find the image. Three rays are easy to draw, because we know exactly where each one goes.
- Ray 1. A ray parallel to the axis leaves through the far focus . This is the definition of the focus.
- Ray 2. A ray through the near focus leaves parallel to the axis. This is ray 1 run backwards. Light paths are reversible, so this must work.
- Ray 3. A ray through the centre goes straight on. At the centre the faces are parallel, like a window. The last lecture showed that a window shifts a ray sideways but does not turn it. In a thin lens that shift is tiny, so we ignore it.
Draw the rays from the top of the object. Where they cross after the lens is the top of the image, and the image stands on the axis below or above that point.
Look at ray 3 in your mind. It goes through the centre, so a ray from the top of an object above the axis ends up below the axis on the far side. This is why the picture of the window was upside down. Whenever the rays really cross after the lens, the image is inverted.
A lens projects a picture of a candle onto a screen. You cover the top half of the lens with card. What happens to the picture?
Show the answer
Many people say the top half (or the bottom half) of the picture disappears. It does not. The whole candle is still there, but the picture is dimmer.
Every point of the candle sends light to every part of the lens. The bottom half of the lens still collects some light from every point, and it still brings that light to the same image point. You lose half the light, not half the picture. Our three special rays are only the easiest ones to draw. The image is made by all the rays.
Where the object sits decides the image
Return to the magnifying glass. Its three jobs were three object positions. Use the explorer to move the object along the axis and watch the image.
Move the object, or use − and +. Watch where the three rays meet and what kind of image they make. Then switch to the diverging lens. Heights are drawn larger than distances, which keeps every straight line straight.
Two ray diagrams for a converging lens with f = 10 cm, and a table of what happens at every object position.
| Object | Image | Use |
|---|---|---|
| beyond 2F | between F and 2F; real, inverted, diminished | camera, eye |
| at 2F | at 2F; real, inverted, same size | — |
| between F and 2F | beyond 2F; real, inverted, magnified | projector |
| at F | no image; the rays leave parallel | lamp beam |
| inside F | same side as the object; virtual, upright, magnified | magnifying glass |
| anywhere (diverging lens) | same side, inside F; virtual, upright, diminished | door viewer, glasses for short sight |
As the object moves in from far away towards , the image moves out from towards infinity and grows. Once the object is inside , the lens cannot bend the rays enough to bring them together. They leave still spreading, and the image becomes virtual.
So the hook is explained. The leaf was very far away from the Sun's point of view, so the image of the Sun formed at : a tiny, bright, real image of the Sun. The window was beyond , so its image on the paper was real, inverted and small. The page was inside , so the glass made a virtual, upright, larger image.
A real image is a place where light really meets. Put a screen there and the picture appears. A virtual image is a place where light only seems to come from. Your eye and brain trace the spreading rays back in straight lines, and they see an object there. No light ever reaches that point, so a screen there shows nothing.
A diverging lens only adds to the spreading of the rays from an object. They can never meet after the lens, so its image is always virtual, upright and smaller.
A projector forms a real image on a screen. Someone takes the screen away. Is there still an image? Could you see it?
Show the answer
Yes, the image is still there. The light still meets at the same points in the air and then spreads out again. With no screen, nothing scatters the light towards the room, so most people see nothing.
But put your eye further along, in the path of the spreading light, and look back towards the lens. You will see the picture floating in the air at the image position. A screen is only a way to show a real image to everyone at once.
Worked examples
An object 2.0 cm tall stands 30 cm from a converging lens with cm. Find the image by ray diagram, and describe it.
Place the marks. is 10 cm from the lens on each side, and is 20 cm. The object at 30 cm is beyond , so expect a small, real, inverted image between and .
Ray 2 gives the height. The ray from the top of the object through the near focus falls 2.0 cm over the 20 cm from the object to . It continues at that slope for 10 more cm to the lens, so it meets the lens 1.0 cm below the axis. It leaves parallel, at a height of cm. So the image top is 1.0 cm below the axis.
Ray 3 gives the position. The ray through the centre falls 2.0 cm in 30 cm. It is 1.0 cm below the axis after 15 cm. So the image is 15 cm from the lens.
Check with ray 1. The parallel ray leaves the lens at cm and passes through at 10 cm. It falls 2.0 cm in 10 cm, so at 15 cm it is at cm. ✓ All three rays meet at one point.
Answer. The image is 15 cm behind the lens, between and . It is real, inverted and half the size of the object. This is a camera, or your eye looking at something across a room.
The same 2.0 cm object is now 5.0 cm from the same lens. Find the image.
Ray 2. The object is inside , so no ray from it passes through the near focus on its way to the lens. Use the line that comes from the direction of instead. It starts at , 10 cm in front of the lens, and passes through the top of the object 5.0 cm later, 2.0 cm up. It meets the lens 4.0 cm up and leaves parallel at 4.0 cm.
Ray 1. The parallel ray leaves the lens at 2.0 cm and passes through behind the lens. It falls 0.20 cm for every centimetre.
Trace back. After the lens, the two rays spread apart and never meet. Extend them backwards with dashed lines. Ray 1, extended back, rises 0.20 cm per centimetre. It reaches 4.0 cm, the height of ray 2, after 10 cm. So the image is 10 cm in front of the lens, 4.0 cm tall.
Check with ray 3. The ray through the centre comes from the top of the object, 2.0 cm up at 5.0 cm in front. Extended back to 10 cm in front, it is at 4.0 cm. ✓
Answer. The image is virtual, upright and twice the size, 10 cm in front of the lens, on the same side as the object.
An object 2.0 cm tall stands 20 cm from a diverging lens with cm. Find the image.
Ray 1. The parallel ray leaves the lens at 2.0 cm. It spreads as if it came from the virtual focus 15 cm in front of the lens. So its dashed extension back falls 2.0 cm over 15 cm.
Ray 3. The ray through the centre comes from the object, 2.0 cm up at 20 cm in front. Going back from the lens, it rises 2.0 cm over 20 cm.
Find the meeting point. At a distance in front of the lens, ray 1's extension is at , and ray 3 is at . These are equal when . That gives cm, at a height of about 0.86 cm.
Answer. The image is about 8.6 cm in front of the lens. It is virtual, upright and about 0.43 times the height of the object. It is closer to the lens than , as every diverging-lens image is.
Check with ray 2. The ray aimed at the far focus, 15 cm behind the lens, falls 2.0 cm over 35 cm. It reaches the lens at cm and leaves parallel at that height. ✓
Three traps
The ray that leaves parallel is the one through the near focus, on the object's side. A ray from the object towards the far focus does not come out parallel. For a diverging lens it is the other way round. The parallel ray leaves from the direction of the near focus, and the ray aimed at the far focus leaves parallel.
No light reaches a virtual image. Draw the real rays as solid lines and their backward extensions as dashed lines. A solid line from the lens back to a virtual image says that light travels where it does not.
This is true only when the lens has a higher index than its surroundings. A glass lens in water still converges, but much more weakly. An air-filled lens in water diverges.
Work each one on paper first. Open a hint only when you are stuck.
-
An object 1.0 cm tall is 20 cm from a converging lens with cm. Use rays 1 and 3 to find the image, and describe it.
Hint 1
Write the height of each ray after the lens as a function of the distance behind the lens.
Hint 2
Ray 1 starts at 1.0 cm and falls 1.0 cm in 10 cm. Ray 3 falls 1.0 cm in 20 cm.
Full answer
Ray 1 is at . Ray 3 is at . They are equal when , so cm, at a height of cm.
The image is 20 cm behind the lens, at . It is real, inverted and the same size as the object.
Check with ray 2: it falls 1.0 cm over the 10 cm from the object to , then 1.0 cm more to the lens, so it leaves parallel at cm. ✓
-
An object is 10 cm from a diverging lens with cm. Where is the image, and how tall is it compared with the object?
Hint 1
Ray 1 leaves as if from the virtual focus, 10 cm in front of the lens. Notice that the object stands exactly at that point.
Hint 2
Take the object as 1 unit tall. Ray 1's extension falls 1 unit in 10 cm, going back from the lens. Ray 3 rises 1 unit in 10 cm.
Full answer
At in front of the lens, ray 1's extension is at , and ray 3 is at . They meet when cm, at a height of 0.5.
The image is 5 cm in front of the lens: virtual, upright and half the height of the object. It is halfway between the lens and .
Check with ray 2, aimed at the far focus 10 cm behind the lens: it falls 1 unit over 20 cm and reaches the lens at 0.5, then leaves parallel at 0.5. ✓
-
A projector lens has cm. A slide is placed 10.5 cm from it. Where is the image, and how many times larger is it? Explain why slides are put into the projector upside down.
Hint 1
The slide is just outside . Use rays 1 and 3, with the slide 1 unit tall.
Hint 2
Ray 1 is at and ray 3 is at .
Full answer
The rays meet when . The bracket is , so cm. The height there is .
The image is 2.1 m away and 20 times larger. The minus sign means it is inverted, so the slide goes in upside down to give an upright picture. It is also reversed left to right, so the slide is turned that way as well.
Check: the object is between and , so the image should be real, inverted, magnified and beyond . It is. ✓
-
A thin glass lens () has cm in air. Using for a fixed shape, find its focal length in water (). Then find the focal length of an air-filled lens with the same shape, in water.
Hint 1
The shape factor is the same in every case, so compare the factors .
Hint 2
In air the factor is 0.52. In water it is . For the air-filled lens it is .
Full answer
Focal length is inversely proportional to the factor. In water the factor is . So cm (more exactly 36.4 cm).
For the air-filled lens, the factor is . So cm. The negative sign means that it diverges.
Check against the model: there the ratio of the two converging distances was , close to . The model's lens is a little thick, so the thin-lens rule is only approximate for it. ✓
Your eye is a camera made of two lenses. The cornea, the clear curved front of the eye, does most of the focusing: about two thirds of the eye's total power of roughly 60 dioptres. The lens inside does the rest, and changes shape to focus on near or far objects. Together they make a real, inverted image on the retina, just like the window on the paper. The brain learns to read it the right way up.
Now open your eyes under water. The cornea has an index close to that of water, so the relative index at the front of the eye is almost 1. As with the glass in oil, almost all the bending at the cornea disappears. The eye becomes strongly long-sighted, and everything is a blur. A diving mask fixes this with physics, not with a lens. It puts a layer of air back in front of the cornea, so the relative index is large again.
The next lecture turns the ray diagram into an equation, so that image positions can be calculated instead of drawn.
- A lens is two refracting surfaces, and each obeys Snell's law.
- A thin lens has a focus because each ray is bent by an amount proportional to its distance from the axis.
- A lens that is thicker in the middle converges only when its index is higher than that of its surroundings.
- Two of the three special rays locate any image: parallel then through F, through F then parallel, and straight through the centre.
- A real image is where light really meets and can be caught on a screen; a virtual image is where light only seems to come from.
- A converging lens gives a real, inverted image for an object beyond F and a virtual, upright, magnified image inside F; a diverging lens always gives a virtual, upright, smaller image.