Solution:
Key idea: The derivative of tan−1x is 1+x21, which is already in the integrand. So we put t=tan−1x and the integral becomes ∫emtdt.
Step 1 — Substitute.
We put the inverse tangent equal to t.
t=tan−1x
Differentiating both sides gives the new differential.
dt=1+x2dx
Step 2 — Integrate in terms of t.
The integrand becomes emt. For a constant m=0, the integral of emt is m1emt.
∫1+x2emtan−1xdx=∫emtdt
∫emtdt=m1emt+C
Step 3 — Return to x.
We put back t=tan−1x.
m1emt+C=m1emtan−1x+C
Watch out: If m=0 the integrand is just 1+x21 and the answer is tan−1x+C.
Therefore, ∫1+x2emtan−1xdx=m1emtan−1x+C (for m=0).