4.
\(sinx+2cos\left(x+\dfrac{\pi}{3}\right)+4sin\left(x+\dfrac{\pi}{6}\right)+cosx=4\)
\(\Leftrightarrow sinx+cosx-\sqrt{3}sinx+2\sqrt{3}sinx+2cosx+cosx=4\)
\(\Leftrightarrow\left(1+\sqrt{3}\right)sinx+4cosx=4\)
\(\Leftrightarrow\sqrt{20+2\sqrt{3}}\left(\dfrac{1+\sqrt{3}}{\sqrt{20+2\sqrt{3}}}sinx+\dfrac{4}{\sqrt{20+2\sqrt{3}}}cosx\right)=4\)
\(\Leftrightarrow cos\left(x-arccos\dfrac{4}{\sqrt{20+2\sqrt{3}}}\right)=\dfrac{4}{\sqrt{20+2\sqrt{3}}}\)
\(\Leftrightarrow x-arccos\dfrac{4}{\sqrt{20+2\sqrt{3}}}=\pm arccos\dfrac{4}{\sqrt{20+2\sqrt{3}}}+k2\pi\)
\(\Leftrightarrow\left[{}\begin{matrix}x=2arccos\dfrac{4}{\sqrt{20+2\sqrt{3}}}+k2\pi\\x=k2\pi\end{matrix}\right.\)
3.
\(4sinx+cosx+2cos\left(x+\dfrac{\pi}{3}\right)=2\)
\(\Leftrightarrow4sinx+cosx+cosx-\sqrt{3}sinx=2\)
\(\Leftrightarrow\left(4-\sqrt{3}\right)sinx+2cosx=2\)
\(\Leftrightarrow\sqrt{23-4\sqrt{3}}\left(\dfrac{4-\sqrt{3}}{\sqrt{23-4\sqrt{3}}}sinx+\dfrac{2}{\sqrt{23-4\sqrt{3}}}cosx\right)=2\)
\(\Leftrightarrow cos\left(x-arccos\dfrac{2}{\sqrt{23-4\sqrt{3}}}\right)=\dfrac{2}{\sqrt{23-4\sqrt{3}}}\)
\(\Leftrightarrow x-arccos\dfrac{2}{\sqrt{23-4\sqrt{3}}}=\pm arccos\dfrac{2}{\sqrt{23-4\sqrt{3}}}+k2\pi\)
\(\Leftrightarrow\left[{}\begin{matrix}x=2arccos\dfrac{2}{\sqrt{23-4\sqrt{3}}}+k2\pi\\x=k2\pi\end{matrix}\right.\)