simple squaring of a radical I am a little confused with the following calculation of a radical.
$$\left(-\frac {\sqrt{-r}}{2} \right)^2=-\frac{r}{4}$$ 
$$\left(\frac {\sqrt{-r}}{2} \right)^2=-\frac{r}{4}$$ 
I would have thought both of these solutions would be,
$$\frac {r}{4}$$ 
So why are they both negative? Just looking for the details of this calculation
 A: Hints:
We know that $(a)^2 = (-a)^2 = a^2$ and that $\sqrt{-a} = \sqrt{-1}\times \sqrt{a} = \sqrt{a}i$. Now, use the fact $i^2=-1$ where $i$ is the imaginary unit. Thus, $(\sqrt{-a})^2 = (\sqrt{a})^2 \times (i)^2 = (a) \times (-1) = -a$.
Hope it helps.
A: Note that $$\left( \sqrt{x} \right)^2=x$$
And $$\left(\frac{x}{y} \right)^2=\frac{x^2}{y^2}$$
So $$\left(\frac {\sqrt{-r}}{2} \right)^2=\frac{\left( \sqrt{-r} \right)^2}{2^2}=-\frac{r}{4}$$ 
A: 2:
$$\left(\frac {\sqrt{-r}}{2} \right)^2=\left(\frac {\sqrt{-1}\times\sqrt{r}}{2} \right)^2=\left(\frac {i\sqrt{r}}{2} \right)^2$$
and 
$i^2 = -1$.

1:
$$\left(-\frac {\sqrt{-r}}{2} \right)^2=\left(i\frac {\sqrt{r}}{2} \right)^2 \times (-1)^2$$
A: Assuming we're dealing with real numbers here, $r$ is forced to be negative. So let's plug in a number ($r = -4$) and examine more closely what is going on:
$$\left(-\frac {\sqrt{-(-4)}}{2} \right)^2=\left(-\frac{\sqrt 4}{2}\right)^2 = (-1)^2 = 1 = \dfrac {-4}{-4} = -\dfrac {r}{4}$$
So we see that none of the rules were broken:
$1)$ We only took a square root of a positive number
$2)$ Squaring yielded a positive number
