How do I find the number of integers in the range of $$f(x)= \cos x\left( \sin x + \sqrt{\dfrac 12 +\sin^2 x} \right)?$$
I set the derivative equal to $0$ but the method isn't efficient here because it gives a very complicated trigonometric equation. What's the proper way to do this then?
Done it!
Let $f(x)= y$
$\implies y\sec x - \sin x = \sqrt{\sin^2x +\dfrac 12} $
$\implies y^2 \sec^2 x - 2y\sec x \sin x = \dfrac 12 \implies 2y^2(\tan^2x)+ - 4y \tan x + 2y^2 -1 = 0$
For $\tan x $ to be real, $\Delta \ge0$
$\implies 6y^2- 4y^4 \ge 0 \implies -\sqrt{\dfrac 32}\le y \le\sqrt{\dfrac 32} $
Which is the correct range according to the graph as well.
Hence, the number of integers in the range of $f(x)$ is 3: $0$, $-1$ and $1$