The Thin Lens Formula, Ray Diagrams & Sign Convention

If you learn one equation from this whole chapter, learn this one. A magnifying glass, a camera, a projector, your spectacles, the eyepiece of a telescope — every one of them is a thin lens forming an image, and a single relation locates that image every time:

1v−1u=1f\frac{1}{v} - \frac{1}{u} = \frac{1}{f}

Feed it any two of the object distance uu, image distance vv and focal length ff, and it hands you the third — together with a companion, the magnification m=v/um = v/u, that tells you how big the image is and which way up. It is the workhorse of ray optics, and it is examined harder than almost anything else in the syllabus. But look at that equation again, because it hides the single most examined trap in optics. Two chapters ago, in The Mirror Formula, the relation was 1v+1u=1f\dfrac{1}{v} + \dfrac{1}{u} = \dfrac{1}{f} — a plus — with magnification m=−v/um = -v/u. The lens equation is 1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f} — a minus — with m=+v/um = +v/u. The sign flips, and the magnification loses its minus, precisely because a lens passes light through to the far side while a mirror bounces it back. Get the two confused and a correct method scores zero: a real lens image comes out on the opposite side (v>0v > 0), the exact reverse of a real mirror image (v<0v < 0). This page derives the lens equation honestly, from two construction rays and a pair of similar triangles; states the New Cartesian convention in full; drills the cases every board reuses — object beyond the focus (real, inverted) and inside it (the magnifying glass) — and hammers, at every step, the contrast with the mirror that trips up more candidates than any other single point in the chapter.

Key takeaways
  • The thin lens formula 1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f} locates the image of any object through a thin lens; the magnification is m=vu=h′hm = \dfrac{v}{u} = \dfrac{h'}{h}.
  • Note the minus. It is 1v−1u\dfrac{1}{v} - \dfrac{1}{u} for a lens versus 1v+1u\dfrac{1}{v} + \dfrac{1}{u} for a mirror, and m=+v/um = +v/u versus the mirror's m=−v/um = -v/u — the top exam confusion in the whole chapter.
  • New Cartesian signs: real object u<0u < 0; converging lens f>0f > 0, diverging f<0f < 0; a real lens image is v>0v > 0 (far side), the opposite of a real mirror image.
  • Two construction rays build every image: one parallel to the axis then through the far focus, one straight through the optical centre undeviated.
  • Anchors (converging f=+20f = +20 cm): u=−30→v=+60u = -30 \to v = +60, m=−2m = -2 (real, inverted); u=−15→v=−60u = -15 \to v = -60, m=+4m = +4 (virtual, erect — the magnifier). Diverging f=−20f = -20: u=−30→v=−12u = -30 \to v = -12, m=+0.4m = +0.4 (always virtual, diminished).
  • Key idea: one equation, 1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f} with m=v/um = v/u, locates and classifies every thin-lens image — and its minus sign, opposite the mirror's plus, is the difference students lose most marks on.
The core insight

The thin lens formula 1/v−1/u=1/f1/v - 1/u = 1/f, with magnification m=v/um = v/u, is derived from the two-construction-ray similar triangles and locates and classifies any thin-lens image; its minus sign and positive magnification are the exact opposites of the mirror formula's plus and negative magnification, because a lens transmits light while a mirror reflects it.

Where this lives today

The thin lens formula runs quietly inside almost every optical device you touch. A camera places the sensor at the image distance vv the equation predicts for a given subject distance uu; "focusing" is a motor moving the lens so that 1/v−1/u=1/f1/v - 1/u = 1/f is satisfied with vv landing exactly on the sensor, and for a distant subject that means v≈fv \approx f, which is why a lens is labelled by its focal length. A projector is the same equation run with the object (the slide or LCD panel) just outside the focus, throwing a large real inverted image on the wall — which is why slides go in upside down. The magnifying glass and the jeweller's loupe are the object-inside-ff regime, a virtual erect enlargement. Your own eye is a lens of variable focal length: the ciliary muscles change ff so that vv, fixed at the retina, stays in focus as uu changes — and spectacles add a second lens whose power nudges the combined focal length back to where a healthy eye's would be. Every autofocus, every zoom, every reading correction is this one relation, solved in real time.

The physical picture

A thin lens does to transmitted light what a curved mirror does to reflected light: it takes the diverging fan of rays from an object point and, if it is a converging lens, folds them back to a single image point on the far side. The lens maker's formula of the last article already told us why — two refracting surfaces, and a focal length ff built from the glass and the curvatures. This article takes that ff as given and asks the user's question: put an object here, where does the image go, and what does it look like? You never need to trace the whole fan. Two special rays are enough, because they are the two whose paths you can draw without any calculation. First, a ray leaving the object top parallel to the axis: a converging lens bends it to pass through the far focus FF. Second, a ray heading straight through the optical centre of the lens: it passes undeviated, because at the centre the two lens faces are parallel, like a thin slab, and a thin slab does not deflect a ray. Wherever these two emergent rays cross is the top of the image; drop a perpendicular to the axis and you have the whole image. The thin lens formula is nothing but the algebra of that crossing, and the derivation below extracts it from the similar triangles the two rays make.

Figure
A converging lens with object between F and 2F: a ray from the object top parallel to the axis bends through the far focus F, a ray through the optical centre goes straight on, and the two cross to form a real inverted magnified image beyond 2F on the far side. The object distance u is negative, the image distance v is positive, and the foci sit at f and 2f on each side.
O F 2F F 2F object h image h′ (inverted) u (negative) v (positive) converging lens, object between F and 2F → real, inverted, magnified

The two working equations

The whole numerical life of a thin lens is two lines. The first locates the image:

1v−1u=1f(1)\frac{1}{v} - \frac{1}{u} = \frac{1}{f} \qquad (1)

where: uu is the object distance and vv the image distance, both measured from the optical centre with New Cartesian signs, and ff is the focal length (f>0f > 0 converging, f<0f < 0 diverging). Read it as a rule for combining reciprocal distances — but note the minus, which is not a typo for the mirror's plus. Rearranged for the usual unknown, 1v=1f+1u\dfrac{1}{v} = \dfrac{1}{f} + \dfrac{1}{u}, so once you know uu and ff the image distance drops out, and its sign tells you the side: for a lens, v>0v > 0 is a real image on the far side, v<0v < 0 a virtual image on the near side. The second equation gives the size and orientation:

m=h′h=vu(2)m = \frac{h'}{h} = \frac{v}{u} \qquad (2)

where: hh is the object height, h′h' the image height, and mm the magnification — and here there is no minus, unlike the mirror's m=−v/um = -v/u. It still does the same job: for a real image u<0u < 0 and v>0v > 0, so m=v/u<0m = v/u < 0, correctly flagging the image as inverted; for a virtual image u<0u < 0 and v<0v < 0, so m>0m > 0, erect. The magnitude reports the scale — ∣m∣>1|m| > 1 magnified, ∣m∣<1|m| < 1 diminished. Every worked answer ends by reading these two signs back into words, which is exactly what boards mark.

The lens is the mirror's mirror image — literally in the signs

This is the point the whole chapter turns on, so it gets its own table. The New Cartesian convention is identical to the mirror chapters — origin at the optical centre, incident light positive, real object u<0u < 0 — but the equations are systematically flipped, because reflection returns light to the same side while refraction carries it through to the other:

quantitymirror (The Mirror Formula)thin lens (this article)
image equation1v+1u=1f\dfrac{1}{v} + \dfrac{1}{u} = \dfrac{1}{f} (plus)1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f} (minus)
magnificationm=−vum = -\dfrac{v}{u}m=+vum = +\dfrac{v}{u}
a real image hasv<0v < 0 (same side, in front)v>0v > 0 (far side, opposite)
converging elementconcave, f<0f < 0convex, f>0f > 0

Memorise the reason, not just the table: light comes back off a mirror, so its real images sit in front (v<0v < 0); light goes through a lens, so its real images sit behind (v>0v > 0). Everything else follows. If you ever blank on a sign in the exam, reconstruct it from that one physical sentence.

Derivation AThe thin lens formula from two rays and two triangles

The goal is to prove 1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f} and m=vum = \dfrac{v}{u} for a thin converging lens forming a real image, using only the two construction rays and the similar triangles they make — no calculus, exactly the geometry a ray diagram already draws. As before, we work with plain positive lengths and attach the New Cartesian signs in the final line, which is where the minus that distinguishes the lens from the mirror is born.

Step 1. Set up the two rays. An object ABAB of height hh stands a distance ∣u∣|u| in front of a thin converging lens with optical centre OO and focal length ff. From the top BB draw the two easy rays: one parallel to the axis, which after the lens passes through the far focus FF (a distance ff beyond OO); and one through OO, which goes straight on. They meet at B′B', the top of a real image A′B′A'B' of height ∣h′∣|h'| at distance vv beyond the lens.

Step 2. Use the centre ray. It makes the triangles ABOABO and A′B′OA'B'O similar (vertical angles at OO, both right-angled at the axis). Corresponding sides give ∣h′∣∣h∣=v∣u∣\dfrac{|h'|}{|h|} = \dfrac{v}{|u|} — the image is scaled from the object by the ratio of the distances. Call this equation (i).

Step 3. Use the parallel ray. Where it leaves the lens it is at height ∣h∣|h| (it ran parallel at the object's height), and it then descends through FF to B′B'. The little triangle between the lens and FF (vertical side ∣h∣|h|, horizontal side ff) is similar to the triangle between FF and the image (vertical side ∣h′∣|h'|, horizontal side v−fv - f). So ∣h′∣∣h∣=v−ff\dfrac{|h'|}{|h|} = \dfrac{v - f}{f}. Call this equation (ii).

Step 4. Equate and simplify. Equations (i) and (ii) share the left side, so v∣u∣=v−ff\dfrac{v}{|u|} = \dfrac{v - f}{f}. Cross-multiply: vf=∣u∣(v−f)=∣u∣v−∣u∣fvf = |u|(v - f) = |u|v - |u|f. Divide every term by ∣u∣ v f|u|\,v\,f and rearrange to 1v+1∣u∣=1f\dfrac{1}{v} + \dfrac{1}{|u|} = \dfrac{1}{f}.

Step 5. Attach New Cartesian signs. A real object is in front, so u=−∣u∣u = -|u|, i.e. ∣u∣=−u|u| = -u; a real lens image is on the far side, so v>0v > 0. Substituting ∣u∣=−u|u| = -u: 1v+1−u=1f\dfrac{1}{v} + \dfrac{1}{-u} = \dfrac{1}{f}, that is 1v−1u=1f\boxed{\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f}} — the minus appears because the real object's distance is negative, the very same mechanism that gave the mirror a plus once its real image was also negative. And from equation (i) with signs, m=h′h=vum = \dfrac{h'}{h} = \dfrac{v}{u}, no minus needed. Test: f=+20f = +20, u=−30u = -30 gives 1v=120−130=160\dfrac{1}{v} = \dfrac{1}{20} - \dfrac{1}{30} = \dfrac{1}{60}, v=+60v = +60 cm, m=−2m = -2 — the worked anchor. Verified: the anchor v=+60v = +60, m=−2m = -2 from f=+20f = +20, u=−30u = -30, and the sign structure, are recomputed in verify_hs2-thin-lens-formula.py.

Go deeper · Derivation B · 1 minThe two regimes of a converging lens
Derivation BThe two regimes of a converging lens

The goal is to show, from equation (1) alone, why a converging lens is a projector for an object beyond its focus and a magnifying glass for an object inside it — and why the changeover is a jump from v>0v > 0 to v<0v < 0 as the object crosses FF. This is the single most useful qualitative fact about lenses, and it explains a camera and a hand lens in one stroke.

Step 1. Object beyond the focus, ∣u∣>f|u| > f. Then 1u\dfrac{1}{u} is a small negative number and 1f\dfrac{1}{f} a larger positive one, so 1v=1f+1u>0\dfrac{1}{v} = \dfrac{1}{f} + \dfrac{1}{u} > 0 and v>0v > 0: a real image on the far side. With f=+20f = +20 and u=−30u = -30 (between FF and 2F2F), v=+60v = +60 cm, magnified and inverted — the projector and the camera live here (the camera at ∣u∣≫f|u| \gg f, giving a small v≈fv \approx f).

Step 2. Object inside the focus, ∣u∣<f|u| < f. Now 1∣u∣>1f\dfrac{1}{|u|} > \dfrac{1}{f}, so 1v=1f−1∣u∣<0\dfrac{1}{v} = \dfrac{1}{f} - \dfrac{1}{|u|} < 0 and v<0v < 0: a virtual image on the same side as the object. With f=+20f = +20 and u=−15u = -15, v=−60v = -60 cm, and m=−60−15=+4m = \dfrac{-60}{-15} = +4 — erect and four times enlarged. This is the magnifying glass: hold a lens closer to the print than its focal length and the letters swell, upright.

Step 3. The changeover. Exactly at ∣u∣=f|u| = f (object at the focus), 1v=1f−1f=0\dfrac{1}{v} = \dfrac{1}{f} - \dfrac{1}{f} = 0, so v→∞v \to \infty: the emergent rays are parallel and no image forms at any finite distance. This is the boundary between the two regimes, and it is why a lensmeter or a collimator places its source exactly at the focus to make a parallel beam.

Step 4. Read the moral. One converging lens is two instruments, split at its focal point: a real-image former for distant things, a virtual magnifier for near things. The diverging lens, by contrast, has no such split — 1v=1f+1u\dfrac{1}{v} = \dfrac{1}{f} + \dfrac{1}{u} with f<0f < 0 is negative for every real object, so v<0v < 0 always: virtual, erect, diminished, no exceptions. Verified: the two regimes v=+60v = +60 (real) and v=−60v = -60 (virtual magnifier), and the diverging-lens always-virtual result, are recomputed in verify_hs2-thin-lens-formula.py.

Figure
The magnifying-glass case: an object inside the focal length of a converging lens sends emergent rays that diverge, so no real image forms. Traced backward the rays meet on the same side as the object, forming an enlarged, erect, virtual image. Here the object at 15 cm gives a virtual image at minus 60 cm, four times the size.
F F object virtual image (erect, enlarged) object inside F → virtual, erect, magnified (the magnifying glass) dashed = backward extensions of the emergent rays

Limiting cases

CaseResultMeaning
u→−∞u \to -\infty (distant object)v→fv \to fimage at the focal plane — the camera and the eye
u→f−u \to f^- (object at focus)v→∞v \to \inftyemergent rays parallel; no image (the collimator)
converging, object inside FFv<0v < 0, m>1m > 1virtual, erect, magnified — the magnifying glass
converging, object at 2F2Fv=2fv = 2f, m=−1m = -1real, inverted, same size — object and image swap
diverging lens, any real objectv<0v < 0, 0<m<10 < m < 1always virtual, erect, diminished
f→∞f \to \infty (flat glass)v=uv = u, m=+1m = +1no lens: light passes straight through

Worked examples

Board level — a converging lens at four object positions (CBSE and NEET pattern)

A converging lens has focal length 20 cm. A 5 cm tall object is placed on the axis at (a) 30 cm, (b) 40 cm, (c) 60 cm, and (d) 15 cm in front of the lens. In each case find the image distance, the magnification and the full nature of the image.

Step 1. Fix the signs once: converging, so f=+20 cmf = +20\ \mathrm{cm}; real object throughout, so u<0u < 0 in every part. Use 1v=1f+1u\dfrac{1}{v} = \dfrac{1}{f} + \dfrac{1}{u} and m=vum = \dfrac{v}{u}.

Step 2. Part (a), u=−30u = -30: 1v=120+1−30=3−260=160\dfrac{1}{v} = \dfrac{1}{20} + \dfrac{1}{-30} = \dfrac{3 - 2}{60} = \dfrac{1}{60}, so v=+60 cmv = \boxed{+60\ \mathrm{cm}} and m=60−30=−2m = \dfrac{60}{-30} = \boxed{-2}. Nature: v>0v > 0 real (far side), m<0m < 0 inverted, ∣m∣>1|m| > 1 magnified — a real, inverted image twice the object's size, so h′=−2×5=−10 cmh' = -2 \times 5 = -10\ \mathrm{cm}. This is the projector regime, object between FF and 2F2F.

Step 3. Part (b), u=−40u = -40 (the object now at 2F2F): 1v=120+1−40=2−140=140\dfrac{1}{v} = \dfrac{1}{20} + \dfrac{1}{-40} = \dfrac{2 - 1}{40} = \dfrac{1}{40}, so v=+40 cmv = \boxed{+40\ \mathrm{cm}} and m=40−40=−1m = \dfrac{40}{-40} = \boxed{-1}: real, inverted, same size, at 2F2F on the far side — the symmetric case, object and image swappable. Part (c), u=−60u = -60 (beyond 2F2F): 1v=120−160=3−160=130\dfrac{1}{v} = \dfrac{1}{20} - \dfrac{1}{60} = \dfrac{3 - 1}{60} = \dfrac{1}{30}, so v=+30 cmv = \boxed{+30\ \mathrm{cm}}, m=30−60=−0.5m = \dfrac{30}{-60} = \boxed{-0.5}: real, inverted, diminished — the camera regime.

Step 4. Part (d), u=−15u = -15 (now inside the focus): 1v=120+1−15=3−460=−160\dfrac{1}{v} = \dfrac{1}{20} + \dfrac{1}{-15} = \dfrac{3 - 4}{60} = -\dfrac{1}{60}, so v=−60 cmv = \boxed{-60\ \mathrm{cm}} and m=−60−15=+4m = \dfrac{-60}{-15} = \boxed{+4}. Now v<0v < 0: the image has jumped to the same side as the object — virtual, erect, magnified fourfold. This is the magnifying glass. Watch how the single sign of vv flipped the entire story as the object crossed the focus, exactly as it did for the concave mirror — but note the numbers are opposite in sign to the mirror's, because a real lens image is v>0v > 0, not v<0v < 0.

Competitive level — the diverging lens always behaves, and a mirror trap (JEE pattern)

(a) An object is placed 30 cm in front of a diverging lens of focal length 20 cm. Find the image. (b) A student, solving the same numbers for a concave mirror of focal length 20 cm, writes v=−12v = -12 cm. Explain why the lens and mirror answers differ.

Step 1. Diverging lens: f=−20 cmf = -20\ \mathrm{cm}, real object u=−30 cmu = -30\ \mathrm{cm}. Then 1v=1f+1u=1−20+1−30=−3−260=−560=−112\dfrac{1}{v} = \dfrac{1}{f} + \dfrac{1}{u} = \dfrac{1}{-20} + \dfrac{1}{-30} = \dfrac{-3 - 2}{60} = -\dfrac{5}{60} = -\dfrac{1}{12}, so v=−12 cmv = \boxed{-12\ \mathrm{cm}}.

Step 2. Magnification: m=vu=−12−30=+0.4m = \dfrac{v}{u} = \dfrac{-12}{-30} = \boxed{+0.4}. Nature: v<0v < 0 virtual (same side), m>0m > 0 erect, ∣m∣<1|m| < 1 diminished — and a diverging lens gives exactly this, virtual-erect-diminished, for every real object, just as a convex mirror always does. The image sits 12 cm in front, on the object's side, at 0.40.4 of the height.

Step 3. Now the trap in part (b). The mirror uses 1v+1u=1f\dfrac{1}{v} + \dfrac{1}{u} = \dfrac{1}{f} with the plus. For a concave mirror f=−20f = -20 (concave is f<0f < 0), u=−30u = -30: 1v=1f−1u=−120+130=−3+260=−160\dfrac{1}{v} = \dfrac{1}{f} - \dfrac{1}{u} = -\dfrac{1}{20} + \dfrac{1}{30} = \dfrac{-3 + 2}{60} = -\dfrac{1}{60}, so v=−60 cmv = -60\ \mathrm{cm} — not −12-12. The student got −12-12 by accidentally using the lens's minus-equation numbers, or by mishandling the mirror's plus. The lesson: the lens's −12-12 and the mirror's −60-60 come from genuinely different equations. Never carry a lens result into a mirror problem or vice versa. Timing note: about 60 seconds for the lens, and the whole point of part (b) is to make you slow down for one second and ask "lens or mirror?" before choosing between the minus and the plus. That one-second check is worth more marks over a paper than any algebra speed. Decide the element first, then pick the equation.

Exam traps

Mirror's plus for a lens. The number-one lost mark in the chapter. A lens is 1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f} (minus); a mirror is 1v+1u=1f\dfrac{1}{v} + \dfrac{1}{u} = \dfrac{1}{f} (plus). Choose the element first, then the equation.

Magnification sign. For a lens m=+v/um = +v/u; for a mirror m=−v/um = -v/u. Do not carry the mirror's extra minus into lens work — it will flip every orientation you report.

Which side is a real image. A real lens image is v>0v > 0, on the far side from the object; a real mirror image is v<0v < 0, on the near side. If your "real image" has the wrong sign, you have crossed the two conventions.

Dropping the object's u<0u < 0. A real object is negative for a lens exactly as for a mirror. Forgetting it is the fastest way to a wrong side and a wrong nature.

Not stating the nature. Boards mark "real or virtual, erect or inverted, magnified or diminished". Read it off the signs (vv for side, mm for orientation and size) and write it down.

Board scope — read carefully. The thin lens formula in New Cartesian form is examined by CBSE, ICSE, JEE Main, JEE Advanced and NEET, and by AP Physics 2 (Unit 13) — but AP uses the "real-positive" convention (so,sis_o, s_i both positive for real object and image), so its equation reads 1si+1so=1f\dfrac{1}{s_i} + \dfrac{1}{s_o} = \dfrac{1}{f}; flag the convention difference and never switch mid-solution. IGCSE 0625 requires the converging-lens ray diagrams and linear magnification but not the signed equation. Among A-Levels, only OxfordAQA International A-Level carries lens imaging; CIE 9702 and current Edexcel IAL do not do lenses at all, so a 9702 student should treat this as enrichment. IB has no lens or mirror image formation at SL or HL. Know your board before you memorise a convention.

Origins · 1 minCarl Friedrich Gauss and how this was discovered
CF
Carl Friedrich Gauss
1777–1855 · Göttingen

Gauss, often called the prince of mathematicians, gave optics the framework this equation lives in. Already famous for number theory, least squares and the survey of Hanover, he turned late in life to lenses, and in Dioptrische Untersuchungen (1841) he recast image formation in the form still taught today. His insight was that any system of lenses, however complicated, can be replaced for paraxial rays by a set of cardinal points — focal points and principal planes — between which the simple conjugate relation 1/v−1/u=1/f1/v - 1/u = 1/f holds exactly. The thin-lens formula on this page is the special case when the lens is thin enough that its two principal planes merge into one. That a pure mathematician produced the working equation of every optician and photographer is a happy accident of physics.

History
1611
— Johannes Kepler, in Dioptrice, gives the first theory of lenses and the astronomical telescope, distinguishing real from virtual images.
1637
— René Descartes, in La Dioptrique, treats lens refraction with coordinate geometry.
1690
— Christiaan Huygens combines lenses into compound eyepieces and grinds his own optics.
1841
— Carl Friedrich Gauss, in Dioptrische Untersuchungen, casts paraxial imaging in cardinal-point form, giving the conjugate relation 1/v − 1/u = 1/f its modern shape.
1873
— Ernst Abbe extends the paraxial theory to real, aberration-limited lenses at Zeiss.

Going further

Texts. NCERT Physics Class 12, Ch. 9 ("Ray Optics and Optical Instruments"), §9.5 "Refraction by a Lens", the thin lens formula and ray diagrams · H. C. Verma, Concepts of Physics Vol. 1, "Geometrical Optics" · Cambridge IGCSE 0625, converging-lens ray diagrams · OxfordAQA International A-Level, lens imaging.

Provenance. Standard paraxial optics, New Cartesian. Recompute (converging f=+20f = +20 cm): u=−30→v=+60u = -30 \to v = +60, m=−2m = -2; u=−40→v=+40u = -40 \to v = +40, m=−1m = -1; u=−60→v=+30u = -60 \to v = +30, m=−0.5m = -0.5; u=−15→v=−60u = -15 \to v = -60, m=+4m = +4; image height h′=mh=−2×5=−10h' = m h = -2 \times 5 = -10 cm. Diverging f=−20f = -20: u=−30→v=−12u = -30 \to v = -12, m=+0.4m = +0.4. Mirror cross-check (concave f=−20f = -20, u=−30u = -30): v=−60v = -60, distinct from the lens. Limits: u→−∞⇒v→fu \to -\infty \Rightarrow v \to f; u=f⇒1/v=0u = f \Rightarrow 1/v = 0.

Prerequisites. The Lens Maker's Formula — which builds the ff this equation uses; Refraction at a Spherical Surface — the surface physics beneath it. Leads to. Lens Power & Magnification, where 1/f1/f becomes the dioptre and mm is developed; and Lenses in Contact & Combination.

Go deeper (UG). The full Gaussian theory — cardinal points, principal planes, thick lenses and the matrix method — is developed in Image Formation and Magnification in the university optics track. It is enrichment; every result here follows from two rays and similar triangles.

Why does the lens formula have a minus where the mirror has a plus?

Because light goes through a lens but bounces back off a mirror, and that reroutes where the real image lands. For a mirror the real image forms in front, on the same negative side as the object, and the algebra collapses to 1/v+1/u=1/f1/v + 1/u = 1/f. For a lens the real image forms on the far, positive side, and the same similar-triangle algebra collapses to 1/v−1/u=1/f1/v - 1/u = 1/f. The minus is not a convention someone chose to be awkward — it falls out of the derivation the moment you note that a lens's real image has v>0v > 0 while a mirror's has v<0v < 0. Learn the physical sentence "lens transmits, mirror reflects" and you can rebuild either sign on the spot.

How do I remember whether m has a minus?

Tie it to the real-image test, not to rote. For both lens and mirror, a real image must come out inverted, so mm must be negative for a real image. For a mirror a real image has u<0u < 0 and v<0v < 0 (same signs), so to make mm negative you need the extra minus: m=−v/um = -v/u. For a lens a real image has u<0u < 0 and v>0v > 0 (opposite signs), so v/uv/u is already negative and no extra minus is needed: m=+v/um = +v/u. The magnification formula carries whatever sign it takes to make a real image inverted — that is the memory hook, and it works both ways round.

What exactly is a "thin" lens, and when does the approximation fail?

A thin lens is one whose thickness is negligible compared with the object distance, the image distance and the focal length, so both refracting surfaces can be treated as sitting at a single plane — the optical centre — through which a central ray passes undeviated. This lets us use one focal length and one origin instead of tracking the small gap between the faces. It fails for a fat lens (a glass sphere, a thick condenser), where the two surfaces are genuinely far apart and you must use the full Gaussian treatment with two principal planes, or trace the light surface by surface as the lens maker's derivation did. For school problems the lens is always thin unless the question says otherwise.

The object is real, so why is u negative?

For the same reason as with a mirror: the New Cartesian convention measures distances from the optical centre and takes the direction of the incident light as positive, and a real object always sits on the incoming side, against that positive direction — so its distance is negative. It is not a property of "objectness"; it is simply that "in front of the lens, where the light comes from" is the negative side. The only way to get a positive object distance is a virtual object — converging light already heading toward a point behind the lens — which you meet only in multi-lens systems, and which the lens-combination article touches on.

Why do the two construction rays work, and are there others?

The two we use are just the two whose paths need no calculation: a ray parallel to the axis must, by the definition of the focus, pass through FF after the lens; and a ray through the optical centre passes straight, because there the lens is like a thin parallel slab. A third easy ray goes through the near focus and emerges parallel to the axis — you can use any two of the three, and the third is a handy check that they meet at the same point. All other rays from the object top also pass through the image top (that is what "image" means), but their paths require the lens formula to compute, so we do not draw them. Two rays fix a point; the third confirms it.

My AP Physics book writes the lens equation with a plus. Who is right?

Both — you are seeing two conventions for the same physics. AP Physics 2 uses the "real-positive" convention, in which a real object and a real image both take positive distances, and the equation is written 1si+1so=1f\dfrac{1}{s_i} + \dfrac{1}{s_o} = \dfrac{1}{f} with f>0f > 0 for a converging lens. Indian boards, and this article, use New Cartesian, in which a real object is negative and the equation is 1v−1u=1f\dfrac{1}{v} - \dfrac{1}{u} = \dfrac{1}{f}. Plug a real object into each with its convention's sign and you get the same physical image location. What you must never do is mix them — a New Cartesian uu with the AP equation, or vice versa. Pick the convention your exam uses, state it, and stay inside it for the whole problem.

Before this

Where this leads