Systems and Inequalities

Solving Absolute Value Equations by Splitting Into Cases

Isolate the bars, split into a positive and a negative case, and check each answer, with worked examples.

Key takeaways

  • If k is positive, |u| = k means u = k or u = -k.
  • Isolate the absolute value before splitting, or the two cases will be wrong.
  • An isolated absolute value equal to zero gives one case, and equal to a negative number gives none.
  • When the other side contains the variable, reject any answer that makes that side negative.
  • Substituting each answer into the original equation is the final test.

To solve an absolute value equation, first get the absolute value alone on one side. Then split into two cases: the expression inside the bars equals the other side, or it equals the opposite of the other side. Solve both and check the results.

For |x - 4| = 9, the cases are x - 4 = 9 and x - 4 = -9. They give x = 13 and x = -5. Both work, since each sits 9 units from 4.

Why there are two cases

The absolute value of a real number u is defined in two pieces:

|u| = u      when u ≥ 0
|u| = -u     when u < 0

The bars therefore behave in one of two ways, and before solving you do not know which. So you consider both. In one case the inside is nonnegative and the bars can be dropped. In the other the inside is negative and the bars are replaced by a minus sign applied to the whole inside.

The distance picture gives the same conclusion. The equation |u| = 7 asks which numbers are 7 units from zero, and there are two: 7 and -7. That view is developed in absolute value as distance from zero.

The basic method

Solve |2x - 5| = 9.

Case 1:  2x - 5 = 9          Case 2:  2x - 5 = -9
         2x = 14                      2x = -4
         x = 7                        x = -2
check:   |14 - 5| = 9        check:   |-4 - 5| = 9

The solution set is {-2, 7}. Notice that you do not negate the answer from the first case to get the second. The negative sign goes on the number across from the bars, before you solve. Here the two answers are 7 and -2, which are not opposites.

The midpoint of the two answers is 2.5, the value that makes the inside zero. For an equation of the form |linear expression| = positive constant, the solutions always sit symmetrically around that point.

Isolate first

Solve 3|x + 4| - 2 = 19.

3|x + 4| - 2 = 19
3|x + 4| = 21           add 2
|x + 4| = 7             divide by 3
x + 4 = 7    or    x + 4 = -7
x = 3        or    x = -11

Check x = -11: 3|-7| - 2 = 21 - 2 = 19.

If you split too early, writing 3(x + 4) - 2 = -19 for the second case, you get x = -29/3. Substituting gives 3|-17/3| - 2 = 17 - 2 = 15, not 19. The absolute value covers only x + 4, so only x + 4 may change sign.

Checking is part of the method

Substitution means putting a proposed answer back into the equation you started with, not into a later line. Later lines may already contain the error you are trying to catch.

Evaluate the inside of the bars first, then take the absolute value, then apply whatever sits outside. Write both sides separately and compare them at the end. For x = 3 in 3|x + 4| - 2 = 19, the inside is 7, its absolute value is 7, three times that is 21, and 21 - 2 = 19. Both sides match.

If a check fails, ask two questions. Was the failing value ruled out by a sign condition, so that it is simply extraneous? Or did an arithmetic slip creep in? Rework that case alone to find out. The general habit is described in how to check a solution.

Look at the other side before splitting

Once the bars are alone, the number across from them decides everything.

Isolated form Cases Number of solutions for a linear inside
|u| = k, k > 0 u = k or u = -k two
|u| = 0 u = 0 one
|u| = k, k < 0 none zero

For example, |5x + 10| = 0 requires 5x + 10 = 0, so x = -2. The equation |5x + 10| = -3 has no solution, and splitting it blindly would produce two false answers. The impossible situations are collected in when an absolute value equation has no answer.

Solving by cases
1 Isolate the bars Undo additions and multipliers outside 2 Inspect the other side A negative number means no solution 3 Split Inside equals it, or equals its opposite 4 Solve both Two ordinary equations 5 Check Substitute into the original equation Isolate the bars Undo additions and multipliers outside 1 Inspect the other side A negative number means no solution 2 Split Inside equals it, or equals its opposite 3 Solve both Two ordinary equations 4 Check Substitute into the original equation 5

A variable on the other side

Solve |2x - 1| = x + 4. The right side must be nonnegative for any solution, so x + 4 ≥ 0.

Case 1:  2x - 1 = x + 4          Case 2:  2x - 1 = -(x + 4)
         x = 5                            2x - 1 = -x - 4
                                          3x = -3
                                          x = -1
x + 4 = 9, allowed               x + 4 = 3, allowed

Check: |9| = 9 and |-3| = 3. Both answers survive.

Now solve |x - 6| = 3x - 2.

Case 1:  x - 6 = 3x - 2          Case 2:  x - 6 = -(3x - 2)
         -4 = 2x                          x - 6 = -3x + 2
         x = -2                           4x = 8
                                          x = 2
3x - 2 = -8, reject              3x - 2 = 4, allowed

Only x = 2 works: |2 - 6| = 4 and 3 × 2 - 2 = 4. The value -2 is an extraneous solution, one produced by the algebra that fails the original equation. At x = -2 the left side is 8 and the right side is -8.

The parentheses in Case 2 are essential. The opposite of 3x - 2 is -3x + 2.

Cases with their conditions

A more formal version attaches to each case the condition under which it applies. For |x - 6| = 3x - 2:

  • Case A, x ≥ 6: the bars give x - 6. Solving x - 6 = 3x - 2 yields x = -2, which is not ≥ 6. Reject.
  • Case B, x < 6: the bars give 6 - x. Solving 6 - x = 3x - 2 yields x = 2, which is < 6. Keep.

Both versions reach the same set. The first tests whether the other side is nonnegative. The second tests whether the answer belongs to the region where the case was defined. Either test is enough, and checking in the original equation covers both.

The formal version scales up to several absolute values, where each region of the number line gets its own equation. That technique is shown in solving sums of absolute values by region.

Why extraneous values appear

It helps to know where a false answer comes from. When you write u = v or u = -v, you are really solving a looser statement: u and v are equal in size. The original equation |u| = v asks for more. It also requires v to be zero or positive, because the left side cannot be negative.

In the example above, x = -2 makes u = -8 and v = -8. The two expressions are certainly equal, so Case 1 is satisfied. But the equation says that the size of -8 equals -8, which is false. The splitting step forgot the sign requirement, and the check brings it back.

When the other side is a positive constant, the requirement holds automatically, which is why simple problems never produce extraneous values. The risk begins as soon as the variable appears outside the bars.

A graph shows the same story. The graph of y = |x - 6| is a V with its corner at (6, 0). The line y = 3x - 2 climbs steeply and meets the V only once, at (2, 4). The value x = -2 is where the line would meet the left arm of the V if that arm were extended below the horizontal axis, where the V does not go.

A word problem with two answers

Say a thermostat reading t, in degrees, is exactly 4 degrees away from a setting of 68. The equation is |t - 68| = 4.

The first case, t - 68 = 4, gives t = 72. The second, t - 68 = -4, gives t = 64. Both are sensible temperatures, and without more information you cannot choose between them. The correct report is "64 or 72."

A further fact can settle it. If you are also told that the room is warmer than the setting, then t > 68, and only 72 remains. Conditions from the story act like the conditions attached to cases: they remove answers that the equation alone would allow.

You can also run this backward. If the two possible readings are 64 and 72, their midpoint is 68 and each is 4 from it, which rebuilds the equation.

Quadratic expressions inside the bars

The splitting rule does not care what u is. Solve |x² - 5| = 4.

x² - 5 = 4     or     x² - 5 = -4
x² = 9                x² = 1
x = ±3                x = ±1

All four values check, for instance |1 - 5| = 4.

Each case may yield two, one or no real solutions. Solve |x² - 3x| = 4.

x² - 3x - 4 = 0                x² - 3x + 4 = 0
(x - 4)(x + 1) = 0             discriminant: 9 - 16 = -7
x = 4 or x = -1                no real solutions

So the real solutions are 4 and -1.

Squaring as an alternative

Since |u|² = u², you can also square both sides of |u| = v. The resulting equation u² = v² catches both cases at once. It still requires v ≥ 0.

For |2x - 5| = 9, squaring gives 4x² - 20x + 25 = 81, so x² - 5x - 14 = 0 and (x - 7)(x + 2) = 0. The answers match. Splitting is usually shorter, but squaring is handy when both sides have bars, as in equations with absolute value on both sides.

Mistakes to avoid

  • Writing only the positive case. You lose half of the solutions.
  • Distributing into the bars. 2|x + 3| equals |2x + 6|, but -2|x + 3| does not equal |-2x - 6|.
  • Splitting the bars over a sum. |x + 3| is not |x| + 3.
  • Negating only the first term. In Case 2, negate the entire other side.
  • Skipping the check. It is the only thing that exposes extraneous values quickly.

Common questions

Can I put the negative sign on the inside?

Yes. The equations -u = v and u = -v are equivalent, so choose whichever is easier to write.

How many solutions can there be?

For a single absolute value of a linear expression set equal to another linear expression, there may be none, one, two or, when the two sides coincide on a whole region, infinitely many. An example of the last is |x| = x, true for every x ≥ 0.

How do I report the answer?

List the surviving values, such as x = -2 or x = 7, or write the set {-2, 7}. The word or is correct, since x cannot equal both at once.

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