Sub topic 4
The Cartesian sign convention
This chapter assumes you know the laws of reflection, the parts of a spherical mirror (pole, focus, centre of curvature), and basic algebra with reciprocals. It fixes one set of signs that works for every formula in the rest of the tutorial.
Why one convention matters
A mirror or lens problem has a few numbers (object distance, focal length, radius) and one or two unknowns. The formulas only give correct answers if every quantity carries its sign. Older textbooks use a "real is positive" convention, where the formulas change form from case to case. The Cartesian sign convention treats the optical system as a coordinate system, and the formulas then hold for every case without modification.
The signs are not decoration. The sign of the answer tells you the nature of the image: real or virtual, upright or inverted, in front of or behind the element.
The rules
- Draw the ray diagram with light incident from the left, travelling toward the right.
- Place the origin at the pole of a mirror, the optical centre of a lens, or the vertex of a refracting surface.
- Distances measured in the direction of the incident light (to the right) are positive. Distances measured against it (to the left) are negative.
- Heights measured above the principal axis are positive. Heights below it are negative.
- All distances are measured from the origin, never from the focus or from the image.
The quantities you assign signs to are:
- the object distance
u - the image distance
v - the focal length
f - the radius of curvature
R - the object height
hand image heighth'
What the rules imply
The first thing to see is what the rules force on common objects.
| Situation | Sign | Reason |
|---|---|---|
| Real object in front of a mirror or lens | `u < 0` | The object is to the left of the origin. |
| Concave mirror | `f < 0`, `R < 0` | Its focus and centre of curvature lie on the object side, to the left. |
| Convex mirror | `f > 0`, `R > 0` | They lie behind the mirror, to the right. |
| Convex (converging) lens | `f > 0` | Parallel rays converge to a point on the right. |
| Concave (diverging) lens | `f < 0` | Parallel rays appear to come from a point on the left. |
| Real image from a mirror | `v < 0` | A mirror sends light back to the left. |
| Real image from a lens | `v > 0` | A lens sends light on to the right. |
| Virtual image from a mirror | `v > 0` | The image is behind the mirror. |
| Virtual image from a lens | `v < 0` | The image is on the object's side. |
| Upright image | `h' > 0` | The image is above the axis (for an upright object). |
| Inverted image | `h' < 0` | The image is below the axis. |
Sign of the radius of curvature
For a mirror, R is positive when the centre of curvature lies to the right of the pole. That is the convex mirror, seen from the side the light arrives.
For a lens or a refracting surface, the rule is the same, applied surface by surface. R is positive if the centre of curvature lies to the right of that surface, on the side the light is going to. It is negative if the centre lies to the left.
A symmetric biconvex lens with light arriving from the left shows how this works:
- The first surface bulges toward the incoming light, so its centre of curvature is on the right:
R1 > 0. - The second surface bulges toward the outgoing side, so its centre is on the left:
R2 < 0.
Flip the lens around and the signs of R1 and R2 swap and change, but the focal length is unchanged. A plano-convex lens with its curved face toward the light has R1 = +R and R2 = ∞. Turned the other way it has R1 = ∞ and R2 = -R. Both give f = R/(n - 1).
The formulas written with signs
These are the standard forms. Each one is valid for every case as long as you substitute signed values.
| Element | Relation | Magnification |
|---|---|---|
| Spherical mirror | `1/v + 1/u = 1/f`, with `f = R/2` | `m = h'/h = -v/u` |
| Single refracting surface | `n2/v - n1/u = (n2 - n1)/R` | `m = (n1 v)/(n2 u)` |
| Thin lens | `1/v - 1/u = 1/f` | `m = h'/h = v/u` |
| Lensmaker's equation | `1/f = (n - 1)(1/R1 - 1/R2)` | not applicable |
The sign of m carries meaning. m > 0 means the image is upright. m < 0 means it is inverted. |m| > 1 means magnified, and |m| < 1 means diminished.
A worked procedure
Example 1: a convex mirror
An object is 30 cm in front of a convex mirror of focal length 15 cm. Find the image.
The object is on the left, so u = -30. A convex mirror has f = +15.
1/v = 1/f - 1/u = 1/15 + 1/30 = 3/30
v = +10 cm
m = -v/u = -(10)/(-30) = +1/3v > 0 places the image 10 cm behind the mirror, so it is virtual. m > 0 makes it upright, and m = 1/3 makes it diminished.
Example 2: a concave lens
An object is 30 cm from a concave lens of focal length 20 cm. Here u = -30 and f = -20.
1/v = 1/f + 1/u = -1/20 - 1/30 = -5/60
v = -12 cm
m = v/u = (-12)/(-30) = +0.4The image is virtual, upright, and diminished, 12 cm from the lens on the object's side. A diverging lens gives this result for every real object.
Checking the signs with code
The following program encodes the mirror and lens formulas with signed quantities. It classifies each image from the signs of v and m.
def mirror(u, f):
"""Mirror formula: 1/v + 1/u = 1/f, m = -v/u (signed distances from the pole)."""
v = 1 / (1 / f - 1 / u)
m = -v / u
return v, m, v < 0 # a real image from a mirror lies on the object side
def lens(u, f):
"""Thin lens formula: 1/v - 1/u = 1/f, m = v/u (signed distances from the centre)."""
v = 1 / (1 / f + 1 / u)
m = v / u
return v, m, v > 0 # a real image from a lens lies on the far side
def describe(name, v, m, is_real):
nature = "real" if is_real else "virtual"
orientation = "upright" if m > 0 else "inverted"
size = "magnified" if abs(m) > 1 else "diminished" if abs(m) < 1 else "same size"
print(f"{name}: v = {v:.2f} cm, m = {m:.2f} -> {nature}, {orientation}, {size}")
describe("Concave mirror", *mirror(u=-30, f=-10))
describe("Convex mirror", *mirror(u=-30, f=15))
describe("Convex lens", *lens(u=-30, f=20))
describe("Concave lens", *lens(u=-30, f=-20))Running it prints:
Concave mirror: v = -15.00 cm, m = -0.50 -> real, inverted, diminished
Convex mirror: v = 10.00 cm, m = 0.33 -> virtual, upright, diminished
Convex lens: v = 60.00 cm, m = -2.00 -> real, inverted, magnified
Concave lens: v = -12.00 cm, m = 0.40 -> virtual, upright, diminishedThe code does not handle u = f for a lens or mirror. There the image is at infinity and the division by zero is the physics, not a bug.
Common errors
- Using magnitudes in the formula. Writing
u = 30instead ofu = -30gives a wrongvalmost every time. Substitute signs first, then solve. - Mixing the mirror and lens equations. The mirror formula has
+1/uand the lens formula has-1/u. The difference comes from the reflected light reversing direction. - Measuring from the wrong point. Distances start at the pole or optical centre. A statement such as "the object is 10 cm beyond the focus" needs converting to a distance from the pole.
- Forgetting that
ffor a mirror isR/2, signed. A concave mirror of radius 40 cm hasR = -40andf = -20. - Wrong sign on a lens surface. Decide the sign of each
Rby where its centre of curvature lies relative to that surface. - Mishandling heights. An object below the axis has a negative
h. Thenh' = m hflips accordingly.
A quick consistency check
After solving, substitute your u and v back into the formula. Then ask whether the answer makes physical sense. For example, a real object and a concave lens must never give a real image. A convex mirror must never give a real image from a real object. If your signs say otherwise, the error is in a sign.
Exercise
A concave mirror has a radius of curvature of 40 cm. An object is placed 10 cm in front of it. Using the Cartesian convention, find the image distance and magnification, and describe the image.
Show answer
R = -40 cm, so f = -20 cm. The object is on the left, so u = -10 cm. Then 1/v = 1/f - 1/u = -1/20 + 1/10 = 1/20, so v = +20 cm. The image is 20 cm behind the mirror. The magnification is m = -v/u = -(20)/(-10) = +2. The image is virtual, upright, and magnified twice.
Exercise
A plano-convex lens is made of glass of refractive index 1.5. Its curved surface has radius 15 cm. Light reaches the flat face first, then leaves through the curved face. What are the signs and values of R1 and R2, and what is the focal length?
Show answer
The first surface is flat, so R1 = ∞. The curved second face bulges away from the incoming light, so its centre of curvature is on the left of that surface, and R2 = -15 cm. Then 1/f = (1.5 - 1)(1/∞ - 1/(-15)) = 0.5 × (1/15), so f = +30 cm. It is a converging lens, as expected for a convex lens.