\(\Leftrightarrow2cos^2x+4cosx-1=-m\)
Xét \(f\left(x\right)=2cos^2x+4cosx-1\)
\(f\left(x\right)=2cos^2x+4cosx+2-3=2\left(cosx+1\right)^2-3\ge-3\)
\(f\left(x\right)=2cos^2x+4cosx-6+5=2\left(cosx-1\right)\left(cosx+3\right)+5\le5\)
\(\Rightarrow-3\le-m\le5\Rightarrow-5\le m\le3\)