Điều kiện xác định $\cos x\ne 0, \sin x\ne 0\Rightarrow x\ne \dfrac{k\pi} 2$
$\begin{array}{l} \tan x + \cot x = t\\ \Leftrightarrow \tan x + \dfrac{1}{{\tan x}} = t\\ \Leftrightarrow {\tan ^2}x - \tan x.t + 1 = 0 \end{array}$
Phương trình có nghiệm khi
$\Delta\ge 0\Rightarrow t^2-4\ge 0\Rightarrow \left[ \begin{array}{l}t\le -2\\t\ge 2\end{array} \right.\to A $