The modulus of a number is its size without its sign. Both −5 and 5 have modulus 5. You meet it whenever direction does not matter: the error in a measurement, or the distance between two points on a number line. This lesson shows how to draw modulus graphs and how to solve equations and inequalities that contain |x|.
In this lesson you will learn
- The definition of |x| and its meaning as a distance
- How to draw graphs such as y = |x − 2| and y = |2x − 3|
- How to solve equations like |x − 1| = |2x + 3|
- How to solve inequalities like |x − 3| < 5 and |2x + 1| ≥ 7
- How to check answers so you do not keep false solutions
You should know linear inequalities and functions and their graphs.
What Is the Modulus?
Definition
|x| = x if x ≥ 0, and |x| = −x if x < 0.
So |7| = 7, |−7| = 7 and |0| = 0. The modulus is never negative.
A more useful way to think: |x − a| is the distance between x and a on the number line. For example, |x − 3| = 5 asks “which numbers are 5 units from 3?” The answers are 8 and −2.
Modulus Graphs
To draw y = |f(x)|, first draw y = f(x). Then reflect any part below the x-axis up above it. The graph of y = |x − 2| is a V shape with its corner at (2, 0).
The corner is where the inside equals zero. For y = |2x − 3| the corner is at x = 1.5. The graph has slope 2 on the right of the corner and slope −2 on the left.
Solving Modulus Equations
|A| = b (with b ≥ 0) means A = b or A = −b.
1) |2x − 5| = 9
2x − 5 = 9 → x = 7
2x − 5 = −9 → x = −2
2) |x − 1| = |2x + 3|
Either x − 1 = 2x + 3 → x = −4
or x − 1 = −(2x + 3) → 3x = −2 → x = −2/3
Check x = −4: |−5| = 5 and |−5| = 5 ✓
Check x = −2/3: |−5/3| = 5/3 and |5/3| = 5/3 ✓
Another method for |A| = |B| is to square both sides: A² = B². This removes the modulus signs and gives a quadratic with the same two answers.
Always check your answers. In an equation like |x + 1| = 2x, the right side must not be negative. Here x = −1/3 comes out of one case, but then 2x is negative, so it is rejected; only x = 1 works.
Solving Modulus Inequalities
Use the distance idea:
| Inequality (b > 0) | Meaning | Answer |
|---|---|---|
| |A| < b | A is less than b from zero | −b < A < b |
| |A| > b | A is more than b from zero | A < −b or A > b |
1) |x − 3| < 5
−5 < x − 3 < 5
−2 < x < 8 (all numbers within 5 of 3)
2) |2x + 1| ≥ 7
2x + 1 ≤ −7 or 2x + 1 ≥ 7
x ≤ −4 or x ≥ 3
3) |x − 1| < |2x + 3|
Square both sides (both are ≥ 0):
(x − 1)² < (2x + 3)²
0 < 3x² + 14x + 8 = (3x + 2)(x + 4)
x < −4 or x > −2/3
In example 3, the critical values −4 and −2/3 are the solutions of the matching equation found earlier. A quick test point, such as x = 0, confirms which side is which: |−1| = 1 is less than |3| = 3, so x = 0 is in the answer.
Common Mistakes
- Writing |x − 3| < 5 as x − 3 < ±5. Write the double inequality −5 < x − 3 < 5.
- Joining “or” answers with “and”. |A| > b gives two separate pieces. No number is both below −4 and above 3.
- Forgetting to check. Cases can produce answers that do not satisfy the original equation.
- Squaring when one side could be negative. Squaring is safe for |A| and |B|, not for |A| and an expression like 2x.
Practice Exercises
Exercise 1. Solve |3x − 2| ≤ 4.
Show answer
−4 ≤ 3x − 2 ≤ 4, so −2 ≤ 3x ≤ 6, giving −2/3 ≤ x ≤ 2.
Exercise 2. A machine fills bags with 500 g of rice. A bag is accepted if its mass m differs from 500 g by at most 8 g. Write this as a modulus inequality and solve it.
Show answer
|m − 500| ≤ 8, so 492 ≤ m ≤ 508 grams.
Frequently Asked Questions
Is |x|² the same as x²?
Yes. Squaring removes the sign anyway, so |x|² = x² for every real number. This is why squaring both sides works for equations of the form |A| = |B|.
Is √(x²) equal to x?
Not always. √(x²) = |x|. For x = −3, √9 = 3, which is |−3|, not −3.
Summary
- |x| is the size of x; |x − a| is the distance from x to a.
- Graphs of y = |f(x)| reflect the negative parts upwards.
- |A| < b gives −b < A < b; |A| > b gives A < −b or A > b.
- Check every answer in the original equation.
Next: Transformations of Graphs.
