I noticed this issue was throwing off a more sophisticated problem I'm working on. When computing the indefinite integral
$$ I(x) = \int \frac{dx}{1-x} = \log | 1-x | + C,$$
I realized I could equivalently write
$$ I(x) = - \int \frac{dx}{x-1} = -\log|x-1| +C = \log \frac{1}{|1-x|} + C.$$
How are these two answers compatible? What am I missing here?
The first answer is wrong. Note that$$\int\frac{\mathrm dx}{a+bx}=\frac1b\log\lvert a+bx\rvert+C.$$In particular$$\int\frac{\mathrm dx}{1-x}=-\log\lvert1-x\rvert+C.$$