\(\Leftrightarrow\left(4cos^2x-4\sqrt{3}cosx+3\right)+\left(3tan^2x+2\sqrt{3}tanx+1\right)=0\)
\(\Leftrightarrow\left(2cosx-\sqrt{3}\right)^2+\left(\sqrt{3}tanx+1\right)^2=0\)
\(\Leftrightarrow\left\{{}\begin{matrix}cosx=\frac{\sqrt{3}}{2}\\tanx=-\frac{1}{\sqrt{3}}\end{matrix}\right.\)
\(\Leftrightarrow x=-\frac{\pi}{6}+k2\pi\)