Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Algebra 1

4.5.2 Using the Vertical Line Test

Algebra 14.5.2 Using the Vertical Line Test
Search for key terms or text.

4.5.2 • Using the Vertical Line Test

Activity

A table for the relation ff is below.

xx 1 2 3 1 4 5
f(x)f(x) -1 5 -2 1 3 -2

1. Is this relation a function? Explain your answer.

2. Use the Desmos graphing tool or technology outside the course. Graph the points in the relation.

Interact with the graph. Graph the points in the relation on a coordinate grid.

3. What do you notice about the points (1,1)(1,1) and (1,1)(1,1)?

VERTICAL LINE TEST

A set of points in a rectangular coordinate system is the graph of a function if every vertical line intersects the graph in at most one point.

If any vertical line intersects the graph in more than one point, the graph does not represent a function.

If the graph does represent a function, we say it “passes the vertical line test.”

4. For the function graphed below, determine if the graph passes the vertical line test and then explain how this identifies the graph as a function or not.

5. For the function graphed below, determine if the graph passes the vertical line test and then explain how this identifies the graph as a function or not.

Notice that the graph of a non-vertical line will always be a function. This is called a linear function.

Video: Interpreting Function Notation

Watch the following video to learn more about function notation.

Self Check

Which of the following graphs is the graph of a function?

Additional Resources

Determine If a Graph Is a Function

A relation is a function if every input has exactly one output value. So the relation defined by the equation y = 2 x 3 y = 2 x 3 is a function. Notice that a line will always be a function, so it is called a linear function.

If we look at the graph, each vertical dashed line intersects the line at only one point. This makes sense because in a function, for every xx-value there is only one yy-value.

If the vertical line hit the graph twice, the xx-value would be mapped to two yy-values, so the graph would not represent a function.

This leads us to the vertical line test. A set of points in a rectangular coordinate system is the graph of a function if every vertical line intersects the graph in at most one point. If any vertical line intersects the graph in more than one point, the graph does not represent a function.

Look at the graphs below:

Graph a passes the vertical line test because if an imaginary vertical line were drawn anywhere on the graph, it would only touch one time.

Graph a is a function.

Graph b does not pass the vertical line test because when a vertical line is drawn down the graph, there is at least one place where the vertical line touches twice.

Graph b is not a function.

Try it

Determine if a Graph Is a Function

Determine if each graph is a function. Use the vertical line test to explain.

Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:

    Access for free at https://openstax.org/books/algebra-1/pages/about-this-course

Citation information

© Aug 26, 2025 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.