Step 1: Split the integral:
Break the integral into two parts:
\[ I = \int e^x\tan^{-1}x\,dx + \int \frac{e^x}{1+x^2}\,dx \]
Step 2: Do the first part by parts:
Take $u=\tan^{-1}x$ and $dv=e^x\,dx$. Then $du=\frac{dx}{1+x^2}$ and $v=e^x$.
\[ \int e^x\tan^{-1}x\,dx = e^x\tan^{-1}x - \int \frac{e^x}{1+x^2}\,dx \]
Step 3: Add the second part:
Put this back into the sum:
\[ I = e^x\tan^{-1}x - \int \frac{e^x}{1+x^2}\,dx + \int \frac{e^x}{1+x^2}\,dx \]
The two remaining integrals are equal and opposite, so they cancel.
\[ I = e^x\tan^{-1}x + k \]
Step 4: Cross-check with the options:
Differentiating $e^x\tan^{-1}x$ with the product rule gives $e^x\tan^{-1}x + \frac{e^x}{1+x^2}$. That is $e^x\left(\tan^{-1}x+\frac{1}{1+x^2}\right)$, the original integrand. No other option reproduces both terms, so only option (A) is right.
Final Answer:
Splitting the integral and using by parts gives $e^x\tan^{-1}x + k$, option (A).
\[ \boxed{e^x\tan^{-1}x + k} \]