Solve
Locate the breakpoints. Each absolute value changes formula where its inside is zero: for and for . These two points cut the real line into , and . Inside each piece both absolute values can be replaced by plain linear expressions, which is the whole point of the split.
Case 1: . Both insides are negative, so and :
Now test the case condition: ✓, so is a genuine solution.
Case 2: . Here but :
The terms cancel and the statement is false, so this interval contributes nothing. Geometrically, is the total distance from to and to , which equals exactly everywhere between them — it can never reach .
Case 3: . Both insides are non-negative, so and :
Check the condition: ✓, so is valid.
Always test candidates against their own case. Discarding a value that solves the equation of one case but lies in another interval is the standard error here. Both surviving values pass, and substituting back confirms them: ✓ and ✓.
State the solution set. or . The distance interpretation explains why there are exactly two: you need total distance from the pair , and that happens at one point on each side of the segment.
Need to solve a different problem like this? Open the solver →