$$\int \frac1{(x-2)(x^2+1)^2}\,dx= \frac{A}{(x-2)}+ \frac{Bx+C}{(x^2+1)}+ \frac{Dx+E}{(x^2+1)^2}$$
$$1=A(x^2+1)^2 +(Bx+C)(x-2)(x^2+1)+(Dx+E)(x-2)$$
Am I doing this correct , I'm getting too many equations and I cant solve them?? (and yes its not my homework but exercising for exam).
I'll teach you a "new" easy way of solving those $$\frac{1}{(x-2)(x^2+1)^2}=\frac{A}{x-2}+\frac{Bx+C}{x^2+1}+\frac{Dx+E}{(x^2+1)^2}$$
$$1=A(x^2+1)^2+(Bx+C)(x-2)(x^2+1)+(Dx+E)(x-2)$$ Now substitute $x=2$, you get $A=\frac{1}{25}$
Substitute $x=i$, you get $1=(Di+E)(i-2)=-D-2E+Ei-2Di \implies E=2D \,\land D+2E=-1 $ $\implies D=\frac{-1}{5} \,\land E=\frac{-2}{5} $
Substitute $x=1$, you get $1=4A-2B-2C-D-E \implies \frac{-3}{25}=B+C$
Substitute $x=0$, you get $1=A-2C-2E \implies C=\frac{-2}{25}$
So we have our solution $A=\frac{1}{25}$, $B=-\frac{1}{25}$, $C=-\frac{2}{25}$, $D=-\frac{1}{5}$, $E=-\frac{2}{5}$.