Sub topic 14
Extension: Absolute Value Equations
This chapter extends the method you already know to equations that contain an absolute value. It assumes you can solve one-step and two-step linear equations, handle variables on both sides, classify an equation as having one, no, or infinitely many solutions, and check an answer by substitution. The core idea is that one absolute value equation splits into two ordinary linear equations.
What absolute value means
The absolute value of a number is its distance from 0 on the number line. It is written with vertical bars: |x|. Distance is never negative, so |x| is never negative.
- |5| = 5, because 5 is 5 units from 0.
- |-5| = 5, because -5 is also 5 units from 0.
- |0| = 0.
Two different numbers can have the same absolute value. This is why an absolute value equation can have two solutions where a plain linear equation has at most one.
You can also define it by cases:
- |x| = x when x is 0 or positive.
- |x| = -x when x is negative.
The second case is not a mistake. If x is negative, then -x is positive, so |x| is still non-negative.
The basic form: |expression| = k
Consider the equation |x| = 3. You are looking for numbers whose distance from 0 is 3. There are two: x = 3 and x = -3.
The general rule for k > 0 is:
- If |A| = k, then A = k or A = -k.
Here A stands for any expression, not only a single variable. The rule does not need A to be simple. Whatever sits between the bars can equal k or -k.
The rule has three cases, depending on k:
| Right side | Meaning | Solutions |
|---|---|---|
| k > 0 | Two values of A have distance k from 0 | Two equations: A = k and A = -k |
| k = 0 | Only 0 has distance 0 | One equation: A = 0 |
| k < 0 | Distance cannot be negative | No solution |
Solving step by step
The method has four steps.
- Isolate the absolute value expression on one side. Use the same inverse operations as in earlier chapters, treating |A| as a single unit, like a variable.
- Look at the other side. If it is negative, stop: there is no solution.
- Split into two linear equations, A = k and A = -k, and solve each one.
- Check each answer in the original equation.
Worked example 1: a two-step case
Solve |2x - 1| = 7.
The absolute value is already isolated, and 7 is positive. Split:
2x - 1 = 7 or 2x - 1 = -7
2x = 8 2x = -6
x = 4 x = -3Check both in the original equation:
- x = 4: |2(4) - 1| = |7| = 7. Correct.
- x = -3: |2(-3) - 1| = |-7| = 7. Correct.
The solution set is {4, -3}.
Worked example 2: isolating first
Solve 3|x + 2| - 5 = 10.
The absolute value is not alone yet. Treat |x + 2| like a variable and undo the operations around it:
3|x + 2| - 5 = 10
3|x + 2| = 15 add 5 to both sides
|x + 2| = 5 divide both sides by 3Now split:
x + 2 = 5 or x + 2 = -5
x = 3 x = -7Check: 3|3 + 2| - 5 = 3(5) - 5 = 10, and 3|-7 + 2| - 5 = 3(5) - 5 = 10. Both work.
A common error is to split before isolating. If you wrote 3(x + 2) - 5 = 10 and 3(x + 2) - 5 = -10, you would get wrong answers, because the sign flip applies to the whole absolute value, not to the expression with the 3 and the 5 still attached.
Cases with fewer than two solutions
No solution
Solve |x - 4| + 6 = 2.
|x - 4| + 6 = 2
|x - 4| = -4 subtract 6 from both sidesAn absolute value cannot equal -4, so the equation has no solution. This is the same kind of conclusion as a false statement such as 0 = 1 in the earlier chapter on solution types. Here you can see it before doing any splitting.
One solution
Solve |3x + 9| = 0.
Only 0 has absolute value 0, so 3x + 9 = 0, which gives x = -3. There is a single equation to solve, and splitting into A = 0 and A = -0 produces the same equation twice.
Absolute value on both sides
Sometimes both sides contain an absolute value, as in |A| = |B|. Two expressions have the same distance from 0 exactly when they are equal or when they are opposites:
- If |A| = |B|, then A = B or A = -B.
Worked example 3
Solve |x + 1| = |2x - 5|.
x + 1 = 2x - 5 or x + 1 = -(2x - 5)
6 = x x + 1 = -2x + 5
3x = 4
x = 4/3The second equation needs care. The minus sign must be distributed over the whole expression 2x - 5, which gives -2x + 5, not -2x - 5.
Check both:
- x = 6: |7| = 7 and |2(6) - 5| = |7| = 7. Correct.
- x = 4/3: |4/3 + 1| = 7/3 and |8/3 - 5| = |-7/3| = 7/3. Correct.
The solution set is {6, 4/3}.
When the right side contains a variable
An equation like |x - 2| = 3x + 1 has a variable on the right. The right side must equal a distance, so it must be non-negative. The two-equation split still works, but you must test the answers, because one may violate the requirement 3x + 1 ≥ 0.
Split:
x - 2 = 3x + 1 or x - 2 = -(3x + 1)
-3 = 2x x - 2 = -3x - 1
x = -3/2 4x = 1
x = 1/4Check x = -3/2: the left side is |-3/2 - 2| = 7/2. The right side is 3(-3/2) + 1 = -7/2. These are not equal, so x = -3/2 is not a solution. It is an extraneous solution: a value that appears during the algebra but fails in the original equation.
Check x = 1/4: the left side is |1/4 - 2| = 7/4. The right side is 3(1/4) + 1 = 7/4. Correct.
The only solution is x = 1/4. This example shows why the check step is required for absolute value equations and not only a good habit.
Checking with code
Python's Fraction type keeps the arithmetic exact. The function below solves |a*x + b| = k for a not equal to 0, using the three cases from the table, and verifies each candidate by substitution.
from fractions import Fraction
def solve_abs(a, b, k):
"""Solve |a*x + b| = k exactly, assuming a != 0."""
a, b, k = Fraction(a), Fraction(b), Fraction(k)
if a == 0:
raise ValueError("a must be nonzero")
if k < 0:
return []
candidates = {(k - b) / a, (-k - b) / a}
solutions = sorted(x for x in candidates if abs(a * x + b) == k)
return solutions
print(solve_abs(2, -1, 7)) # [Fraction(-3, 1), Fraction(4, 1)]
print(solve_abs(3, 9, 0)) # [Fraction(-3, 1)]
print(solve_abs(1, -4, -4)) # []Using a set for the candidates means the case k = 0 returns one value instead of the same value twice. The final filter is the substitution check from the checking chapter, applied automatically.
Common errors
- Splitting before isolating. Move every term outside the bars to the other side first.
- Forgetting the negative case, and so finding only one of two solutions.
- Writing the second equation as A = -k but dropping the parentheses when k is an expression, as in -(3x + 1).
- Trying to "remove" the bars by assuming the inside is positive. That finds only one of the cases.
- Skipping the check, which lets extraneous solutions through.
- Splitting |A| = k when k is negative. Stop and report no solution.
Summary of the method
| Form | Rule | Column | Column | Column | Column |
|---|---|---|---|---|---|
| \ | A\ | = k, k > 0 | A = k or A = -k | ||
| \ | A\ | = 0 | A = 0 | ||
| \ | A\ | = k, k < 0 | No solution | ||
| \ | A\ | = \ | B\ | A = B or A = -B | |
| \ | A\ | = B, B an expression | A = B or A = -B, then keep only answers where B ≥ 0 |
Exercise
Solve |4x + 2| - 3 = 9. List every solution and check each one.
Show answer
Isolate the absolute value: |4x + 2| = 12. Split into 4x + 2 = 12 and 4x + 2 = -12. The first gives 4x = 10, so x = 5/2. The second gives 4x = -14, so x = -7/2. Check: |4(5/2) + 2| = |12| = 12, and 12 - 3 = 9. Also |4(-7/2) + 2| = |-12| = 12, and 12 - 3 = 9. The solutions are x = 5/2 and x = -7/2.
Exercise
Solve |x + 3| = 2x. Which candidate, if any, is extraneous?
Show answer
Split into x + 3 = 2x and x + 3 = -2x. The first gives x = 3. The second gives 3x = -3, so x = -1. Check x = 3: |6| = 6 and 2(3) = 6, so it works. Check x = -1: |2| = 2 but 2(-1) = -2, so it fails. The solution is x = 3, and x = -1 is extraneous because the right side 2x is negative there.
Exercise
Without solving any linear equation, explain why |5x - 1| = -2 has no solution, and say how many solutions |5x - 1| = 0 has.
Show answer
An absolute value is a distance, so it is never negative and cannot equal -2, so the first equation has no solution. The second requires 5x - 1 = 0, so it has exactly one solution, x = 1/5.