Graphs and Functions
Relations and Functions
Learning Objectives
By the end of this section, you will be able to:
- Find the domain and range of a relation
- Determine if a relation is a function
- Find the value of a function
Before you get started, take this readiness quiz.
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.
A relation is any set of ordered pairs, 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.
For the relation
ⓐ Find the domain of the relation.
ⓑ Find the range of the relation.
ⓐ The domain is the set of all x-values of the relation.
ⓑ The range is the set of all y-values of the relation.
For the relation
ⓐ Find the domain of the relation.
ⓑ Find the range of the relation.
ⓐ
ⓑ
For the relation
ⓐ Find the domain of the relation.
ⓑ Find the range of the relation.
ⓐ
ⓑ
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.
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.
ⓐ 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}
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.
ⓐ (Khanh Nguyen, kn68413), (Abigail Brown, ab56781), (Sumantha Mishal, sm32479), (Jose Hern and ez, jh47983) ⓑ {Khanh Nguyen, Abigail Brown, Sumantha Mishal, Jose Hern and ez} ⓒ {kn68413, ab56781, sm32479, jh47983}
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.
ⓐ (Maria, November 6), (Arm and o, January 18), (Cynthia, December 8), (Kelly, March 15), (Rachel, November 6) ⓑ {Maria, Arm and o, Cynthia, Kelly, Rachel} ⓒ {November 6, January 18, December 8, March 15}
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.
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.
ⓐ The ordered pairs of the relation are:
ⓑ The domain is the set of all x-values of the relation:
Notice that while repeats, it is only listed once.
ⓒ The range is the set of all y-values of the relation:
Notice that while repeats, it is only listed once.
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.
ⓐ
ⓑ
ⓒ
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.
A function is a relation that assigns to each element in its domain exactly one element in the range.
The birthday example from (Figure) 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 (Figure) is a function.
The relation shown by the graph in (Figure) includes the ordered pairs and Is that okay in a function? No, as this is like one person having two different birthdays.
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.
ⓐ
ⓑ
ⓐ
(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:
(iii) The range is the set of all y-values in the relation. Notice we do not list range values twice.
The range is:
ⓑ
(i) The x-value 9 is matched with two y-values, both 3 and 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:
(iii) The range is the set of all y-values in the relation.
The range is:
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.
ⓐ
ⓑ
ⓐ Yes;
ⓑ No;
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.
ⓐ
ⓑ
ⓐ No;
ⓑ Yes;
Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.
ⓐ 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:
Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.
ⓐ no ⓑ {NBC, HGTV, HBO} ⓒ {Ellen Degeneres Show, Law and Order, Tonight Show, Property Brothers, House Hunters, Love it or List it, Game of Thrones, True Detective, Sesame Street}
Use the mapping to ⓐ determine whether the relation is a function ⓑ find the domain of the relation ⓒ find the range of the relation.
ⓐ No ⓑ {Neal, Krystal, Kelvin, George, Christa, Mike} ⓒ {123-567-4839 work, 231-378-5941 cell, 743-469-9731 cell, 567-534-2970 work, 684-369-7231 cell, 798-367-8541 cell, 639-847-6971 cell}
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.
Determine whether each equation is a function.
ⓐⓑⓒ
ⓐ
For each value of x, we multiply it by and then add 7 to get the y-value
For example, if | |
We have that when then 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.
ⓑ
For each value of x, we square it and then add 1 to get the y-value.
For example, if | |
We have that when then 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 | |
This give us two values for y. |
We have shown that when then and 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.
Determine whether each equation is a function.
ⓐⓑⓒ
ⓐ yes ⓑ no ⓒ yes
Determine whether each equation is a function.
ⓐⓑⓒ
ⓐ no ⓑ yes ⓒ yes
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 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.
For the function
We read 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.
For the function
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 To find the value of y when we know to substitute into the equation and then simplify.
Let | |
The value of the function at is 3.
We do the same thing using function notation, the equation can be written as To find the value when we write:
Let | |
The value of the function at is 3.
This process of finding the value of for a given value of x is called evaluating the function.
For the function evaluate the function.
ⓐⓑⓒ
ⓐ
To evaluate substitute 3 for x. | |
Simplify. | |
ⓑ
Simplify. | ||
ⓒ
To evaluate substitute a for x. | |
Simplify. |
For the function evaluate the function.
ⓐⓑⓒ
ⓐⓑⓒ
For the function evaluate the function.
ⓐⓑⓒ
ⓐⓑ
ⓒ
In the last example, we found for a constant value of x. In the next example, we are asked to find with values of x that are variables. We still follow the same procedure and substitute the variables in for the x.
For the function evaluate the function.
ⓐⓑⓒ
ⓐ
To evaluate substitute for x. | |||
ⓑ
To evaluate substitute for x. | |
Simplify. | |
ⓒ
To evaluate first find | ||
Simplify. | ||
Notice the difference between part ⓑ and ⓒ. We get and So we see that
For the function evaluate the function.
ⓐⓑⓒ
ⓐⓑ
ⓒ
For the function evaluate the function.
ⓐⓑⓒ
ⓐⓑ
ⓒ
Many everyday situations can be modeled using functions.
The number of unread emails in Sylvia’s account is 75. This number grows by 10 unread emails a day. The function represents the relation between the number of emails, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means.
ⓐ 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 is the independent variable.
ⓑ Find Explain what this result means.
Substitute in | |
Simplify. | |
Since 5 is the number of days, is the number of unread emails after 5 days. After 5 days, there are 125 unread emails in the account.
The number of unread emails in Bryan’s account is 100. This number grows by 15 unread emails a day. The function represents the relation between the number of emails, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means.
ⓐt IND; N DEP ⓑ 205; the number of unread emails in Bryan’s account on the seventh day.
The number of unread emails in Anthony’s account is 110. This number grows by 25 unread emails a day. The function represents the relation between the number of emails, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means.
ⓐt IND; N DEP ⓑ 460; the number of unread emails in Anthony’s account on the fourteenth day
Access this online resource for additional instruction and practice with relations and functions.
Key Concepts
- Function Notation: For the function
- f is the name of the function
- x is the domain value
- is the range value y corresponding to the value x
We read as f of x or the value of f at x.
- Independent and Dependent Variables: For the function
- x is the independent variable as it can be any value in the domain
- y is the dependent variable as its value depends on x
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.
ⓐ {1, 2, 3, 4, 5} ⓑ {4, 8, 12, 16, 20}
ⓐ {1, 5, 7, −2} ⓑ {7, 3, 9, −3, 8}
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.
ⓐ (Rebecca, January 18), (Jennifer, April 1), (John, January 18), (Hector, June 23), (Luis, February 15), (Ebony, April 7), (Raphael, November 6), (Meredith, August 19), (Karen, August 19), (Joseph, July 30)
ⓑ {Rebecca, Jennifer, John, Hector, Luis, Ebony, Raphael, Meredith, Karen, Joseph}
ⓒ {January 18, April 1, June 23, February 15, April 7, November 6, August 19, July 30}
For a woman of height 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 is considered healthy.
ⓐ (+100, 17. 2), (110, 18.9), (120, 20.6), (130, 22.3), (140, 24.0), (150, 25.7), (160, 27.5) ⓑ {+100, 110, 120, 130, 140, 150, 160,} ⓒ {17.2, 18.9, 20.6, 22.3, 24.0, 25.7, 27.5}
For a man of height 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 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.
ⓐ (2, 3), (4, −3), (−2, −1), (−3, 4), (4, −1), (0, −3) ⓑ {−3, −2, 0, 2, 4}
ⓒ {−3, −1, 3, 4}
ⓐ (1, 4), (1, −4), (−1, 4), (−1, −4), (0, 3), (0, −3) ⓑ {−1, 0, 1} ⓒ {−4, −3, 3,4}
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.
ⓐ yes ⓑ {−3, −2, −1, 0, 1, 2, 3} ⓒ {9, 4, 1, 0}
ⓐ yes ⓑ {−3, −2, −1, 0, 1, 2, 3} ⓒ 0, 1, 8, 27}
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.
ⓐ yes ⓑ {−3, −2, −1, 0, 1, 2, 3} ⓒ {0, 1, 2, 3}
ⓐ no ⓑ {Jenny, R and y, Dennis, Emily, Raul} ⓒ {RHern and ez@state.edu, JKim@gmail.com, Raul@gmail.com, ESmith@state.edu, DBroen@aol.com, jenny@aol.cvom, R and y@gmail.com}
In the following exercises, determine whether each equation is a function.
ⓐ
ⓑ
ⓒ
ⓐ yes ⓑ yes ⓒ no
ⓐ
ⓑ
ⓒ
ⓐ
ⓑ
ⓒ
ⓐ yes ⓑ no ⓒ yes
ⓐ
ⓑ
ⓒ
Find the Value of a Function
In the following exercises, evaluate the function: ⓐ ⓑ ⓒ
ⓐⓑⓒ
ⓐⓑⓒ
ⓐⓑ
ⓒ
ⓐⓑ
ⓒ
In the following exercises, evaluate the function: ⓐ ⓑ ⓒ
ⓐ
ⓑ
ⓒ
ⓐ
ⓑ
ⓒ
ⓐ
ⓑ
ⓒ
In the following exercises, evaluate the function.
2
6
22
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 represents the relation between the number of unwatched shows, N, and the time, t, measured in weeks.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means
ⓐt IND; N DEP
ⓑ the number of unwatched shows in Sylvia’s DVR at the fourth week.
Every day a new puzzle is downloaded into Ken’s account. Right now he has 43 puzzles in his account. The function represents the relation between the number of puzzles, N, and the time, t, measured in days.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means.
The daily cost to the printing company to print a book is modeled by the function where C is the total daily cost and x is the number of books printed.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means.
ⓒ Find Explain what this result means.
ⓐx IND; C DEP
ⓑ the daily cost if no books are printed
ⓒ the daily cost of printing 1000 books
The daily cost to the manufacturing company is modeled by the function where is the total daily cost and x is the number of items manufactured.
ⓐ Determine the independent and dependent variable.
ⓑ Find Explain what this result means.
ⓒ Find 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?
Glossary
- domain of a relation
- The domain of a relation is all the x-values in the ordered pairs of the relation.
- function
- A function is a relation that assigns to each element in its domain exactly one element in the range.
- 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.
- range of a relation
- The range of a relation is all the y-values in the ordered pairs of the relation.
- relation
- A relation is any set of ordered pairs, 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.