I have $\int -\frac{x}{1-x^2}dx$. I can solve it two ways: either $$\int -\frac{x}{1-x^2}dx = -\int \frac{x}{1-x^2}dx$$ and then letting $u = -x^2 + 1 $ resulting in $\frac{1}{2}\ln(1-x^2) +C_1$ or by doing $$\int -\frac{x}{1-x^2}dx = \int \frac{x}{x^2 - 1}dx$$ and letting $u = x^2 - 1$, resulting in $\frac{1}{2}\ln(x^2 - 1) + C_2$
I have seen Two different solutions to integral but cannot see how that applies in this case. I tried doing
$$\ln(1-x^2) = \ln((-1)(-1)(1-x^2)) = \ln(-1) + \ln(x^2-1)$$ but that doesn't work. Why are the solutions different and do they only differ in the constant?