Triangle $\triangle ABC$ with incenter $I$ and inradius $r$ has the following property: the incircle is tangent to the semicircle with diameter $AB$ and is within the semicircle. Find the area of $\triangle ABC$ as a function of the side $AB$ and the inradius $r$.
So far I've noticed that $\angle AEF=\angle BEF=\frac{\pi}{4}$ but I don't think that that's useful in any way.





Let the midpoint of $AB$ be $O$. Draw $OE$ and $IF$. Label the sides $BC$, $CA$ and $AB$ as $a$, $b$ and $c$ respectively. Let the semiperimeter of $\triangle ABC$ be $s$. Points $O$, $I$ and $E$ will be collinear.
$OI=OE-IE=\frac{c}{2}-r$
$OF=OB-FB=\frac{c}{2}-\left(s-b\right)$
Applying Pythagorean theorem on $\triangle OIF$ gives,
$OF^2 + IF^2= OI^2$
$\Rightarrow \{\frac{c}{2}-\left(s-b\right)\}^2 + r^2=(\frac{c}{2}-r)^2$
On simplification, this leads to, $r=\frac{\left(s-b\right)\left(s-a\right)}{c}$
But, $r= \frac{\Delta}{s}=\sqrt{\frac{\left(s-a\right)\left(s-b\right)\left(s-c\right)}{s}}$
$\Rightarrow r^2=\frac{\left(s-a\right)\left(s-b\right)\left(s-c\right)}{s}$
$\Rightarrow r^2=\frac{cr\left(s-c\right)}{s}$
$\Rightarrow r=\frac{c\left(s-c\right)}{s}$
$\Rightarrow rs=c\left(s-c\right)$
Hence, $\Delta=rs=c\left(s-c\right)$
$rs=c\left(s-c\right)$ $\Rightarrow s=\frac{c^2}{c-r}$ $\Rightarrow \left(s-c\right)=\frac{cr}{c-r}$
Thus, $\Delta=rs=c\left(s-c\right)=c\cdot\left(\frac{cr}{c-r}\right)=\boxed {\frac{c^2r}{c-r}}$