Lessons · optics
Image formation by a thin lens: why the ray diagram is the lens equation
Regime 3 — an algebra-only domain, and here the honest second register is geometry, not calculus: the ray diagram. The same image distance falls out of similar triangles, and SymPy proves the three principal-ray constructions agree — which IS the thin-lens equation.
A converging lens with focal length m. An object m tall stands a distance to the left. Slide the object along the axis: outside the focal point it makes a real, inverted image you could catch on a screen (a projector); slide it inside the focal point and the image flips to virtual, upright, and enlarged (a magnifying glass). The thin-lens equation tells you where the image is — but the ray diagram shows you why, with three straight lines and no equation at all.
Geometric optics needs no calculus and, at first, no algebra. From the object tip, the ray parallel to the axis bends through the far focus ; the ray through the lens center goes straight; the ray through the near focus leaves parallel. Each is a straight line you can rule by hand. Where they cross is the image.
check solves ; chief ray ; parallel & focal rays give the same ;
- ✓ The closed form satisfies the thin-lens equation — back-substituting leaves zero. [structural]
- ✓ The ray through the lens center is undeviated, so the object and image triangles about the center are similar: . [structural]
- ✓ The parallel ray refracts toward (or away from) the focus, giving by similar triangles. It equals the chief-ray value — the two independent constructions locate the same image point, and that agreement is exactly the thin-lens equation. [structural]
- ✓ The focal ray (through a focus, emerging parallel) gives — the same magnification again. All three principal-ray constructions locate one image point. [structural]
- ✓ The magnification in terms of alone: — its sign sets the orientation (upright when , inverted when ), its size the scale. [structural]
Dimensional homogeneity: checked by SymPy (holds).
It does not. The magnification is fixed by the two distances alone — a property of the lens and where you place the object, not of the object's height. Drag the object-height slider: the image grows and shrinks in step with the object, but (and whether the image is enlarged or reduced) never changes. Magnification is about the geometry of the rays, which is why the same lens magnifies a tall tree and a short flower by the same factor at the same distance.
Modeling assumptions — author-asserted, disclosed not discharged
- A thin lens: its thickness is negligible next to the focal length, so both refractions happen in one plane at the lens center.
- Paraxial rays — all rays stay close to the axis, so a point object maps to a single point image. Real lenses with wide apertures blur this (spherical aberration).
- A single converging lens, , with the sign convention that a real image (on the far side, catchable on a screen) has and a virtual image has .
The ray diagram, fully annotated
A static rendering (Matplotlib) at the default object distance — the three principal rays converging to the real, inverted image. The interactive version, with object-distance and height sliders, is in the Graph tab above.
Formulas used
Hover a formula to preview its reference entry; click to open it in the reference (or the concept graph):
- Thin-lens equation
Valid when: thin lens, paraxial rays; sign convention: real images at positive dᵢ
Open in reference →
- Magnification (thin lens or mirror)
Valid when: thin lens or mirror, paraxial rays; negative m means an inverted image; |m| > 1 is enlarged
Open in reference →