Light & Optics

the thin-lens equation

You have a lens and an object, a candle, say, sitting some distance in front of it. Where will the image appear, and will it be bigger or smaller, upright or upside down? Rather than trace rays by hand every time, the thin-lens equation gives you the answer with a single tidy formula. It answers the question: knowing the lens and how far away the object sits, exactly where does the image form?

Let d_o be the object distance (from lens to object), d_i the image distance (from lens to image), and f the focal length of the lens. The thin-lens equation says 1/f = 1/d_o + 1/d_i. Rearranged, 1/d_i = 1/f - 1/d_o tells you where the image lands. It comes with a sign convention: f is positive for a converging lens and negative for a diverging one; d_i is positive for a real image (on the far side, where you can catch it on a screen) and negative for a virtual image (on the same side as the object, seen only by looking through the lens). The very same equation, with f = R/2, describes spherical mirrors too.

This one relation, paired with the magnification m = -d_i/d_o, lets you design and understand cameras, projectors, and glasses without drawing a single ray. An honest caveat: it is built on the thin-lens idealization, thin glass, rays near the axis, one colour, so it gives the paraxial (near-axis) answer and ignores aberrations. And the sign convention must be applied consistently; the commonest beginner error is a dropped or flipped sign, which turns a real image into a phantom virtual one.

A converging lens has f = 15 cm and an object sits at d_o = 25 cm. Then 1/d_i = 1/15 - 1/25 = 0.0267, so d_i = 37.5 cm. The positive answer means a real image forms 37.5 cm behind the lens; magnification m = -37.5/25 = -1.5, so it is inverted and 1.5 times larger.

1/f = 1/d_o + 1/d_i, with signs: converging f greater than 0, real image d_i greater than 0.

Sign convention is everything here. A negative d_i means the image is virtual and on the same side as the object; a negative f means the lens is diverging. Mix up a sign and you predict a real image where only a virtual one exists.

Also called
lens equation透鏡方程式成像公式