f(x)=∫(1+x)2xdx
Let x=tan2θ
dx=2tanθsec2θdθ
f(x)=∫(1+tan2θ)2tanθ.2tanθsec2θdθ
f(x)=∫sec4θtanθ.2tanθsec2θdθ
f(x)=∫2tan2θ.cos2θdθ
f(x)=∫2sin2θdθ
f(x)=∫(1−cos2θ)dθ
f(x)=θ−2sin2θ+C=θ−1+tan2θtanθ+C
f(x)=tan−1x−1+xx+C
Now, f(3)−f(1)=tan−3−1+33−tan−11+1+11
=3π−4π+21−43=12π+21−43