Skip to main content
Sandbox Physics
Volume 4 · Light, Imaging and Measurement

How does a lens form an image?

Trace rays through a thin lens to predict image position and magnification. Then use focal lengths to explain an infinity microscope.

Before you start: Chapter 1 on refraction. This chapter uses similar triangles.

After this chapter you can: Use focal length and object distance to find the image location, orientation and magnification.

A lens forms a real image where light from each point on the object meets again. A screen at that plane can catch the image. If the outgoing rays diverge, trace them backward to find the virtual image they appear to come from. The focal length and object distance tell you where the image lies, how large it is and which way it faces.

2.1 Follow two rays from a single point

A thin lens bends rays as if the bending happened in one plane. For small angles to the optical axis, a ray through the lens centre keeps its direction. A ray arriving parallel to the axis bends toward the far focal point of a converging lens. For a diverging lens, its backward extension passes through the near focal point.

Use x=0x=0 for the lens plane and take light to travel left to right along the axis. A real object sits at x=−sx=-s, with s>0s>0. Its image lies at x=s′x=s'. Then s′>0s'>0 marks a real image on the outgoing side, and s′<0s'<0 marks a virtual image on the object side. The focal length ff is positive for a converging lens and negative for a diverging lens.

Take an object point at height hh above the axis. At the image, the ray through the centre has height −hs′/s-hs'/s by similar triangles. The ray that arrived parallel to the axis has height h(1−s′/f)h(1-s'/f). Setting those heights equal gives the imaging equation and the transverse magnification mm.

1s+1s′=1f.\frac{1}{s}+\frac{1}{s'}=\frac{1}{f}.

The central ray also gives the signed ratio of image height to object height.

m=h′h=−s′s.m=\frac{h'}{h}=-\frac{s'}{s}.

Here h′h' is the signed image height of that point. A negative mm means the image is inverted, and a positive value means it is upright. The magnitude sets the size ratio.

2.2 Move the object through the focal distance

Open Thin Lens Imaging Bench. Choose Projector: larger and upside down. The Lens power is +10.0 D+10.0\,\mathrm D, equivalent to f=100 mmf=100\,\mathrm{mm}. Power in dioptres is the reciprocal of focal length in metres. With the object at s=150 mms=150\,\mathrm{mm}, the equation puts its image at s′=300 mms'=300\,\mathrm{mm}. The screen there shows the inverted letter F at twice the target height.

Now choose Magnifying glass: virtual and upright. The object moves to s=60 mms=60\,\mathrm{mm} with the same lens. The image distance is s′=−150 mms'=-150\,\mathrm{mm} and the magnification is m=+2.50m=+2.50. Light from each point spreads after the lens. Its backward extensions meet on the object side and an eye on the outgoing side sees an enlarged upright image there.

  • Ray arriving parallel to the axis
  • Ray through the lens centre
  • Backward extension
Two thin-lens constructions with the same converging lensThe object farther from the lens gives a real, inverted image 300 millimetres beyond it. The nearer object gives an enlarged, upright virtual image 150 millimetres before the lens. Backward extensions show its position. The vertical scale is exaggerated.

Figure 2.1 Two rays from the top of the simulated target in the projector and magnifier presets. The solid rays travel from left to right. In the magnifier panel the dashed backward extensions locate a virtual image. Vertical distances are enlarged for readability.

Table 2.1 Paraxial image predictions and simulated Bench readouts. Distance is measured from the lens. Orientation is relative to the target.
SetupObject distanceFocal lengthImage distanceMagnification
Projector150 mm150\,\mathrm{mm}+100 mm+100\,\mathrm{mm}+300 mm+300\,\mathrm{mm}−2.00-2.00
Twice the focal length200 mm200\,\mathrm{mm}+100 mm+100\,\mathrm{mm}+200 mm+200\,\mathrm{mm}−1.00-1.00
Magnifier60 mm60\,\mathrm{mm}+100 mm+100\,\mathrm{mm}−150 mm-150\,\mathrm{mm}+2.50+2.50
Diverging lens150 mm150\,\mathrm{mm}−100 mm-100\,\mathrm{mm}−60.0 mm-60.0\,\mathrm{mm}+0.400+0.400

At s=fs=f for a converging lens, rays from each object point emerge parallel to one another. They meet at no finite distance. Try Target distance from the lens at 100 mm100\,\mathrm{mm} with the same converging lens and watch the image-distance readout change. For a diverging lens with a real object, the imaging equation always gives a negative image distance.

2.3 Separate focus, blur and brightness

Return to the projector preset, then change Screen distance from the lens to 360 mm360\,\mathrm{mm}. The screen is behind the plane where the rays cross, so each point reaches it as a blur patch. In the model the iris sits at the lens. If its diameter is DD and the screen distance is LL, similar triangles give the geometric patch diameter bb for a real image.

b=D∣1−Ls′∣.b=D\left|1-\frac{L}{s'}\right|.

At that screen position the Lab gives b=5.00 mmb=5.00\,\mathrm{mm} for an iris of 25 mm25\,\mathrm{mm}. Set Iris diameter to 3 mm3\,\mathrm{mm} and the patch shrinks to 0.600 mm0.600\,\mathrm{mm}. The image plane stays at 300 mm300\,\mathrm{mm}. With the screen held fixed, the smaller opening also lets through less light.

The Bench uses ideal geometric rays. It omits lens aberrations, dispersion and diffraction. The geometric blur goes to zero at focus in that model. Real spots still have finite width, and a very small aperture can broaden them through diffraction.

2.4 Put a second lens after a parallel beam

An infinity-corrected microscope makes use of the object-at-focus case. A point in the front focal plane of the objective produces a bundle of parallel rays. Different points send bundles at different angles. A tube lens then converts those angles into positions on an intermediate image plane, one tube-lens focal length behind it.

A point of height hh sends its bundle out at a small angle of approximately −h/fobj-h/f_{\mathrm{obj}}. The tube lens maps that angle to a height of approximately −hftube/fobj-hf_{\mathrm{tube}}/f_{\mathrm{obj}}. The signed magnification of the intermediate image is

m=−ftubefobj.m=-\frac{f_{\mathrm{tube}}}{f_{\mathrm{obj}}}.

Open Build a Microscope and choose Geometric magnification. The tube lens is fixed at 200 mm200\,\mathrm{mm}. Change the objective focal length from 10.0 mm10.0\,\mathrm{mm} to 5.00 mm5.00\,\mathrm{mm} while keeping numerical aperture, wavelength and defocus fixed. The intermediate image magnification changes from −20-20 to −40-40. The simulated specimen detail stays the same in its fixed field of view. Chapter 4 explains the difference between magnification and resolving power.

2.5 Exercises

  1. A thin converging lens has focal length 80.0 mm80.0\,\mathrm{mm}. A real object is placed 160 mm160\,\mathrm{mm} from the lens. Find the image distance and magnification.
  2. A real object moves closer to a converging lens and goes from outside its front focal distance to inside it. What changes about the image?
  3. Why is a screen at a finite distance unable to focus an object point that lies exactly at the front focal point of a converging lens?
  4. A diverging lens has f=−120 mmf=-120\,\mathrm{mm} and a real object sits at s=120 mms=120\,\mathrm{mm}. Find its image distance and magnification.
  5. A real image plane is 240 mm240\,\mathrm{mm} behind a lens. The screen is placed at 300 mm300\,\mathrm{mm}, and the stop diameter is 12.0 mm12.0\,\mathrm{mm}. Find the geometric blur diameter.
  6. At the same screen position as in Exercise 5, the stop diameter halves. Which quantities change: the blur diameter, image distance or magnification?
  7. Explain why a geometric ray diagram can have a point image even though a real lens with finite aperture produces a spot.
  8. An ideal infinity-corrected microscope uses a 180 mm180\,\mathrm{mm} tube lens and a 9.00 mm9.00\,\mathrm{mm} objective. What is the signed magnification at the intermediate image plane?
Exercise 1

The object is at 2f2f. The imaging equation puts the real image at s′=160 mms'=160\,\mathrm{mm}. Its magnification is m=−1m=-1, so it is inverted and the same size.

Exercise 2

Outside the focal distance the outgoing rays converge and form an inverted real image. Inside it they diverge. Their backward extensions locate an upright virtual image on the object's side.

Exercise 3

The outgoing rays from that point are parallel. A finite screen cuts the bundle but has no plane where all the rays meet.

Exercise 4

The lens equation gives s′=−60.0 mms'=-60.0\,\mathrm{mm}. The magnification is m=+0.500m=+0.500. The image is virtual, upright and half the object's height.

Exercise 5

The screen is one-quarter of the image distance beyond the image plane. The patch diameter is b=12.0 mm×0.250=3.00 mmb=12.0\,\mathrm{mm}\times0.250=3.00\,\mathrm{mm}.

Exercise 6

The blur diameter halves because the range of admitted ray slopes is halved. The image distance and magnification of the ideal lens stay fixed because focal length and object distance stay fixed.

Exercise 7

The diagram tells where geometric paths cross. A finite opening diffracts a wave, so its intensity is spread near the geometric focus. Smaller openings can increase that spread.

Exercise 8

Divide the tube focal length by the objective focal length and include the inversion sign. The magnification is m=−20m=-20.

Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

Thin Lens Imaging Bench →Slide a lit F along an optical bench. The lens puts a sharp image on the screen, or a virtual one you only see through it; find where and how large.Build a Microscope →Build an infinity-corrected microscope, trace the separate Köhler relays for field and aperture, and resolve a fixed pair of specimen points in a computed scalar diffraction image.

Sources and reading scope

  1. OpenStax, University Physics Volume 3, §2.4 Thin Lenses

    The section relates object distance, image distance and focal length and explains the signs for real and virtual images.

  2. Nikon MicroscopyU, Nikon CFI60 Optical System

    In an infinity-corrected microscope, the tube lens forms the intermediate image and its focal length relative to the objective sets magnification.

Keep reading

What this page links to directly

See this series on the content map →

Interactive Physics Textbook · Reading path

Light, Imaging and Measurement

  1. ArticleWhere does light go at an interface?
  2. You are hereHow does a lens form an image?
  3. ArticleHow do two paths produce bright and dark fringes?
  4. ArticleWhat sets the finest detail an optical system can resolve?
  5. ArticleHow does a detector measure polarization?
  6. ArticleHow do gain and feedback make a laser oscillate?
1 more group

Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

  1. LabThin Lens Imaging Bench
  2. ArticleRuska: making an electron image was only the beginning
Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy