What is $\sqrt{x^2}$?

138 Views Asked by At

At first the question of what $\sqrt{x^2}$ is seems silly. It looks like $x$. And for $x \in \mathbb{R}^+$ it is.

However, for $\mathbb{R}$, I'm not sure. I can think of 3 answers:

  • $abs(x)$
  • $\{x,-x\}$
  • $x$

Which one is correct and why?

2

There are 2 best solutions below

0
On

$\sqrt{x^2}=x$ for $x\geq0$ and $\sqrt{x^2}=-x$ for $x<0$, which says $\sqrt{x^2}=|x|.$

0
On

$\sqrt a$, for $a\in[0,\infty)$, is the non-negative real solution ofthe equation $x^2-a=0$. Therefore $\sqrt{t^2}=\lvert t\rvert$ for all $t\in\Bbb R$.