Sub topic 8
Core Properties of Modulus
This chapter assumes you know the definition of |x| from the previous chapter: |x| = x when x ≥ 0, and |x| = -x when x < 0. You should also be comfortable with factorising quadratics. The properties below let you simplify modulus expressions before you solve them. On CAT questions, that usually saves more time than splitting into cases.
The Working Set of Properties
| Property | Statement | Why it holds | Column | Column | Column | Column | Column | Column | Column | Column |
|---|---|---|---|---|---|---|---|---|---|---|
| Non-negativity | \ | x\ | ≥ 0, and \ | x\ | = 0 only when x = 0 | Distance cannot be negative | ||||
| Symmetry | \ | -x\ | = \ | x\ | , so \ | a - b\ | = \ | b - a\ | Distance from a to b equals distance from b to a | |
| Product | \ | xy\ | = \ | x\ | ·\ | y\ | Signs multiply separately from sizes | |||
| Quotient | \ | x/y\ | = \ | x\ | /\ | y\ | , y ≠ 0 | Same reasoning as the product rule | ||
| Square | \ | x\ | ² = x² | Squaring removes the sign anyway | ||||||
| Root | √(x²) = \ | x\ | The square root symbol returns the non-negative root | |||||||
| Bounds | -\ | x\ | ≤ x ≤ \ | x\ | x is either \ | x\ | or -\ | x\ | ||
| Self-equality | \ | x\ | = x exactly when x ≥ 0; \ | x\ | = -x exactly when x ≤ 0 | Follows from the definition |
Using the Properties
Treating |x| as a single variable
Because |x|² = x², the equation x² - 5|x| + 6 = 0 becomes t² - 5t + 6 = 0 with t = |x|. This gives t = 2 or t = 3, so x = ±2 or x = ±3, which is four solutions. Any root with t < 0 must be thrown away, because of non-negativity.
Reading off a sign condition
The equation |x - 3| = 3 - x looks like it needs work. It doesn't, because self-equality says |A| = -A exactly when A ≤ 0. Here A = x - 3, so the solution is x ≤ 3. Similarly, |A| + |B| = 0 forces A = 0 and B = 0 at the same time.
Simplifying products
|x² - 4| = |x - 2|·|x + 2|. Splitting a product like this often shows that a factor is never zero or never negative.
Checking Numerically
The script below tests the identities on random values and solves the substitution example by brute force.
import random, math
for _ in range(10000):
x, y = random.uniform(-50, 50), random.uniform(-50, 50)
assert math.isclose(abs(x * y), abs(x) * abs(y))
assert math.isclose(abs(x) ** 2, x ** 2)
assert math.isclose(math.sqrt(x ** 2), abs(x))
assert -abs(x) <= x <= abs(x)
roots = [x for x in range(-20, 21) if x * x - 5 * abs(x) + 6 == 0]
print(roots) # [-3, -2, 2, 3]Exercise
Find all real x satisfying x² + |x| - 6 = 0.
Show answer
Let t = |x|. Then t² + t - 6 = 0, so (t + 3)(t - 2) = 0. Reject t = -3 because |x| ≥ 0. So |x| = 2 and x = 2 or x = -2.
Exercise
For which real x does |2x - 5| = 5 - 2x hold?
Show answer
|A| = -A exactly when A ≤ 0. Here A = 2x - 5, so 2x - 5 ≤ 0, which gives x ≤ 5/2, the interval (-∞, 5/2].
Exercise
How many real pairs (x, y) satisfy |x - 1| + |y + 4| = 0?
Show answer
Both terms are non-negative, so each must be 0. That gives x = 1 and y = -4, which is exactly one pair.