antiderivative of (x-2)/(x-1)

(x-2)/(x-1) = 1 - 1/(x-1)

so
integral[(x-2)/(x-1)] = integral[1 - 1/(x-1)
= x - ln(x-1) + C