Practice Horizontal Line Test in Math

Use these practice problems to test your method after reviewing the concept explanation and worked examples.

Quick Recap

A graph passes the horizontal line test if every horizontal line intersects it at most once.

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.

Example 1

easy
Use the horizontal line test to determine whether f(x) = 2x + 5 is one-to-one.

Example 2

medium
Does f(x) = |x - 2| pass the horizontal line test? Explain algebraically.

Example 3

medium
Which of the following functions are one-to-one: (a) f(x) = x^3, (b) g(x) = x^3 - 3x, (c) h(x) = e^x?

Example 4

hard
Prove algebraically that f(x) = \frac{x}{x+1} (for x > -1) is one-to-one without graphing.