Sub topic 7
Modulus as Distance on the Number Line
This chapter assumes you can read interval notation, solve linear inequalities, and place numbers on a number line. Here we build the single idea that most CAT modulus questions depend on: |x − a| is the distance between x and a. Later chapters cover the algebraic properties of modulus, equations and inequalities. This chapter is about the picture.
The Algebraic Definition
The modulus (absolute value) of a real number x is defined piecewise:
- |x| = x when x ≥ 0
- |x| = −x when x < 0
The second line causes confusion. "−x" does not mean "a negative number". If x = −5, then −x = 5. So the rule says: when x is negative, flip its sign to make it positive. The modulus is therefore never negative.
An equivalent formula is |x| = √(x²), where √ denotes the non-negative square root. This form helps when an expression appears under a square root. For example, √((x − 4)²) simplifies to |x − 4|, not to x − 4.
From |x| to |x − a|: Distance
On the number line, |x| is the distance from x to 0. Both 7 and −7 are 7 units from zero, so |7| = |−7| = 7.
Shift the reference point and the same idea gives:
- |x − a| = the distance between x and a.
- |a − b| = |b − a| = the distance between a and b. Distance has no direction.
Translating these terms takes practice, so here are some examples:
| Expression | Distance meaning | Column | Column | Column | Column | Column | Column |
|---|---|---|---|---|---|---|---|
| \ | x − 5\ | distance of x from 5 | |||||
| \ | x + 3\ | distance of x from −3, because x + 3 = x − (−3) | |||||
| \ | 2 − x\ | distance of x from 2, the same as \ | x − 2\ | ||||
| \ | 2x − 6\ | 2 × (distance of x from 3), because \ | 2x − 6\ | = 2\ | x − 3\ | ||
| \ | x\ | + \ | x − 4\ | sum of distances of x from 0 and from 4 |
The \|x + 3\| row is where most errors happen. A plus sign inside the modulus means the reference point is negative.
When x has a coefficient, factor it out before you read off the distance: |3x + 12| = 3|x + 4|, which is three times the distance from −4. Do this first so that you read the centre correctly.
Reading Conditions as Regions
Once |x − a| means distance, a modulus condition describes a set of points. You can see that set immediately, without splitting into cases.
| Condition | Meaning | Solution set | Column | Column |
|---|---|---|---|---|
| \ | x − a\ | = r, r > 0 | exactly r away from a | {a − r, a + r} |
| \ | x − a\ | = 0 | zero distance from a | {a} |
| \ | x − a\ | = r, r < 0 | distance cannot be negative | no solution |
| \ | x − a\ | < r | within r of a | (a − r, a + r) |
| \ | x − a\ | ≤ r | within r, endpoints included | [a − r, a + r] |
| \ | x − a\ | > r | farther than r from a | (−∞, a − r) ∪ (a + r, ∞) |
Here a is the centre and r is the radius. An interval (p, q) can be written in the other direction too: its centre is (p + q)/2 and its radius is (q − p)/2. So the condition 2 < x < 10 is the same as |x − 6| < 4. CAT answer options are often written this way, and converting quickly saves algebra.
Two Reference Points
Distance reasoning handles some two-modulus conditions in a single line.
Equal distances. |x − a| = |x − b| with a ≠ b means x is equally far from a and b. The only such point is the midpoint, x = (a + b)/2. For example, |x − 3| = |x + 7| gives x = (3 + (−7))/2 = −2. Squaring both sides gives the same answer with more work.
Closer to one point. |x − a| < |x − b| means x lies on a's side of the midpoint. For |x − 1| < |x − 9|, the midpoint is 5, so the solution is x < 5.
Sum of distances. For |x − a| + |x − b| with a < b, every x between a and b gives a sum of exactly b − a. Outside that interval the sum is larger. So |x − 2| + |x − 8| = 6 holds for every x in [2, 8], and |x − 2| + |x − 8| = 4 has no solution. The chapter on critical points covers the general case. The distance picture tells you in advance what kind of answer to expect.
Difference of distances. For a < b, |x − a| − |x − b| always lies between −(b − a) and b − a. It reaches b − a for every x ≥ b. So |x − 1| − |x − 5| = 4 holds on [5, ∞), and |x − 1| − |x − 5| = 6 is impossible.
Checking the Picture Numerically
A short brute-force script confirms these readings. It is useful for building trust in the method, and later for testing your work on practice problems.
def dist(x, a):
return abs(x - a)
# |x + 3| <= 4 means "within 4 of -3", so the region is [-7, 1]
inside = [x for x in range(-20, 21) if dist(x, -3) <= 4]
print(inside[0], inside[-1], len(inside)) # -7 1 9
# |x - 3| = |x + 7| should hold only at the midpoint -2
grid = [k / 10 for k in range(-200, 201)]
print([x for x in grid if abs(dist(x, 3) - dist(x, -7)) < 1e-9]) # [-2.0]
# |x - 2| + |x - 8| equals 6 everywhere on [2, 8] and exceeds 6 outside
print(all(dist(x, 2) + dist(x, 8) == 6 for x in range(2, 9))) # True
print(min(dist(x, 2) + dist(x, 8) for x in [1, 9, -5, 15]) > 6) # TrueCommon Errors
- Wrong centre sign. Reading |x + 4| as distance from 4. Rewrite it as |x − (−4)|.
- Not factoring the coefficient. For |2x − 5| < 3, the centre is 5/2 and the radius is 3/2, not 5 and 3.
- Ignoring impossible right-hand sides. |x − a| = −2 has no solution. |x − a| > −2 holds for every real x.
- Mixing up inside and outside. "<" gives one bounded interval. ">" gives two separate rays, joined with ∪.
- Forgetting endpoints. ≤ and ≥ include a ± r. Strict signs exclude them. This matters when you count integer solutions.
Exercise
Write the solution set of |3x + 6| ≤ 9 using distance reasoning, and state how many integers it contains.
Show answer
|3x + 6| = 3|x + 2|, so the condition is |x + 2| ≤ 3: x is within 3 of −2. The solution set is [−5, 1], which contains 7 integers (−5 through 1).
Exercise
Express the condition −4 < x < 12 as a single modulus inequality.
Show answer
The centre is (−4 + 12)/2 = 4 and the radius is (12 − (−4))/2 = 8, so the condition is |x − 4| < 8.
Exercise
Solve |x − 10| < |x + 2| without squaring.
Show answer
x must be closer to 10 than to −2. The midpoint is (10 + (−2))/2 = 4, so the solution is x > 4, that is, (4, ∞).
Exercise
For which values of k does |x + 1| + |x − 6| = k have infinitely many solutions, exactly two solutions, or none?
Show answer
The minimum sum is the distance between −1 and 6, which is 7, and every x in [−1, 6] reaches it. k = 7 gives infinitely many solutions (all of [−1, 6]). k > 7 gives exactly two solutions, one on each side of the interval. k < 7 gives no solution.