Let AB be the tower and BC be the flag-staff. Let O be the point on the plane containing the foot of the tower such that the angles at elevation of the bottom B and top C of the flag-staff at O are αandβ respectively. Let OA = x metres, AB = y metres and BC = h metres.
IN ΔOAB, we have
tanα=ABOA
⇒tanα=yx
⇒x=ytanα .....(i)
⇒x=ycotα
In ΔOAC, we have
⇒tanβ=y+hx
⇒x=y+htanβ
⇒x=(y+h)cotβ ...(ii)
On equatting the values of x given in equations (i) and (ii), we get
⇒ycotα=(y+h)cotβ
⇒(ycotα−ycotβ)=hcotβ
⇒y(cotα−cotβ)=hcotβ
⇒y=hcotβcotα−cotβ
⇒y=htanβ1tanα−1tanβ=htanαtanβ−tanα
Hence, the height of the tower is htanαtanβ−tanα