algebra

Absolute Value

The absolute value |x| is the distance from x to 0 on the number line — always non-negative. |3| = 3, |-3| = 3.

The absolute value of a real number xx, written x|x|, is its distance from 00 on the number line — always non-negative. Formal definition:

x={x,x0x,x<0|x| = \begin{cases} x, & x \geq 0 \\ -x, & x < 0 \end{cases}

Common rules:

  • ab=ab|ab| = |a||b|
  • a/b=a/b|a/b| = |a|/|b| (with b0b \neq 0)
  • a+ba+b|a + b| \leq |a| + |b| — the triangle inequality.

Solving x3=5|x - 3| = 5 requires considering both cases: x3=5x - 3 = 5 or x3=5x - 3 = -5, giving x=8x = 8 or x=2x = -2.

Generalisations: in the complex plane, z|z| is the distance from 00 in 2D. In vector spaces, v|\vec{v}| becomes the norm. The absolute value generalises to any structure where "size" or "distance" makes sense.