TOPICS
Search

Horizontal Line Test


The horizontal line test is a graphical method for determining whether a real-valued function of a real variable is one-to-one. A function passes the horizontal line test iff every horizontal line intersects its function graph in at most one point.

Indeed, a horizontal line with height y intersects the function graph at every point (x,y) for which f(x)=y. Therefore, such a line intersects the function graph more than once precisely when there are distinct values x_1 and x_2 such that f(x_1)=f(x_2). In particular, a function has an inverse function on its range iff it passes the horizontal line test.


See also

Function Graph, Injection, Inverse Function, One-to-One, Vertical Line Test

Explore with Wolfram|Alpha

References

Lial, M. L.; Hornsby, J.; and Schneider, D. I. Precalculus, 4th ed. Boston, MA: Pearson, 2009.Stewart, J. Calculus: Concepts and Contexts, 4th ed. Belmont, CA: Brooks/Cole, Cengage Learning, 2010.

Cite this as:

Weisstein, Eric W. "Horizontal Line Test." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HorizontalLineTest.html

Subject classifications