Absolute value on ℝ

The nonnegative magnitude |x| of a real number x, equal to its distance from 0.
Absolute value on ℝ

The absolute value of a real number xRx\in\mathbb{R} is

x:={x,x0,x,x<0. |x| := \begin{cases} x,& x\ge 0,\\ -x,& x<0. \end{cases}

Equivalently, x=x2|x|=\sqrt{x^2} and x|x| is the distance from xx to 00 in R\mathbb{R} with the usual metric d(x,y)=xyd(x,y)=|x-y|. Absolute value is fundamental for defining convergence, continuity, and error bounds in one-variable analysis.

Examples:

  • 3=3|3|=3 and 3=3|-3|=3.
  • 0=0|0|=0.
  • xy|x-y| measures the distance between xx and yy in R\mathbb{R}.