The Mirror Equation

Drawing a ray diagram is a great way to get a rough idea of how big the image of an object is, and where the image is located. We can also calculate these things precisely, using something known as the mirror equation. This can be derived using the geometry of similar triangles.
1
f
=
1
do
+
1
di

This can be written:
di =
do f
do - f