Ta có :
\(I=\int\frac{dx}{\left(3\tan^2x-2\tan x-1\right)\cos^2x}=\int\frac{d\left(\tan x\right)}{3\tan^2x-2\tan x-1}\)
Đặt \(t=\tan x\Rightarrow I=\int\frac{dt}{3t^2-2t-1}=\frac{1}{3}.\frac{1}{t+\frac{1}{3}}\int\left(\frac{1}{t-1}-\frac{1}{t+\frac{1}{3}}\right)dt\)
= \(\frac{1}{4}\ln\left|\frac{t-1}{t+\frac{1}{3}}\right|=\frac{1}{4}\ln\left|\frac{3t-3}{3t +3}\right|+C\)
Thay trả lại :
\(t=\tan x\Rightarrow I=\frac{1}{4}\ln\left|\frac{3\tan x-3}{3\tan x+1}\right|+C\)