Solve
Read the left side as a total distance. is the distance from to and is the distance from to . The equation asks for the points whose distances to and to add up to — and is exactly the gap between those two points.
Split into the three cases. The critical points and divide the line into three regions.
Case : and , so the equation reads , i.e. , giving — which contradicts . No solution here.
Case 0 ≤ x ≤ 1. Here and , so
This is an identity — true for every in the interval. So the whole of solves the equation.
Case x > 1. Here and , so , i.e. and — which contradicts . No solution here either.
Collect the solution set.
The answer is an interval, not a finite list — a point worth stressing, since absolute-value equations are usually expected to have isolated solutions.
Check the endpoints and an interior point. At : ✓. At : ✓. At : ✓. Outside: at , ✗; at , ✗. This also matches the triangle inequality , with equality exactly on .
Need to solve a different problem like this? Open the solver →