\( -\frac{x^2}{x \tan x + 1} + 2 \log_e |x \sin x + \cos x| + C \)
\( -\frac{x^2}{x \tan x + 1} - 2 \log_e |x \sin x + \cos x| + C \)
Show Solution
The Correct Option isC
Solution and Explanation
We observe that:\[\frac{d}{dx} (x \tan x + 1) = x \sec^2 x + \tan x.\]\[\frac{d}{dx}(x \tan x + 1) = x \sec^2 x + \tan x\]Applying integration by parts with \(x^2\) as the first function yields:\[I = \int x^2 \frac{x \sec^2 x + \tan x}{(x \tan x + 1)^2} dx\]\[= x^2 \left(-\frac{1}{x \tan x + 1}\right) - \int 2x \left(-\frac{1}{x \tan x + 1}\right) dx\]\[= -\frac{x^2}{x \tan x + 1} + 2 \int \frac{x}{x \tan x + 1} dx\]\[= -\frac{x^2}{x \tan x + 1} + 2 \int \frac{x \cos x}{x \sin x + \cos x} dx\]\[= -\frac{x^2}{x \tan x + 1} + 2 \log_e |x \sin x + \cos x| + c\]\[\left(\text{since } \frac{d}{dx}(x \sin x + \cos x) = x \cos x \right)\]