ĐKXĐ: \(x\ne\frac{k\pi}{2}\)
\(\Leftrightarrow tan^2x-2cot^2x+2=0\)
Đặt \(tan^2x=a>0\)
\(a-\frac{2}{a}+2=0\)
\(\Leftrightarrow a^2+2a-2=0\)
\(\Rightarrow\left[{}\begin{matrix}a=\sqrt{3}-1\\a=-\sqrt{3}-1< 0\left(l\right)\end{matrix}\right.\)
\(\Rightarrow tan^2x=\sqrt{3}-1\Rightarrow tanx=\pm\sqrt{\sqrt{3}-1}=tan\left(\pm\alpha\right)\)
\(\Rightarrow x=\pm\alpha+k\pi\)