Sub topic 8
Core Properties of Modulus
This chapter assumes you already read |x − a| as the distance between x and a on the number line, which the previous chapter covered. You should also be comfortable with factorisation and the basic sign rules for inequalities. Here we collect the algebraic properties of modulus that CAT questions rely on. Most of them let you get rid of a modulus sign without splitting into cases. The triangle inequality, |a + b| ≤ |a| + |b|, gets its own chapter later, so it appears here only as a warning about what you cannot do.
The working definition
For any real x:
- |x| = x when x ≥ 0
- |x| = −x when x < 0
A compact way to say the same thing is |x| = max(x, −x). Of the two numbers x and −x, the modulus picks the one that is not negative. Most of the properties below follow directly from this.
The properties you will use constantly
Non-negativity and the zero condition
|x| ≥ 0 for every x, and |x| = 0 exactly when x = 0.
This settles many questions at once. For example, |x − 2| + |y + 5| = 0 forces both terms to be zero, because two non-negative numbers can only add to zero if each is zero. So x = 2 and y = −5. The same reasoning works for any sum of non-negative pieces, such as (x − 1)² + |y − 3| = 0.
Symmetry
|−x| = |x|, and so |x − y| = |y − x|.
In distance terms, the gap from 3 to 8 is the same as the gap from 8 to 3. You can rewrite |3 − x| as |x − 3| whenever that makes the critical point easier to see.
Products and quotients
|xy| = |x| · |y| and |x / y| = |x| / |y| for y ≠ 0.
Modulus passes through multiplication and division. It follows that |xⁿ| = |x|ⁿ for any positive integer n, and |kx| = |k| · |x| for a constant k. For example, |−3x + 6| = |−3| · |x − 2| = 3|x − 2|. Pulling out the coefficient like this turns an unfamiliar expression into a distance you can picture.
Squares and square roots
|x|² = x², and √(x²) = |x|.
Squaring removes the modulus completely, because x and −x have the same square. The reverse direction catches people out: √(x²) equals |x|, not x. If x = −4, then √16 = 4 = |−4|.
Bounding a number by its modulus
−|x| ≤ x ≤ |x|.
A number never exceeds its own modulus, and its negative never exceeds the modulus either. This two-sided bound is the starting point for proving the triangle inequality, and it also explains why |x| ≤ a is the same as −a ≤ x ≤ a when a ≥ 0. That equivalence is covered fully in the chapter on modulus inequalities.
Comparing two moduli
For real x and y:
- |x| = |y| exactly when x = y or x = −y, which is the same as x² = y².
- |x| < |y| exactly when x² < y².
Both sides are non-negative, so squaring keeps the direction of the inequality. This gives a fast way to solve something like |x − 1| < |x + 3|. Square both sides to get x² − 2x + 1 < x² + 6x + 9, which simplifies to −8 < 8x, so x > −1. In distance terms, x is closer to 1 than to −3, so it lies to the right of their midpoint, −1.
Summary table
| Property | Statement | Typical use | Column | Column | Column | Column | Column | Column | Column | Column |
|---|---|---|---|---|---|---|---|---|---|---|
| Non-negativity | \ | x\ | ≥ 0, and \ | x\ | = 0 only if x = 0 | Sums of moduli equal to zero | ||||
| Symmetry | \ | −x\ | = \ | x\ | Rewriting \ | a − x\ | as \ | x − a\ | ||
| Product | \ | xy\ | = \ | x\ | \ | y\ | Pulling out coefficients | |||
| Quotient | \ | x/y\ | = \ | x\ | /\ | y\ | Simplifying rational moduli | |||
| Square | \ | x\ | ² = x² | Removing modulus without cases | ||||||
| Root | √(x²) = \ | x\ | Simplifying radicals | |||||||
| Bound | −\ | x\ | ≤ x ≤ \ | x\ | Proofs, the triangle inequality | |||||
| Comparison | \ | x\ | < \ | y\ | ⇔ x² < y² | Comparing two moduli |
What modulus does not do
These are the errors that cost marks most often.
- |a + b| = |a| + |b| is false in general. With a = 5 and b = −3, the left side is 2 and the right side is 8. Equality holds only when ab ≥ 0, that is, when a and b do not have opposite signs.
- |a − b| = |a| − |b| is false in general. With a = 2 and b = 5, the left side is 3 and the right side is −3. The correct relation, |a − b| ≥ ||a| − |b||, belongs to the triangle inequality chapter.
- √(x²) = x is false for negative x. This mistake quietly loses half of a solution set.
- |x| = −3 has no solution. A modulus can never equal a negative number, so an equation like |2x − 1| = x − 5 needs the check x − 5 ≥ 0 before you accept any root.
Choosing which property to apply
Checking the properties numerically
The script below tests each identity on random real numbers and finds a counterexample to the false "additivity" rule. Run it to confirm which statements always hold.
import math
import random
random.seed(1)
ok = True
for _ in range(10000):
x = random.uniform(-50, 50)
y = random.uniform(-50, 50)
if abs(y) < 1e-9:
continue
checks = [
abs(-x) == abs(x),
math.isclose(abs(x * y), abs(x) * abs(y)),
math.isclose(abs(x / y), abs(x) / abs(y)),
math.isclose(abs(x) ** 2, x ** 2),
math.isclose(math.sqrt(x ** 2), abs(x)),
-abs(x) <= x <= abs(x),
(abs(x) < abs(y)) == (x ** 2 < y ** 2),
]
if not all(checks):
ok = False
print("Failure at", x, y)
print("All true identities held:", ok)
a, b = 5, -3
print(abs(a + b), abs(a) + abs(b)) # 2 8, so |a + b| = |a| + |b| failsWorked example
Solve |x − 4| = |2x + 1|.
The equation compares two moduli, so square both sides: (x − 4)² = (2x + 1)². Rearranged, this is (x − 4)² − (2x + 1)² = 0. Factor it as a difference of squares: (x − 4 − 2x − 1)(x − 4 + 2x + 1) = 0, which gives (−x − 5)(3x − 3) = 0. So x = −5 or x = 1.
Check: at x = −5, |−9| = 9 and |−9| = 9. At x = 1, |−3| = 3 and |3| = 3. Both roots work. You could get the same result from x − 4 = ±(2x + 1) directly.
Exercise
Find all real pairs (x, y) with |x + y − 3| + (x − y + 1)² = 0.
Show answer
Both terms are non-negative, so each must be zero: x + y = 3 and x − y = −1. Adding gives 2x = 2, so x = 1 and y = 2. The only pair is (1, 2).
Exercise
Solve |3x − 2| < |x + 6|.
Show answer
Square both sides: 9x² − 12x + 4 < x² + 12x + 36, so 8x² − 24x − 32 < 0, which simplifies to x² − 3x − 4 < 0, or (x − 4)(x + 1) < 0. The solution is −1 < x < 4.
Exercise
For how many integers x in the range −10 ≤ x ≤ 10 does |x − 3| + |3 − x| = 2x − 6 hold?
Show answer
By symmetry the left side is 2|x − 3|, so the equation becomes |x − 3| = x − 3, which holds exactly when x ≥ 3. The integers 3 through 10 qualify, which is 8 values.
Exercise
Simplify √(x² − 6x + 9) + √(x² + 4x + 4) for −2 ≤ x ≤ 3.
Show answer
The expression equals √((x − 3)²) + √((x + 2)²) = |x − 3| + |x + 2|. On this interval, |x − 3| = 3 − x and |x + 2| = x + 2, so the sum is 5, a constant.