Learning Objectives
- Find the domain and range of a relation
- Determine if a relation is a function
- Find the value of a function
Be Prepared 3.5
Before you get started, take this readiness quiz.
- Evaluate $3x-5$ when $x=\mathrm{-2}$.
If you missed this problem, review Example 1.6. - Evaluate $2{x}^{2}-x-3$ when $x=a.$
If you missed this problem, review Example 1.6. - Simplify: $7x-1-4x+5.$
If you missed this problem, review Example 1.7.
Find the Domain and Range of a Relation
As we go about our daily lives, we have many data items or quantities that are paired to our names. Our social security number, student ID number, email address, phone number and our birthday are matched to our name. There is a relationship between our name and each of those items.
When your professor gets her class roster, the names of all the students in the class are listed in one column and then the student ID number is likely to be in the next column. If we think of the correspondence as a set of ordered pairs, where the first element is a student name and the second element is that student’s ID number, we call this a relation.
The set of all the names of the students in the class is called the domain of the relation and the set of all student ID numbers paired with these students is the range of the relation.
There are many similar situations where one variable is paired or matched with another. The set of ordered pairs that records this matching is a relation.
Relation
A relation is any set of ordered pairs,$\left(x,y\right).$ All the x-values in the ordered pairs together make up the domain. All the y-values in the ordered pairs together make up the range.
Example 3.42
For the relation $\left\{\left(1,1\right),\left(2,4\right),\left(3,9\right),\left(4,16\right),\left(5,25\right)\right\}:$
ⓐ Find the domain of the relation.
ⓑ Find the range of the relation.
Solution
$\phantom{\rule{21em}{0ex}}\left\{\left(1,1\right),\left(2,4\right),\left(3,9\right),\left(4,16\right),\left(5,25\right)\right\}$
ⓐ The domain is the set of all x-values of the relation. $\phantom{\rule{3.3em}{0ex}}\left\{1,2,3,4,5\right\}$
ⓑ The range is the set of all y-values of the relation. $\phantom{\rule{4em}{0ex}}\left\{1,4,9,16,25\right\}$
Try It 3.83
For the relation $\left\{\left(1,1\right),\left(2,8\right),\left(3,27\right),\left(4,64\right),\left(5,125\right)\right\}:$
ⓐ Find the domain of the relation.
ⓑ Find the range of the relation.
Try It 3.84
For the relation $\left\{\left(1,3\right),\left(2,6\right),\left(3,9\right),\left(4,12\right),\left(5,15\right)\right\}:$
ⓐ Find the domain of the relation.
ⓑ Find the range of the relation.
Mapping
A mapping is sometimes used to show a relation. The arrows show the pairing of the elements of the domain with the elements of the range.
Example 3.43
Use the mapping of the relation shown to ⓐ list the ordered pairs of the relation, ⓑ find the domain of the relation, and ⓒ find the range of the relation.
Solution
ⓐ The arrow shows the matching of the person to their birthday. We create ordered pairs with the person’s name as the x-value and their birthday as the y-value.
{(Alison, April 25), (Penelope, May 23), (June, August 2), (Gregory, September 15), (Geoffrey, January 12), (Lauren, May 10), (Stephen, July 24), (Alice, February 3), (Liz, August 2), (Danny, July 24)}
ⓑ The domain is the set of all x-values of the relation.
{Alison, Penelope, June, Gregory, Geoffrey, Lauren, Stephen, Alice, Liz, Danny}
ⓒ The range is the set of all y-values of the relation.
{January 12, February 3, April 25, May 10, May 23, July 24, August 2, September 15}
Try It 3.85
Use the mapping of the relation shown to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.
Try It 3.86
Use the mapping of the relation shown to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.
A graph is yet another way that a relation can be represented. The set of ordered pairs of all the points plotted is the relation. The set of all x-coordinates is the domain of the relation and the set of all y-coordinates is the range. Generally we write the numbers in ascending order for both the domain and range.
Example 3.44
Use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.
Solution
ⓐ The ordered pairs of the relation are: $\phantom{\rule{7.6em}{0ex}}\left\{\left(1,5\right),\left(\mathrm{-3},\mathrm{-1}\right),\left(4,\mathrm{-2}\right),\left(0,3\right),\left(2,\mathrm{-2}\right),\left(\mathrm{-3},4\right)\right\}.$
ⓑ The domain is the set of all x-values of the relation: $\phantom{\rule{2.2em}{0ex}}\left\{\mathrm{-3},0,1,2,4\right\}.$
Notice that while $\mathrm{-3}$ repeats, it is only listed once.
ⓒ The range is the set of all y-values of the relation: $\phantom{\rule{2.9em}{0ex}}\left\{\mathrm{-2},\mathrm{-1},3,4,5\right\}.$
Notice that while $\mathrm{-2}$ repeats, it is only listed once.
Try It 3.87
Use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.
Try It 3.88
Use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.
Determine if a Relation is a Function
A special type of relation, called a function, occurs extensively in mathematics. A function is a relation that assigns to each element in its domain exactly one element in the range. For each ordered pair in the relation, each x-value is matched with only one y-value.
Function
A function is a relation that assigns to each element in its domain exactly one element in the range.
The birthday example from Example 3.43 helps us understand this definition. Every person has a birthday but no one has two birthdays. It is okay for two people to share a birthday. It is okay that Danny and Stephen share July 24^{th} as their birthday and that June and Liz share August 2^{nd}. Since each person has exactly one birthday, the relation in Example 3.43 is a function.
The relation shown by the graph in Example 3.44 includes the ordered pairs $\left(\mathrm{-3},\mathrm{-1}\right)$ and $\left(\mathrm{-3},4\right).$ Is that okay in a function? No, as this is like one person having two different birthdays.
Example 3.45
Use the set of ordered pairs to (i) determine whether the relation is a function (ii) find the domain of the relation (iii) find the range of the relation.
ⓐ $\left\{\left(\mathrm{-3},27\right),\left(\mathrm{-2},8\right),\left(\mathrm{-1},1\right),\left(0,0\right),\left(1,1\right),\left(2,8\right),\left(3,27\right)\right\}$
ⓑ $\left\{\left(9,\mathrm{-3}\right),\left(4,\mathrm{-2}\right),\left(1,\mathrm{-1}\right),\left(0,0\right),\left(1,1\right),\left(4,2\right),\left(9,3\right)\right\}$
Solution
ⓐ $\left\{\left(\mathrm{-3},27\right),\left(\mathrm{-2},8\right),\left(\mathrm{-1},1\right),\left(0,0\right),\left(1,1\right),\left(2,8\right),\left(3,27\right)\right\}$
(i) Each x-value is matched with only one y-value. So this relation is a function.
(ii) The domain is the set of all x-values in the relation.
The domain is: $\left\{\mathrm{-3},\mathrm{-2},\mathrm{-1},0,1,2,3\right\}.$
(iii) The range is the set of all y-values in the relation. Notice we do not list range values twice.
The range is: $\left\{27,8,1,0\right\}.$
ⓑ $\left\{\left(9,\mathrm{-3}\right),\left(4,\mathrm{-2}\right),\left(1,\mathrm{-1}\right),\left(0,0\right),\left(1,1\right),\left(4,2\right),\left(9,3\right)\right\}$
(i) The x-value 9 is matched with two y-values, both 3 and $\mathrm{-3}.$ So this relation is not a function.
(ii) The domain is the set of all x-values in the relation. Notice we do not list domain values twice.
The domain is: $\left\{0,1,2,4,9\right\}.$
(iii) The range is the set of all y-values in the relation.
The range is: $\left\{\mathrm{-3},\mathrm{-2},\mathrm{-1},0,1,2,3\right\}.$
Try It 3.89
Use the set of ordered pairs to (i) determine whether the relation is a function (ii) find the domain of the relation (iii) find the range of the function.
ⓐ $\left\{\left(\mathrm{-3},\mathrm{-6}\right),\left(\mathrm{-2},\mathrm{-4}\right),\left(\mathrm{-1},\mathrm{-2}\right),\left(0,0\right),\left(1,2\right),\left(2,4\right),\left(3,6\right)\right\}$
ⓑ $\left\{\left(8,\mathrm{-4}\right),\left(4,\mathrm{-2}\right),\left(2,\mathrm{-1}\right),\left(0,0\right),\left(2,1\right),\left(4,2\right),\left(8,4\right)\right\}$
Try It 3.90
Use the set of ordered pairs to (i) determine whether the relation is a function (ii) find the domain of the relation (iii) find the range of the relation.
ⓐ $\left\{\left(27,\mathrm{-3}\right),\left(8,\mathrm{-2}\right),\left(1,\mathrm{-1}\right),\left(0,0\right),\left(1,1\right),\left(8,2\right),\left(27,3\right)\right\}$
ⓑ $\left\{\left(7,\mathrm{-3}\right),\left(\mathrm{-5},\mathrm{-4}\right),\left(8,\mathrm{-0}\right),\left(0,0\right),\left(\mathrm{-6},4\right),\left(\mathrm{-2},2\right),\left(\mathrm{-1},3\right)\right\}$
Example 3.46
Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.
Solution
ⓐ Both Lydia and Marty have two phone numbers. So each x-value is not matched with only one y-value. So this relation is not a function.
ⓑ The domain is the set of all x-values in the relation. The domain is: {Lydia, Eugene, Janet, Rick, Marty}
ⓒ The range is the set of all y-values in the relation. The range is:
$\{\mathrm{321-549-3327},$ $\mathrm{427-658-2314},$ $\mathrm{321-964-7324},$ $\mathrm{684-358-7961},$ $\mathrm{684-369-7231},$ $\mathrm{798-367-8541}\}$
Try It 3.91
Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.
Try It 3.92
Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.
In algebra, more often than not, functions will be represented by an equation. It is easiest to see if the equation is a function when it is solved for y. If each value of x results in only one value of y, then the equation defines a function.
Example 3.47
Determine whether each equation is a function.
ⓐ $2x+y=7$ ⓑ $y={x}^{2}+1$ ⓒ $x+{y}^{2}=3$
Solution
ⓐ $2x+y=7$
For each value of x, we multiply it by $\mathrm{-2}$ and then add 7 to get the y-value
For example, if $x=3:\phantom{\rule{2em}{0ex}}$ | |
We have that when $x=3,$ then $y=1.$ It would work similarly for any value of x. Since each value of x, corresponds to only one value of y the equation defines a function.
ⓑ $y={x}^{2}+1$
For each value of x, we square it and then add 1 to get the y-value.
For example, if $x=2:\phantom{\rule{2em}{0ex}}$ | |
We have that when $x=2,$ then $y=5.$ It would work similarly for any value of x. Since each value of x, corresponds to only one value of y the equation defines a function.
ⓒ
Isolate the y term. | |
Let’s substitute $x=2.$ | |
This give us two values for y. | $y=1\phantom{\rule{0.2em}{0ex}}y=\mathrm{-1}$ |
We have shown that when $x=2,$ then $y=1$ and $y=\mathrm{-1}.$ It would work similarly for any value of x. Since each value of x does not corresponds to only one value of y the equation does not define a function.
Try It 3.93
Determine whether each equation is a function.
ⓐ $4x+y=\mathrm{-3}$ ⓑ $x+{y}^{2}=1$ ⓒ $y-{x}^{2}=2$
Try It 3.94
Determine whether each equation is a function.
ⓐ $x+{y}^{2}=4$ ⓑ $y={x}^{2}-7$ ⓒ $y=5x-4$
Find the Value of a Function
It is very convenient to name a function and most often we name it f, g, h, F, G, or H. In any function, for each x-value from the domain we get a corresponding y-value in the range. For the function f, we write this range value y as $f\left(x\right).$ This is called function notation and is read f of x or the value of f at x. In this case the parentheses does not indicate multiplication.
Function Notation
For the function $y=f(x)$
We read $f(x)$ as f of x or the value of f at x.
We call x the independent variable as it can be any value in the domain. We call y the dependent variable as its value depends on x.
Independent and Dependent Variables
For the function $y=f(x),$
Much as when you first encountered the variable x, function notation may be rather unsettling. It seems strange because it is new. You will feel more comfortable with the notation as you use it.
Let’s look at the equation $y=4x-5.$ To find the value of y when $x=2,$ we know to substitute $x=2$ into the equation and then simplify.
Let $x=2.$ | |
The value of the function at $x=2$ is 3.
We do the same thing using function notation, the equation $y=4x-5$ can be written as $f\left(x\right)=4x-5.$ To find the value when $x=2,$ we write:
Let $x=2.$ | |
The value of the function at $x=2$ is 3.
This process of finding the value of $f(x)$ for a given value of x is called evaluating the function.
Example 3.48
For the function $f(x)=2{x}^{2}+3x-1,$ evaluate the function.
ⓐ $f(3)$ ⓑ $f(\mathrm{-2})$ ⓒ $f(a)$
Solution
ⓐ
To evaluate $f(3),$ substitute 3 for x. | |
Simplify. | |
ⓑ
Simplify. | ||
ⓒ
To evaluate $f(a),$ substitute a for x. | |
Simplify. |
Try It 3.95
For the function $f(x)=3{x}^{2}-2x+1,$ evaluate the function.
ⓐ $f(3)$ ⓑ $f(\mathrm{-1})$ ⓒ $f(t)$
Try It 3.96
For the function $f(x)=2{x}^{2}+4x-3,$ evaluate the function.
ⓐ $f(2)$ ⓑ $f(\mathrm{-3})$ ⓒ $f(h)$
In the last example, we found $f\left(x\right)$ for a constant value of x. In the next example, we are asked to find $g\left(x\right)$ with values of x that are variables. We still follow the same procedure and substitute the variables in for the x.
Example 3.49
For the function $g(x)=3x-5,$ evaluate the function.
ⓐ $g({h}^{2})$ ⓑ $g(x+2)$ ⓒ $g\left(x\right)+g\left(2\right)$
Solution
ⓐ
To evaluate $g\left({h}^{2}\right),$ substitute ${h}^{2}$ for x. | |||
ⓑ
To evaluate $g(x+2),$ substitute $x+2$ for x. | |
Simplify. | |
ⓒ
To evaluate $g\left(x\right)+g\left(2\right),$ first find $g\left(2\right).$ | ||
Simplify. | ||
Notice the difference between part ⓑ and ⓒ. We get $g(x+2)=3x+1$ and $g\left(x\right)+g\left(2\right)=3x-4.$ So we see that $g(x+2)\ne g\left(x\right)+g\left(2\right).$
Try It 3.97
For the function $g(x)=4x-7,$ evaluate the function.
ⓐ $g({m}^{2})$ ⓑ $g(x-3)$ ⓒ $g\left(x\right)-g\left(3\right)$
Try It 3.98
For the function $h(x)=2x+1,$ evaluate the function.
ⓐ $h({k}^{2})$ ⓑ $h(x+1)$ ⓒ $h\left(x\right)+h\left(1\right)$
Many everyday situations can be modeled using functions.
Example 3.50
The number of unread emails in Sylvia’s account is 75. This number grows by 10 unread emails a day. The function $N\left(t\right)=75+10t$ represents the relation between the number of emails, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find $N\left(5\right).$ Explain what this result means.
Solution
ⓐ The number of unread emails is a function of the number of days. The number of unread emails, N, depends on the number of days, t. Therefore, the variable N, is the dependent variable and the variable $t$ is the independent variable.
ⓑ Find $N\left(5\right).$ Explain what this result means.
Substitute in $t=5.$ | |
Simplify. | |
Since 5 is the number of days, $N\left(5\right),$ is the number of unread emails after 5 days. After 5 days, there are 125 unread emails in the account.
Try It 3.99
The number of unread emails in Bryan’s account is 100. This number grows by 15 unread emails a day. The function $N\left(t\right)=100+15t$ represents the relation between the number of emails, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find $N\left(7\right).$ Explain what this result means.
Try It 3.100
The number of unread emails in Anthony’s account is 110. This number grows by 25 unread emails a day. The function $N\left(t\right)=110+25t$ represents the relation between the number of emails, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find $N\left(14\right).$ Explain what this result means.
Media
Access this online resource for additional instruction and practice with relations and functions.
Section 3.5 Exercises
Practice Makes Perfect
Find the Domain and Range of a Relation
In the following exercises, for each relation ⓐ find the domain of the relation ⓑ find the range of the relation.
$\{\left(1,\mathrm{-2}\right),\left(2,\mathrm{-4}\right),\left(3,\mathrm{-6}\right),\left(4,\mathrm{-8}\right),(5,\mathrm{-10}\left)\right\}$
$\left\{\left(1,7\right),\left(5,3\right),\left(7,9\right),\left(\mathrm{-2},\mathrm{-3}\right),\left(\mathrm{-2},8\right)\right\}$
$\left\{\left(11,3\right),\left(\mathrm{-2},\mathrm{-7}\right),\left(4,\mathrm{-8}\right),\left(4,17\right),\left(\mathrm{-6},9\right)\right\}$
In the following exercises, use the mapping of the relation to ⓐ list the ordered pairs of the relation, ⓑ find the domain of the relation, and ⓒ find the range of the relation.
For a woman of height $5\prime 4\u2033$ the mapping below shows the corresponding Body Mass Index (BMI). The body mass index is a measurement of body fat based on height and weight. A BMI of $18.5\u201324.9$ is considered healthy.
For a man of height $5\prime 11\prime \prime $ the mapping below shows the corresponding Body Mass Index (BMI). The body mass index is a measurement of body fat based on height and weight. A BMI of $18.5\u201324.9$ is considered healthy.
In the following exercises, use the graph of the relation to ⓐ list the ordered pairs of the relation ⓑ find the domain of the relation ⓒ find the range of the relation.
Determine if a Relation is a Function
In the following exercises, use the set of ordered pairs to ⓐ determine whether the relation is a function, ⓑ find the domain of the relation, and ⓒ find the range of the relation.
$\{\left(\mathrm{-3},9\right),\left(\mathrm{-2},4\right),\left(\mathrm{-1},1\right),$
$\left(0,0\right),\left(1,1\right),\left(2,4\right),\left(3,9\right)\}$
$\{\left(9,\mathrm{-3}\right),\left(4,\mathrm{-2}\right),\left(1,\mathrm{-1}\right),$
$\left(0,0\right),\left(1,1\right),\left(4,2\right),\left(9,3\right)\}$
$\{\left(\mathrm{-3},27\right),\left(\mathrm{-2},8\right),\left(\mathrm{-1},1\right),$
$\left(0,0\right),\left(1,1\right),\left(2,8\right),\left(3,27\right)\}$
$\{\left(\mathrm{-3},\mathrm{-27}\right),\left(\mathrm{-2},\mathrm{-8}\right),\left(\mathrm{-1},\mathrm{-1}\right),$
$\left(0,0\right),\left(1,1\right),\left(2,8\right),\left(3,27\right)\}$
In the following exercises, use the mapping to ⓐ determine whether the relation is a function, ⓑ find the domain of the function, and ⓒ find the range of the function.
In the following exercises, determine whether each equation is a function.
ⓐ $y=3x-5$
ⓑ $y={x}^{3}$
ⓒ $2x+{y}^{2}=4$
ⓐ $2x-4y=8$
ⓑ $\mathrm{-4}={x}^{2}-y$
ⓒ ${y}^{2}=\text{\u2212}x+5$
Find the Value of a Function
In the following exercises, evaluate the function: ⓐ $f(2)$ ⓑ $f(\mathrm{-1})$ ⓒ $f(a).$
$f(x)=3x+4$
$f(x)=\mathrm{-6}x-3$
$f(x)={x}^{2}+x-2$
$f(x)=3{x}^{2}+x-2$
In the following exercises, evaluate the function: ⓐ $g({h}^{2})$ ⓑ $g(x+2)$ ⓒ $g\left(x\right)+g\left(2\right).$
$g(x)=5x-8$
$g(x)=\mathrm{-8}x+2$
$g(x)=7-5x$
In the following exercises, evaluate the function.
$g(x)=4{x}^{2}-3x;$ $g(3)$
$G(x)=3{x}^{2}-5x+2;$
$G(\mathrm{-2})$
$h(y)=3\left|y-1\right|-3;$ $h(\mathrm{-4})$
$g(x)=\frac{x-2}{x+2};$ $g(4)$
In the following exercises, solve.
The number of unwatched shows in Sylvia’s DVR is 85. This number grows by 20 unwatched shows per week. The function $N\left(t\right)=85+20t$ represents the relation between the number of unwatched shows, N, and the time, t, measured in weeks.
ⓐ Determine the independent and dependent variable.
ⓑ Find $N\left(4\right).$ Explain what this result means
Every day a new puzzle is downloaded into Ken’s account. Right now he has 43 puzzles in his account. The function $N\left(t\right)=43+t$ represents the relation between the number of puzzles, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find $N\left(30\right).$ Explain what this result means.
The daily cost to the printing company to print a book is modeled by the function $C\left(x\right)=3.25x+1500$ where C is the total daily cost and x is the number of books printed.
ⓐ Determine the independent and dependent variable.
ⓑ Find $N\left(0\right).$ Explain what this result means.
ⓒ Find $N\left(1000\right).$ Explain what this result means.
The daily cost to the manufacturing company is modeled by the function $C\left(x\right)=7.25x+2500$ where $C\left(x\right)$ is the total daily cost and x is the number of items manufactured.
ⓐ Determine the independent and dependent variable.
ⓑ Find $C\left(0\right).$ Explain what this result means.
ⓒ Find $C\left(1000\right).$ Explain what this result means.
Writing Exercises
In your own words, explain the difference between a relation and a function.
In your own words, explain what is meant by domain and range.
Is every relation a function? Is every function a relation?
How do you find the value of a function?
Self Check
ⓐ After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.
ⓑ After looking at the checklist, do you think you are well-prepared for the next section? Why or why not?