Sub topic 15
Why the Square Root of \(x^2\) Is \(|x|\)
Prerequisites and the principal square root
Assume you can work with signed numbers, exponents, basic algebra, and a number line. This chapter focuses on a common GRE trap: confusing the square root symbol with the two solutions of a squared equation.
The expression \(\sqrt{a}\) means the principal square root of \(a\). It is the single nonnegative number whose square is \(a\). For example,
\[ \sqrt{9}=3 \]
because \(3^2=9\). Although \((-3)^2=9\) also, \(\sqrt{9}\) does not equal \(-3\).
By contrast, the equation
\[ x^2=9 \]
has two solutions:
\[ x=3 \quad \text{or} \quad x=-3. \]
Why \(\sqrt{x^2}=|x|\)
The absolute value \(|x|\) is the distance from \(x\) to zero, so it is always nonnegative. Squaring removes the sign of a number:
- If \(x\ge 0\), then \(\sqrt{x^2}=x\).
- If \(x<0\), then \(\sqrt{x^2}=-x\), which is positive.
Therefore,
\[ \sqrt{x^2}=|x|. \]
For example, if \(x=-5\),
\[ \sqrt{x^2}=\sqrt{(-5)^2}=\sqrt{25}=5, \]
but \(x=-5\). The result is \(|x|\), not \(x\).
| Expression | Value when \(x\ge 0\) | Value when \(x<0\) | Column | Column |
|---|---|---|---|---|
| \(\sqrt{x^2}\) | \(x\) | \(-x\) | ||
| \( | x | \) | \(x\) | \(-x\) |
import math
x = -5
# The square root function returns the principal, nonnegative root.
assert math.sqrt(x**2) == abs(x) == 5
# The equation x^2 = 9 has two solutions.
assert sorted(n for n in range(-10, 11) if n**2 == 9) == [-3, 3]
# sqrt(9) is only the principal root.
assert math.sqrt(9) == 3Applying the rule on the GRE
If a question states \(x<0\), then
\[ \sqrt{x^2}=-x. \]
If it states \(x>0\), then
\[ \sqrt{x^2}=x. \]
If it gives no sign information, keep the answer as \(|x|\). The same idea applies to expressions such as
\[ \sqrt{(x-4)^2}=|x-4|. \]
This represents the distance between \(x\) and \(4\).
Exercise
If \(y<0\), simplify \(\sqrt{(y-2)^2}\).
Show answer
Since \(y<0\), we know \(y-2<0\). Therefore, \(\sqrt{(y-2)^2}=|y-2|=-(y-2)=2-y\).