A universe of knowledge for every stage of learningGlobal portal
Home › Mathematics › Grade 8 › Using the Vertical Line Test
MATHEMATICS · Grade 8

Using the Vertical Line Test

Use a graph to determine whether y is a function of x. Explain the vertical line test in terms of input-output uniqueness.

5 min · Functions · Foundations

Learning goals

  • Use a graph to determine whether y is a function of x.
  • Explain the vertical line test in terms of input-output uniqueness.

Understand the concept

The vertical line test checks whether a graph represents y as a function of x. Each vertical line represents one fixed x-coordinate. If any vertical line intersects the graph at two or more distinct points, that input has multiple outputs.

A graph passes the test if no vertical line intersects it more than once. A vertical line outside the domain may have no intersection. The test is vertical, not horizontal, because the input is represented by the horizontal coordinate.

Worked example 1

The line y = 2x + 1 passes: for any x there is one y.

Worked example 2

A circle centered at the origin with radius 2 fails: at x = 0, the points (0, 2) and (0, −2) have different y-values.

PRACTICE TIME

Check your understanding

1. Which graph fails the vertical line test?
Show worked answer

A vertical line x = 3. A vertical line contains many y-values at one x-coordinate.

2. A vertical line intersects a graph at (2, 1) and (2, 5). What follows?
Show worked answer

The graph is not a function of x.. The input x = 2 corresponds to two distinct outputs.

3. A horizontal line intersects a graph twice. Does that fact alone prove it is not a function of x?
Show worked answer

No. Different inputs may share the same output.

UNVRST English edition · Educational support · Editorial policy