Absolute Value

Distance From Zero

Absolute value answers one question: how far is this number from zero?

We write it with vertical bars: ∣x∣|x|


Examples

NumberAbsolute ValueWhy?
∥5∥\|5\|555 is 5 units from zero
∥−5∥\|-5\|55-5 is also 5 units from zero
∥0∥\|0\|000 is 0 units from zero

Absolute value strips away the sign. It tells you how far, not which direction.


Definition

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

The second line might look strange. But if xx is negative, then −x-x is positive.

Example: ∣−7∣=−(−7)=7|-7| = -(-7) = 7


Key Properties

  • ∣x∣≥0|x| \geq 0 — always non-negative
  • ∣x∣=0|x| = 0 only when x=0x = 0
  • ∣xy∣=∣x∣⋅∣y∣|xy| = |x| \cdot |y| — absolute value of a product
  • ∣x+y∣≤∣x∣+∣y∣|x + y| \leq |x| + |y| — the triangle inequality