Mirror formula. Sign convention
It is shown in more advanced textbooks that, for both concave and convex mirrors, We have already seen that an image is formed sometimes in front of a curved and sometimes behind it. This makes it necessary to have a sign convention so that we distinguish between the two cases and obtain the correct answer when substituting in the formula. Examples showing the use of the two sign conventions in common use are given below.