As in the given algebraic fraction, we have the only denominator 1+x^21+x2, which cannot be factorized. As it is a quadratic function, in partial decomposition, the numerator would be in form ax+bax+b. But it is already in this form. Hence we cannot convert them into further partial fractions.
Now let u=1+x^2u=1+x2, hence du=2xdxdu=2xdx
Hence, int(x-1)/(1+x^2)dx∫x−11+x2dx
= intx/(1+x^2)dx-int1/(1+x^2)dx∫x1+x2dx−∫11+x2dx
Now intx/(1+x^2)dx=int(du)/(2u)=1/2xxlnu=(ln(1+x^2))/2∫x1+x2dx=∫du2u=12×lnu=ln(1+x2)2
and int1/(1+x^2)dx=tan^(-1)x∫11+x2dx=tan−1x
(as if tan^(-1)x=vtan−1x=v, x=tanvx=tanv and
(dx)/(dv)=sec^2v=1+tan^2v=1+x^2dxdv=sec2v=1+tan2v=1+x2, hence (dx)/(1+x^2)=dvdx1+x2=dv
and int(dx)/(1+x^2)=intdv=v=tan^(-1)x∫dx1+x2=∫dv=v=tan−1x)
Hence int(x-1)/(1+x^2)dx=1/2ln(1+x^2)-tan^(-1)x∫x−11+x2dx=12ln(1+x2)−tan−1x