\(4sin^2x.cosx+2cos2x=cosx+\sqrt{3}sin3x\)
\(\Leftrightarrow2\left(1-cos2x\right).cosx+2cos2x=cosx+\sqrt{3}sin3x\)
\(\Leftrightarrow2cosx-2cos2x.cosx+2cos2x=cosx+\sqrt{3}sin3x\)
\(\Leftrightarrow2cosx-cos3x-cosx+2cos2x=cosx+\sqrt{3}sin3x\)
\(\Leftrightarrow\sqrt{3}sin3x+cos3x=2cos2x\)
\(\Leftrightarrow\dfrac{\sqrt{3}}{2}sin3x+\dfrac{1}{2}cos3x=cos2x\)
\(\Leftrightarrow cos\left(3x-\dfrac{\pi}{3}\right)=cos2x\)
\(\Leftrightarrow3x-\dfrac{\pi}{3}=\pm2x+k2\pi\)
\(\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{\pi}{3}+k2\pi\\x=\dfrac{\pi}{15}+\dfrac{k2\pi}{5}\end{matrix}\right.\)