From relations to functions
Last lesson, we said that a relation connects inputs to outputs. A function is a more controlled kind of relation.
Key idea
A function is a relation where each input has exactly one output.
A nice way to think about it is this: if you give a function one input, it must give you one clear answer back. No indecision. No splitting into two different answers.
The one output rule
Each input has one output
FunctionEvery input points to one output, so this is a function.
One input has two outputs
Not a functionThe input 2 points to two different outputs, so this is not a function.
What do we check?
Look at the inputs. If the same input gives two different outputs, the relation is not a function.
Checking ordered pairs
Ordered pairs make the rule easy to check because the first number is the input and the second number is the output.
Example 1
FunctionNo input is repeated with a different output. Each input gives one answer.
Example 2
Not a functionThe input gives two different outputs: and .
Repeated outputs are allowed
This is the mistake that catches people. Functions care about repeated inputs, not repeated outputs.
Still a function
The output repeats, but that is fine. Each input still has exactly one output.
Graph preview
On a graph, each input is an -value. The vertical line test is a quick way to check whether one input has more than one output.
Passes the vertical line test
A vertical line touches this graph once, so each input has one output. This is a function.
Fails the vertical line test
A vertical line can touch this graph twice, so one input can have two outputs. This is not a function.
Summary
- Every function is a relation.
- A function gives each input exactly one output.
- Repeated outputs are allowed.
- Repeated inputs with different outputs are not allowed.
- On a graph, functions pass the vertical line test.