Skip to main content

Section 2.1 Functions

Subsection 2.1.1 Relations

  • Any set of ordered pairs is called a relation. For example,
    \begin{equation*} \{ (-3,1), (4,2), (-3,6), (5,6) \}\text{.} \end{equation*}
  • A function is a set of ordered pairs in which no two ordered pairs have the same first coordinate and different second coordinates.
  • All functions are relations, but not all relations are functions.
  • Domain: set of all first coordinates.
  • Range: set of all second coordinates.

Example 2.1.1.

Determine whether each relation is a function. Find the domain and range.
(a) Β  \(\{ (1,3), \text{ } (2,3), \text{ }(4,9) \} \)
(b) Β  \(\{ (7,3), \text{ } (19,-1), \text{ } (36,3), \text{ }(7,9), \text{ }(60,9) \} \)
Solution
(a) No two pairs have the same first coordinate, so it is a function.
Domain \(=\{ 1, 2,4 \}\text{.}\)
Range \(= \{ 3,9 \}\text{.}\)
(b) \((7,3)\) and \((7,9)\) have the same first coordinate (\(7\)) and different second coordinates. So, the relation is not a function.
Domain \(=\{ 7, 19, 36, 60\}\text{.}\)
Range \(=\{ 3, -1, 9 \}\text{.}\)

Subsection 2.1.2 A relation given as a table

Each row, going from left to right, gives us an ordered pair.

Example 2.1.2.

Determine whether the relation is a function.
\(x \) \(y \)
\(-1\) \(1\)
\(1\) \(1\)
\(2\) \(4\)
\(3\) \(9\)
Solution: Β  Rewrite the table as a list of ordered pairs.
\begin{equation*} \{ (-1,1), (1,1), (2,4), (3,9) \} \end{equation*}
No pairs have the same first coordinate. So, it is a function.

Subsection 2.1.3 Vertical Line Test

A graph is the graph of a function if and only if there is no vertical line that crosses the graph more than once.
For example, the graph in FigureΒ 2.1.3 fails the vertical line test.
Figure 2.1.3. Graph of a circle with a vertical, dashed line through it. Not a function
If two points on the graph are on the same vertical line, then they have the same \(x\)-coordinate and different \(y\)-coordinates.

Subsection 2.1.4 Determining if an equation is a function

  • An equation where \(y\) depends on \(x\) is a function if there is only one \(y\)-value for each \(x\)-value.
  • To test: Solve for \(y\) and try values for \(x\text{.}\)

Example 2.1.4.

Determine whether \(y\) is a function of \(x\text{.}\)
\begin{equation*} \text{(a) } \text{ } x^2+y^2=4 \quad \quad \quad \quad \quad \text{ (b) } \text{ } y=4x+7 \quad \quad \quad \quad \quad \end{equation*}
Solution
(a) Solve for \(y\text{:}\)
\begin{align*} x^2 +y^2 -\underline{x^2} \amp = 4 -\underline{x^2} \\ y^2 \amp =4-x^2 \\[0.25em]\\ y \amp =\pm \sqrt{4-x^2} \quad \quad \quad \text{ by The Square Root Property}. \end{align*}
If \(x=0\text{,}\) then \(y=\pm \sqrt{4-0^2}\text{ }\text{.}\) So \(y=\pm 2\text{.}\)
That’s \(2\) \(y\)-values for \(1\) \(x\)-value. So, the equation is not a function.
(b) The equation is already solved for \(y\text{,}\) so we can just try points.
  • If \(x=0\text{,}\) then \(y=4\cdot0 +7=7\text{.}\)
  • If \(x=1\text{,}\) then \(y=4 \cdot 1 +7=11\text{,}\) and so on.
For each \(x\)-value, there is \(1\) \(y\)-value. Therefore, the equation is a function.
Note: In part (a) of the above example,
  1. The graph is a circle with center \((0,0)\) and radius \(2\text{.}\)
  2. We found that \((0,2)\) and \((0,-2)\) are both on the graph.

Subsection 2.1.5 Determining Domain and Range of Equations

Rough Definitions
  • Domain: all real \(x\)-values for which \(y\) is real.
  • Range: all possible \(y\)-values (real).

Example 2.1.5.

Find the domain and range of each relation.
\begin{equation*} \text{(a) } \text{ } y=\sqrt{2x+1} \quad \quad \quad \quad \quad \text{ (b) } \text{ } y=|x| +24 \quad \quad \quad \quad \quad \end{equation*}
Solution
(a) Recall that the square root of a negative number is not real. Thus, \(y\) is real when
\begin{equation*} 2x+1 \geq 0\text{.} \end{equation*}
Solving the inequality for \(x\text{,}\) we get
\begin{equation*} x \geq -\frac{1}{2}\text{.} \end{equation*}
Thus, the domain is \(\left [-\frac{1}{2}, \infty \right) \text{.}\)
Since the square root is never negative, \(y \geq 0\text{,}\) so the range is \([0,\infty)\text{.}\)
(b) We can take the absolute value of every real number \(x\text{,}\) and the result is real. So, the domain is \((-\infty,\infty),\) the set of all real numbers.
Because the smallest value of \(|x|\) is \(0\text{,}\) the smallest value of \(|x| +24\) is \(0+24=24\text{.}\)
Thus, \(y\geq 24\text{,}\) so the range is \([24,\infty).\)

Subsection 2.1.6 Function Notation

A function can be named with a letter.
  • For \(f= \{ (1,3), (3,8)\}\text{,}\) we write \(f(1)=3\) and \(f(3)=8\text{.}\)
  • For the equation \(y=x^2\text{,}\) we rename it as \(f(x)=x^2\text{.}\)

Example 2.1.6.

Let \(f=\{ (2,6), \text{ } (3,8), \text{ } (4,5) \}\text{,}\) \(\text{ } g(x)=3x+5\text{.}\) Find
\begin{equation*} \text{(a) } \text{ } f(4) \quad \quad \quad \text{ (b) } \text{ } g(4) \quad \quad \quad \text{ (c) } \text{ } x \text{ if } f(x)=6 \quad \quad \quad \text{ (d) } \text{ } g(x+1) \end{equation*}
Solution
(a) \(f(4)\) is the second coordinate when \(4\) is the first coordinate.
\begin{equation*} f(4)=5 \end{equation*}
(b) Replace \(x\) with \(4\text{:}\)
\begin{equation*} g(4)=3 \cdot 4 +5=17. \end{equation*}
(c) We conclude that \(x=2\) since \(f(2)=6\text{.}\)
(d) Replace \(x\) with \(x+1\text{.}\)
\begin{align*} g(x+1) \amp =3(x+1)+5 \\ \amp = 3x+3 +5 \\ \amp = 3x+8 \end{align*}

Subsection 2.1.7 The Difference Quotient

The difference quotient for a function \(f(x)\text{,}\) with \(h\not=0\text{,}\) is
\begin{equation*} \frac{f(x+h)-f(x)}{h} \end{equation*}

Example 2.1.7.

Find the difference quotient for \(f(x)=4x+7\text{,}\) and simplify it.
Solution: Β  To compute \(f(x+h)\text{,}\) replace \(x\) with \(x+h\text{.}\)
\begin{equation*} f(x+h)=4(x+h)+7 \end{equation*}
Substitute \(f(x+h)\) into the difference quotient definition:
\begin{align*} \frac{f(x+h)-f(x)}{h} \amp =\frac{4(x+h)+7-(4x+7)}{h} \\[0.25em]\\ \amp =\frac{\cancel{4x} +4h+\cancel{7} -\cancel{4x}-\cancel{7}}{h} \\[0.25em]\\ \amp = \frac{4h}{h} \\[0.25em]\\ \amp =4 \end{align*}

Example 2.1.8.

Find the difference quotient for \(f(x)=2x^2-3x\text{,}\) and simplify it.
Solution: Β  To compute \(f(x+h)\text{,}\) replace \(x\) with \(x+h\text{.}\)
\begin{equation*} f(x+h)=2(x +h)^2 -3(x+h) \end{equation*}
Substitute \(f(x+h)\) into the difference quotient definition:
\begin{align*} \frac{f(x+h)-f(x)}{h} \amp =\frac{ \left[2(x +h)^2 -3(x+h) \right]-\left[2x^2-3x\right]}{h} \\[0.25em]\\ \amp =\frac{2(x^2+2hx+h^2)-\cancel{3x}-3h-2x^2+\cancel{3x}}{h} \\[0.25em]\\ \amp =\frac{\cancel{2x^2}+4hx+2h^2-3h-\cancel{2x^2}}{h} \\[0.25em]\\ \amp =\frac{4hx + 2h^2-3h}{h} \\[0.25em]\\ \amp =\frac{h(4x+2h-3)}{h} \\[0.25em]\\ \amp =4x+2h-3 \end{align*}

Subsection 2.1.8 Average Rate of Change

  • If \((x_1,y_1)\) and \((x_2,y_2)\) are \(2\) ordered pairs of a function \(f\text{,}\) then the average rate of change of the function as \(x\) varies from \(x_1\) to \(x_2\) is
    \begin{equation*} \frac{y_2-y_1}{x_2-x_1} = \frac{f(x_2)-f(x_1)}{x_2-x_1} \end{equation*}
  • Positive rate \(\implies f\) is increasing as \(x\) increases.
  • Negative rate \(\implies f\) is decreasing as \(x\) increases.
  • The difference quotient is the average rate of change from \(x\) to \(x+h\text{.}\)

Example 2.1.9.

The revenue in dollars from the sale of concert tickets at \(x\) dollars each is given by the function \(R(x)=30,000x-500x^2\text{.}\) Find the difference quotient when \(x=28\text{ }\) and \(\text{ }h=0.1\text{.}\) Use a calculator and interpret your answer.
Solution: Β  The difference quotient for \(x=28\) and \(h=0.1\) is
\begin{align*} \frac{R(x+h)-R(x)}{h} \amp =\frac{R(28+0.1)-R(28)}{h} \\[0.25em]\\ \amp =\frac{R(28.1)-R(28)}{0.1} \\[0.25em]\\ \amp =\frac{30,000(28.1)-500 (28.1)^2 - [30,000(28)-500(28)^2]}{0.1} \\[0.25em]\\ \amp =\frac{448,195 - [448,000]}{0.1} \\[0.25em]\\ \amp =\frac{195}{0.1} \\[0.25em]\\ \amp =1950 \end{align*}
The rate is positive. Therefore, the revenue is increasing as the ticket price increases when \(x\) is \(28\text{.}\)