ĐKXĐ: \(cosx\ne\frac{1}{2}\Rightarrow x\ne\pm\frac{\pi}{3}+k2\pi\)
\(cos2x+\sqrt{3}\left(1+sinx\right)=\frac{2cosx-1+4sinx.cosx-2sinx}{2cosx-1}\)
\(\Leftrightarrow cos2x+\sqrt{3}\left(1+sinx\right)=\frac{2cosx-1+2sinx\left(2cosx-1\right)}{2cosx-1}\)
\(\Leftrightarrow cos2x+\sqrt{3}+\sqrt{3}sinx=2sinx+1\)
\(\Leftrightarrow1-2sin^2x+\sqrt{3}\left(1+sinx\right)=2sinx+1\)
\(\Leftrightarrow2sin^2x+2sinx-\sqrt{3}\left(1+sinx\right)=0\)
\(\Leftrightarrow\left(2sinx-\sqrt{3}\right)\left(1+sinx\right)=0\)
\(\Rightarrow\left[{}\begin{matrix}sinx=-1\\sinx=\frac{\sqrt{3}}{2}\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}x=-\frac{\pi}{2}+k2\pi\\x=\frac{\pi}{3}+k2\pi\left(ktm\right)\\x=\frac{2\pi}{3}+k2\pi\end{matrix}\right.\)