I was reading Higher Algebra, by H. S. Hall and S. R. Knight when I stumbled across something that was confusing. On page 75, the book states:
"Since $(-a)\times(-b)=ab,$ by taking the square root, we have $\sqrt{-a}\times\sqrt{-b}=\pm \sqrt{ab}$. Thus in forming the product of $\sqrt{-a}$ and $\sqrt{-b}$, it would appear that either of the signs $+$ or $-$ might be placed before $\sqrt{ab}$. This is not the case, for $\sqrt{-a}\times\sqrt{-b}=\sqrt{a}\cdot\sqrt{-1}\times\sqrt{b}\cdot\sqrt{-1}=\sqrt{ab}(\sqrt{-1})^2=-\sqrt{ab}$" (Hall and Knight 75).
On the other hand, I thought by taking the square root in the first step, one would get: $\pm\sqrt{(-a)\cdot(-b)} = \pm\sqrt{ab}$ which comes out to: $\pm\sqrt{ab}=\pm\sqrt{ab}$. This is clearly different from what was done in the book, so which one is correct?
This stackexchange question on a similar topic actually has some stuff that resolves the confusion: Laws of Exponents if base(s) negative.