\(\int\displaystyle\left(\frac{1+x+x^2}{1+x^2}\right)e^{\tan^{-1}x}\,dx=\)
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(x\,e^{\tan^{-1}x}+c\)
Let \(\tan^{-1}x = t\). Then \(x = \tan t\) and
\( \displaystyle \frac{dx}{1+x^2} = dt \)
So the integral becomes
\( \displaystyle I = \int \left(1+\tan t+\tan^2 t\right)e^{t}\,dt \)
\( \displaystyle = \int e^{t}\left(\tan t + \sec^2 t\right)dt \)
using \(1 + \tan^2 t = \sec^2 t\). Since \(\frac{d}{dt}\tan t = \sec^2 t\), this has the standard form \(\int e^{t}\left(f(t) + f'(t)\right)dt = e^{t}f(t) + c\) with \(f(t) = \tan t\):
\(I = e^{t}\tan t + c\)
\(I = x\,e^{\tan^{-1}x} + c\)