Physics Zen
Physics concepts

Thin Lens Equation Examples: Real and Virtual Images

October 14, 20267 min read
Thin Lens Equation Examples: Real and Virtual Images

Put an object in front of a converging lens and move it toward the glass. At some positions you can place a screen on the far side and see a sharp image. Move the object closer than the focal length and the screen no longer catches one. Look through the lens, however, and the object can appear enlarged. The thin lens equation describes both cases, provided the signs describe which side of the lens the rays actually meet, or seem to meet.

The arithmetic is short. Most errors arise earlier, when a sketch is missing, a virtual image is assigned a positive distance, or a magnification sign is treated as a size. We will use one explicit convention from start to finish and check each answer against a ray picture.

Sketch the lens before choosing signs

Draw a horizontal principal axis and a vertical line for the lens. Place the object on the left. In the situations below, light travels left to right. Mark a focal point a distance ∣f∣|f| from the lens on each side. This simple sketch gives you a place to put the image after solving.

For a converging lens, a ray from the object's top travelling parallel to the axis emerges toward the far focal point. A ray through the lens center continues approximately straight in the thin-lens model. Where those outgoing rays cross is a real image. If the outgoing rays spread apart, extend them backward with dashed lines. Their backward extensions meet at the virtual image; no actual outgoing light meets there. A diverging lens makes a parallel incoming ray spread as though it came from the near focal point.

These are idealized rays. A lens has thickness, and actual imaging can depart from the thin, paraxial approximation. The equation and sketches here assume rays close to the principal axis and small angles. OpenStax's thin lenses section sets out the equation, ray constructions, and convention used here.

The equation and one sign convention

Let dod_o be the object distance from the lens, did_i the image distance, and ff the focal length. Then

1f=1do+1di.\frac{1}{f}=\frac{1}{d_o}+\frac{1}{d_i}.

All three distances must use the same unit. Centimetres work if every distance is in centimetres; metres work if every distance is in metres. The result inherits that unit. To solve for image distance, rearrange before entering numbers:

1di=1f−1do,di=fdodo−f.\frac{1}{d_i}=\frac{1}{f}-\frac{1}{d_o}, \qquad d_i=\frac{fd_o}{d_o-f}.

We use the real-is-positive convention for an ordinary real object on the incoming-light side:

QuantityPositiveNegative
dod_oReal object, as in every example hereVirtual object, outside this lesson
ffConverging lensDiverging lens
did_iReal image on the far sideVirtual image on the object side

Some courses use a Cartesian coordinate convention with different signed positions. Do not transfer signs between conventions halfway through a calculation. If your course writes a different equation, use its definitions consistently. The physical questions remain the same: which way do the rays travel, where do they meet, and which way is the image oriented?

Worked example: a real image from a converging lens

Place an object 30 cm30\ \mathrm{cm} in front of a converging lens with f=+10 cmf=+10\ \mathrm{cm}. The object is farther than one focal length, so a real image on the far side is plausible. Substitute do=+30 cmd_o=+30\ \mathrm{cm}:

1di=110−130=230=115 cm−1.\frac{1}{d_i}=\frac{1}{10}-\frac{1}{30} =\frac{2}{30}=\frac{1}{15}\ \mathrm{cm^{-1}}.

Therefore di=+15 cmd_i=+15\ \mathrm{cm}. The positive sign puts the image on the far side of the lens. Check by substitution: 1/10=1/30+1/151/10=1/30+1/15. On your sketch, the parallel ray refracts through the far focus and the center ray crosses it there. The image is real, so an ideal screen placed at that plane can intercept the converging rays.

The image is smaller and inverted. To calculate that rather than guess, use magnification.

Magnification: separate orientation from size

With this same convention, the signed transverse magnification is

m=hiho=−dido,m=\frac{h_i}{h_o}=-\frac{d_i}{d_o},

where hoh_o and hih_i are object and image heights measured from the principal axis. A negative mm means inverted; a positive mm means upright. The absolute value ∣m∣|m| is the image-height scale factor. It is not a length and has no unit.

For the first lens, m=−15/30=−0.50m=-15/30=-0.50. A 4.0 cm4.0\ \mathrm{cm} tall object would have hi=(−0.50)(4.0)=−2.0 cmh_i=(-0.50)(4.0)=-2.0\ \mathrm{cm}. The sign says its top appears below the axis, and its height magnitude is 2.0 cm2.0\ \mathrm{cm}. Do not describe a negative height as a physically negative size.

Worked example: a virtual, enlarged image

Keep a converging lens with f=+12 cmf=+12\ \mathrm{cm}, but place the object only 8.0 cm8.0\ \mathrm{cm} away. Because do<fd_o<f, the outgoing rays diverge. Their backward extensions meet on the object's side. Predict di<0d_i<0 before calculating:

1di=112−18=−124 cm−1,di=−24 cm.\frac{1}{d_i}=\frac{1}{12}-\frac{1}{8} =-\frac{1}{24}\ \mathrm{cm^{-1}}, \qquad d_i=-24\ \mathrm{cm}.

The virtual image lies 24 cm24\ \mathrm{cm} from the lens on the object side. Magnification is

m=−−248.0=+3.0.m=-\frac{-24}{8.0}=+3.0.

So the image is upright and three times the object's height in this ideal model. No screen at the virtual-image location can catch a bundle of rays forming that image there; the location comes from extending outgoing rays backward. This is the key difference between seeing a virtual image and projecting a real image onto a screen.

Worked example: a diverging lens

Now use a diverging lens with f=−15 cmf=-15\ \mathrm{cm}. Put a real object 30 cm30\ \mathrm{cm} in front of it. The negative focal length is essential; using +15 cm+15\ \mathrm{cm} would describe a different lens.

1di=1−15−130=−330=−110 cm−1.\frac{1}{d_i}=\frac{1}{-15}-\frac{1}{30} =-\frac{3}{30}=-\frac{1}{10}\ \mathrm{cm^{-1}}.

Thus di=−10 cmd_i=-10\ \mathrm{cm}, a virtual image on the object side. The magnification is m=−(−10)/30=+1/3m=-(-10)/30=+1/3: upright and one-third as tall. In the sketch, rays leaving the lens spread apart. Their backward extensions intersect between the lens and its near focal point. Check the equation with the signs still attached: −1/15=1/30−1/10-1/15=1/30-1/10.

For a real object and a simple diverging lens in this model, you can expect a virtual, upright, reduced image. The calculation above shows that pattern for one set of distances; the negative ff is what drives it.

What happens at the focal plane?

In the rearranged equation di=fdo/(do−f)d_i=fd_o/(d_o-f), the denominator approaches zero as a real object approaches the focal distance of a converging lens. From just outside ff, did_i grows large and positive. From just inside, it grows large and negative. Exactly at do=fd_o=f, 1/di=01/d_i=0: the outgoing rays are parallel in the ideal model, and there is no finite image distance to report.

Do not type do=fd_o=f into the fraction and call the calculator's division error a physical result. Draw the parallel rays and state that the image is at infinity in the ideal model.

Three problems to try, then check

1. Real image and height. A converging lens has f=+20 cmf=+20\ \mathrm{cm}. A 3.0 cm3.0\ \mathrm{cm} tall real object stands 60 cm60\ \mathrm{cm} away. Find image distance and height. Calculation: 1/di=1/20−1/60=1/30 cm−11/d_i=1/20-1/60=1/30\ \mathrm{cm^{-1}}, so di=+30 cmd_i=+30\ \mathrm{cm}. Then m=−30/60=−0.50m=-30/60=-0.50 and hi=−1.5 cmh_i=-1.5\ \mathrm{cm}. The real image is inverted and half as tall.

2. Inside the focal length. A converging lens has f=+9.0 cmf=+9.0\ \mathrm{cm} and a real object at do=+6.0 cmd_o=+6.0\ \mathrm{cm}. Find the image and magnification. Calculation: 1/di=1/9−1/6=−1/18 cm−11/d_i=1/9-1/6=-1/18\ \mathrm{cm^{-1}}, so di=−18 cmd_i=-18\ \mathrm{cm}. Then m=−(−18)/6.0=+3.0m=-(-18)/6.0=+3.0. The image is virtual, upright, and enlarged.

3. Diverging lens. A real object is 24 cm24\ \mathrm{cm} from a lens with f=−12 cmf=-12\ \mathrm{cm}. Find image distance and type. Calculation: 1/di=−1/12−1/24=−1/8 cm−11/d_i=-1/12-1/24=-1/8\ \mathrm{cm^{-1}}, so di=−8.0 cmd_i=-8.0\ \mathrm{cm}. Because it is on the object side, the image is virtual. Also m=−(−8)/24=+1/3m=-(-8)/24=+1/3, so it is upright and reduced.

Lens behavior begins with light changing direction. Our Snell's law guide explains refraction at one boundary. For lens calculations and image-type practice, try Physics Zen's optics topic. The A-level physics, Abitur physics and bac physique guides place optics in a wider revision plan.

Common questions

Is image distance negative for a virtual image?
Yes, under the real-is-positive convention used here. A negative image distance says the image is on the object side of the lens, where the light comes from. Check your course's convention before assigning signs to its equations.
Can a converging lens make a virtual image?
Yes. Place a real object closer to the lens than its focal length. The outgoing rays diverge, and their backward extensions form a virtual, upright, enlarged image on the object side.
Does a negative magnification mean the image is smaller?
No. The sign of the magnification describes orientation: negative means inverted, positive means upright. Compare the absolute value with 1 to decide size: above 1 is enlarged, below 1 is reduced.
Why do I get no finite answer when the object is at the focal point?
In the ideal thin-lens picture the rays emerge parallel. The equation gives 1/d_i = 0, so there is no finite image plane and the image is said to be at infinity. This is a useful limit check, not a missing minus sign.