I was integrating the function $f(x)=\frac{x^2}{x-1}$ with two methods: 1) by starting with $u$-substitution and 2) by starting with polynomial long division.
Upon my attempt at method 1, I let $u=x-1$ and after evaluating and subbing back the $x-1$ term back in, I got the result of $\frac{x^2}{2}+x-\frac{3}{2}+\ln |x-1|+C$.
With method two I did polynomial long division to obtain that $\frac{x^2}{x-1}=x+1+\frac{1}{x-1}$. Integrating this I obtained the result of $\frac{x^2}{2}+x+\ln |x-1|+C$.
I suppose that these must be the same answers as they are both are valid methods, so in method 1, can the $-\frac{3}{2}$ term just be amalgamated into the $+C$ as it is a constant?