Sub topic 13
Absolute value as distance from zero
This chapter assumes you can place numbers on a number line, evaluate expressions using the order of operations, and work with negative numbers. It defines absolute value and builds the distance interpretation that later chapters use for equations and inequalities.
What absolute value means
The absolute value of a number is its distance from zero on the number line. It is written with vertical bars: |x|.
- |7| = 7, because 7 is 7 units from zero.
- |−7| = 7, because −7 is also 7 units from zero.
- |0| = 0, because zero is zero units from itself.
Distance cannot be negative, so the result of an absolute value is never negative. It tells you how far a number is from zero and ignores which side of zero the number is on.
The two-case definition
Distance can also be written as a rule with two cases:
- If x ≥ 0, then |x| = x.
- If x < 0, then |x| = −x.
The second case surprises many students. The expression −x does not mean "a negative number." It means "the opposite of x." If x = −5, then −x = −(−5) = 5, which is positive. So the rule flips the sign only when the number is negative, and the output is always nonnegative.
This shows that |x| = −x does not tell you that x is negative. It tells you that x is zero or negative, because |0| = 0 = −0. Watch for this boundary case in Quantitative Comparison questions.
Absolute value as a grouping symbol
Bars work like parentheses. Simplify everything inside first, then take the absolute value.
| Expression | Work | Result | Column | Column | Column | Column |
|---|---|---|---|---|---|---|
| \ | 3 − 7\ | \ | −4\ | 4 | ||
| −\ | 3 − 7\ | −(4) | −4 | |||
| \ | 3\ | − \ | 7\ | 3 − 7 | −4 | |
| \ | −5 + 2\ | \ | −3\ | 3 | ||
| \ | −5\ | + \ | 2\ | 5 + 2 | 7 |
Compare the last two rows. The absolute value of a sum is not generally the sum of the absolute values. You cannot move the bars onto each term unless the terms are multiplied or divided (a later chapter covers these properties).
The minus sign outside the bars is applied after the absolute value is found. So −|x| is always zero or negative, and |x| is always zero or positive.
Distance between two numbers
The distance between two points a and b on the number line is |a − b|. Order does not matter, because |a − b| = |b − a|. For example, the distance between 3 and 7 is |3 − 7| = |7 − 3| = 4.
This turns any expression of the form |x − c| into a statement about distance:
- |x − 3| is the distance from x to 3.
- |x + 2| is the distance from x to −2, because x + 2 = x − (−2).
- |x| is the distance from x to 0, the special case c = 0.
The second item is a common trap. The number that appears is the opposite of the sign inside the bars. A number is 5 units from 3 when |x − 3| = 5, which gives x = −2 or x = 8. You will solve these properly in the equations chapter. For now, the picture is enough: start at 3 and move 5 units in each direction.
Checking the definition with code
The code below confirms the two-case rule against Python's built-in abs, the symmetry of distance, and the two expressions that are easy to confuse.
def absolute_value(x):
# Two-case definition: keep x if it is zero or positive, otherwise flip its sign
return x if x >= 0 else -x
for x in [-7, -0.5, 0, 3, 12]:
assert absolute_value(x) == abs(x)
assert abs(x) >= 0
# Distance between two numbers does not depend on order
assert abs(3 - 7) == abs(7 - 3) == 4
# A minus sign outside the bars is applied last
assert -abs(3 - 7) == -4
assert abs(3) - abs(7) == -4
# The absolute value of a sum is not the sum of absolute values
assert abs(-5 + 2) == 3
assert abs(-5) + abs(2) == 7Common errors
- Treating the bars as "drop the negative sign." |−3 + 1| is |−2| = 2, not 3 + 1 = 4. Combine terms inside first.
- Thinking |x| = x always. This holds only when x ≥ 0. For x = −4, |x| = 4 while x = −4.
- Thinking |x| is always larger than x. When x ≥ 0, |x| equals x. Only when x < 0 is |x| greater than x.
- Reading |x − 3| as distance from −3. The center is the number being subtracted, here 3.
- Forgetting that −|x| is not positive. For every x, −|x| ≤ 0.
Quantitative Comparison traps
Quantitative Comparison questions often hide a sign. Suppose the question states only that x is a nonzero number, and compares |x| with x. If x = 2, the two are equal. If x = −2, |x| is greater. Because the answer depends on x, no single relationship holds, and the answer is that the relationship cannot be determined.
Test at least one positive value, one negative value, and zero when the problem allows it. Absolute value is exactly the kind of operation that behaves differently across those cases.
Summary of key facts
- |x| is the distance from x to 0, so |x| ≥ 0 for every x.
- |x| = 0 only when x = 0.
- |x| = x when x ≥ 0, and |x| = −x when x < 0.
- |a − b| is the distance between a and b, and |a − b| = |b − a|.
- Bars group like parentheses. Simplify inside, then take the absolute value, then apply any outside sign.
Exercise
Evaluate −|2 − 9| + |−3| − |−3 + 1|.
Show answer
Work each part separately. |2 − 9| = |−7| = 7, so the first term is −7. |−3| = 3. |−3 + 1| = |−2| = 2, so the last term is −2. The total is −7 + 3 − 2 = −6.
Exercise
A number x satisfies |x| = −x. In a Quantitative Comparison, Quantity A is x and Quantity B is 0. What can you conclude?
Show answer
|x| = −x holds when x ≤ 0, including x = 0. If x = −3, Quantity A is less than Quantity B. If x = 0, the two are equal. Because both cases are possible, the relationship cannot be determined.
Exercise
Find the distance between −4 and 9, and name the center of |x + 4|.
Show answer
The distance is |−4 − 9| = |−13| = 13, which also equals |9 − (−4)| = 13. Since x + 4 = x − (−4), the expression |x + 4| is the distance from x to −4, so the center is −4.