Find range of $f(x)=3|\sin x|-4|\cos x|$

algebra-precalculusfunctionstrigonometry

Find range of the function $$f(x)=3|\sin x|-4|\cos x|$$

I tried to do by using the trigonometric identities $$\sin^2x=\frac{1-\cos 2x}{2};\cos^2x=\frac{1+\cos 2x}{2}$$

So $$f(x)=3\sqrt{\frac{1-\cos 2x}{2}}-4\sqrt{\frac{1+\cos 2x}{2}}$$ but don't know how to proceed from here.

Best Answer

$f(0)=-4$, $f(\pi/2)=3$ and $$-4\leq f(x)\leq 3,$$

for all $x\in\mathbb R$. Intermediate value theorem gives $f(\mathbb R)=[-4,3]$.

Related Question