\(\frac{1}{2}sinx-\frac{\sqrt{3}}{2}cosx=sin3x\)
\(\Leftrightarrow sin3x=sin\left(x-\frac{\pi}{3}\right)\)
\(\Leftrightarrow\left[{}\begin{matrix}3x=x-\frac{\pi}{3}+k2\pi\\3x=\frac{4\pi}{3}-x+k2\pi\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-\frac{\pi}{6}+k\pi\\x=\frac{\pi}{3}+\frac{k\pi}{2}\end{matrix}\right.\)