This equation has solutions for $p=?$
$$\sin(x)+p\cos(x)=2p, p\in\mathbb{R}$$
My try: I divided the equation by $\sqrt{1+p^{2}}$ and I got $x=2k\pi+-arccos(\frac{1}{\sqrt{1+p^{2}}})+arctan(\frac{1}{p})$
I put the condition $1+p^{2}\geq0$ but I my answer is wrong.The right answer is $p\in\left [ -\frac{1}{\sqrt{3}},\frac{1}{\sqrt{3}} \right ]$
Some ideas?
$\sin x+p\cos x=\sqrt{p^2+1}\sin(x+\alpha)$ for some $\alpha$.
What you need is $|2p|\le\sqrt{p^2+1}$