In the given figure, $X$ and $Y$ are two centres of two circles. They touch each other externally at a point $S$. $AB$ be the common tangent of both circles. $O$ be the centre of the third circle which touches the two circles at points $Q$ and $R$. If $AX=h$, $OM=f$ and $BY=g$, then prove that $$\frac {1}{\sqrt { f }}=\frac {1}{\sqrt { h }} +\frac {1}{\sqrt { g }}$$
My attempt
If we join $OA$ we have, $$f^2={OA}^2-{AM}^2=$$; using pythagoras theorem
Again if we join $OB$ then $$f^2={OB}^2-{MB}^2$$ Now how should I move further?