2

I'm in my discrete math class, and I'm being asked to prove or disprove:

$\forall x \in \mathbb{R}, \sqrt{x^2} = x$

I think that would be false because I know that when you square a negative number, the result is positive. HOWEVER the reason that I'm uncertain is because I learned in algebra that every positive real number has $2$ real square roots, one of those being negative, which would make the above statement true.

Hayden
  • 97

2 Answers2

4

Since the square root always takes the positive root, we get that $\sqrt{x}\geq0$ so for negative numbers, the statement doesn't hold.

Since you want that there is only one function value for each input, we "make a choice" and define $\sqrt{x}$ as the positive square root of $x$.

  • 1
    So that means that I can just go with a basic counterproof to finish that off, and use a negative value for x. Thank you so much. – Hayden Jan 29 '24 at 21:42
1

Every positive real number $y$ has two real numbers $r$ and $-r$, each of which squares to $y$, i.e. the equation $$ x^2 = y $$ has two solutions, namely $x = +r$ and $x = -r$.

However, the square root of $y$, written $\sqrt{y},$ is the output of a function which (by convention) is chosen to be the positive root. In other words, $$ \sqrt{y} = x \quad\iff\quad y = x^2 \text{ and } x \geq 0. $$

J. W. Tanner
  • 60,406
Sammy Black
  • 25,273