For \(x \ne -1\), if \(\int\displaystyle\frac{xe^x\,dx}{(1+x)^2}=\frac{ae^x}{(1+x)^b}+c\), where \(a, b\) are fixed numbers and c is the integration constant, then \(a + b\) is equal to
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → 2
Let the numerator be written as \((1 + x) - 1\), so that the integrand takes the form \(e^x\left(f(x) + f'(x)\right)\):
\( \displaystyle \frac{x}{(1+x)^2} = \frac{(1+x) - 1}{(1+x)^2} = \frac{1}{1+x} - \frac{1}{(1+x)^2} \)
With \( f(x) = \displaystyle\frac{1}{1+x} \):
\( \displaystyle f'(x) = -\frac{1}{(1+x)^2} \)
By the standard result \(\int e^x\left(f(x) + f'(x)\right) dx = e^x f(x) + c\):
\( \displaystyle \int \frac{xe^x}{(1+x)^2}\,dx = \frac{e^x}{1+x} + c \)
Comparing with \( \displaystyle\frac{ae^x}{(1+x)^b} + c \):
\(a = 1,\quad b = 1\)
\(a + b = 2\)