What Makes a Function
A vending machine gives you one snack for each button. Press B3 and you never get two different things. A function works the same way.
One output for each input
A function is a rule that gives exactly one output for each input. Put in 3 and a doubling rule always gives 6. It never gives 6 one time and 7 another.
You can check this in a table. If an input shows up twice, its outputs must match. A table where gives and also is not a function.
Two inputs may share an output
Different inputs can give the same output. The rule sends both 3 and −3 to 9. That is fine: each input still has just one output.
What is not allowed is one input going to two outputs. Think of arrows from inputs to outputs: each input has one arrow leaving it.
The vertical line test
On a graph, an input is a spot along the x-axis, and a vertical line at that spot meets the graph at its outputs. If every vertical line meets the graph at most once, it is a function.
A circle fails the test. A vertical line through the middle of a circle hits it twice, so one input has two outputs.
Careful
Two inputs with the same output is fine. One input with two outputs is not.
Try it at home
- Make a table of 4 inputs and outputs, like the number of pizzas and their cost.
- Check that no input has two outputs.
- Change one row so an input repeats with a different output, and see why it breaks the rule.
Words in this lesson
- function - a rule that gives exactly one output for each input.
- input - the value you put in, usually x.
- output - the value the rule gives back, usually y.
Big idea
A rule is a function when each input has exactly one output.