Consider an isosceles triangle. Let $r$ be the radius of its circumscribed circle and $p$ the radius of its inscribed circle. Prove that the distance $d$ between the centres of these two circles is $d =\sqrt {r(r-2p)}$.

I could not get any idea to solve. However I have tried to make a figure (partially).

This is another masterpiece of Euler. This is general result of what you have asked.
Source: H.S.M. Coxeter and S.L. Greitzer- Geometry Revisited.