Sub topic 12
The mirror equation
This chapter assumes you can draw principal-ray diagrams for concave and convex mirrors. It also assumes you know the sign convention from the previous chapter, where real is positive. You also need to be able to solve equations with reciprocals. The mirror equation gives the same answers as a ray diagram, but as numbers.
What the equation says
For a spherical mirror in the paraxial approximation, the object distance do, the image distance di, and the focal length f are related by:
1/f = 1/d_o + 1/d_iThe focal length is tied to the radius of curvature R by f = R/2. The paraxial approximation (rays close to the axis and at small angles) is what makes this relation hold. Mirrors with a wide aperture break it, which the aberrations chapter covers.
The equation has the same form as the thin-lens equation. The difference is physical: a mirror reflects light back into the space where the object sits, so "real" means in front of the mirror.
Sign convention
Use the real-is-positive convention throughout.
| Quantity | Positive when | Negative when |
|---|---|---|
| f | Concave mirror (converging) | Convex mirror (diverging) |
| d_o | Real object, in front of the mirror | Virtual object (rare, see below) |
| d_i | Real image, in front of the mirror | Virtual image, behind the mirror |
| m | Image is upright | Image is inverted |
| R | Center of curvature in front (concave) | Center of curvature behind (convex) |
Treat the sign of each quantity as part of its value. Substitute it exactly as given, and read the sign of the result.
Where it comes from
The derivation is short. A ray from the top of the object hits the mirror's vertex, which is the point where the axis meets the mirror. It reflects at the same angle on the other side of the axis. The object and image form two similar right triangles, and their ratio of heights equals the ratio of their distances. That gives the magnification:
m = h_i / h_o = -d_i / d_oA second ray passes through the center of curvature and returns along its own path. Combining the two sets of triangles, with the small-angle approximation tan θ ≈ θ, gives the reciprocal relation above. The minus sign in m is a convention. It makes m negative for inverted images when di and do are both positive.
Solving for the image distance
Rearranging the equation gives a direct formula:
d_i = 1 / (1/f - 1/d_o)This fails at d_o = f. The denominator is zero because the reflected rays leave parallel, so the image is at infinity. A function that implements the equation must handle that case explicitly.
def mirror_image(f, d_o):
"""Spherical mirror, real-is-positive convention.
f: focal length (concave > 0, convex < 0)
d_o: object distance (> 0 for a real object)
Returns (d_i, m), or None when the object is at the focal point.
"""
if d_o == f:
return None # reflected rays are parallel, image at infinity
d_i = 1 / (1 / f - 1 / d_o)
m = -d_i / d_o
return d_i, m
def describe(f, d_o):
result = mirror_image(f, d_o)
if result is None:
return "no image (rays parallel)"
d_i, m = result
kind = "real" if d_i > 0 else "virtual"
orient = "inverted" if m < 0 else "upright"
size = "enlarged" if abs(m) > 1 else "reduced" if abs(m) < 1 else "same size"
return f"d_i={d_i:.2f}, m={m:.2f}: {kind}, {orient}, {size}"
print(describe(10, 30)) # concave, outside the center of curvature
print(describe(10, 15)) # concave, between f and the center of curvature
print(describe(10, 10)) # concave, object at the focal point
print(describe(10, 5)) # concave, inside the focal length
print(describe(-10, 30)) # convex mirrorThe output is:
d_i=15.00, m=-0.50: real, inverted, reduced
d_i=30.00, m=-2.00: real, inverted, enlarged
no image (rays parallel)
d_i=-10.00, m=2.00: virtual, upright, enlarged
d_i=-7.50, m=0.25: virtual, upright, reducedWorked example
A concave mirror has radius of curvature R = 40 cm. A 3.0 cm tall object stands 60 cm in front of it. Find the image.
- The focal length is f = R/2 = +20 cm, positive because the mirror is concave.
- Apply the equation: 1/di = 1/20 - 1/60 = 3/60 - 1/60 = 2/60, so di = +30 cm.
- Magnification: m = -30/60 = -0.5.
- Image height: hi = m × ho = -0.5 × 3.0 = -1.5 cm.
The image is real, since d_i is positive, and it sits 30 cm in front of the mirror. It is inverted, since m is negative, and it is half the object's size. The object is beyond the center of curvature (60 cm > 40 cm). A ray diagram gives the same picture: the image lies between f and the center of curvature.
Reading the result by region
For a concave mirror, the image type depends on where the object sits.
| Object position | Image | Orientation | Size |
|---|---|---|---|
| Beyond the center of curvature | Real, between f and C | Inverted | Reduced |
| At the center of curvature | Real, at C | Inverted | Same size |
| Between C and f | Real, beyond C | Inverted | Enlarged |
| At f | None (at infinity) | N/A | N/A |
| Inside f | Virtual, behind the mirror | Upright | Enlarged |
A convex mirror has negative f, so 1/di = 1/f - 1/do is negative for every real object. The image is always virtual, upright, and reduced, and it lies between the mirror and its focal point. This is why convex mirrors are used for wide-angle views.
Edge cases
- Object at infinity. Then 1/do = 0 and di = f. Parallel rays focus at the focal point. This is how you locate f experimentally.
- Object at the focal point. The denominator is zero and no finite image forms. Code must check for this case instead of dividing.
- Virtual objects. If converging light is intercepted by a mirror before it comes to a focus, the "object" lies behind the mirror and d_o is negative. This is rare with single mirrors. It matters in compound systems.
- Values very close to f. The image distance grows very large and is sensitive to small errors in f or do. Rounding an input can change di substantially.
Common errors
- Dropping the sign of f for a convex mirror. Entering f = 10 instead of f = -10 gives a real image, which a convex mirror can never form for a real object.
- Using R in place of f. The equation takes f. Divide R by 2 first.
- Adding instead of taking reciprocals. Compute 1/f - 1/do and then invert the result. Subtracting do from f directly is wrong.
- Reading a negative m as "smaller." The sign gives orientation. The size is |m|.
- Mixing units. Use the same unit for f, do, and di. The equation is not dimension-free in the sense that a mismatch silently gives wrong numbers.
- Trusting the equation off-axis. For wide mirrors or objects far from the axis, the paraxial result is only approximate.
A reasoning flow
This flow summarizes how to use the equation on any problem.
Exercise
A convex mirror has a radius of curvature of 24 cm. A real object is placed 36 cm in front of it. Find d_i and m, and describe the image.
Show answer
The mirror is convex, so f = -R/2 = -12 cm. Then 1/di = 1/f - 1/do = -1/12 - 1/36 = -3/36 - 1/36 = -4/36, so di = -9 cm. The magnification is m = -di/do = -(-9)/36 = +0.25. The image is virtual (di negative, 9 cm behind the mirror), upright (m positive), and reduced to a quarter of the object's size.
Exercise
A concave mirror with f = 15 cm forms a real image of an object at do = 25 cm. What is di? If the object is moved to d_o = 10 cm, what happens to the image?
Show answer
For do = 25 cm: 1/di = 1/15 - 1/25 = 5/75 - 3/75 = 2/75, so di = 37.5 cm (real), and m = -37.5/25 = -1.5, so the image is inverted and enlarged. For do = 10 cm, which is inside f: 1/di = 1/15 - 1/10 = 2/30 - 3/30 = -1/30, so di = -30 cm and m = +3. The image becomes virtual, upright, and three times the object's size, located 30 cm behind the mirror.