\(2cos^2x-\left(1-cos^2x\right)-4cosx+2=0\)
\(\Leftrightarrow3cos^2x-4cosx+1=0\)
\(\Leftrightarrow\left[{}\begin{matrix}cosx=1\\cosx=\frac{1}{3}\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=k2\pi\\x=\pm arccos\left(\frac{1}{3}\right)+k2\pi\end{matrix}\right.\)