If $\int \frac{x^{2}\left(x\sec^{2} x+\tan x\right)}{\left(x\tan x+1\right)^{2}}dx=\frac{-x^{2}}{x\tan x+1}+f(x)+c$, then $f(x)=$
- (1)
$\log|x\sin x+\cos x|+c$
- (2)
$\log|x\cos x+\sin x|+c$
- (3)
$2\log|x\sin x+\cos x|+c$
- (4)
$2\log|x\cos x+\sin x|+c$
Show answer
Option (3) is correct.
The council's preliminary key