Let the object distance (u), image distance (v) and focal length (f).
The following sign convention is used for measuring various distances in the ray diagrams of spherical mirrors:
All distances are measured from the pole of the mirror.
Distances measured in the direction of the incident ray are positive and the distances measured in the direction opposite to that of the incident rays are negative.
Distances measured above the principal axis are positive and that measured below the principal axis are negative.