Algebra 1 Core functionsrelationsvertical line test

Relations & Functions

The one rule that decides whether a relation is a function.

Video by The Organic Chemistry Tutor — “Functions - Vertical Line Test, Ordered Pairs, Tables, Domain and Range” Watch on YouTube

The explanation

Key idea Each input gets exactly one output.

A relation is any set of input-output pairs. A function is a relation with one restriction: each input has exactly one output.

An input cannot map to two different outputs. But two different inputs *may* share an output — that is perfectly fine.

{(1,3), (2,5), (1,7)} is not a function: the input 1 gives both 3 and 7.
{(1,3), (2,3), (4,3)} is a function: repeated outputs are allowed.

On a graph, use the vertical line test. If any vertical line crosses the graph twice, some input has two outputs, so it is not a function. A circle fails. A parabola passes.

Worked example

Is {(−2,4), (0,0), (2,4)} a function? Is x = y² a function of x?

  1. Check inputs of the first: −2, 0, 2 are all distinct, so each has one output.
  2. Repeated output 4 is allowed.
  3. For x = y², the input x = 4 gives y = 2 and y = −2.

Answer: The first is a function. x = y² is not (it fails the vertical line test).

Common mistakes

  • Rejecting a function because two inputs share an output.
  • Applying the horizontal line test when checking whether something is a function at all.