Consider the following setup, where an object is reflected off a concave mirror with focus at :
Here, the black arrow represents the object, and the red arrow represents the image. and are then the object and image distances, respectively. Also, the focal length is denoted as .
To relate these 3 variables, Physics 2 gives the following formula:
Before we go about deriving this relation, note that it is only an approximation, which increases in accuracy as the object height grows smaller. This is because when the object height is small, we can approximate the surface of the mirror as a flat plane, like so:
Even in this limit of a flat surface, the mirror can still reflect rays to the focus. Loosely speaking, this is because an infinitesimal slope creates negligible curvature but non-negligible reflection.
From here, the derivation of the mirror formula is extraordinarily elegant. Note that is similar to , which means . Similarly, since , we have . Adding these two results, we have that . However, the left hand side is just , and hence:
Dividing by on both sides, we arrive at the mirror formula!
Note: I’m not actually sure if a similarly simple proof is possible for convex mirrors. If you know of one, please comment blow!
Edit: Here’s a similar proof for the convex mirror case, courtesy of u/jamesw73721 on Reddit: