(1) Notice x2+1 pattern, so we should make use of the identity tan2θ+1=sec2θ.

Select x=tanθ and thus dx=sec2θdθ. Then:

(x2+1)3/2(sec2θ)3/2sec3θ

(2) Convert to θ and integrate:

x2(x2+1)3/2dxtan2θsec2θsec3θdθtan2θsecθdθsec2θ1secθdθsecθcosθdθln|tanθ+secθ|sinθ+C

(3) Convert back to terms of x:

Draw a triangle expressing tanθ=x1:

center

Therefore secθ=x2+1 and sinθ=xx2+1. Then:

ln|tanθ+secθ|sinθ+Cln|x+x2+1|xx2+1+C