# How to integrate this? intcolor(white).(3x^2-x+1)/(x^3-x^2)

$3 \ln \left\mid x - 1 \right\mid + \frac{1}{x} + C$
$\int \frac{3 {x}^{2} - x + 1}{{x}^{3} - {x}^{2}} \mathrm{dx} = \int \frac{3 {x}^{2}}{{x}^{2} \left(x - 1\right)} \mathrm{dx} - \int \frac{x - 1}{{x}^{2} \left(x - 1\right)} \mathrm{dx} = \int \frac{3}{\left(x - 1\right)} \mathrm{dx} - \int \frac{1}{x} ^ 2 \mathrm{dx} = 3 \ln \left\mid x - 1 \right\mid + \frac{1}{x} + C$