A function is one-to-one if it never assigns the same output to two different inputs. This property is essential for defining inverse functions and is easily detected from a graph using the horizontal line test.
Quick Reference
| Concept | Description |
|---|---|
| One-to-one (injective) | |
| Equivalent condition | |
| Horizontal line test | Every horizontal line meets the graph at most once |
| Monotonic one-to-one | Every increasing or decreasing function is injective |
What Is a One-to-One Function?
A function may assign the same output value to more than one input. For example, assigns the value $4$ to both and . Similarly, gives the same output for and , and a constant function takes the same value everywhere.
By contrast, produces a distinct output for every input. Such functions are called one-to-one (or injective) functions.
A function is one-to-one (or an injection) if for all in :
Equivalently, whenever in :
In other words, a one-to-one function takes on each value in its range exactly once.
Horizontal Line Test
If the graph of is cut by a horizontal line at more than one point, then the value corresponds to more than one input, and the function is not one-to-one. This gives a quick visual test:
Horizontal Line Test: A function is one-to-one if and only if every horizontal line intersects the graph of at most once.
Examples
Let (). Is a one-to-one function?
Solution
Method 1 (algebraic): If , then , so . Thus is one-to-one. Method 2 (graphical): Each horizontal line intersects the graph of a non-horizontal line exactly once, so passes the horizontal line test.
Let . Is a one-to-one function?
Solution
Method 1 (algebraic): If , then , so or . Because two different inputs can give the same output, is not one-to-one. Method 2 (graphical): A horizontal line with intersects the parabola at two points, failing the horizontal line test.

Let , where . Is a one-to-one function?
Solution
Method 1 (algebraic): If , then . So is one-to-one. Method 2 (graphical): Each horizontal line with intersects the hyperbola exactly once, and never intersects it.
Summary Table of Common Functions
| Function | Natural Domain | One-to-one? |
|---|---|---|
| ( even) | No | |
| ( odd) | Yes | |
| ( even) | Yes | |
| ( odd) | Yes | |
| ( even) | No | |
| ( odd) | Yes |
Every monotonic function is one-to-one. If is increasing and , then either (so ) or (so ); either way, . The same argument applies to decreasing functions.