Spherical mirror

The values filled in are an example: a concave mirror with a 200 mm radius and an object 300 mm in front of it.

Input parameters:
R = radius of curvature: positive for a concave mirror, negative for a convex one
u = object distance, positive for a real object in front of the mirror
Sign convention: real is positive. v is positive for a real image in front of the mirror and negative for a virtual image behind it.
$$ \frac{1}{u} + \frac{1}{v} = \frac{2}{R} = \frac{1}{f} $$
f = —
$$ v = \frac{u R}{2u - R} $$
v = —
$$ M = -\frac{v}{u} $$
M = —
Output parameters:
f = focal length (R/2), in the unit of R
v = image distance, in the unit of u
M = lateral magnification (negative for an inverted image)

Formula: the paraxial spherical-mirror equation, E. Hecht, Optics, 5th ed. (Pearson, 2017).