A relation is a set of ordered pairs which represent a relationship.
For example, we can think of the names of people in a math class and their ages as ordered pairs, like \left(\text{Bob}, 13 \right). These pairs of information represent a relation.
If we chose a specific age (like 13), we could list all the names of the people who are this age. It could be one person, Bob, or it could be multiple. If a teacher wanted to look for the person who was 13 years old, that description might fit four people which means there's not one clear answer.
We can express the same relation in several different ways: as a mapping, a set of ordered pairs, an input-output table, a graph in the coordinate plane, or as an equation in terms of x and/or y that describes a graph.
A mapping diagram shows how the input values are assigned one or more output values. Consider the mapping below:
We can write an input-output table from the mapping, making sure that each pair is represented. Remember that the first value of a relation is an input value and the second value is the output value. The input is the value of x that is applied to the relation. The output is the y, or the answer that is received as a result of putting x into the relation. A table can be laid out horizontally (like the one shown below) or vertically.
x | -1 | 0 | 1 | 2 |
---|---|---|---|---|
y | 2 | 0 | 2 | 4 |
This also corresponds to the set of ordered pairs \{(-1, 2), (0, 0), (1, 2), (2, 4)\}, which can be graphed in the coordinate plane, as shown below.
Write the relation \{(2, 2), (4, 4), (6, 3), (7, 5)\} in the table below.
x | 2 | 4 | 6 | 7 |
---|---|---|---|---|
y |
Consider the relation: \{(-9, -5), (-5, -10), (-5, -4), (-3, 7), (-2, -4), (-1, 1)\}. Represent the relation on the coordinate plane.
A relation is defined as follows: y=-4 if x is positive and y=4 if x is 0 or negative.
Complete the table.
x | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 |
---|---|---|---|---|---|---|---|---|---|
y |
Plot the points on the coordinate plane.
A relation is a set of ordered pairs which represent a relationship.
We can express the same relation in several different ways: as a mapping, a set of ordered pairs, an input-output table, a graph in the coordinate plane, or as an equation in terms of x and/or y that describes a graph.
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.
This mapping shows the relation F.
Find the output when x=1.
Determine if F is a function.
The pairs of values in the table represent a relation between x and y.
x | -8 | -7 | -6 | -3 | 2 | 7 | 9 | 9 | 10 |
---|---|---|---|---|---|---|---|---|---|
y | 8 | 13 | -18 | -16 | -15 | -2 | -4 | 11 | -9 |
Do they represent a function?
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?
A relation is a function if and only if each element in the domain is paired with a unique element of the 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 the following graphs show functions.
While all functions are relations, not all relations are functions.
The vertical line test for functions: