$\int \frac1{\sqrt{u}}du$ gives two different answers 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.
 A: The problem isn't with $w = {\sqrt u}$. Rather, you failed to account for $$dw = \frac 12 u^{-1/2} \,du = \frac 12\cdot \frac {du}{\sqrt u}$$
When you chose to express $w$ as a function of $u$, you need also to express $dw$ in terms of $du$. If we do this, note that $$-1/2 \int \frac {du}{\sqrt u} = -\int dw =  -w + C = -\sqrt u+C = -\sqrt{4-x^2} + C$$
The second method is the most straightforward way to go: using the power rule.
A: The power rule is a valid way of solving the problem. If you decide to write $w=\sqrt{u}$, then you also need to make a substitution for $du$ based on $dw=\frac{1}{2\sqrt{u}}\,du$. 
This is a good example of why you should avoid shorthand when writing integrals, i.e. write
$$\int\frac{du}{\sqrt{u}}$$
rather than
$$\int\frac{1}{\sqrt{u}}.$$
Edit: Note that the $dx$ and $du$ currently in the question were added by another user's edit.
A: You forgot the dx. Where did it go? I don't think the integral involving the $u$ is OK. You need to express dx in terms of du before even getting to the u form of your integral.  
