Magnification of thin lens

By similar triangles, $$ \begin{align*} M = \frac{h'}{h} = -\frac{v}{u} \end{align*} $$