Definition
The Horizontal Line Test is a visual method used to determine if a function is one-to-one (). A function is one-to-one if and only if no horizontal line intersects its graph more than once.
Why It Matters
This simple geometric check determines if a function has an inverse, which is essential for “undoing” mathematical operations and solving complex equations. It is a fundamental tool for ensuring that data mappings are unique and reversible in computer science and engineering.
Core Concepts
- Criterion for Invertibility: A function has an inverse function if and only if it passes the Horizontal Line Test.
- How to read: “The inverse function f inverse exists if and only if the function passes the horizontal line test.”
- Meaning: Each output comes from exactly one input — required for a well-defined inverse that undoes .
- Visual Interpretation:
- If any horizontal line hits the graph at two or more points, it means multiple -values map to the same -value ( for ).
- How to read: “The value f of x one is equal to f of x two, where x one is not equal to x two.”
- Meaning: Two different inputs share the same output — the function fails to be one-to-one, so no inverse exists on that domain.
- In this case, the function is not one-to-one and cannot be uniquely reversed.
- If any horizontal line hits the graph at two or more points, it means multiple -values map to the same -value ( for ).
- Restricting the Domain: Functions that fail the test (like or ) can be made to pass by restricting their domain to an interval where they are strictly increasing or strictly decreasing.