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

2 answers

sorry, i meant what is the antiderivative of

f'(x) = (x^2-1)/x
Write f(x) as
f(x) = x - 1/x, and integrate it one term at a time.

The integral (or "antiderivative", if you insist on using that term) of x is (x^2)/2. The integral of -1/x is -ln x. An arbitrary constant term can be added to the integral.