Sub topic 7
Modulus as Distance on the Number Line
This chapter assumes you can read interval notation and place numbers on the number line, as covered in earlier chapters. It sets up the distance view of modulus, which later chapters use for equations, inequalities and sums of absolute values.
The Algebraic Definition
The modulus (absolute value) of a real number x is written |x| and defined piecewise:
- |x| = x when x ≥ 0
- |x| = -x when x < 0
The second line causes the most trouble. When x is negative, -x is positive. For example, |-7| = -(-7) = 7. The same definition can be written as a single expression: |x| = √(x²), where √ always means the non-negative root.
The Distance Interpretation
|x| is the distance from x to 0 on the number line. More generally, |x - a| is the distance between x and a. This one idea turns many CAT questions into a picture.
| Expression | Read it as | Column | Column |
|---|---|---|---|
| \ | x\ | distance of x from 0 | |
| \ | x - 3\ | distance of x from 3 | |
| \ | x + 2\ | distance of x from -2 | |
| \ | a - b\ | distance between a and b |
To read |x + 2| this way, rewrite it as |x - (-2)|. Distance does not depend on direction, so |a - b| = |b - a|.
Using Distance to Solve Quickly
Take |x - 3| = 5. The question asks which points lie 5 units from 3. Step 5 left and 5 right: x = -2 or x = 8. No case split is needed.
Now take |x - 1| = |x - 7|. Here x is the same distance from 1 as from 7, so it must be the midpoint: x = 4.
The same reasoning gives you a preview of inequalities. |x| < 4 means "within 4 units of 0", which is the interval (-4, 4).
def dist(x, a):
return abs(x - a)
# Check |x - 3| = 5 at both points
print(dist(-2, 3), dist(8, 3)) # 5 5
# Check the midpoint solution of |x - 1| = |x - 7|
print(dist(4, 1), dist(4, 7)) # 3 3Common Errors
- Wrong centre. |x + 2| measures distance from -2, not from 2. Always rewrite the expression as x minus something.
- Assuming -x is negative. If x = -5, then -x = 5. The rule |x| = -x for x < 0 gives a positive result.
- Forgetting impossible cases. |x - a| = -3 has no solution, because a distance cannot be negative.
- Dropping a solution. |x - a| = k with k > 0 always has two solutions, a - k and a + k. When k = 0 the only solution is x = a.
Exercise
Use the distance interpretation to solve |x + 4| = 3.
Show answer
Rewrite it as |x - (-4)| = 3, which asks for points 3 units from -4. These are x = -7 and x = -1.
Exercise
Solve |x - 1| = |x + 5| without squaring.
Show answer
x is the same distance from 1 as from -5, so x is their midpoint: (1 + (-5))/2 = -2. Check: |-2 - 1| = 3 and |-2 + 5| = 3.