One-to-One
Functions
Master the concept of injective functions and learn the Horizontal Line Test to determine when every output has at most one input.
Quick Review: What Is a Function?
A function is a rule that assigns each input in the domain to exactly one output in the range. We write \( f \colon A \to B \), meaning every element \( a \in A \) maps to a unique \( f(a) \in B \).
What Makes a Function One-to-One?
A function \( f \) is one-to-one (also called injective) if no two different inputs produce the same output. Formally:
Why Do One-to-One Functions Matter?
One-to-one functions are the only functions that have inverses. If \( f \) is one-to-one, we can "reverse" it: for every output, we know exactly which input produced it.
The Horizontal Line Test
The Horizontal Line Test (HLT) is a visual method to determine whether a function is one-to-one from its graph:
If any horizontal line crosses the graph in two or more places, there exist distinct inputs \( a \neq b \) with \( f(a) = f(b) \), so the function is not one-to-one.
Visualizing the HLT
Vertical vs Horizontal Line Test
| Vertical Line Test | Horizontal Line Test | |
|---|---|---|
| Question it answers | Is the graph a function? | Is the function one-to-one? |
| Line direction | Vertical (\( x = c \)) | Horizontal (\( y = c \)) |
| Pass condition | Each vertical line hits at most 1 point | Each horizontal line hits at most 1 point |
| What failure means | One input has 2+ outputs | One output has 2+ inputs |
| Implication | Not a function | Function, but not one-to-one |
The Algebraic Approach
When you do not have a graph, you can prove one-to-one algebraically. Set \( f(a) = f(b) \) and show that this forces \( a = b \).
Step-by-Step Checklist
Example 1: \( f(x) = 3x - 5 \) ✓
Claim: \( f(x) = 3x - 5 \) is one-to-one.
Example 2: \( g(x) = x^2 \) ✕
Claim: \( g(x) = x^2 \) is not one-to-one on \( (-\infty, \infty) \).
Graphically, the horizontal line \( y = 9 \) intersects the parabola at two points: \( (-3, 9) \) and \( (3, 9) \).
Example 3: \( h(x) = 2^x \) ✓
Example 4: \( p(x) = |x| \) ✕
Restricting the Domain
A function that is not one-to-one on its full domain can often become one-to-one if we restrict the domain to a suitable interval.
Common Mistakes
Summary: One-to-One Functions
| Function | One-to-One? | Reason |
|---|---|---|
| \( f(x) = 3x - 5 \) | Yes | Linear with nonzero slope |
| \( f(x) = x^2 \) | No (on \( \mathbb{R} \)) | \( f(-a) = f(a) \) for all \( a \) |
| \( f(x) = 2^x \) | Yes | Exponential: strictly increasing |
| \( f(x) = |x| \) | No (on \( \mathbb{R} \)) | \( f(-a) = f(a) \) for all \( a \) |
| \( f(x) = x^3 \) | Yes | Strictly increasing everywhere |
| \( f(x) = \sin(x) \) | No (on \( \mathbb{R} \)) | Periodic: repeats every \( 2\pi \) |
Question 1 of 5
Which of the following is the definition of a one-to-one function?
Question 2 of 5
The Horizontal Line Test determines whether a function is:
Question 3 of 5
Which function is one-to-one on all real numbers?
Question 4 of 5
To make \( g(x) = x^2 \) one-to-one, we can restrict the domain to:
Question 5 of 5
Suppose \( f \) is one-to-one and \( f(3) = 10 \). Can any other input map to 10?