Image Formation and Magnification
Point a lens at a candle and slide a card behind it until the flame snaps into focus: you have just built an image. Every object is a field of point sources, each spraying a cone of rays, and an imaging element — a lens, a mirror, a single curved surface — is a machine for gathering each cone back toward a single point. Where the cones physically reconverge, a real image hangs in space and can be caught on a screen, a sensor, or the retina. Where the rays only appear to diverge from a point behind the element, a virtual image floats, seen by the eye but impossible to project. The bookkeeping of this reconvergence is astonishingly compact. One conjugate equation, , says where the image lands; one magnification, , says how big and which way up. But an object is three-dimensional, and the third dimension does not scale the way the first two do. Depth is stretched by the square of the transverse scale and its order is reversed — the longitudinal magnification is — which is exactly why a magnifier makes a beetle look grotesquely deep, and why a solid cube never images to a similar cube. A third quantity, the angular magnification, ties the bundle together: gain size and you lose ray-angle, in the strict ratio . Those three magnifications are not independent decorations on the conjugate equation. They descend from a single conserved quantity of paraxial optics — the Lagrange invariant — so that image formation is, at bottom, one linear map with one conservation law. Fix a sign convention and hold it, and that map builds the camera, the eye, the microscope, and the telescope from the same short line of algebra.
- An image forms where the rays from an object point are made to reconverge (real, projectable) or where they only appear to diverge from (virtual, not projectable); ray tracing tells the two apart.
- The conjugate equation locates the image; the transverse magnification fixes its height and orientation (negative = inverted).
- Newton's form (distances measured from the focal points) gives the same imaging with .
- Longitudinal magnification : depth scales as the square of width and reverses order — 3-D objects always image distorted in depth.
- Angular magnification , so ; all three follow from the conserved Lagrange invariant .
- Key idea: every object point maps to one conjugate image point by the linear paraxial relation ; the single transverse magnification then fixes lateral size and orientation, while depth () and ray-angle () follow from the invariant .
Every object point maps to a unique conjugate image point through the linear paraxial relation . The transverse magnification fixes the image's height and orientation; the longitudinal magnification scales depth (and reverses it); the angular magnification scales ray angles. All three are consequences of the Lagrange (Smith–Helmholtz) invariant .
Where this lives today
The conjugate equation and its three magnifications are quietly inside every imaging device you own. A camera autofocus motor solves in real time, moving the lens so a distant scene () or a close macro subject lands sharply on the sensor; the "focus breathing" videographers dislike is the focal length shifting as the elements move. The human eye does the same with a deformable lens, forming the real inverted retinal image Kepler first described, at a fixed image distance while the power changes to accommodate. Longitudinal magnification is a working nuisance in microscopy and 3-D metrology: confocal and light-sheet microscopes must calibrate the depth stretch to reconstruct true specimen shape, and stereo-photogrammetry software carries an explicit vertical-exaggeration factor for exactly this reason. And the reciprocity — étendue conservation in disguise — sets a hard limit that no lens can beat: you cannot simultaneously image a wide field and a wide aperture without paying in one to gain in the other, the constraint that shapes every telescope and endoscope design.
The physical picture
We use the Hecht sign convention throughout: light travels left to right; the object distance for a real object left of the element, the image distance for a real image on the outgoing side, and for a converging element. A negative signals a virtual image, a negative an inverted one. Picture a point on the object tip spraying a fan of rays. The lens adds a fixed dose of convergence, and the fan re-crosses at the image tip. You never need the whole fan: three rays whose paths are known by definition pin the image down — the ray that arrives parallel to the axis and leaves through the back focus , the ray straight through the lens centre, and the ray through the front focus that leaves parallel. Their crossing is the image.
Magnification is really a statement about how the ray bundle is squeezed. If the image cone reconverges over a shorter run than the object cone diverged, its rays are steeper and its height smaller — angular gain bought with transverse loss. Depth is the odd one out: because , a lens that doubles heights quadruples depths and swaps near for far. Slide the object toward the front focus and the story runs to its two limits — image size runs off to infinity as , and flips from inverted-real to erect-virtual as the object crosses inside the focus.
The curve is the whole story of a single converging lens. To the right of the asymptote at lies the real, inverted world of cameras and projectors — the magnification is negative, its size set by how far past the focus the object sits. To the left lies the virtual, erect world of the magnifying glass, magnification positive and unbounded near the focus. At the two conjugates are symmetric and ; push to infinity and the image shrinks into the focal plane.
The core equations
Everything begins with the conjugate relation for a thin lens (or, with the right power, any paraxial element) in a single medium. Two or three sentences of context: the reciprocal distances of object and image add to the reciprocal focal length, so as the object approaches the focus the image recedes, and the sign of decides real versus virtual.
where: — object distance (real object, left of the element); — image distance, real (outgoing side), virtual; — converging focal length. Solving, : for the image is real, for virtual. The transverse magnification compares image height to object height and follows from the undeviated centre ray:
where: — object and image heights; inverted, erect; enlarged. Substituting gives the compact form plotted above. Measuring distances not from the lens but from the two focal points gives Newton's equations, often the fastest route to a number:
where: — object distance from the front focus ; — image distance from the back focus . The product is exactly equivalent to ; both signs of (object outside or inside the focus) are allowed. Depth does not scale like height. Differentiating at fixed gives the longitudinal magnification of a small on-axis element:
where: — axial magnification (single medium). The minus sign is depth reversal: the near face of a solid object becomes the far face of its image. Because , a transverse gain of is an axial gain of . Finally the angular magnification and the invariant that ties the three together:
where: — marginal ray angles in object and image space; — the Lagrange (Smith–Helmholtz) invariant, conserved through any paraxial system. In one medium : transverse and angular magnification are strict reciprocals, so no imaging system can enlarge both field and aperture without limit — the paraxial ancestor of étendue conservation.
This card earns the two magnifications that do the day-to-day work of imaging, and exposes why depth behaves so differently from width. The strategy is geometric for the transverse case — the undeviated centre ray makes two similar triangles whose height ratio is the magnification — and analytic for the longitudinal case, where differentiating the conjugate equation at fixed focal length turns a ratio of small displacements into . The sign that survives each step is the whole point: it labels inverted versus erect, and near-face versus far-face.
Step 1. Send the ray from the object tip (height , distance ) straight through the lens centre; a thin lens does not deviate it. On the object side it drops from to the axis over a run ; on the image side it climbs from the axis to over a run . Why the centre ray: the two lens faces are parallel and close at the axis, so this ray emerges undeflected — its slope is a pure geometric fact.
Step 2. The two right triangles share the centre-ray slope, so . Restoring the convention (a real image sits below the axis for an erect object), . Why the minus sign: on the far side the ray has crossed the axis, so the image tip lies on the opposite side — a real image is inverted.
Step 3. For depth, treat a short axial object of thickness imaged to . Differentiate with fixed: , so . Why differentiate: longitudinal magnification is by definition the ratio of conjugate axial displacements, which is a derivative of the imaging map.
Step 4. But , so . The magnitude is the square of the transverse scale; the sign is negative, meaning axial order reverses. For this is : a deep object images deep, front-to-back flipped. Why it matters: solid objects can never image to similar solids — microscopy and photogrammetry must correct this built-in depth distortion. *Verified in verify_image-formation-magnification.py: and as sympy identities; the real case (, , , ) and the virtual case (, ).*
Go deeper · Derivation B · 1 minNewton's form and the equivalence x_o x_i = f²
Newton's equations are the same imaging law wearing different coordinates, and they are often the quickest path to an answer because the product is symmetric and sign-transparent. This card derives them from the Gaussian relation and shows the two magnification formulas fall straight out, then confirms they reproduce both a real and a virtual conjugate without special-casing the algebra. It is also the cleanest way to see longitudinal magnification: with , depth scaling is one derivative away.
Step 1. Measure the object from the front focus, , and the image from the back focus, . Substitute , into . Why shift the origin: the focal points are the natural landmarks of a lens, and referencing them symmetrises the equation.
Step 2. Clearing denominators, . Expanding and cancelling the and cross terms leaves . Why so clean: the Gaussian relation is a rectangular hyperbola in ; shifting to the focal points centres it, and a centred rectangular hyperbola is simply .
Step 3. From and , algebra collapses this to . Why two equal forms: means , so the image-side and object-side magnification expressions are identically equal.
Step 4. Test both conjugates for . Real: , , , . Virtual: , , , . Why this matters: the same formula, with no case split, delivers the real inverted image and the virtual erect magnifier — a sign-safe route students can trust. *Verified in verify_image-formation-magnification.py: symbolically; ; both conjugates ( and ) reproduce and .*
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| Object at the focus, | , | rays emerge parallel; the image recedes to infinity — the collimator |
| Distant object, | , | image forms in the focal plane, shrunk — a camera focused at infinity |
| Symmetric conjugates, | same-size inverted real image; minimum object-to-image separation, | |
| Inside the focus, | , | virtual, erect, enlarged — the simple magnifier |
| Plane mirror / plane interface, | , | erect same-size virtual image, front–back depth reversed |
| Across media, | , | the invariant sets the reciprocity; equal only for one medium |
Worked examples
1 · A real, inverted image (the projector case)
A thin converging lens of focal length has an object in front of it. Locate the image and give its size, orientation, and depth scaling.
Step 1. Conjugate equation: , so — positive, hence a real image on the far side.
Step 2. Transverse magnification: — twice the height and inverted (the negative sign). Newton's form agrees: , , .
Step 3. Depth: . A specimen thick along the axis images deep with its near and far faces swapped.
Step 4. Angles: , so the ray cone is steeper by two in the image space — and , the Lagrange invariant honoured. This is exactly the geometry of a slide projector throwing an enlarged inverted image on a wall.
2 · A virtual, erect image (the magnifying glass)
Same lens, but now the object sits inside the focus at . Where is the image, and what does the eye see?
Step 1. , so — negative, a virtual image in front of the lens, on the same side as the object.
Step 2. — erect and doubled. This is the working regime of a magnifier: the object must sit inside the focal length to give an enlarged, upright virtual image the eye can view.
Step 3. It cannot be caught on a screen. The real rays leaving the lens still diverge; only their backward extensions meet at , so no energy concentrates there. An eye placed beyond the lens refocuses those diverging rays onto its retina and perceives the enlarged image.
Step 4. Depth again squares and flips: . Even the virtual, erect image distorts depth by four and reverses it — a reminder that holds regardless of whether the image is real or virtual.
Physics of the portrait
Before Kepler, no one could say where an image was. The ancients and the medieval perspectivists argued about how the eye "sees," but it was Kepler who first treated the eye as an optical instrument that forms a real, inverted picture on a screen at the back — the retina — and who worked out how lenses build images point by point.
Origins · 1 minJohannes Kepler and how this was discovered
Kepler is remembered for planetary orbits, but he founded modern geometrical optics almost as a side project. In Ad Vitellionem Paralipomena (1604), written while he was imperial mathematician in Prague, he correctly explained the pinhole image and — decisively — argued that the eye forms a real, inverted image on the retina, the picture the brain later re-inverts; he cheerfully accepted the paradox that we see the world upside-down on our retinas. In Dioptrice (1611) he gave the first systematic theory of refraction by lenses, worked out real and virtual images, and designed the "astronomical" (Keplerian) telescope of two convex lenses, which inverts the image but gives a wider field than Galileo's. He never had an accurate law of refraction — Snell's sine law came a decade later — yet by reasoning paraxially he got the geometry of image formation essentially right, and every conjugate equation in this article is the harvest of the program he began.
Going further
Texts. Hecht, Optics, 5th ed., §5.2–5.3 (imaging, conjugate and magnification relations) · Saleh & Teich, Fundamentals of Photonics, 3rd ed., Ch. 1 (Ray Optics) · Born & Wolf, Principles of Optics, §4.4 (geometrical theory of imaging, the Lagrange invariant) · Jenkins & White, Fundamentals of Optics, Ch. 4–5.
Provenance. Definitions and derivations follow Hecht §5.2–5.3 (Eq. 5.26 conjugates, 5.36 longitudinal magnification) and Born & Wolf §4.4 (Smith–Helmholtz invariant). The base article stated the conjugate relation in the Cartesian convention ( for a real object); it is recast here into the Hecht real-positive convention (, , ) for consistency with the rest of this track, with no change to any physical result. verify_image-formation-magnification.py reproduces: , Newton , (sympy); the real conjugate (, , , ) and the virtual conjugate (, ); the image-type table; ; the plane-mirror limit (, ).
Builds on: Ray Model of Light · Snell's Law of Refraction · Fermat's Principle of Least Time · Refraction at a Spherical Surface. Leads to: Thin Lens Equation and Lensmaker's Equation · Thick Lenses and Principal Planes · Stops, Pupils, and Field of View · Plane and Spherical Mirrors.
How do I decide from the numbers alone whether an image is real or virtual?
Read the sign of . Solve : if the image is real and sits on the outgoing side (projectable); if it is virtual and sits on the object side (only viewable). For a single converging lens the switch happens at : objects beyond the focus give real images, objects inside give virtual ones. The magnification sign then tells you orientation — is negative (inverted) for a real image and positive (erect) for the virtual case. You never need to trace rays to classify the image; the two signs do it.
Why is a real image inverted but a virtual image erect, for the same lens?
Because a real image forms after the rays have crossed the axis, and a virtual image forms before they would. When the object is beyond the focus, the converging rays meet and cross on the far side, so the tip that started above the axis ends below it — inverted, . When the object is inside the focus, the lens cannot bend the rays enough to cross; they still diverge, and their backward extensions meet on the same side, above the axis — erect, . The sign of (which flips at ) carries this directly into .
Where does M_L = −M_T² actually come from — it looks arbitrary?
It is a derivative. Longitudinal magnification is the ratio of a small image-depth to the small object-depth that produced it, . Differentiate the conjugate equation at fixed and you get , and since , that ratio is exactly . The square is the two powers of distance in ; the minus sign is the depth reversal built into the imaging map. It holds for real and virtual images alike, in a single medium.
What is the Lagrange invariant and why should I care?
The Lagrange (or Smith–Helmholtz) invariant is the quantity — index times ray height times ray angle — evaluated for a chief and a marginal ray; it is conserved through every paraxial surface of a system. Its payoff is the reciprocity (equal to in one medium): whatever transverse magnification you gain, you lose in angular magnification, and vice versa. Physically it is conservation of étendue (optical throughput) — the reason you cannot build a lens that magnifies a wide field at a wide aperture for free. It is the paraxial seed of the Abbe sine condition and of the brightness theorem in radiometry.
The camera focuses a far scene near the focal plane — how does the conjugate equation say that?
Set in : the term vanishes and . So a very distant object images almost exactly one focal length behind the lens, in the focal plane — which is why "focused at infinity" means the sensor sits at . As the subject comes closer, grows and the image distance increases past , so the lens must move away from the sensor to keep focus. A macro shot at needs , doubling the lens-to-sensor gap — the reason macro lenses extend so far.
Does the same magnification framework work for mirrors and single surfaces, or only thin lenses?
It is universal within the paraxial regime. Plane and spherical mirrors obey with , and refraction at a single spherical surface obeys ; both share the magnification structure, with for the mirror and across a surface. The three magnifications and the Lagrange invariant carry over unchanged. That universality is the point: fix one sign convention and the same short algebra images through a mirror, a surface, a thin lens, or a whole instrument built by cascading them.