Sub topic 14
Magnification and image orientation
This chapter assumes you can use the thin-lens and mirror equations with the real-is-positive sign convention from the previous chapters. Basic algebra and similar triangles are enough for the rest.
What magnification measures
Lateral magnification, written m, compares the size of an image to the size of its object. Both heights are measured perpendicular to the optical axis:
m = hi / ho
Here ho is the object height and hi is the image height. Heights are signed. An upright feature is positive and an inverted one is negative, so one number carries both size and orientation.
- The magnitude |m| gives the size ratio. |m| > 1 means enlarged, |m| < 1 means reduced, and |m| = 1 means the same size.
- The sign gives the orientation. m > 0 means upright and m < 0 means inverted.
"Upright" and "inverted" are relative to the object, not to the room. If the object is itself upside down, an upright image is also upside down.
Deriving m = -d_i/d_o
Draw the ray from the top of the object that strikes the center of a lens (or the vertex of a mirror). It reaches the image tip on the far side of the axis. The object, the image, and the axis form two similar triangles. Their sides give
hi / ho = -di / do
The minus sign comes from the sign convention. For a real image, di > 0, the ray crosses the axis, and the image is inverted. For a virtual image, di < 0, the ray does not cross, and the image is upright.
This gives the working formula, which is the same for thin lenses and spherical mirrors:
m = -di / do
You can also eliminate di with the thin-lens or mirror equation, 1/f = 1/do + 1/di. Solving gives di = f·do / (do − f), and then
m = f / (f − d_o)
This form needs only f and d_o, and it shows how m depends on the object position.
How m changes with object distance
For a converging lens or concave mirror (f > 0), m = f/(f − do) changes character at do = f and d_o = 2f.
| Object position | Image type | Orientation | Size | m |
|---|---|---|---|---|
| d_o > 2f | Real | Inverted | Reduced | -1 < m < 0 |
| d_o = 2f | Real | Inverted | Same size | m = -1 |
| f < d_o < 2f | Real | Inverted | Enlarged | m < -1 |
| d_o = f | At infinity | Not defined | Not defined | Undefined |
| d_o < f | Virtual | Upright | Enlarged | m > 1 |
For a diverging lens or convex mirror (f < 0), the denominator f − d_o is negative and larger in magnitude than |f|. For every real object, the image is virtual, upright, and reduced, with 0 < m < 1.
A plane mirror is the limit f → ∞. Then di = −do and m = +1, which matches the earlier result that a plane-mirror image is virtual, upright, and the same size.
The link between sign of m and image type holds only for a single lens or mirror with a real object. With several elements, or a virtual object, an inverted image can be virtual and an upright one real. Check d_i directly.
A function that reports the image
This function combines the equations and describes the image in words. It returns None-like text at the focal point because the rays leave parallel and no finite image forms.
import math
def describe(f, d_o, h_o=1.0):
"""Describe the image of an object of height h_o at distance d_o.
f > 0 for a converging lens or concave mirror, f < 0 otherwise.
Use f = math.inf for a plane mirror.
"""
if d_o == f:
return "no finite image (rays leave parallel)"
d_i = 1 / (1 / f - 1 / d_o)
m = -d_i / d_o
h_i = m * h_o
kind = "real" if d_i > 0 else "virtual"
orientation = "upright" if m > 0 else "inverted"
if math.isclose(abs(m), 1):
size = "same size"
elif abs(m) > 1:
size = "enlarged"
else:
size = "reduced"
return (f"d_i={d_i:.2f}, m={m:.2f}, h_i={h_i:.2f}: "
f"{kind}, {orientation}, {size}")
print(describe(10, 30)) # real, inverted, reduced (m = -0.50)
print(describe(10, 20)) # real, inverted, same size (m = -1.00)
print(describe(10, 15)) # real, inverted, enlarged (m = -2.00)
print(describe(10, 10)) # no finite image
print(describe(10, 5)) # virtual, upright, enlarged (m = 2.00)
print(describe(-10, 30)) # virtual, upright, reduced (m = 0.25)
print(describe(math.inf, 30)) # plane mirror: virtual, upright, same sizeEach line matches a row of the table above. The case f = 10, do = 30 gives m = 10/(10 − 30) = −0.5, which agrees with −di/d_o = −15/30.
Size is not area, and sign is not size
Lateral magnification is a ratio of lengths. An image with m = −2 is twice as tall and twice as wide, so its area is 4 times larger (m²). The brightness of a real image spread over that area falls by the same factor, if the lens collects the same light.
Two comparisons come up often:
- m = −2 and m = +2 have the same size. They differ only in orientation, and a real inverted image can be larger than a virtual upright one.
- −0.5 is a larger magnification than −2 only in the arithmetic sense. Compare sizes with |m|, never with m itself.
Magnification across two elements
When the first image becomes the object for the second element, the heights chain together. The total is the product:
m_total = m₁ · m₂
Signs multiply too. Two inverting stages (m₁ < 0 and m₂ < 0) produce an upright final image. This is how a simple two-lens telescope with a real intermediate image and a final virtual image can be set up to flip or not flip the view. The previous worked example gave m₁ = −0.5 and m₂ = −0.25, so mtotal = +0.125, upright and one-eighth size. Treat each element in turn and multiply at the end. Do not apply m = −di/do with the first do and the last d_i.
Common errors
- Using |d_i| in the formula. Keep the sign of di. A virtual image has di < 0, and dropping the sign turns an upright image into an inverted one.
- Reading orientation from the diagram only. Ray diagrams show the idea, but the sign of m is the check. Use both and make sure they agree.
- Confusing magnification with angular magnification. Magnifying glasses and telescopes are rated by angular magnification, a ratio of angles. That is a different quantity, covered with the instruments.
- Dividing by zero at the focal point. At do = f, di is infinite and m is undefined. Handle this case explicitly in code.
- Forgetting that a convex mirror or diverging lens always reduces. If your computed |m| is above 1 for such an element with a real object, there is a sign error in f.
Exercise
A converging lens has f = 20 cm. An object 5 cm tall stands 30 cm from the lens. Find di, m, and hi, and describe the image.
Show answer
di = 1/(1/20 − 1/30) = 60 cm. m = −60/30 = −2. hi = m·ho = −10 cm. The image is real (di > 0), inverted (m < 0), and enlarged (|m| = 2), 10 cm tall. Check with m = f/(f − d_o) = 20/(20 − 30) = −2.
Exercise
A convex mirror has f = −15 cm. An object stands 30 cm in front of it. Find d_i and m, and describe the image.
Show answer
di = 1/(1/(−15) − 1/30) = 1/(−3/30) = −10 cm. m = −(−10)/30 = +1/3. The image is virtual (di < 0), upright (m > 0), and reduced to one third of the object height, as expected for a convex mirror.