Knaph

Functions41 of 972 min read

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 x=2x = 2 gives y=5y = 5 and also y=9y = 9 is not a function.

Two tables side by side: x = 1, 2, 3 with y = 4, 4, 7, marked as a function, and x = 1, 2, 2 with y = 4, 5, 9, marked as not a function because the input 2 has two outputs.

Two inputs may share an output

Different inputs can give the same output. The rule y=x2y = x^2 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.

Two graphs with a dashed vertical line: a straight sloped line crossed once, and a circle crossed twice at the red points.

Careful

Two inputs with the same output is fine. One input with two outputs is not.

Try it at home

  1. Make a table of 4 inputs and outputs, like the number of pizzas and their cost.
  2. Check that no input has two outputs.
  3. 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.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.