I am in Calculus II and this is one of our exercises for integration:
$$\int x(x+3)^{-1/2} dx$$
This looked to me like a sober example of when to use Integration By Parts, so I went with that:
$$u = x$$
From which I got the $$du = dx$$
Then I took $$dv = (x+3)^{-1/2}$$
And found $$v=2\sqrt{x+3}$$ using a simple substitution.
I then proceeded with the formula $$\int{f(x)g'(x)}dx = f(x)g(x) - \int{f'(x)g(x)}dx$$
which gave me the following: $$ 2x\sqrt{x+3} - \int{2\sqrt{x+3}} dx$$
There is no point continuing beyond this point in my calculation as Wolfram Alpha has told me that the result of the above computation is different from the initial integral.
I have starred at this for a while. I had a friend stare at it too and neither of us could see a mistake.
This is my first time using LaTeX so I may have done a typo somewhere. Sorry about that.
Here are the two outputs:
Me: $$ 2x\sqrt{x+3}-4/3(x+3)^{3/2} + C $$ Alpha: $$ 2/3(x-6)\sqrt{x+3} + C$$
WolframAlpha says the original integral comes to $\frac{2}{3}(x - 6)\sqrt{x + 3} + c$. It says the new integral (after integration by parts) is $2x\sqrt{x + 3} - \frac{4}{3}(x + 3)^{3/2} + c$.
If we factor $\sqrt{x + 3}$ out of the second one, we have $(2x - \frac{4}{3}(x + 3))\sqrt{x + 3} + c$. $2x - \frac{4}{3}(x + 3) = 2x - \frac{4}{3}x - 4 = \frac{2}{3}x - 4 = \frac{2}{3}(x - 6)$. So these two expressions are the same!
Here's a tip: If you find yourself in a situation where you think you have two different answers, try plugging in several values of $x$. There are three possibilities: