How can I resolve this primitive: $$\int \frac{1}{(x-1)^3-x}\mathrm{d}x$$
I was trying to use the partial fractions, but I don't know how to use it in this type of equation.
$$\int \frac{1}{(x-1)^3-x}\mathrm{d}x =\int \frac{1}{x^3-3x^2+2x-1}\mathrm{d}x$$
Hint
Consider $$x^3-3 x^2+2 x-1=0$$ and use Cardano method. You should notice that there is only one real root; just name it $\alpha$ (do not try to use its value; it is more than likely a monster). So, $$x^3-3 x^2+2 x-1=(x-\alpha)(x^2+a x+b)$$ You need to identify $a,b$ (which are functions of $\alpha$) in order to make things clear and clean later; but the imortant thing is that $x^2+ax+b$ does not show any real root.
Now, partial fraction decomposition will take you to two standard integrals and the end result would be a rather simplex expression in which all terms will be functions of $\alpha$, the real root of the initial equation.
I am sure that you can take it from here.