Partial fraction for integrating

58 Views Asked by At

I have been trying to solve the integral $\displaystyle\int \frac{dx}{(x-1)^2 (x^2+1)^3}$. So while trying to get the partial fraction which way is better? $$\frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{Cx+D}{x^2+1}+\frac{Ex+F}{(x^2+1)^2}+\frac{Gx+H}{(x^2+1)^3}$$ or should we expand like this and then proceed $x^2+1=(x-i)(x+i)$?? Both the cases are complicated. So is there any better way?