∫{(x2+1)/(x+1)2}dx
=∫(x2+1+2x-2x)/(x2+1+2x)}dx
=∫{(x2+1+2x)/(x2+1+2x)}dx-∫{(2x+2-2)/(x2+1+2x)}dx
=∫1.dx-∫{(2x+2)/(x2+1+2x)}dx+∫{2/(x+1)2}dx
=x-∫(1/t)dt+2(-1)(x+1)-1 ...................................[Let x2+1+2x=t→(2x+2)dx=dt]
=x- ln ιtι - 2/(x+1) + c
=x- ln ιx2+1+2xι - 2/(x+1) + c...............where ιxι represents logarithm of x.