Find value of $$\int\frac{x^2}{(x^2+2x+2) \sqrt{x-1}} dx$$
So try $\sqrt{x-1} = u$ to get $dx = 2udu$ $$\int \frac{2u(u^2+1)^2 du}{ ((u^2+2)^2+1)u} = 2\int \frac{u^4 + 2u^2+1}{u^4+4u^2+5} = 2\left(\int1 \cdot du - \int\frac{2u^2 +4}{u^4+4u^2+5}\right)\\ = 2( u - J)$$
To evaluat $J$, I divide by $u^2$ on numerator and denominator to get $\frac{2+4u^{-2}}{u^2+4+5u^{-2}}$. Now I try to split into numerator into $$2+4u^{-2} = a (1-\sqrt{5}u^{-2})+b(1+\sqrt{5}u^{-2})$$ to get $a = 1 - \frac{2}{\sqrt{5}} $ and $b = 1+\frac{2}{\sqrt{5}}$.
$$J = \int \frac{a\, d(u+\sqrt{5} u^{-1})}{(u + \sqrt{5} u^{-1})^2-(2\sqrt{5}-4)} du + \int \frac{b\, d(u-\sqrt{5} u^{-1})}{(u - \sqrt{5} u^{-1})^2+(2\sqrt{5}+4)}$$
So this lead to final answer
$$2\left(u - \left( \frac{1-\frac{2}{\sqrt{5}}}{2 \sqrt{2\sqrt{5}-4 }} \ln\left|\frac{ \sqrt{2\sqrt{5}-4 }-u-\frac{\sqrt{5}}{u}}{ \sqrt{2\sqrt{5}-4 }+u+\frac{\sqrt{5}}{u}}\right| + \frac{1+\frac{2}{\sqrt{5}}}{ \sqrt{2\sqrt{5}+4 }} \arctan \left(\frac{u - \frac{\sqrt 5}{u}}{\sqrt{2\sqrt{5}+4 }}\right)\right)\right)+C$$
our miss ask to check all our integration, how can i even check its validity o differentiation will make me mad.
Can you give simple effort to find integral simple forms.
Note I edited question because I make a typo. I changed $x^2+2 $ to $x^2$. Even if it was $x^2+2$ in numerator, only $a,b$ change in my answer! So I changed back as we can take it either way! I hope you understand.
Let us start with $$\frac{2u^2 +4}{u^4+4u^2+5}=\frac{2u^2 +4}{(u^2-a)(u^2-b)}$$ where $a=-2-i$ and $b=-2+i$.
Now, using partial fraction decomposition, $$\frac{2u^2 +4}{(u^2-a)(u^2-b)}=\frac{2 (a+2)}{(a-b) \left(u^2-a\right)}-\frac{2 (b+2)}{(a-b) \left(u^2-b\right)}$$
Just continue and, at the end, play with the complex numbers.