Skip to ContentGo to accessibility page
Algebra 1

4.5.2 Using the Vertical Line Test

Algebra 14.5.2 Using the Vertical Line Test

4.5.2 Using the Vertical Line Test

4.5.2 • Using the Vertical Line Test

Activity

A table for the relation ff is below.

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.

Using the Vertical Line Test

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
Reuse and redistribution of this content in digital or print format:
  • 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 prior written permission.
  • This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License, which means that you can reuse and modify the material only for noncommercial purposes, must attribute OpenStax, and must distribute any derivative works under the same license.
  • Any commercial printing of this textbook, including using a local or custom printer, must be approved by OpenStax, and proper citation provided.
  • OpenStax-copyrighted images, activities, assessments, and similar components of this book are subject to the same licensing – CC-BY-NC-SA. They can be used for noncommercial purposes with attribution. Commercial use requires permission.
  • Permission requests: Anyone who intends to incorporate this content (including text, images, and other components) into large language models, use it in AI offerings, use it commercially (including in print), and/or has questions about another use case is welcome to complete our reuse request form.
Attribution information
  • If you are redistributing all or part of this book in a noncommercial 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 noncommercial digital format, then for every page that includes OpenStax content, you must license the derivative work under the same CC-BY-NC-SA license as the original, and 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

The information below includes the information needed to generate citations in most major styles (APA, MLA, etc.); you must reformat and organize the information as needed to fit the requirements of the style. Use the information below to generate a citation. We recommend using a citation tool such as this one.

© Apr 23, 2026 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, and Rice University name, and Rice University logo trademarks, or wordmarks are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.