Sub topic 14
Properties of Absolute Value
This chapter assumes you can solve linear equations and inequalities, place numbers on a number line, and follow the definition of absolute value as distance from zero, covered in the previous chapter. Here you will learn the rules that let you rewrite and compare absolute value expressions without testing numbers one at a time.
The definition, restated
The absolute value of a number x, written |x|, is its distance from 0 on the number line. Distance is never negative, so |x| ≥ 0 for every real x.
Piecewise, the definition is:
- |x| = x when x ≥ 0
- |x| = -x when x < 0
The second line is the one that trips people up. When x is negative, -x is positive. So |-7| = -(-7) = 7. The expression -x does not mean "a negative number". It means "the opposite of x".
A useful extension: |a - b| is the distance between a and b on the number line. For example, |3 - (-4)| = 7, because 3 and -4 are 7 units apart. This reading turns many equations into pictures.
The core properties
Each of these holds for all real numbers a and b.
| Property | Statement | Example | Column | Column | Column | Column | Column | Column | Column | Column |
|---|---|---|---|---|---|---|---|---|---|---|
| Nonnegativity | \ | a\ | ≥ 0 | \ | -9\ | = 9 | ||||
| Zero only at zero | \ | a\ | = 0 exactly when a = 0 | \ | x - 2\ | = 0 gives x = 2 | ||||
| Symmetry | \ | -a\ | = \ | a\ | \ | -6\ | = \ | 6\ | = 6 | |
| Multiplicative | \ | ab\ | = \ | a\ | \ | b\ | \ | (-3)(4)\ | = 12 = 3 · 4 | |
| Quotient | \ | a/b\ | = \ | a\ | /\ | b\ | for b ≠ 0 | \ | -8/2\ | = 4 = 8/2 |
| Power | \ | a^n\ | = \ | a\ | ^n | \ | (-2)^3\ | = 8 = 2^3 | ||
| Triangle inequality | \ | a + b\ | ≤ \ | a\ | + \ | b\ | \ | 3 + (-5)\ | = 2 ≤ 8 |
The multiplicative, quotient, and power rules say that absolute value passes through multiplication, division, and exponents. You can take absolute values factor by factor.
Absolute value does not pass through addition
This is the most common error with these properties. In general, |a + b| ≠ |a| + |b|. The triangle inequality tells you only that |a + b| ≤ |a| + |b|.
Equality holds when a and b have the same sign (or one is zero). The two sides differ when the signs are opposite, because the terms partly cancel inside the bars but not outside.
- a = 3, b = 5: |3 + 5| = 8 and |3| + |5| = 8. Equal.
- a = 3, b = -5: |3 + (-5)| = 2 but |3| + |-5| = 8. Not equal.
The same caution applies to subtraction. |a - b| ≥ ||a| - |b||, and |a - b| ≤ |a| + |b|. The GRE rarely asks you to prove these, but a Quantitative Comparison question can hinge on them.
# Absolute value passes through multiplication, division, and powers
for a in range(-6, 7):
for b in range(-6, 7):
assert abs(a * b) == abs(a) * abs(b)
assert abs(a ** 3) == abs(a) ** 3
if b != 0:
assert abs(a / b) == abs(a) / abs(b)
# It does not pass through addition, but the triangle inequality holds
assert abs(3 + (-5)) != abs(3) + abs(-5)
for a in range(-6, 7):
for b in range(-6, 7):
assert abs(a + b) <= abs(a) + abs(b)Taking the absolute value of a sum or difference
Because |a - b| = |b - a| (a consequence of symmetry), the order inside the bars does not matter. |x - 5| and |5 - x| are the same quantity.
assert all(abs(x - 5) == abs(5 - x) for x in range(-20, 21))This matters when a question gives you |x - 5| and you want to rewrite it as |5 - x| to make a comparison easier.
Absolute value and squares
Squaring removes the sign, just as absolute value does. That gives two linked facts:
- |a|^2 = a^2
- |a| = |b| exactly when a^2 = b^2
The second fact is a shortcut. To solve |x - 1| = |2x + 4|, you can square both sides instead of splitting into cases. Both sides are nonnegative, so squaring does not create extra solutions here:
(x - 1)^2 = (2x + 4)^2
Taking the square root of each side gives x - 1 = ±(2x + 4), which is the same as the case split: x - 1 = 2x + 4 gives x = -5, and x - 1 = -(2x + 4) gives x = -1.
sols = {x for x in range(-20, 21) if abs(x - 1) == abs(2 * x + 4)}
assert sols == {-5, -1}Properties as a decision path
When you see an expression with bars, decide which property applies before you manipulate it.
Sign information and what you can conclude
Many GRE questions give you the sign of a variable and ask you to simplify. Use the definition directly.
- If x < 0, then |x| = -x.
- If x > 0, then |x| = x.
- If x < 3, then |x - 3| = 3 - x, because x - 3 is negative.
- If x > 3, then |x - 3| = x - 3.
Without sign information, you cannot drop the bars. A statement such as "|x| = x" is true exactly when x ≥ 0, so it carries information. Likewise, |x| = -x tells you that x ≤ 0.
Worked example
Suppose -2 < x < 1. Simplify |x - 1| + |x + 2|.
- Since x < 1, x - 1 is negative, so |x - 1| = 1 - x.
- Since x > -2, x + 2 is positive, so |x + 2| = x + 2.
- Add: (1 - x) + (x + 2) = 3.
The result does not depend on x. That makes sense geometrically. The sum |x - 1| + |x + 2| is the distance from x to 1 plus the distance from x to -2. When x lies between them, those two distances add up to the gap between 1 and -2, which is 3.
from fractions import Fraction
for x in [Fraction(-19, 10), Fraction(-1), Fraction(0), Fraction(1, 2), Fraction(9, 10)]:
assert abs(x - 1) + abs(x + 2) == 3Common errors
- Writing |a + b| = |a| + |b| without checking signs.
- Concluding |x| = 5 means x = 5. It means x = 5 or x = -5.
- Treating -|x| as positive. The expression -|x| is always less than or equal to 0.
- Writing |x| = x for a variable of unknown sign. This holds only when x ≥ 0.
- Squaring both sides of an equation or inequality that has a negative side. For |a| = |b| squaring is safe. For |a| = b you must also require b ≥ 0.
Minimum and maximum behavior
Because |x| ≥ 0, the smallest value of |x - c| is 0, reached at x = c. The expression |x - c| + k therefore has a minimum of k. Likewise, k - |x - c| has a maximum of k. These facts answer many "what is the least possible value" questions in one step.
assert min(abs(x - 4) + 7 for x in range(-30, 31)) == 7
assert max(10 - abs(x + 2) for x in range(-30, 31)) == 10Exercise
If -3 < x < 2, simplify |x - 2| - |x + 3|. Give your answer as an expression in x.
Show answer
Since x < 2, |x - 2| = 2 - x. Since x > -3, |x + 3| = x + 3. The difference is (2 - x) - (x + 3) = -1 - 2x.
Exercise
For which pairs of real numbers a and b does |a + b| = |a| + |b| hold? Give one example where it fails.
Show answer
It holds when a and b have the same sign or at least one of them is 0, that is, when ab ≥ 0. It fails for a = 4, b = -1: |4 + (-1)| = 3, but |4| + |-1| = 5.
Exercise
What is the greatest possible value of 12 - 3|x + 5|, and for which x does it occur?
Show answer
|x + 5| is smallest (0) when x = -5, so the expression is largest there. The greatest value is 12 - 3(0) = 12.