Relate the image distance (v), object distance(u) , image height(h') and object height(h) for the formula of magnification (M).
M = h′h = −vu
M = h′h = −vu where h' is the image height, h is the object height, v is the image distance and u is the object distance. When the magnification becomes negative it means that the image formed is inverted.