Solution:
Key idea: The factor xdx is the differential of logx. So we put logx=t and then use the standard form ∫t2+a2dt=2tt2+a2+2a2logt+t2+a2+C.
Step 1 — Substitute.
We put logx=t (this needs x>0), because its derivative x1 stands in the integrand.
logx=t
xdx=dt
I=∫t2+1dt
Step 2 — Apply the formula.
We use the formula with a=1.
I=2tt2+1+21logt+t2+1+C
Step 3 — Return to x.
We replace t by logx.
I=21logx(logx)2+1+21loglogx+(logx)2+1+C
Therefore, ∫x1+(logx)2dx=21logx(logx)2+1+21loglogx+(logx)2+1+C, for x>0.