Better explicit notation for $\sqrt {(-2) ^2} = \sqrt {2^2}$ seemingly implying $-2=2$ type questions

154 Views Asked by At

EDIT : This about explicit notation and clarity, usage of $\sqrt{(-x)^2}= x$ is for demonstrative purposes not for the problem itself.

$\sqrt {(-2) ^2} = \sqrt {2^2}$ causing confusion $-2=2$ which is nonsense.

What seems to be needed is somehow distinguishing between $-2=2$ and explicitly stating $2,-2$ are in the set $S=$same equivalence class of numbers $k$ s.t. $k^2$ having the same value.

Another observation is the order of operation is important, $\sqrt {(-2)^2} = \sqrt {2^2}$ can be evaluated as either $\sqrt {4} = \sqrt {4} =2$ or $ {-2} = {2}$ , how ever implicitly it known that the square function performs first and only after that the square root function can operate, how could this implicit knowledge be worked into explicit notation?

Are there any notations that can be used to make order of operation explicitly visible or instead of ending up with $2=-2$, somehow end up with $2 \equiv-2$ with respect to their squares having same values?

2

There are 2 best solutions below

3
On

The problem is that you seem to believe that, for a real number $x$, $\sqrt{x^2} = x$. That is not true in general, as you've already observed. In fact, $\sqrt{x^2} = |x|$.

As for the order of the operations: the notation $\sqrt{x^2}$ makes it abundantly clear that you take the square first and then the square root; without the bar over the $x^2$, i.e., $\sqrt{\phantom{x}\hskip{-4pt}}x^2$, that would be not as clear.

6
On

Note that in $\sqrt{(x)^2}=\sqrt{(-x)^2}$, the square function performs first and only after that the square root function can operate (Implicit operator precedence).

Also, $\sqrt{(x)^2}=\sqrt{(-x)^2}=|x|$, that is, the answer to this is always positive.