Which is the correct value of $\sqrt{(-1)^2}$ ?
$\sqrt{(-1)^2} = \sqrt{(-1)\cdot(-1)} = \sqrt{1} = 1$
$\sqrt{(-1)^2} = ((-1)^2)^{1/2} = (-1)^{2\cdot1/2} = (-1)^1 = -1$
I was surprised to realize that I hadn't even understood this basic math. Are there any exponentiation rules to undertaand to get the correct value?