Horizontal Line Test Examples in Math
Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Horizontal Line Test.
This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.
Concept Recap
The horizontal line test is a visual method to determine whether a function is one-to-one (injective). If every horizontal line intersects the function's graph at most once, the function passes the test and has an inverse function on its full domain.
A horizontal line that crosses the graph at two points means those two inputs produce the same output โ the function is many-to-one and has no inverse without domain restriction.
Read the full concept explanation โHow to Use These Examples
- Read the first worked example with the solution open so the structure is clear.
- Try the practice problems before revealing each solution.
- Use the related concepts and background knowledge badges if you feel stuck.
What to Focus On
Core idea: The horizontal line test checks one-to-one: if every horizontal line intersects the graph at most once, the function has a well-defined inverse.
Common stuck point: The vertical line test checks if a graph IS a function; the horizontal line test checks if it has an inverse โ these are different questions requiring different tests.
Sense of Study hint: Draw (or imagine) horizontal lines at various heights across the graph. If any horizontal line crosses the graph at two or more points, those inputs share the same output, so the function is not one-to-one and has no inverse without domain restriction.
Worked Examples
Example 1
easySolution
- 1 The graph of f(x) = 2x + 5 is a straight line with slope 2 (nonzero).
- 2 Any horizontal line y = c intersects a non-horizontal line at most once.
- 3 Since every horizontal line crosses the graph at most once, f passes the horizontal line test and is one-to-one.
Answer
Example 2
mediumPractice Problems
Try these problems on your own first, then open the solution to compare your method.
Example 1
mediumExample 2
hardRelated Concepts
Background Knowledge
These ideas may be useful before you work through the harder examples.