Question:medium

Evaluate the integral: \[ \int \frac{x^2 (x \sec^2 x + \tan x)}{(x \tan x + 1)^2} dx \]

Show Hint

Use integration by parts along with trigonometric identities to simplify complex integrals.
Updated On: Nov 26, 2025
  • \( -\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 \)
  • \( -\frac{x^2}{x \tan x + 1} - 2 \log_e |x \sin x + \cos x| + C \)
Hide Solution

The Correct Option is C

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)\]
Was this answer helpful?
0