Systems and Inequalities

Sums of Absolute Values and Solving Them Region by Region

Learn to split the number line at critical points, drop the bars safely in each region, and solve sums of absolute values.

Key takeaways

  • A critical point is a value of x where the inside of some absolute value equals zero.
  • In each region between critical points, |u| is either u or -u all the way across.
  • A candidate counts only if it falls inside the region whose formula produced it.
  • A whole region can be a solution when the x terms cancel and leave a true statement.
  • The final solution set is the union of what survives in every region.

When an equation contains two or more absolute values added or subtracted, split the number line at the points where each inside expression equals zero. Within each region every inside has a fixed sign, so you can replace the bars with ordinary parentheses, solve a plain linear equation, and keep only the answers that actually lie in that region.

The method is slower than a one-line pattern, but it works on any combination of linear absolute values, including inequalities and expressions with three or more terms.

Why one pattern is not enough

A single absolute value, such as |x - 4| = 7, splits into two cases, as shown in splitting into cases. With |x - 1| + |x - 4| = 7 there are two sets of bars, and each inside changes sign at a different place.

You could try all four sign combinations, but one of them is impossible: x - 1 cannot be negative while x - 4 is positive or zero. Ordering the critical points on the number line shows which combinations really occur. With n different critical points you get n + 1 regions, which grows much more slowly than the number of sign combinations.

The rule you apply in each region is the definition of absolute value: |u| = u when u ≥ 0, and |u| = -u when u < 0.

The routine in order

Solving a sum of absolute values
1 Find critical points Set each inside equal to zero. 2 Cut the line Order the points and name the regions. 3 Drop the bars Use u or -u according to the sign in that region. 4 Solve and filter Keep only results that lie in the region. 5 Combine Take the union and check in the original. Find critical points Set each inside equal to zero. 1 Cut the line Order the points and name the regions. 2 Drop the bars Use u or -u according to the sign in that region. 3 Solve and filter Keep only results that lie in the region. 4 Combine Take the union and check in the original. 5

Assign each critical point to exactly one neighboring region, for instance by writing the regions as x < 1, 1 ≤ x < 4, and x ≥ 4. At a critical point the inside is zero, so either formula gives the same value, but listing it once keeps your work tidy.

A first worked equation

Solve |x - 1| + |x - 4| = 7. The critical points are 1 and 4. Make a sign table.

Region x - 1 x - 4 Sum without bars
x < 1 negative negative (1 - x) + (4 - x) = 5 - 2x
1 ≤ x < 4 zero or positive negative (x - 1) + (4 - x) = 3
x ≥ 4 positive zero or positive (x - 1) + (x - 4) = 2x - 5

Now set each formula equal to 7.

x < 1:        5 - 2x = 7      x = -1      inside the region, keep
1 ≤ x < 4:    3 = 7           false       no solutions here
x ≥ 4:        2x - 5 = 7      x = 6       inside the region, keep

The solutions are -1 and 6. Check: |-2| + |-5| = 7, and |5| + |2| = 7.

When a whole region works, or nothing does

Change the right side to 3. The middle region now reads 3 = 3, which is true for every x in it. The left region gives 5 - 2x = 3, so x = 1, which is not less than 1. The right region gives 2x - 5 = 3, so x = 4, which belongs to x ≥ 4. Putting the pieces together, every x in [1, 4] is a solution.

Change the right side to 2. The left region gives x = 1.5, which is not below 1. The middle gives 3 = 2, which is false. The right gives x = 3.5, which is not 4 or more. There is no solution.

Both results make sense as distances. The expression adds the distance from x to 1 and the distance from x to 4. That total can never be less than 3, the length of the gap, and it equals 3 precisely between the two points. The idea is developed in reading |x - a| as a distance.

Solving an inequality

Solve |x + 2| + |x - 3| ≤ 9. The critical points are -2 and 3. In each region, solve the inequality and then intersect with the region.

x < -2:         (-x - 2) + (3 - x) ≤ 9     1 - 2x ≤ 9     x ≥ -4
                overlap with region:       -4 ≤ x < -2

-2 ≤ x < 3:     (x + 2) + (3 - x) ≤ 9      5 ≤ 9          true
                overlap with region:       -2 ≤ x < 3

x ≥ 3:          (x + 2) + (x - 3) ≤ 9      2x - 1 ≤ 9     x ≤ 5
                overlap with region:       3 ≤ x ≤ 5

The three pieces join end to end, so the solution set is [-4, 5]. Notice the difference between the two operations: inside one region you take the overlap ("and"), and across regions you take the union ("or").

Test x = 5: |7| + |2| = 9, allowed. Test x = 6: |8| + |3| = 11, too large.

The opposite inequality, |x + 2| + |x - 3| > 9, has the complementary answer: x < -4 or x > 5.

Differences and coefficients

Subtraction and coefficients inside the bars change nothing about the routine. Solve |2x - 6| - |x + 1| = 2. The critical points are -1 and 3.

x < -1:        (6 - 2x) - (-x - 1) = 2     7 - x = 2      x = 5    reject
-1 ≤ x < 3:    (6 - 2x) - (x + 1) = 2      5 - 3x = 2     x = 1    keep
x ≥ 3:         (2x - 6) - (x + 1) = 2      x - 7 = 2      x = 9    keep

The value 5 is the instructive one. It solves the left region's equation, but it is not less than -1, so the formula that produced it does not describe the original expression there. Substituting confirms this: |4| - |6| = -2, not 2.

The two kept values check: at x = 1, |-4| - |2| = 2, and at x = 9, |12| - |10| = 2.

Wrap every replacement in parentheses. When a minus sign sits in front of an absolute value, it applies to the whole replacement, and forgetting that is the most common error in this method.

Three terms and a minimum

Solve |x - 1| + |x - 3| + |x - 8| = 10. Three critical points make four regions.

x < 1:         12 - 3x = 10     x = 2/3      keep
1 ≤ x < 3:     10 - x = 10      x = 0        reject
3 ≤ x < 8:     x + 4 = 10       x = 6        keep
x ≥ 8:         3x - 12 = 10     x = 22/3     reject

So x = 2/3 or x = 6. For x = 2/3 the three distances are 1/3, 7/3 and 22/3, which add to 30/3 = 10.

Look at the coefficients of x from left to right: -3, -1, 1, 3. Each time you pass a critical point, one term switches from -x to x, so the slope rises by 2. The expression falls until x = 3 and rises afterward. Its smallest value is therefore at the middle point: 2 + 0 + 5 = 7. Any right side below 7 gives no solution, and a right side of exactly 7 gives only x = 3.

With an even number of equally weighted points, the minimum is spread over the whole segment between the two middle ones.

When every term has a weight

A number in front of an absolute value counts that distance more than once. Take 2|x - 1| + |x - 7|. You can treat it as three distances: two measured to 1 and one measured to 7. The slopes of the pieces are -3, then 1, then 3.

The expression falls until x = 1 and rises from there, so its minimum is 2 · 0 + 6 = 6. To solve 2|x - 1| + |x - 7| = 9, work through the regions.

x < 1:         2(1 - x) + (7 - x) = 9      9 - 3x = 9     x = 0     keep
1 ≤ x < 7:     2(x - 1) + (7 - x) = 9      x + 5 = 9      x = 4     keep
x ≥ 7:         2(x - 1) + (x - 7) = 9      3x - 9 = 9     x = 6     reject

The solutions are 0 and 4. At x = 4 the total is 6 + 3 = 9.

Picture a stop to be placed on a straight road, with two trips a day to a point at mile 1 and one trip to a point at mile 7. The total travel distance is smallest when the stop sits at mile 1, because moving away saves one trip a mile but costs two trips a mile.

A parameter on the right side

Questions often ask how many solutions |x - 1| + |x - 4| = k has for different values of k. The three regions answer it all at once.

  • If k < 3, there are no solutions.
  • If k = 3, every number from 1 to 4 is a solution.
  • If k > 3, there are exactly two: x = (5 - k)/2 and x = (5 + k)/2.

Test the formulas with k = 7. They give -1 and 6, matching the first worked equation. The two solutions are symmetric about 2.5, the midpoint of the critical points, because the two weights are equal. With unequal weights that symmetry is lost, as the weighted example shows.

The same table of cases answers inequalities. The statement |x - 1| + |x - 4| < k has no solutions when k ≤ 3, and otherwise holds on the open interval between the two formulas above.

The graph behind the algebra

The graph of y = |x - 1| + |x - 4| is made of straight pieces with corners at the critical points. It slopes down with slope -2, runs flat at height 3, then climbs with slope 2. Solving the equation means finding where this graph meets a horizontal line.

This picture predicts the number of solutions: none if the line passes below the flat section, a whole segment if it lies along it, and two if it passes above. The building block is described in absolute value functions, and the general idea of gluing formulas appears in piecewise functions.

Because the graph is straight between corners, you can also sketch it from a few values: compute the expression at each critical point and at one point beyond each end.

Mistakes to avoid

  • Keeping out-of-region answers. Always compare each result with the inequality that names its region.
  • Losing a sign. Write -(u) with parentheses first, then distribute.
  • Using the wrong critical point. For |2x - 6| it is 3, and for |4 - x| it is 4.
  • Discarding a true statement. If a region reduces to 3 = 3, the entire region is a solution.
  • Squaring the whole sum. The square of |u| + |v| contains a term 2|u||v|, so bars remain.

As a final check, test each end of your answer and one point on either side in the original expression. For an inequality, this takes under a minute and catches a missed region or a reversed symbol immediately.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 28 articles in Systems and Inequalities →

Latest news on this topic