Lesson 1

Functions Refresher

Theory and examples

Before Methods becomes more formal, we want the basic function idea to feel automatic. A relation connects inputs to outputs. A function is a relation that passes one extra test.

Key idea

A function gives exactly one output for every allowed input.

Relation

A connection between inputs and outputs. It might be a function, but it might not.

Function

A relation where every input gives one clear output.

Ordered pairs: the fastest check

In an ordered pair, the first number is the input and the second number is the output. Scan the first numbers first.

Passes the function test

{(1,4),(2,5),(3,6)}\{(1,4),(2,5),(3,6)\}

Each input appears once, so each input has exactly one output.

Fails the function test

{(1,4),(1,7),(2,5)}\{(1,4),(1,7),(2,5)\}

The input 11 appears twice with different outputs.

Repeated inputs aren't allowed

{(2,3),(2,8),(5,1)}\{(2,3),(2,8),(5,1)\}

This is not a function. The input 22 is sent to both 33 and 88. Each input may have only one output.

Repeated outputs are allowed

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

This is still a function. Different inputs can share the same output. The problem only happens when one input has more than one output.

Tables and mapping diagrams

Tables and mapping diagrams show the same information in a different layout. The test is unchanged: check whether any input is linked to more than one output.

Table check

Compare the input row in both tables. The question is whether any input has more than one output.

Passes

Input112233
Output334466

Function: each input appears once.

Fails

Input112211
Output334466

Not a function: input 11 has two outputs.

Mapping diagram check

In a mapping diagram, look at how many arrows leave each input.

Passes

InputsOutputs123456

Function: every input has exactly one arrow leaving it.

Fails

InputsOutputs123456

Not a function: input 22 has two arrows leaving it.

Graphs: the vertical line test

On a graph, an input is an xx-value. A vertical line fixes one input at a time. If that vertical line hits the graph twice, the same input has two outputs.

Passes the vertical line test (function)

The vertical line touches once, so each input has one output. This is a function.

Fails the vertical line test (not a function)

The vertical line touches twice, so one input has two outputs. This is not a function.

Methods link

The rule itself does not change in Methods. What becomes more precise is the language around it: domain, co-domain, range, restrictions, and eventually one-to-one functions.

Lesson summary

  • A relation connects inputs to outputs. A function is a relation where every input has exactly one output.
  • Repeated outputs are fine. A repeated input with different outputs is what breaks it.
  • In ordered pairs, scan the first numbers for a repeat. In a mapping diagram, count the arrows leaving each input.
  • On a graph, use the vertical line test: a vertical line fixes one input, so if it hits twice, that input has two outputs.

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
Is {(1,5),(2,5),(3,5)}\{(1,5),(2,5),(3,5)\} a function?
Question 3
A vertical line hits a graph twice. What does that tell us?