I just graduated high school and was doing some math in my spare time, but I can't seem to figure out why when I integrate this particular integral,
$I = \int{\frac{x}{3-x}}dx$
I get different answers.
My method:
$\ { u = 3 - x} $
$\ { \frac{du}{dx} = -1} $
Therefore:
$\ { I = -\int{\frac{3-u}{u}}du = u - 3ln(u) + C} $
So my result becomes:
$\ I = 3 - x - 3ln(3 - x) + C $
What I don't understand is: when I solved this using Wolfram Alpha I got this answer, where they simply just divided the 2 polynomials, and reaching the answer:
$\ {I = -x - 3ln(3-x) + C} $
I'm trying to understand why I reach a different answer, when I do the integral using u-sub. Please be gentle with me, I am nowhere near as decorated as the mathematicians here, and I'm just trying to find my way around, so I can hopefully be like you guys one day. Thank you in advance!