ĐKXĐ: \(x\ne\frac{k\pi}{2}\)
\(\Leftrightarrow\left(tanx+cotx\right)^2=\frac{4+sin4x}{sin^22x}+2\)
\(\Leftrightarrow\left(\frac{sin^2x+cos^2x}{\frac{1}{2}sin2x}\right)^2=\frac{4+sin4x+2sin^22x}{sin^22x}\)
\(\Leftrightarrow\frac{4}{sin^22x}=\frac{4+sin4x+2sin^22x}{sin^22x}\)
\(\Leftrightarrow2sin^22x+sin4x=0\)
\(\Leftrightarrow1-cos4x+sin4x=0\)
\(\Leftrightarrow\sqrt{2}cos\left(4x+\frac{\pi}{4}\right)=1\)
\(\Leftrightarrow cos\left(4x+\frac{\pi}{4}\right)=\frac{\sqrt{2}}{2}\)
\(\Leftrightarrow\left[{}\begin{matrix}4x+\frac{\pi}{4}=\frac{\pi}{4}+k2\pi\\4x+\frac{\pi}{4}=-\frac{\pi}{4}+k2\pi\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=\frac{k\pi}{2}\left(l\right)\\x=-\frac{\pi}{8}+\frac{k\pi}{2}\end{matrix}\right.\)