This gives the relation between focal length, object distance and image distance from the optical centre of the lens.
But CD=AB
It follows
BC = -u
BlC = +v using sign convention
CF = +f
Dividing throughout by uvf
(1) The above formula is applicable for a convex lens when a virtual image is formed. For this the following ray diagram is to be considered.