Lesson 2

What is a function?

Theory and examples

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

Function
InputsOutputs123456

Every input points to one output, so this is a function.

One input has two outputs

Not a function
InputsOutputs1234586

The 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

Function
(1,3), (2,4), (3,5)(1,3),\ (2,4),\ (3,5)

No input is repeated with a different output. Each input gives one answer.

Example 2

Not a function
(1,3), (2,4), (2,6)(1,3),\ (2,4),\ (2,6)

The input 22 gives two different outputs: 44 and 66.

Repeated outputs are allowed

This is the mistake that catches people. Functions care about repeated inputs, not repeated outputs.

Still a function

(1,5), (2,5), (3,5)(1,5),\ (2,5),\ (3,5)

The output 55 repeats, but that is fine. Each input still has exactly one output.

Graph preview

On a graph, each input is an xx-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.

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
Which statement best describes a function?
Question 2
Do the ordered pairs (1,4),(2,5),(3,5)(1,4),(2,5),(3,5) represent a function?
Question 3
Which set of ordered pairs is not a function?
Question 4
What does the vertical line test check?