Let x∈Rx \in \mathbb{R} be a real number. The absolute value or modulus of x,x, written ∣x∣,\lvert x\rvert, is xx when xx is positive, −x-x when xx is negative and 00 when xx is zero.

∣x∣ :={−xx<00x=0xx>0\lvert x\rvert \, := \begin{cases} -x & x<0 \\ 0 & x=0 \\ x & x>0 \end{cases}

Let x,y∈Rx,y \in \mathbb{R} be real numbers. The distance between xx and y,y, written d(x,y),d(x,y), is the absolute value of their difference.

d(x,y):=∣x−y∣d(x,y) := \lvert x-y\rvert

Let x,y∈Rx,y \in \mathbb{R} be real numbers and ε>0\varepsilon>0 be a real number. The numbers xx and yy are ε\boldsymbol{\varepsilon}-close if and only if d(x,y)≤ε.d(x,y) \leq \varepsilon .

Let S⊆RS \subseteq \mathbb{R} and x∈R.x \in \mathbb{R}. The number xx is an upper bound of SS if and only if s≤xs \leq x for all s∈S.s \in S. The number xx is a lower bound of SS if and only if x≤sx \leq s for all s∈S.s \in S.

Let S⊆R.S \subseteq \mathbb{R}. The set SS is bounded above if and only if it has an upper bound. The set SS is bounded below if and only if it has a lower bound. The set SS is bounded if and only if it is both bounded above and bounded below. Equivalently, SS is bounded if and only if ∃M≥0:∣s∣≤M ∀s∈S.\exists M \geq 0 : \lvert s\rvert \leq M \, \forall s \in S.

Let S⊆RS \subseteq \mathbb{R} and α∈R.\alpha \in \mathbb{R}. The number α\alpha is the supremum or least upper bound of S,S, written sup⁡S,\sup S, if and only if α\alpha is an upper bound of SS and α≤z\alpha \leq z for every upper bound zz of S.S. The number α\alpha is the infimum or greatest lower bound of S,S, written inf⁡S,\inf S, if and only if α\alpha is a lower bound of SS and z≤αz \leq \alpha for every lower bound zz of S.S. Every non-empty set that is bounded above has a supremum, and every non-empty set that is bounded below has an infimum.

Let S⊆RS \subseteq \mathbb{R} and α∈R.\alpha \in \mathbb{R}. The number α\alpha is the maximum of S,S, written max⁡S,\max S, if and only if α∈S\alpha \in S and s≤αs \leq \alpha for all s∈S.s \in S. The number α\alpha is the minimum of S,S, written min⁡S,\min S, if and only if α∈S\alpha \in S and α≤s\alpha \leq s for all s∈S.s \in S. The maximum and minimum have the following properties:

  • if the maximum exists then it is the supremum, and if the minimum exists then it is the infimum;
  • if S=∅S=\varnothing or SS is not bounded above then the maximum does not exist;
  • if S=∅S=\varnothing or SS is not bounded below then the minimum does not exist;
  • a non-empty bounded set need not have a maximum or minimum, for example the set {x∈R:0<x<1}\{x\in\mathbb{R}:0<x<1\} has neither.

Let X⊆R.X \subseteq \mathbb{R}. The set XX is an interval if and only if for all x,y∈Xx,y \in X with x<y,x<y, every z∈Rz \in \mathbb{R} with x<z<yx<z<y is also in X.X. The empty set is an interval since it has no such xx and y.y.

Let X⊆RX \subseteq \mathbb{R} be a non-empty bounded interval. The endpoints of XX are a=inf⁡Xa=\inf X and b=sup⁡X.b=\sup X. The interval XX is one of four sets, depending on which endpoints it contains:

  • the open interval (a,b):={x∈R:a<x<b};(a,b):=\{x\in\mathbb{R}:a<x<b\};
  • the closed interval [a,b]:={x∈R:a≤x≤b};[a,b]:=\{x\in\mathbb{R}:a\leq x\leq b\};
  • the half-open intervals [a,b):={x∈R:a≤x<b}[a,b):=\{x\in\mathbb{R}:a\leq x<b\} and (a,b]:={x∈R:a<x≤b}.(a,b]:=\{x\in\mathbb{R}:a<x\leq b\}.

An unbounded interval is one of (a,∞),(a,\infty), [a,∞),[a,\infty), (−∞,b),(-\infty,b), (−∞,b](-\infty,b] or R.\mathbb{R}.

Let X⊆RX \subseteq \mathbb{R} be a bounded interval. The length of X,X, written ∣X∣,\lvert X\rvert, is b−ab-a if XX is non-empty with endpoints aa and b,b, and 00 if XX is empty.