6.1 Relations and functions — Learn
Prerequisites: plotting points on a coordinate grid; substituting a number into a formula.
Objectives: write a relation as a set of ordered pairs; decide whether a relation is a function; use the vertical line test on a graph.
By the end of this section you can look at a table, a list of pairs or a graph and say whether it describes a function.
Relations
A relation is any set of ordered pairs. Each pair joins an input to an output. The first number is the input and the second is the output.
The domain is the set of inputs, here . The range is the set of outputs, here .
A relation can be given in four ways, and all four carry the same information:
- a list of ordered pairs, as above;
- a table, with one row for the inputs and one for the outputs;
- a graph, with the inputs along the -axis and the outputs along the -axis;
- a mapping diagram, with arrows from each input to its output.
Functions
A function is a relation in which every input has exactly one output. That single condition is the whole definition.
The relation is a function: the inputs , and each appear once, and each has one output.
The relation is not a function. The input appears twice, with the outputs and . One input cannot lead to two different outputs.
The function rule. A relation is a function when no input has two outputs.
Example 1. Decide whether each relation is a function.
- — yes. The output is used twice, but that is allowed. Two inputs may share an output; one input may not have two outputs.
- — no. The input has the outputs and .
Example 2. A table shows the input giving the output , the input giving , and the input giving . Is this a function?
Yes. Each input has exactly one output. The output appears twice, which is fine.
The vertical line test
On a graph, a function has a simple test. Draw a vertical line anywhere on the diagram. Count where it crosses the curve.
The vertical line test. A graph is a function when every vertical line crosses it at most once.
A vertical line stands for one input, and the crossing points are its outputs. A line that crosses twice has found one input with two outputs, so the graph is not a function.
Example 3. The curve is a function. A vertical line crosses it once, except at the vertex where it touches. The circle is not a function. A vertical line through the middle crosses it twice, at and , so the input has two outputs.
The cooling coffee
The chapter problem is a function. The input is the time in minutes and the output is the temperature in degrees Celsius:
Each time gives exactly one temperature, so this is a function. The input gives , and the input gives .
Progress check
Back to the chapter problem. Read the rule as a function.
Work out and . Then answer this question: is the time a function of the temperature? That is, does each temperature give exactly one time? Keep your answer. Section 6.2 finds the domain and range of this rule.
You should now be able to
- write a relation as a set of ordered pairs, a table, a graph or a mapping diagram;
- decide whether a relation is a function by checking each input;
- use the vertical line test on a graph;
- explain why two inputs may share an output but one input may not.