Systems and Inequalities

Equations With Absolute Value on Both Sides

Solve |a| = |b| with two cases or by squaring, read it as a distance question and handle harder variations.

Key takeaways

  • |a| = |b| is equivalent to a = b or a = -b.
  • Only two cases are needed, because the other two sign combinations repeat them.
  • Both sides are nonnegative, so squaring them is also a fully reversible step.
  • The equation |x - p| = |x - q| with p ≠ q has one solution, the midpoint of p and q.
  • Extra terms outside the bars break the shortcut and call for solving region by region.

When two absolute values are equal, the expressions inside are either equal to each other or opposites of each other. So |a| = |b| splits into a = b or a = -b. Solve both equations and you have every solution.

For |3x - 2| = |x + 6|, that means solving 3x - 2 = x + 6 and 3x - 2 = -(x + 6). The answers are x = 4 and x = -1. Unlike many absolute value problems, this form creates no false answers.

Why two cases are enough

The absolute value measures distance from zero. Two numbers are the same distance from zero when they are the same point or mirror images, like 5 and -5.

You might expect four cases, one for each choice of sign on each side:

 a =  b
 a = -b
-a =  b        same equation as a = -b
-a = -b        same equation as a = b

Multiplying the third and fourth by -1 turns them into the second and first. So nothing new appears.

No sign condition is needed afterward. In an equation |u| = v, the number v might turn out negative, which makes an answer false. Here the other side is |b|, which is never negative. Whenever a = b or a = -b, the two absolute values are automatically equal. Compare this with the one-sided method in solving by splitting into cases.

A worked example

Solve |3x - 2| = |x + 6|.

Case 1:  3x - 2 = x + 6          Case 2:  3x - 2 = -(x + 6)
         2x = 8                           3x - 2 = -x - 6
         x = 4                            4x = -4
                                          x = -1
check:   |10| = |10|             check:   |-5| = |5|

The solution set is {-1, 4}.

The parentheses in Case 2 matter. The opposite of x + 6 is -x - 6. Writing -x + 6 gives x = 2, and the check |4| = |8| fails at once.

You may put the negative sign on either side. Solving -(3x - 2) = x + 6 gives -4x = 4, the same x = -1.

The squaring method

For any real numbers, |a| = |b| exactly when a² = b². Squaring is reversible here because both sides are nonnegative.

(3x - 2)² = (x + 6)²
9x² - 12x + 4 = x² + 12x + 36
8x² - 24x - 32 = 0
x² - 3x - 4 = 0              divide by 8
(x - 4)(x + 1) = 0
x = 4  or  x = -1

The difference of squares shows why the methods agree. The equation a² - b² = 0 factors as (a - b)(a + b) = 0, which says a = b or a = -b. If you use that factored form directly, you never need to expand anything.

Squaring can add false answers in other settings, where one side may be negative. The distinction is discussed in reversible and irreversible steps.

Four ways to look at |a| = |b|
|a| = |b| Same distance from zero Graph Where two V shapes cross Factored (a - b)(a + b) = 0 Two cases a = b or a = -b Squares a² = b² |a| = |b| Same distance from zero Two cases a = b or a = -b Squares a² = b² Factored (a - b)(a + b) = 0 Graph Where two V shapes cross

Reading it as a distance question

The expression |x - p| is the distance from x to p. So the equation |x + 3| = |x - 9| asks which point is equally far from -3 and 9. There is only one, the midpoint (-3 + 9) ÷ 2 = 3. Check: |6| = |-6|.

Algebra agrees. Case 1 reads x + 3 = x - 9, or 3 = -9, which is impossible. Case 2 reads x + 3 = -x + 9, which gives x = 3. One of the two cases simply contributes nothing.

Unequal weights change the count. The equation |x - 1| = 3|x - 9| asks for points whose distance to 1 is three times their distance to 9. Since 3|x - 9| = |3x - 27|:

x - 1 = 3x - 27        x - 1 = -3x + 27
x = 13                 x = 7
check: 12 = 3 × 4      check: 6 = 3 × 2

There are two such points. One lies between 1 and 9, and the other lies beyond 9. More distance shortcuts appear in reading absolute value as distance.

One, two, none or infinitely many

The number of solutions depends on how the two linear expressions compare.

Equation What the cases give Solutions
|3x - 2| = |x + 6| two different values two
|2x + 1| = |2x - 7| one case impossible one: x = 1.5
|x - 3| = |3 - x| one case is an identity all real x
|x + 4| = |x + 4| + 1 not of this form none

For the second row, 2x + 1 = 2x - 7 has no solution, and 2x + 1 = -2x + 7 gives x = 1.5. Check: |4| = |-4|.

For the third, 3 - x is the opposite of x - 3, so the two sides are always equal. Another identity is |2x - 4| = 2|x - 2|.

The last row is included as a warning. A number can never equal itself plus 1. The extra term means the two-case rule does not apply.

When there are extra terms

Consider |x - 1| + 2 = |x + 3|. It is tempting to write x - 1 + 2 = ±(x + 3), but that treats the 2 as if it were inside the bars. Instead, split the number line where each inside expression changes sign: at x = 1 and x = -3.

Region x < -3:        (1 - x) + 2 = -(x + 3)
                      3 - x = -x - 3          no solution

Region -3 ≤ x < 1:    (1 - x) + 2 = x + 3
                      3 - x = x + 3
                      x = 0                   inside the region

Region x ≥ 1:         (x - 1) + 2 = x + 3
                      x + 1 = x + 3           no solution

The only solution is x = 0. Check: |-1| + 2 = 3 and |3| = 3.

In each region you must confirm that the answer lies in that region. The full technique is explained in solving region by region.

The matching inequality

Squaring also handles inequalities between two absolute values, since for nonnegative numbers the order of the squares matches the order of the numbers. So |a| < |b| exactly when a² < b².

Solve |x - 2| < |x - 8|.

x² - 4x + 4 < x² - 16x + 64
12x < 60
x < 5

The distance reading predicts this: x is closer to 2 than to 8 exactly when it lies to the left of the midpoint, 5. Test x = 0: 2 < 8, true. Test x = 6: 4 < 2, false.

A quadratic inside

The two-case rule holds for any real expressions. Solve |x² - 2x| = |x|.

x² - 2x = x                 x² - 2x = -x
x² - 3x = 0                 x² - x = 0
x = 0 or x = 3              x = 0 or x = 1

The solution set is {0, 1, 3}. The value 0 appears in both cases and is listed once. Check x = 1: |-1| = |1|. Check x = 3: |3| = |3|.

Do not divide by |x| at the start without care. Doing so would silently discard x = 0.

Checking with the graph in mind

You can often predict how many solutions to expect before you do any algebra. Each side of |3x - 2| = |x + 6| is a V shape. The first has its corner where 3x - 2 = 0, at x = 2/3, and its arms are steep, with slopes -3 and 3. The second has its corner at x = -6, with gentler arms of slopes -1 and 1.

At the corner x = 2/3, the first graph is at height 0 and the second is well above it. Far to the left and far to the right, the steeper V is higher. So the steep V must cross the gentle one once on each side of x = 2/3. That predicts two solutions, matching -1 and 4.

When the two V shapes have arms of equal steepness, as in |2x + 1| = |2x - 7|, they are copies shifted sideways. Their facing arms cross exactly once, and their other arms run parallel without meeting. When the two corners coincide and the slopes match, the graphs are the same, and every x is a solution.

A word problem

Say two friends stand on a straight path marked in meters, one at position 5 and one at position 29. A lamp post is to be placed so that it is equally far from both. If the post is at x, then |x - 5| = |x - 29|.

The case x - 5 = x - 29 is impossible. The other case, x - 5 = 29 - x, gives 2x = 34 and x = 17. Each friend is 12 meters away.

Now suppose the post should be three times as far from the second friend as from the first. Then 3|x - 5| = |x - 29|.

3x - 15 = x - 29          3x - 15 = 29 - x
2x = -14                  4x = 44
x = -7                    x = 11

At x = 11 the distances are 6 and 18, and at x = -7 they are 12 and 36. Both fit the requirement. If the post must stand between the two friends, only 11 qualifies. The story supplies that last restriction, and the equation alone does not.

Mistakes to avoid

  • Dropping the bars and solving only a = b. You lose the mirror image case.
  • Negating just one term. Use parentheses around the whole side.
  • Applying the rule with outside constants. The form must be exactly one absolute value equal to another, after allowable positive multipliers are moved inside.
  • Moving a negative multiplier inside. -2|x| is not |-2x|. In fact |a| = -|b| can only hold when both are zero.
  • Reporting a repeated value twice. A solution set lists each number once.

Common questions

Do I need to check answers?

For the exact form |a| = |b|, the cases are fully equivalent, so no answer can be extraneous. A check still catches arithmetic slips and takes only a moment.

Is |a| + |b| = 0 solved the same way?

No. A sum of nonnegative numbers is zero only when both are zero, so you need a = 0 and b = 0 at the same x.

What does a graph show?

The graphs of y = |3x - 2| and y = |x + 6| are two V shapes. Their crossing points sit at x = -1, with height 5, and at x = 4, with height 10.

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