7.
ĐK: \(x\ne\dfrac{\pi}{2}+k\pi\)
\(\dfrac{1}{cos^2x}+3tanx+1=0\)
\(\Leftrightarrow tan^2x+3tanx+2=0\)
\(\Leftrightarrow\left(tanx+1\right)\left(tanx+2\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}tanx=-1\\tanx=-2\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-\dfrac{\pi}{4}+k\pi\\x=arctan\left(-2\right)+k\pi\end{matrix}\right.\)