Horizontal Line Test
A free Precalculus lesson from the “Inverse Functions” unit, with a worked example and practice problems including step-by-step solutions.
If a horizontal line hits a graph more than once, the inverse relation would fail the function test. This lesson is part of Precalculus: Advanced Functions, so the emphasis is on interpreting behavior, choosing the right representation, and explaining the result clearly rather than memorizing isolated algebra moves.
What you'll learn
- Use the horizontal line test to judge inverse-function readiness
- Use horizontal line test in symbolic and graph-based problems
- Check common mistakes before finalizing an answer
Worked example
Problem. A graph passes the horizontal line test when:
- The horizontal line test checks one-to-one behavior.
- At most one hit means each output came from at most one input.
- Then the inverse relation is also a function.
Answer: every horizontal line hits it at most once
Practice problems
1. A graph passes the horizontal line test when:
Choices: every horizontal line hits it at most once · every vertical line hits it twice · it crosses the y-axis exactly once · no horizontal line touches it
Show solution
- The horizontal line test checks one-to-one behavior.
- At most one hit means each output came from at most one input.
- Then the inverse relation is also a function.
Answer: every horizontal line hits it at most once
2. If one horizontal line crosses a graph three times, the function is:
Choices: not one-to-one · not a function · always linear · missing a domain
Show solution
- Three hits mean one output value comes from three different inputs.
- Different inputs sharing an output breaks one-to-one behavior.
- The graph can still pass the vertical line test, so it is still a function.
Answer: not one-to-one
3. A horizontal line drawn at height y = 5 crosses the parabola y = x^2 in how many points?
Show solution
- Solve x^2 = 5 for the crossings.
- Since 5 > 0, there are two solutions: x = sqrt(5) and x = -sqrt(5).
- So the horizontal line meets the parabola in 2 points.
Answer: 2
4. A horizontal line drawn at height y = 6 crosses the curve y = x^3 in how many points?
Show solution
- Solve x^3 = 6 for the crossings.
- A cube root gives exactly one real solution, x = cbrt(6).
- So the horizontal line meets the cubic in just 1 point.
Answer: 1
5. Passing the horizontal line test is exactly the same as a function being:
Choices: one-to-one (so it has an inverse function) · even · increasing everywhere then decreasing · a polynomial
Show solution
- The horizontal line test is the graphical test for one-to-one.
- One-to-one means each output traces back to a single input.
- That is precisely the condition for an inverse function to exist.
Answer: one-to-one (so it has an inverse function)
Practice this interactively with instant feedback and an AI tutor.
Practice Horizontal Line Test Take the free placement check