
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 is 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.
We can write an input-output table from the mapping, making sure that each pair is represented.
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 this one, 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.
Write the relation \{(2, 2), (4, 4), (6, 3), (7, 5)\} in the table.
| x | 2 | 4 | 6 | 7 |
|---|---|---|---|---|
| y |
Represent the relation \{(-9, -5), (-5, -10), (-5, -4), (-3, 7), (-2, -4), (-1, 1)\}. 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 we can write a relationship between x and y, then there is a relation.
However, if this relationship only gives one value of y for each x-value (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 |
Remember, for a relation to be a function, every input (x-value) must correspond to exactly one output (y-value).
It's okay for different inputs to have the same output. For example, in the first table, the inputs 2 and 5 both have the output 3.
However, it's not okay for the same input to have different outputs. In the second table, the input -1 has the outputs -1 and -4.
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 sets of ordered pairs, we see one graph that represents a function and one that does not.
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 |
Does the relation 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 sold and her total profit for when 1, 2, 3, 4 and 5 scarves are sold. The first point has been plotted.
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.
An input (x-value) can only lead to one output (y-value). It's okay for different inputs to go to the same output, but one input cannot go to different outputs.
When checking a set of ordered pairs, look for any repeated x-values. If a repeated x-value has different y-values, it is not a function.
When checking a table, scan the input (x) column or row. If the same input is listed with different outputs, it is not a function.
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 does the vertical line help determine which graphs represent functions?
Is a horizontal line useful in determining if a relation is a function?
An easy way to check if a graph shows a function is to use the Vertical Line Test. If any vertical line can be drawn that hits the graph in more than one spot, 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 these graphs show functions.
While all functions are relations, not all relations are functions.
The vertical line test for functions: