\(\Leftrightarrow cos2x=sin\frac{x}{2}\)
\(\Leftrightarrow cos2x=cos\left(\frac{\pi}{2}-\frac{x}{2}\right)\)
\(\Leftrightarrow\left[{}\begin{matrix}2x=\frac{\pi}{2}-\frac{x}{2}+k2\pi\\2x=\frac{x}{2}-\frac{\pi}{2}+k2\pi\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=\frac{\pi}{5}+\frac{k4\pi}{5}\\x=-\frac{\pi}{3}+\frac{k4\pi}{3}\end{matrix}\right.\)