\(\Leftrightarrow\frac{1}{2}cosx-\frac{\sqrt{3}}{2}sinx=cos2x\)
\(\Leftrightarrow cos\left(x+\frac{\pi}{3}\right)=cos2x\)
\(\Rightarrow\left[{}\begin{matrix}2x=x+\frac{\pi}{3}+k2\pi\\2x=-x-\frac{\pi}{3}+k2\pi\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=\frac{\pi}{3}+k2\pi\\x=-\frac{\pi}{9}+\frac{k2\pi}{3}\end{matrix}\right.\)