Skip to content

Mathematics · Ch 1 — Sets, Relations and Functions

Ways of Representing Functions

1.6.1

Ways of Representing Functions

  1. Tabular representation. When the domain elements x1,x2,…,xnx_1,x_2,\dots,x_n are explicitly listed, a function can be written as a two-row table of arguments x1,…,xnx_1,\dots,x_n against values y1,…,yny_1,\dots,y_n.
  2. Graphical representation. When domain and co-domain are subsets of RR, plot the domain along the xx-axis and co-domain along the yy-axis; xx is the argument, f(x)f(x) is the value. To read f(x)f(x) off a graph: draw a vertical line through xx, find where it meets the curve at point PP, then a horizontal line through PP gives f(x)f(x) on the yy-axis; reading pre-images of a yy-value works the same way with horizontal lines.
  3. Analytical representation. y=f(x)y=f(x) given by a formula -- e.g. x3+5x^3+5, sin⁡x+cos⁡xx2+1\dfrac{\sin x+\cos x}{x^2+1}, log⁡x+5x\log x+5\sqrt x. The natural domain is the set of xx for which the formula is actually defined: y=x3+3y=x^3+3 and y=x4−2y=x^4-2 have domain (−∞,∞)(-\infty,\infty); y=x−1x+1y=\dfrac{x-1}{x+1} has domain R−{−1}R-\{-1\}; y=4−x2y=\sqrt{4-x^2} has domain [−2,2][-2,2]. Piecewise functions. A function can be defined by different formulas on different pieces of the domain, e.g.

    f(x)={0−∞<x≤−22x−2<x≤3x23<x≤∞f(x)=\begin{cases}0 & -\infty<x\le-2\\ 2x & -2<x\le3\\ x^2 & 3<x\le\infty\end{cases}

    To evaluate at a point, first find which interval it belongs to, then apply that piece's formula: f(6)=62=36f(6)=6^2=36 (since 6∈(3,∞)6\in(3,\infty)), f(−1)=2(−1)=−2f(-1)=2(-1)=-2, f(−5)=0f(-5)=0. …