Find the anti-derivative of LaTeX:  \displaystyle f(x) = \frac{- x^{3} + 3 x^{2} - 6 x + 1}{x^{2}}

Using termwise division gives LaTeX:  \displaystyle f(x) = - x + 3 - \frac{6}{x} + \frac{1}{x^{2}} . Finding the antiderivative of each term gives LaTeX:  \displaystyle F(x) = - \frac{x^{2}}{2} + 3 x - 6 \ln{\left(x \right)} - \frac{1}{x} + C