\(\int\dfrac{3x-1}{x^2-x}dx=\int\dfrac{\dfrac{3}{2}\left(2x-1\right)+\dfrac{1}{2}}{x^2-x}dx=\dfrac{3}{2}\int\dfrac{2x-1}{x^2-x}dx+\dfrac{1}{2}\int\left(\dfrac{1}{x-1}-\dfrac{1}{x}\right)dx\)
\(=\dfrac{3}{2}ln\left|x^2-x\right|+\dfrac{1}{2}ln\left|\dfrac{x-1}{x}\right|+C\)