Sub topic 16
Solving absolute value equations
This chapter assumes you can solve linear equations and inequalities, place numbers on a number line, and read |x| as the distance from x to zero. It covers the standard forms of absolute value equations, the case split that solves them, how to check for extraneous solutions, and the traps that appear on GRE Quantitative Reasoning questions.
The core idea: two directions, one distance
An absolute value equation asks for every number whose distance from some point equals a given amount. Distance can be measured in two directions, so most of these equations have two solutions.
For a number k > 0:
- |A| = k means A = k or A = -k.
Here A can be any expression. For |x - 3| = 5, the quantity x - 3 must equal 5 or -5. That gives x = 8 or x = -2. Both are exactly 5 units from 3 on the number line.
The following code checks this by brute force over integers.
# |x - 3| = 5 has two solutions
assert {x for x in range(-20, 21) if abs(x - 3) == 5} == {-2, 8}
# |x - 3| < 5 is the same as -2 < x < 8
assert all((abs(x - 3) < 5) == (-2 < x < 8) for x in range(-20, 21))The second assertion previews the inequality case, which a later chapter develops.
The number of solutions depends on k
The right side decides how many solutions exist. Look at it before doing any algebra.
| Equation form | Solutions | Column | Column |
|---|---|---|---|
| \ | A\ | = k, with k > 0 | Two: A = k and A = -k |
| \ | A\ | = 0 | One: A = 0 |
| \ | A\ | = k, with k < 0 | None, because distance is never negative |
The third row is a frequent trap. The equation |2x + 1| = -4 has no solution, and no algebra is needed to see it. A question that asks "how many solutions" often rests on this fact.
A two-solution equation can still produce one value after you apply a restriction. For example, if the problem says x > 0, then only the positive solution counts.
Method 1: Isolate, then split
Follow these steps for the basic form.
- Isolate the absolute value expression on one side.
- Check the sign of the other side. If it is negative, stop: no solution.
- Write two linear equations, A = k and A = -k.
- Solve each one.
- Check the answers in the original equation when the other side contains a variable.
Worked example: solve 3|2x - 1| + 4 = 19.
Subtract 4 to get 3|2x - 1| = 15. Divide by 3 to get |2x - 1| = 5. Now split:
- 2x - 1 = 5, so x = 3.
- 2x - 1 = -5, so x = -2.
Check x = -2: 3|2(-2) - 1| + 4 = 3(5) + 4 = 19. It works. The solution set is {-2, 3}, and the sum of the solutions is 1.
The sum of solutions comes up often on the GRE. For |ax + b| = k with k > 0, the two solutions sum to -2b/a. In the example, a = 2 and b = -1, so the sum is -2(-1)/2 = 1. This shortcut works because the two solutions sit symmetrically around the center -b/a.
Method 2: Use the center and the distance
Rewrite the equation as |x - c| = d. The solutions are c - d and c + d. This is the number line view, and it is often faster than algebra.
The equation |x + 4| = 7 is |x - (-4)| = 7. The center is -4 and the distance is 7, so x = -11 or x = 3. Watch the sign: a plus sign inside the bars means the center is negative.
When the coefficient of x is not 1, factor it out first. For |2x - 6| = 10, write 2|x - 3| = 10, so |x - 3| = 5. This matches the earlier example.
Equations with an expression on both sides
When both sides contain x, as in |x - 2| = 3x + 4, the split is still A = B or A = -B. The difference is that you must check each answer, because the right side must be nonnegative.
Solve it:
- Case 1: x - 2 = 3x + 4, so -2x = 6 and x = -3.
- Case 2: x - 2 = -(3x + 4) = -3x - 4, so 4x = -2 and x = -1/2.
Now check each in the original.
- x = -3: the left side is |-5| = 5. The right side is 3(-3) + 4 = -5. Since 5 ≠ -5, this is an extraneous solution and is rejected.
- x = -1/2: the left side is |-5/2| = 5/2. The right side is -3/2 + 4 = 5/2. It works.
The only solution is x = -1/2. An extraneous solution is a value that satisfies a step of your algebra but not the original equation. The shortcut for spotting one is to require the right side to be at least 0 before you start. Here 3x + 4 ≥ 0 means x ≥ -4/3, and -3 fails that test immediately.
Equations with two absolute values
For |A| = |B|, the two quantities are either equal or opposites. So A = B or A = -B. No sign check is needed, because both sides are already nonnegative.
Solve |x + 1| = |2x - 5|:
- x + 1 = 2x - 5, so x = 6.
- x + 1 = -(2x - 5) = -2x + 5, so 3x = 4 and x = 4/3.
Both are valid. Check x = 6: |7| = |7|. Check x = 4/3: |7/3| = |-7/3|. Both hold.
Geometrically, |x + 1| = |2x - 5| asks where x is equally far from two points when the scales match. For the simpler form |x - a| = |x - b|, the single solution is the midpoint (a + b)/2, because the other case gives a = b, which is false for different points.
Squaring as an alternative
Since |A|² = A², you can square both sides of |A| = |B| to get A² = B². This avoids casework but leads to a quadratic. For |x + 1| = |2x - 5|, squaring gives x² + 2x + 1 = 4x² - 20x + 25, which rearranges to 3x² - 22x + 24 = 0. The roots are x = 6 and x = 4/3, matching the case method.
Use squaring only for |A| = |B|. For |A| = B with B a variable expression, squaring can also work, but you must still reject any root that makes B negative.
Connection to square roots
The identity √(x²) = |x| turns many equations into absolute value equations. The equation √((x - 2)²) = 6 is |x - 2| = 6, so x = 8 or x = -4. A common error is to write x - 2 = 6 and stop, which loses the second solution.
The same logic explains why x² = 9 has solutions 3 and -3. Taking square roots of both sides gives |x| = 3, which is exactly two values.
import math
x = -5
# sqrt returns the nonnegative root, so sqrt(x**2) equals |x|, not x
assert math.sqrt(x**2) == abs(x) == 5
# x**2 == 9 has two solutions, but sqrt(9) is only the principal root
assert sorted(n for n in range(-10, 11) if n**2 == 9) == [-3, 3]
assert math.sqrt(9) == 3Common errors
- Forgetting the negative case. Writing only A = k gives half the solutions.
- Splitting before isolating. In 3|x| + 2 = 11, you must reach |x| = 3 first. Splitting the unsimplified equation yields wrong answers.
- Distributing across the bars. The expression |x - 3| is not |x| - 3. Absolute value does not distribute over addition or subtraction.
- Moving a negative sign outside the bars incorrectly. -|x| = 4 means |x| = -4, which has no solution.
- Skipping the extraneous check when x appears on both sides.
- Ignoring a stated restriction such as x < 0 or "x is an integer," which can remove one of the two solutions.
Quantitative Comparison angle
In Quantitative Comparison, a question may give |x - 3| = 5 and compare x with 4. Two values are possible: 8 is greater than 4, while -2 is less than 4. The answer is that the relationship cannot be determined. An absolute value equation with k > 0 almost always allows two values, so test both before choosing an answer.
Exercise
Solve |3x + 2| = 2x + 7. List every valid solution and say which candidate, if any, is extraneous.
Show answer
Case 1: 3x + 2 = 2x + 7 gives x = 5. Case 2: 3x + 2 = -(2x + 7) gives 5x = -9, so x = -9/5. The right side must satisfy 2x + 7 ≥ 0, meaning x ≥ -3.5. Check x = 5: |17| = 17 and 2(5) + 7 = 17, valid. Check x = -9/5: |-27/5 + 10/5| = |-17/5| = 17/5, and 2(-9/5) + 7 = 17/5, valid. Both solutions are valid, so x = 5 or x = -9/5 and no candidate is extraneous.
Exercise
If |2x - 8| = |x + 1|, what is the sum of all solutions?
Show answer
Case 1: 2x - 8 = x + 1 gives x = 9. Case 2: 2x - 8 = -(x + 1) gives 3x = 7, so x = 7/3. The sum is 9 + 7/3 = 34/3.
Exercise
A Quantitative Comparison gives |x + 2| = 6. Quantity A is x. Quantity B is 1. Which relationship holds?
Show answer
Solving gives x + 2 = 6 or x + 2 = -6, so x = 4 or x = -8. When x = 4, Quantity A is greater. When x = -8, Quantity B is greater. The relationship cannot be determined from the information given.