TExcelTAD
Home › Circuits, Electromagnetism, Lenses & the Atom › The Lens Formula and Magnification

The Lens Formula and Magnification

A question to start

A ray diagram gives the image, but only as accurately as you can draw, and drawing takes time. A camera designer needs to know exactly where the film or sensor must be. Is there a formula that gives the image distance straight from dd and ff?

The idea

For a thin lens, the object distance dd, the image distance d′d' and the focal length ff are linked by the lens formula (công thức thấu kính):

1f=1d+1d′\frac{1}{f} = \frac{1}{d} + \frac{1}{d'}

and the magnification (độ phóng đại) kk compares the image height h′h' with the object height hh:

k=−d′d,∣k∣=h′hk = -\frac{d'}{d}, \qquad \lvert k \rvert = \frac{h'}{h}
Quantity Symbol Unit Meaning
object distance dd cm (or m) from the object to the lens
image distance d′d' cm from the lens to the image
focal length ff cm from the lens to a focus
object, image height hh, h′h' cm measured from the axis
magnification kk (no unit) ∣k∣>1\lvert k \rvert > 1: larger image, ∣k∣<1\lvert k \rvert < 1: smaller

All the lengths must be in the same unit: centimetres are usually easiest.

The sign convention used in this course

The formula covers every case if we agree on signs once, and stick to them:

  • the object is real, so dd is positive;
  • ff is positive for a converging lens and negative for a diverging lens;
  • d′d' is positive for a real image (on the far side of the lens) and negative for a virtual image (on the same side as the object);
  • kk is negative for an inverted image and positive for an upright one.

This "real is positive" convention is the one the simulations use. Some textbooks instead write every distance as a positive length and use a separate formula for virtual images; the answers are the same.

Where the formula comes from

The formula is two pairs of similar triangles (see School Plane Geometry). II is where the ray parallel to the axis meets the lens, so OI=AB=hOI = AB = h.

O F F' B A B' A' I d d' f h h'
  • Triangles ABOABO and A′B′OA'B'O are similar (the ray BB′BB' goes straight through OO): h′h=d′d\dfrac{h'}{h} = \dfrac{d'}{d}.
  • Triangles OIF′OIF' and A′B′F′A'B'F' are similar (the ray IB′IB' goes through F′F'): h′h=d′−ff\dfrac{h'}{h} = \dfrac{d' - f}{f}.

So d′d=d′−ff\dfrac{d'}{d} = \dfrac{d' - f}{f}, which gives d′f=dd′−dfd'f = dd' - df. Divide every term by dd′fdd'f:

1d=1f−1d′⟹1f=1d+1d′\frac{1}{d} = \frac{1}{f} - \frac{1}{d'} \quad \Longrightarrow \quad \frac{1}{f} = \frac{1}{d} + \frac{1}{d'}

A handy rearranged form for the image distance is

d′=dfd−fd' = \frac{d f}{d - f}

Worked examples

Example 1 (the ray diagram of the last lesson). An object 3.0 cm3.0\ \text{cm} tall is 30 cm30\ \text{cm} from a converging lens with f=12 cmf = 12\ \text{cm}. Find the image distance, the magnification and the image height.

  • Given: d=30 cmd = 30\ \text{cm}, f=+12 cmf = +12\ \text{cm}, h=3.0 cmh = 3.0\ \text{cm}.
  • Find: d′d', kk, h′h'.
  • Formula: 1d′=1f−1d\dfrac{1}{d'} = \dfrac{1}{f} - \dfrac{1}{d}; k=−d′dk = -\dfrac{d'}{d}; h′=∣k∣hh' = \lvert k \rvert h.
  • Solve:
1d′=112−130=5−260=360=120d′=20 cmk=−2030=−23,h′=23×3.0=2.0 cm\begin{aligned} \frac{1}{d'} &= \frac{1}{12} - \frac{1}{30} = \frac{5 - 2}{60} = \frac{3}{60} = \frac{1}{20} \\ d' &= 20\ \text{cm} \\ k &= -\frac{20}{30} = -\frac{2}{3}, \qquad h' = \frac{2}{3} \times 3.0 = 2.0\ \text{cm} \end{aligned}
  • Answer: the image is 20 cm20\ \text{cm} behind the lens, real (since d′>0d' > 0), inverted (k<0k < 0), 2.0 cm2.0\ \text{cm} tall.
  • Check: exactly what the scale drawing and the simulation gave.

Example 2 (a projector). A slide 2.0 cm2.0\ \text{cm} tall is 15 cm15\ \text{cm} from a lens with f=10 cmf = 10\ \text{cm}. Find the image.

  • Given: d=15 cmd = 15\ \text{cm}, f=+10 cmf = +10\ \text{cm}, h=2.0 cmh = 2.0\ \text{cm}.
  • Find: d′d', kk, h′h'.
  • Formula: d′=dfd−fd' = \dfrac{df}{d - f}, k=−d′dk = -\dfrac{d'}{d}.
  • Solve: d′=15×1015−10=1505=30 cmd' = \frac{15 \times 10}{15 - 10} = \frac{150}{5} = 30\ \text{cm}; k=−3015=−2k = -\frac{30}{15} = -2; h′=2×2.0=4.0 cmh' = 2 \times 2.0 = 4.0\ \text{cm}.
  • Answer: real, inverted, twice as large (4.0 cm4.0\ \text{cm}), 30 cm30\ \text{cm} behind the lens.
  • Check: f<d<2ff < d < 2f, so the image should be beyond 2F′2F' (20 cm20\ \text{cm}) and larger: it is. Check it in the simulation below.
OFF'2F2F'ABA'B'

Example 3 (a virtual image). An object 2.0 cm2.0\ \text{cm} tall is 6.0 cm6.0\ \text{cm} from a lens with f=10 cmf = 10\ \text{cm}. Find the image.

  • Given: d=6.0 cmd = 6.0\ \text{cm}, f=+10 cmf = +10\ \text{cm}, h=2.0 cmh = 2.0\ \text{cm}.
  • Find: d′d', kk, h′h'.
  • Formula: d′=dfd−fd' = \dfrac{df}{d - f}, k=−d′dk = -\dfrac{d'}{d}.
  • Solve: d′=6.0×106.0−10=60−4.0=−15 cmd' = \frac{6.0 \times 10}{6.0 - 10} = \frac{60}{-4.0} = -15\ \text{cm}; k=−−156.0=+2.5k = -\frac{-15}{6.0} = +2.5; h′=2.5×2.0=5.0 cmh' = 2.5 \times 2.0 = 5.0\ \text{cm}.
  • Answer: d′<0d' < 0: a virtual image 15 cm15\ \text{cm} from the lens on the object's side; k>0k > 0: upright; 5.0 cm5.0\ \text{cm} tall.
  • Check: d<fd < f, so a virtual, upright, magnified image, as the table of cases predicts. This is a magnifying glass.

Example 4 (finding ff). A sharp image appears on a screen 20 cm20\ \text{cm} behind a lens when the object is 30 cm30\ \text{cm} in front. Find ff.

  • Given: d=30 cmd = 30\ \text{cm}, d′=+20 cmd' = +20\ \text{cm} (real image on a screen).
  • Find: ff.
  • Formula: 1f=1d+1d′\dfrac{1}{f} = \dfrac{1}{d} + \dfrac{1}{d'}.
  • Solve: 1f=130+120=2+360=560\frac{1}{f} = \frac{1}{30} + \frac{1}{20} = \frac{2 + 3}{60} = \frac{5}{60}, so f=12 cmf = 12\ \text{cm}.
  • Answer: f=12 cmf = 12\ \text{cm}, converging.
  • Check: the same numbers as Example 1, worked backwards.

Try it: test the formula

You need: a magnifying glass, a small LED torch (or a lit window as the object), white card, a tape measure, a notebook.

  1. Find ff roughly by focusing a distant window (as in The Converging Lens).
  2. Put the torch at a measured dd (between 1.5f1.5f and 4f4f). Move the card until the torch's image is sharp and measure d′d'.
  3. Repeat for four or five values of dd. For each, calculate 1d+1d′\frac{1}{d} + \frac{1}{d'}.

What you should see: 1d+1d′\frac{1}{d} + \frac{1}{d'} comes out nearly the same every time, and equals 1f\frac{1}{f}.

Why: that is the lens formula. Small differences come from judging "sharp" by eye and measuring to the lens's middle.

Common mistakes

  • Adding instead of using reciprocals. f≠d+d′f \ne d + d'; it's the reciprocals that add.
  • Forgetting to invert at the end. 1d′=120\frac{1}{d'} = \frac{1}{20} means d′=20 cmd' = 20\ \text{cm}, not 0.05 cm0.05\ \text{cm}.
  • Dropping the minus sign. A negative d′d' is not a mistake: it tells you the image is virtual.
  • Mixing units. Put dd, d′d' and ff all in cm (or all in m).

Practice

  1. An object is 24 cm24\ \text{cm} from a converging lens with f=8 cmf = 8\ \text{cm}. Find d′d' and kk.
Answer

d′=24×824−8=19216=12 cmd' = \frac{24 \times 8}{24 - 8} = \frac{192}{16} = 12\ \text{cm}; k=−1224=−0.5k = -\frac{12}{24} = -0.5: real, inverted, half size.

  1. An object 4 cm4\ \text{cm} tall is 20 cm20\ \text{cm} from a lens with f=10 cmf = 10\ \text{cm}. Find the image's height and describe it.
Answer

d′=20010=20 cmd' = \frac{200}{10} = 20\ \text{cm}, k=−1k = -1: real, inverted, same size, 4 cm4\ \text{cm} tall.

  1. A lens with f=12 cmf = 12\ \text{cm} makes an image of a small object 8 cm8\ \text{cm} away. Find d′d' and kk and say what kind of image it is.
Answer

d′=8×128−12=96−4=−24 cmd' = \frac{8 \times 12}{8 - 12} = \frac{96}{-4} = -24\ \text{cm}; k=−−248=+3k = -\frac{-24}{8} = +3: virtual, upright, three times larger, 24 cm24\ \text{cm} from the lens on the object's side.

  1. A slide is 10.5 cm10.5\ \text{cm} from a projector lens with f=10 cmf = 10\ \text{cm}. How far away must the screen be, and how many times is the picture enlarged?
Answer

d′=10.5×100.5=210 cm=2.1 md' = \frac{10.5 \times 10}{0.5} = 210\ \text{cm} = 2.1\ \text{m}; k=−21010.5=−20k = -\frac{210}{10.5} = -20: twenty times larger (and inverted, so the slide goes in upside down).

Test yourself

An object is 15 cm15\ \text{cm} from a converging lens with f=10 cmf = 10\ \text{cm}. The image distance is...

  1. 6 cm6\ \text{cm}
  2. 25 cm25\ \text{cm}
  3. 30 cm30\ \text{cm}
  4. −30 cm-30\ \text{cm}

With the sign convention of this course, a negative image distance d′d' means the image is...

  1. real
  2. virtual, on the same side as the object
  3. impossible
  4. inverted

The magnification is k=−2k = -2. The image is...

  1. upright and twice as large
  2. inverted and twice as large
  3. inverted and half as large
  4. upright and half as large

An object at d=20 cmd = 20\ \text{cm} gives a real image at d′=30 cmd' = 30\ \text{cm}. The focal length is...

  1. 50 cm50\ \text{cm}
  2. 10 cm10\ \text{cm}
  3. 12 cm12\ \text{cm}
  4. 25 cm25\ \text{cm}