in the above ray diagram (ray diagram for concave mirror forming real image) we can see two triangles
ΔA′B′F and
ΔMPF are similar triangles (for paraxial rays, MN can be considered as straight line and perpendicular to the line FP). Because
∠A′B′F=∠MPF (right angles )
and ∠B′FA′=∠PFM (opposite angles)
so if two angles are equal then third angle will also be equal.
hence both triangles are similar.
therefore, B′A′PM=B′FFP
B′A′BA=B′FFP because as we all know MP=AB
similarly since ∠APB=∠A′PB′ then right angle triangles ΔA′B′P and ΔABP are also similar.
therefore, B′A′BA=B′PBP
by comparing both the above equations we can say that B′FFP=B′PBP=B′P−FPFP
now applying sign convention (light travels from left to right so that direction taken as positive ) on all the distances involved we get B′P=−v, FP=−f, BP=−u
Hence we get, −v+f−f=−v−u or v−ff=vu
or 1v+1u=1f
hence proved.