5.6 Functions: Part 1
In this lesson, we will begin to look at a type of relation called a function. You will learn to identify when a relation can be classified as a function and when it cannot.
A relation is considered to be a function when there will be only one y output for any single x input. If for at least one of the inputs (x values) there is more than one output (y value), the relation is not considered to be a function.
Example 1
| Function | Not a Function |
| This relation is a function because for each input (x value), there is only one output (y value).
|
This relation is not a function because for at least one of the inputs (x values), there is more than one output (y value). In this example, the input of x = –3 has two outputs: y = 1 and y = 4.
|
Practice 1
Determine which of the following relations are functions. Explain why or why not.
| a) (2, 3), (4, 7), (1, −5), (6, 0), (−3, 8) |
b) (−3, 4), (−2, 5), (−3, −6), (1, 7), (−3, 5) |
| c)
|
d)
|
e)
|
| f)
|
g)
|
h)
|
The Vertical Line Test
The vertical line test is a method that can be used to determine whether or not a graph represents a function.
- If every vertical line intersects the graph at no more than one point, then the relation is a function.
- If any vertical line drawn on the graph intersects the graph at more than one point, then the relation in not function.
Practice 2
Use the vertical line test to verify your answers in Practice 1 (c–h).
Practice 3
Which of the following real-life situations represents a function?
| a) The relationship between a book’s title and its author. b) The relationship between a person’s favourite colour and their number of siblings. c) The relationship between a teacher’s name and the courses they teach. d) The relationship between a dog’s breed and its weight. |
Function Notation
If a relation is a function, we can write the equation of the relation in function notation. To write an equation in function notation, substitute the y in the equation with f(x). Notice in the examples below, other letters besides f can also be used to denote a function. If you are working with more than one function, using different letters to represent each function will allow you to distinguish between the functions.
Example 2
| Equation of the Graph | Function Notation |
|---|---|
Practice 4
Write the following equations in function notation.
| a)
|
b)
|
c)
|
Evaluating for an Output
To evaluate a function, find the output (y value) of the function for a specific input (x value).
Example 3
Evaluate the function
for f(4).
| Steps | Solution |
|---|---|
| Identify the x value that you will be substituting into the equation. The x value will be the value inside the bracket beside the letter. | We are evaluating f(4), so x = 4. |
| Substitute the determined x value into the function, then calculate. | This tells us that when x = 4, y = 7. |
Practice 5
Consider the functions, then evaluate for the given values.
| a)
|
b)
|
c)
|
| d)
|
e)
|
f)
|
Homework
-
Determine which of the following relations are functions. Explain why or why not.
a) (–1, 2), (2, –3), (3, 4)
b) (0, 0), (–1, 2), (2, –3), (3, 4), (–4, 5)
c) (1, 2), (1, 3), (3, 4), (1, 4), (2, 10)
d) (5, –10), (–6, 11), (7, –12), (–8, 13)
e) (–4, 5), (5, –6), (–4, 7)
f) (2, –3), (3, 4), (2, 5), (–4, 6) g) 
h) 
i) 
j) 
k) 
l) 
m) 
n) 
o) 
p) 
q) 
r) 
-
How does the vertical line test help determine if a relation is a function?
-
Write the following equations in function notation.
a)
b)
c)
d)
e)
f)
-
Consider the functions, then evaluate for the given values.
a)
for
b)
for
c)
for
d)
for
e)
for
f)
for
g)
for
h)
for
i)
for
j)
for
k)
for
l)
for
-
Is
a function? Explain how you know. -
If you graph a horizontal line, is it considered to be a function? Why or why not?
-
If you graph a vertical line, is it considered to be a function? Why or why not?
-
Which of the following statements is always true?
a) A graph that is a straight line is always a function.
b) A function assigns exactly one input value for each output value.
c) A function can assign multiple output values for the same input.
d) A function assigns exactly one output value for each input value. -
Which of the following sets of ordered pairs are functions? Circle all that apply.
a) (1, 2), (2, 3), (3, 4)
b) (–1, 5), (0, 6), (2, 7), (3, 8)
c) (4, –2), (5, 0), (6, 1)
d) (1, 2), (1, 3), (2, 4) - Which of the following real-life situations represents a function?
a) The relationship between a person’s birth year and their age.
b) The relationship between a student’s name and their grades in all subjects.
c) The relationship between a car’s make and its colour.
d) The relationship between a student’s ID number and their class schedule. -
Which of the following real-life situations represents a function?
a) The relationship between a person’s phone number and their home address.
b) The relationship between a city’s population and its area code.
c) The relationship between a person’s height and their shoe size.
d) The relationship between a car’s model and its owner.
Answers
1.
| a) function | b) function | c) not a function | d) function | e) not a function | f) not a function |
| g) function | h) not function | i) function | j) function | k) function | l) function |
| m) not a function | n) function | o) not a function | p) function | q) not a function | r) function |
2. If every vertical line intersects the graph at no more than one point, then the relation is a function. If any vertical line drawn on the graph intersects the graph at more than one point, then the relation is not a function.
3.
| a) |
b) |
c) |
| d) |
e) |
f) |
4.
| a) 11 | b) –2 | c) 23 | d) –4 | e) –17 | f) –7 |
| g) 6 | h) 5 | i) 10 | j) –68 | k) 9 | l) 19 |
5. y = 2x + 4 is a function. If you graphed it, you would find it to be a diagonal straight-line graph going upwards. The graph would have at most one output for each input, making it a function.
6. A horizontal line would be a function because the graph would have at most one output for each input.
7. A vertical line would not be a function because at the vertical, there would be multiple outputs for the same input.
| 8. d | 9. a, b, and c | 10. d | 11. a |
Attribution
Unless otherwise indicated, material on this page has been adapted from the following resources:
Berg, T. (2020). Intermediate algebra. BCcampus. https://collection.bccampus.ca/textbooks/intermediate-algebra-bccampus-412/, licensed under CC BY-NC-SA 4.0
Mazur, I. (2021). Introductory algebra. BCcampus. https://collection.bccampus.ca/textbooks/intermediate-algebra-bccampus-412/, licensed under CC BY 4.0







