\(\int\displaystyle \frac{x^2+3x-1}{(x+1)^2}\,dx\) is equal to
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → \(x+\frac{3}{x+1}+\log_e|x+1|+C\)
The numerator and the denominator \((x+1)^2 = x^2 + 2x + 1\) have the same degree, so first split off the whole part:
\( x^2 + 3x - 1 = (x^2 + 2x + 1) + (x - 2) \)
\( x - 2 = (x + 1) - 3 \)
So
\( \displaystyle \frac{x^2+3x-1}{(x+1)^2} = 1 + \frac{1}{x+1} - \frac{3}{(x+1)^2} \)
Integrating term by term, with \(\int\frac{dx}{(x+1)^2} = -\frac{1}{x+1}\):
\( \displaystyle \int\frac{x^2+3x-1}{(x+1)^2}\,dx = x + \log_e|x+1| + \frac{3}{x+1} + C \)