If $m^2+n^2=1$, find the maxmum of $\dfrac{5-4m}{5-4n}$.
The original question is to find the maximum of $\dfrac{BD}{CD}$. By simplifying the formula through cosine theorem, I get the above formula. The value should be equal to $\sqrt{\dfrac{5-4m}{5-4n}}$.
How to find the value? Any elegant geometric solutions are also welcomed.


Take $m = \sin \theta$ & $n=\cos \theta$.
Now put these values in the given expression and convert $\sin \theta$ & $\cos \theta$ into $\tan \left(\frac{\theta}2\right)$ using
$$\sin θ= \frac{2\tan(θ/2)}{1+\tan^2(θ/2)}$$
$$\cos θ = \frac{1-\tan^2(θ/2)}{1+\tan^2(θ/2)}$$ Now take $\tan(θ/2) = y$
The above expression becomes $f(y)$. For maxima, $\frac{\mathbb d}{\mathbb d y}f(y)=0$. Solve for $y$ and put this value of $y$ in $f(y)$.