Apparently $\sqrt{ab}$ = $\sqrt{a}\sqrt{b}$ is only true if a and b are both positive or if a is negative and b is positive or if a is positive and b is negative. In other words, a and b can't both be negative.
Is it possible to algebraically prove this? Or is it just a result of the way the square root function is defined?
I know of 1 way to prove this radical property, but I'm still not sure why it won't work for negative numbers.
Let x = $\sqrt{ab}$.
Let y = $\sqrt{a}\sqrt{b}$
Square both sides for both equations.
$x^2 = (\sqrt{ab})^2 = ab$
$y^2 = (\sqrt{a}\sqrt{b})^2 = (\sqrt{a}\sqrt{b})(\sqrt{a}\sqrt{b}) = (\sqrt{a})^2(\sqrt{b})^2 = ab$
$\therefore x^2 = y^2$
$x^2-y^2=0$
$(x+y)(x-y)=0$
$\therefore x = y$ or $x = -y$
Or
$\therefore y = x$ or $y = -x$
A lot of people will go through this line of reasoning (shown below) in order to justify why a and b can't both be negative.
Considering that mathematicians define $i^2=-1$ or $i = \sqrt{-1}$
$1 = \sqrt{(-1)(-1)} = \sqrt{-1}\sqrt{-1} = (i)(i) = i^2 = -1 $
But this is only a specific instance where this property fails us. This isn't a rigorous or at least satisfying proof of why $\sqrt{ab}$ = $\sqrt{a}\sqrt{b}$ can only be true if a and b are not both negative.
Note: I just started learning about complex and imaginary numbers and I am no means an expert in mathematical proofs, so if you do know the answer to this question please try (if possible) your best to answer the question without using too much complex or high-order math that I won't be able to understand.