I have the following integral $$\int \frac{x}{\sqrt{4-x^2}}dx$$
So I do $u$ substitution $$u = -x^2 + 4$$ $$du = -2x \, dx$$
and get the following $$-\frac12\int \frac1{\sqrt{u}}du$$
I then can get TWO answers
1) Using $\int\frac1x = \ln(x)$
integral[1/sqrt(u)] ; the integral as it is to this point
integral[1/w] ; w = sqrt(u)
ln(w) ; evaluate integral
ln(sqrt(u)) ; replace w
ln(sqrt(4-x^2)) ; replace u
2) Use general power rule
integral[u^(-1/2)] ; Rewriting 1/sqrt(u) as u^(-1/2)
u^(1/2) / (1/2) ; evaluate using power rule
(2/-2) * u^(1/2) ; rewrite the (1/2) divisor as multiplying by 2
-sqrt(u) ; write u^(1/2) as sqrt(u)
-sqrt(4-x^2) ; replace u
What's going on? Is it that I can't make the replacement of sqrt(u) with a w? Why not? isn't it just a place holder, so to speak.