find f(x)

f'(x) = (x^2-1)/x^(-1)

f'(x)=(x^2-1)x= x^3-x

Now take the integral.