As per data given we write
$\tan \frac{\pi}{4}=\left|\frac{2 \sqrt{h^2-a b}}{a+b}\right|=1$
Squaring both sides, we get
$\begin{aligned}
& (\mathrm{a}+\mathrm{b})^2=4\left(\mathrm{~h}^2-\mathrm{ab}\right) \\
& \therefore 4 \mathrm{~h}^2=\mathrm{a}^2+6 \mathrm{ab}+\mathrm{b}^2
\end{aligned}$