Skip to content

Absolute Value

Definition

Let xx be a real number. The absolute value ∣x∣|x| of xx is defined as follows:

∣x∣={ x,if x>0, −x,if x<0, 0,if x=0.|x| = \begin{cases} \displaystyle\,x, & \text{if }x>0,\\[2pt] \displaystyle\,-x, & \text{if }x<0,\\[2pt] \displaystyle\,0, & \text{if }x=0. \end{cases}

Let xx and yy be real numbers. The quantity ∣x−y∣|x - y| is called the distance between xx and yy and is thus denoted by d(x,y),d(x,y)\text{,} i.e., d(x,y)=∣x−y∣.d( x, y) = | x - y|\text{.}


Interpretation

The absolute value measures how far a real number lies from zero on the real line, whichever side it lies on. The case definition only removes the sign: ∣x∣|x| keeps xx when x≥0x\ge0 and switches to −x-x when x<0x<0.

The V-shaped graph of the absolute value, made of the lines y = -x for x below 0 and y = x for x at least 0, with the value 2 at x = -2 marked as a distance of 2 from 0.

The graph is a V with its corner at the origin: the left branch is the line y=−xy=-x and the right branch is y=xy=x. The marked point shows ∣−2∣=2|-2|=2: the number −2-2 lies at distance 22 from 00, just as 22 does.

Applied to a difference, ∣x−y∣|x-y| is the distance between xx and yy, and ∣x−y∣=∣y−x∣|x-y|=|y-x|, so the order does not matter. This is how inequalities with absolute values should be read: ∣x−a∣<δ|x-a|<\delta describes the points within distance δ\delta of aa, that is, the interval (a−δ,a+δ)(a-\delta,a+\delta). This reading comes back later in the course, in the definitions of limits and continuity, and the same idea of distance is later extended to vectors and to more general spaces.

A common slip is to read −x-x as "a negative number". For x<0x<0 the number −x-x is positive, which is exactly why ∣x∣=−x|x|=-x there. For the same reason x2=∣x∣\sqrt{x^2}=|x|, not xx.


Key Results

  • ∣x∣≥0|x| \ge 0 for all x∈R.x \in \mathbb{R}\text{.}
  • ∣x∣=0|x| = 0 if and only if x=0.x = 0\text{.}
  • ∣x−y∣|x - y| defines a distance function on R.\mathbb{R}\text{.}

Examples

  • ∣3∣=3,|3| = 3\text{,} ∣−5∣=5|-5| = 5
  • ∣x∣=∣−x∣|x| = |-x|

Prerequisites

Sources

Aliases: modulus Keywords: distance on the real line Symbols: delta, element of, real numbers, square root

Last updated: 20 October 2026 03:02