Skip to content

Mathematics · Ch 1 — Sets, Relations and Functions

Some Elementary Functions

1.6.2

Some Elementary Functions

Some function "shapes" are common enough to deserve their own names.

  • Identity function. f:X→X, f(x)=xf:X\to X,\ f(x)=x for every xx; denoted IXI_X or II.
  • Constant function. For a fixed c∈Yc\in Y, f:X→Y, f(x)=cf:X\to Y,\ f(x)=c for all x∈Xx\in X -- the value never changes. If c=0c=0, it is called the zero function (a special case of a constant function).
  • Modulus (absolute value) function. f:R→R, f(x)=∣x∣f:R\to R,\ f(x)=|x|, where

∣x∣={−xx<00x=0xx>0(equivalently split at x≤0/x>0 or x<0/x≥0).|x|=\begin{cases}-x & x<0\\ 0 & x=0\\ x & x>0\end{cases}\quad\text{(equivalently split at }x\le0/x>0\text{ or }x<0/x\ge0\text{).}

  • Signum function. f:R→R, f(x)={x/∣x∣x≠00x=0f:R\to R,\ f(x)=\begin{cases}x/|x| & x\ne0\\ 0 & x=0\end{cases}, written sgn⁡(x)\operatorname{sgn}(x); it only ever outputs −1,0,1-1,0,1.
  • Greatest integer (floor) function. f(x)=⌊x⌋f(x)=\lfloor x\rfloor, the greatest integer ≤x\le x; e.g. ⌊115⌋=1\lfloor1\tfrac15\rfloor=1, ⌊7.23⌋=7\lfloor7.23\rfloor=7, ⌊−212⌋=−3\lfloor-2\tfrac12\rfloor=-3 (not −2-2 -- rounding is always downward, even for negatives), ⌊6⌋=6\lfloor6\rfloor=6, ⌊−4⌋=−4\lfloor-4\rfloor=-4. …