Solve the inequality
Locate the kink points. Each absolute value changes formula where its inside is zero: at and . These split the line into , , and , and on each piece both absolute values become plain linear expressions.
Case 1: x < -1 (both insides negative). Then and , whose sum is :
Dividing by flips the inequality. Intersecting with the case condition gives .
Case 2: -1 <= x < 1 (mixed signs). Here and , and the terms cancel:
Always true, so the whole interval belongs to the solution. The sum is constant at between the kinks.
Case 3: x >= 1 (both insides non-negative). Then the sum is :
Intersecting with gives .
Union the three cases.
The three pieces join seamlessly at the kinks into one interval:
Read the answer as distances, and verify. is the total distance from to and to . Its minimum is the gap between them, , attained everywhere in between; outside, it grows by per unit. So it reaches exactly one unit beyond each kink — at and . Checking: at ✓ and at ✓, both excluded by the strict inequality. A scan of points on agrees with at every point ✓.
Need to solve a different problem like this? Open the solver →