Solution:
Key idea: This is the standard form ∫t2+a2dt=2tt2+a2+2a2logt+t2+a2+C.
Step 1 — Match the integral to the standard form.
The integrand 1+x2 is t2+a2, with t=x and a=1.
a2=1
Step 2 — Apply the formula.
We put a=1 into the formula; the coefficient 2a2 becomes 21.
I=2xx2+1+21logx+x2+1+C
Therefore, ∫1+x2dx=2xx2+1+21logx+x2+1+C, for all real x.