The relation between the linear magnification m, the object distance u and the focal length f is
The linear magnification can be given as
m=vu⇒v=mu
Now the mirror formula is given as
1f=1v+1u
Substituting v=mu in mirror formula
⇒1f=1mu+1u⇒1f=1+mmu
⇒muf−m=1⇒m(uf−1)=1
⇒m(u−ff)=1
Therefore,
m=fu−f