Key Takeaways
For real x, √(x²) = |x|: it is x when x ≥ 0 and -x when x < 0. The nonnegative |x| squares to x² and is therefore the principal root. Apply the rule to the entire inner expression: √((x-2)²) = |x-2|, which is x-2 for x ≥ 2 and 2-x for x < 2. This evaluates one expression rather than solving y² = x² for every solution.
- Squaring removes the sign; the principal square root chooses the nonnegative value.Read the supporting section: The absolute value follows from the definition
- Check the sign of x-2. Its boundary is 2, not simply whether x is positive.Read the supporting section: Treat the inner expression as a whole
- Negative, boundary and positive examples catch errors; the identity still requires a proof.Read the supporting section: Verify your simplification with a short sign check
In this article
The absolute value follows from the definition
Let r = √(x²). A real principal square root requires r ≥ 0 and r² = x². Both x and -x square to x². Choose x when x is nonnegative and -x when x is negative: together these cases define |x|. Zero remains included because √0 = 0.
The OpenStax even-root simplification rule gives the corresponding absolute-value identity. This discussion assumes real numbers; the same positive/negative comparison cannot simply be applied to complex numbers. A letter alone does not imply nonnegative input. You may replace |x| with x only when the conditions establish x ≥ 0.
| x | x² | √(x²) | Would x be correct? |
|---|---|---|---|
| -3 | 9 | 3 | No |
| 0 | 0 | 0 | Yes |
| 3 | 9 | 3 | Yes |
Treat the inner expression as a whole
For √((x-2)²), set u = x-2 and apply √(u²) = |u|. The sign condition concerns x-2, so the boundary is x = 2. For x ≥ 2, the result is x-2. For x < 2, it is -(x-2) = 2-x.
At x = -1 the inner value is -3 and the result is 3. At x = 5 the inner value is 3 and the result is also 3. Even positive x can give negative x-2: x = 1 does. “Positive x means remove the absolute value” is therefore the wrong test for this shifted expression.
√((x-2)²) = |x-2|
= x-2, if x≥2
= 2-x, if x<2One function value is different from two equation solutions
√9 evaluates to 3. The equation y² = 9 has real solutions y = 3 and y = -3. The first operation has one specified value; the second asks for every unknown satisfying an equality. Writing √(x²) as ±x does not resolve the sign condition.
For the number of real solutions, continue to root counts after completing the square. When squaring both sides of a radical equation, use extraneous-root and original-equation checks. Those tasks differ from simplifying the expression here.
Verify your simplification with a short sign check
State the domain, identify the entire squared quantity and establish its sign condition. Substitute a value making that quantity negative, its boundary and a positive value into both expressions. A negative simplified result already violates the principal-root requirement.
On December 3, 2026, the editor used Math.sqrt in Node.js 22.23.2 to check x = -3, 0, 3 and shifted inputs x = -1, 2, 5. All six matched the absolute-value expression. The Math.sqrt reference documents the nonnegative numerical root. These finite examples support error checking; the preceding real-number argument establishes the identity, rather than agreement in a few calculations.
Find all the intervals when two roots appear
Simplify the real expression √((2-x)²)+√((x+1)²). First obtain |2-x|+|x+1|. Its inner signs change at x=2 and x=-1, giving three intervals: x<-1, -1≤x≤2 and x>2. Splitting only by whether x is positive misses the actual boundaries.
For x<-1, the terms are 2-x and -x-1, totaling 1-2x. In the middle interval, they are 2-x and x+1, totaling 3 throughout. For x>2, they are x-2 and x+1, totaling 2x-1. Both boundary values give 3, so the pieces meet.
Interpret the terms as the distances from x to 2 and to -1 on a number line. Between those endpoints, the two distances make exactly the length three. Outside, the extra journey increases their sum. That explains why a whole interval gives three rather than merely offering a simplification rule to memorize.
Check x=-2, 0 and 3: the original expression gives 5, 3 and 5. These values were numerically checked by the editor on December 4, 2026; the sign derivation establishes the full result. Substituting only x=0 would conceal both outer branches.
√((2-x)²)+√((x+1)²)
= 1-2x, x<-1
= 3, -1≤x≤2
= 2x-1, x>2

