Why is the square root of x^2 = |x|?

  • #1
Ebby
41
14
Homework Statement
Why is the square root of x^2 = |x|?
Relevant Equations
sqrt(x^2) = |x|
If I reason this as follows, I run into problems. Please help me understand what is wrong with reasoning like this.

a) I start with the left hand side of the equation and let that x be -2.
b) I square it. This gives me 4. So I now have the square root of 4.
c) The square root of 4 is +/- 2. The left hand side is now +/-2.
d) I now let the x of the right hand side of the equation be -2.
e) I take the magnitude, which is 2. The right hand side is now 2.

Overall, I now have +/-2 = -2, which is wrong.
 
Physics news on Phys.org
  • #2
Ebby said:
The square root of 4 is +/- 2.
Yes, but sqrt(), or√, is a function and therefore single valued. It is defined as the positive square root.
 
  • Like
Likes Ebby
  • #3
Ebby said:
Homework Statement: Why is the square root of x^2 = |x|?
Relevant Equations: sqrt(x^2) = |x|

If I reason this as follows, I run into problems. Please help me understand what is wrong with reasoning like this.

a) I start with the left hand side of the equation and let that x be -2.
b) I square it. This gives me 4. So I now have the square root of 4.
c) The square root of 4 is +/- 2. The left hand side is now +/-2.
d) I now let the x of the right hand side of the equation be -2.
e) I take the magnitude, which is 2. The right hand side is now 2.

Overall, I now have +/-2 = -2, which is wrong.
It depends somewhat on what you are trying to do.

The ##\sqrt{}## function is a function: it must be single valued. By convention, we choose to take the positive branch, so ##\sqrt{4} = 2##, not ##\pm2##.

If you want to solve ##x^2 = 4## then what you need to do is this:
##x^2 = 4##

##x^2 - 4 = 0##

##(x + 2)(x - 2) = 0##

Thus either ##x + 2 = 0 \implies x = -2## or ##x - 2 = 0 \implies x = 2##, so ##x = \pm 2##.

-Dan
 
  • Like
Likes Ebby
  • #4
Ebby said:
Homework Statement: Why is the square root of x^2 = |x|?
Relevant Equations: sqrt(x^2) = |x|

c) The square root of 4 is +/- 2.
This statement is problematic because "+/- 2" is not a number. It is a pair of numbers, namely, "+2, -2". We cannot equate a pair of numbers on one side with one number on the other side of an equation. Thus, we cannot conclude that, "The left hand side is now +/-2", and consequently, cannot conclude the rest of the reasoning, i.e., parts d) and e).
 
  • Like
Likes Ebby, jack action and topsquark
  • #5
With both ##x^2## and ##|x|## you have a pair of numbers (positive and negative values) that leads you to the same answer.

On the left-hand side, you are solving ##x^2## and then reversing it, giving you the pair of numbers. To be fair, you should do the same on the right-hand side:
$$\sqrt{x^2} = ±|x|$$
 
  • Like
Likes Ebby, DaveE and Hill
  • #6
jack action said:
With both ##x^2## and ##|x|## you have a pair of numbers (positive and negative values) that leads you to the same answer.

On the left-hand side, you are solving ##x^2## and then reversing it, giving you the pair of numbers. To be fair, you should do the same on the right-hand side:
$$\sqrt{x^2} = ±|x|$$
This is wrong. ##\sqrt x##, by definition, is a positive number.
 
  • Like
Likes Ebby and topsquark
  • #7
PeroK said:
This is wrong. ##\sqrt x##, by definition, is a positive number.
Let me rewrite that for the purists while still considering the OP's questioning:
$$±\sqrt{x^2} = ±|x|$$
https://en.wikipedia.org/wiki/Square_root said:
Every positive number ##x## has two square roots: ##\sqrt{x}## (which is positive) and ##-\sqrt {x}## (which is negative). The two roots can be written more concisely using the ##±## sign as ##±\sqrt {x}##.
 
  • Like
Likes Ebby
  • #8
jack action said:
Let me rewrite that for the purists while still considering the OP's questioning:
$$±\sqrt{x^2} = ±|x|$$
That says no more or less than ##\sqrt{x^2} = |x|##. If ##a =b## then ##-a = -b##.
 
  • Like
Likes Ebby
  • #9
PeroK said:
That says no more or less than ##\sqrt{x^2} = |x|##. If ##a =b## then ##-a = -b##.
Your equation says basically ##a=a## where ##a## is the absolute value of ##x##. Mine says##\{-x, x\} = \{-x, x\}##. The OP is mixing both concepts by saying ##\{-x, x\} = a##.
 
  • Like
Likes Ebby
  • #10
jack action said:
Your equation says basically ##a=a## where ##a## is the absolute value of ##x##. Mine says##\{-x, x\} = \{-x, x\}##. The OP is mixing both concepts by saying ##\{-x, x\} = a##.
Or rather, ##\{-x, x\} = \{a\}##
 
  • Like
Likes Ebby and jack action
  • #11
For the equation x^2-1=0, there are two answers, 1 and -1.

You can solve the equation by quadratic formula:

x= (0 +/- sqrt(0-4(1)(-1)) / 2(1) =+/-sqrt(4)/2
x= +/-1

or solve by simpler factorization

(x+1)(x-1)=0

which is true for:

(-1+1)(-1-1)
and for
(1+1)(1-1)

But definitionally, the square root function is the positive answer to the question of what number squared is x^2. The quadratic formula gives the +/- outside of the square root function.

Your confusion is between the answer to what number squared is 1 and what is the square root of 1. The square root is 1. There are two numbers that when squared are 1, +1 and -1. It is a trivial difference and that is easy to get sloppy about.
 
  • Like
Likes Ebby
  • #12
votingmachine said:
Your confusion is between the answer to what number squared is 1 and what is the square root of 1
I disagree. “The square root" is not a function. There are two square roots, just as there are n nth roots of unity. sqrt and √ are functions, returning the positive square root.
 
  • Like
Likes Ebby
  • #13
jack action said:
Your equation says basically ##a=a## where ##a## is the absolute value of ##x##. Mine says##\{-x, x\} = \{-x, x\}##. The OP is mixing both concepts by saying ##\{-x, x\} = a##.
That's not right, either. ##\pm## denotes an ordered pair, whereas a set is unordered.
 
  • Like
Likes Ebby
  • #14
To summarise what I believe to be the mainstream mathematical view on this. It's important for any student to understand that for all real numbers ##x##
$$\sqrt {x^2} = |x|$$Without any quibbles or embellishments.
 
  • Like
Likes Ebby
  • #15
This was interesting to read. Thank you all for helping.
 
  • Like
Likes Lnewqban and PeroK

FAQ: Why is the square root of x^2 = |x|?

Why isn't the square root of x^2 just x?

The square root of x^2 isn't just x because the square root function is defined to return the non-negative value. For any real number x, x^2 is always non-negative. Therefore, the square root of x^2 must also be non-negative, which is why it is represented as |x|, the absolute value of x.

What does the absolute value |x| mean?

The absolute value |x| of a number x is the non-negative value of x. It is defined as x if x is greater than or equal to 0, and -x if x is less than 0. In other words, |x| removes any negative sign from x.

Can you provide an example to illustrate why the square root of x^2 is |x|?

Sure! Consider x = -3. Then, x^2 = (-3)^2 = 9. The square root of 9 is 3, which is the non-negative value. Therefore, √(x^2) = √(9) = 3 = |x|, since |x| = |-3| = 3. This shows that the square root of x^2 is indeed |x|.

Is the equation √(x^2) = |x| true for all real numbers?

Yes, the equation √(x^2) = |x| is true for all real numbers x. This is because squaring any real number x results in a non-negative value, and taking the square root of that non-negative value yields the absolute value of the original number x.

How does this concept apply to complex numbers?

For complex numbers, the concept of the square root and absolute value becomes more involved. The absolute value of a complex number z = a + bi (where a and b are real numbers) is defined as √(a^2 + b^2). However, the equation √(z^2) = |z| does not hold in the same way for complex numbers as it does for real numbers, because the square root function for complex numbers can yield multiple values.

Back
Top