From the diagram we see
Equating these gives

This is the linear magnification produced by a lens.
From the diagram we also get
Equating gives

and therefore
Rearranging this gives the Lens Equation
***This applies to thin lens systems