<s>[INST] Find range of $f(x)=\frac{5}{\sin^2x-6\sin x\cos x+3\cos^2x}$ Find range of $f(x)=\frac{5}{\sin^2x-6\sin x\cos x+3\cos^2x}$
My attempt :
\begin{align*}
f(x)&=\dfrac{5}{9\cos^2x-6\sin x\cos x+\sin^2x-6\cos^2x}\\
&= \dfrac{5}{(3\cos x+\sin x)^2-6\cos^2x}
\end{align*}
The problem is if I'm going to use
$$-1\leqslant\sin x\leqslant1\;\text{and}-1\leqslant\cos x\leqslant1$$
I think I need to have only one term.
Edit : I have made some more progress
$$-3\leqslant 3\cos x\leqslant 3$$
$$\therefore -4\leqslant 3\cos x+\sin x\leqslant 4$$
$$ 0\leqslant (3\cos x+\sin x)^2\leqslant 16$$
 [/INST] Another way:
$$y(\sin^2x -6\sin x\cos x+3\cos^2x)=5$$
Divide both sides by $\cos^2x$
$$y\tan^2x-6y\tan x+3y=5(1+\tan^2x)$$
Rearrange to form a quadratic equation in $\tan x$ which is real
So, the discriminant must be $\ge0$
</s>