A function is a special type of relation where each input only has one output. Functions are a way of connecting input values to their corresponding output values.
For example, if we think about placing an order for boba teas, the number of boba teas we order (the input) affects the amount we have to pay (the output).
Notice how each x-value is associated with only one y-value. This means y=-2x is a function.
If you can write a relationship between x and y then we can see that there is a relation. However, if this relationship only gives one value of y for each x-value (or one output for every input) then it is a function.
x | -3 | 2 | 8 | -1 | 5 | -2 |
---|---|---|---|---|---|---|
y | -1 | 3 | 8 | -2 | 3 | -1 |
x | -1 | 2 | 3 | -1 | -3 | -2 |
---|---|---|---|---|---|---|
y | -1 | 3 | -3 | -4 | 3 | 1 |
Sets of ordered pairs can also show whether or not a relation is a function. The following set of ordered pairs is a function since one input matches to one output:
\left\{\left(-4,-1\right),\left(-2,0\right),\left(0,1\right),\left(2,0\right),\left(3,-2\right),\left(4,3\right)\right\}
This set of ordered pairs is not a function since the inputs of -4 and 2 each repeat with different outputs.
\left\{\left(-4,-1\right),\left(-4,3\right),\left(0,1\right),\left(2,2\right),\left(2,-2\right),\left(4,0\right)\right\}
Graphs can also show one input (x-value) paired with one output (y-value ). By graphing the previous set of ordered pairs, we see the graph of a function and the graph not representing a function.
Determine whether each situation represents a function.
The radius of a circle and its circumference.
Time studied by students in a class and grade on a test.
Age of a town's population compared to height.
The temperature reading on a home's thermostat at a particular time of day.
Determine if each relation is a function.
x | -8 | -7 | -6 | -3 | 2 | 7 | 9 | 9 | 10 |
---|---|---|---|---|---|---|---|---|---|
y | 8 | 13 | -18 | -16 | -15 | -2 | -4 | 11 | -9 |
\left\{\left(-1,1\right),\left(3,3\right),\left(2,-1\right),\left(7,1\right)\right\}
Oprah makes scarves to sell at the market. It costs her \$2 to produce each one, and she sells them for \$5.
Complete the graph of the points representing the relation between the number of scarves she manages to sell and her total profit for when 1, 2, 3, 4 and 5 scarves are sold. The first point has been plotted for you.
Is this relation a function?
The relation is a function if each x-value input, or domain, is paired with exactly one y-value output, or range.
Move the slider until the vertical line crosses the entire graph.
Press the 'Try another' button to try a new graph.
What similarities did you notice in the graphs that were labeled as functions?
How did the vertical line help you determine which graphs represented functions?
Would a horizontal line be useful in determining if a relation is a function?
Sometimes it is easier to investigate the graph of a relation to determine whether or not it is a function. When looking at a graph, if you can draw a vertical line anywhere so that it crosses the graph of the relation in more than one place, then it is not a function.
Here are two examples of relations being checked with the vertical line test. A function is said to "pass the vertical line test" while a relation that is not a function "fails the vertical line test."
One pair of points is enough to decide that a relation is not a function, but it is not enough to decide that a relation is a function. We must keep checking points on the graph until it either fails the test or we have checked for all x-values.
When classifying, remember that every function is a relation, but not every relation is a function.
Determine whether or not the graph describes a function.
Use the vertical line test to justify whether the table shown is a function.
x | -2 | 4 | -1 | 2 | -3 | -2 | 1 |
---|---|---|---|---|---|---|---|
y | 1 | 5 | -4 | 3 | 5 | -1 | 4 |
While all functions are relations, not all relations are functions.
The vertical line test for functions: