01 / 20

One-to-One
Functions

Learn to identify whether a function is one-to-one on a given domain and justify your reasoning using graphs and algebraic arguments.

Math 3

Quick Refresher: What Is a Function?

A function is a rule that assigns each input exactly one output. We write \( f: A \to B \), meaning every element in set \( A \) maps to a single element in set \( B \).

Domain A Range B 1 2 3 a b c

What Does One-to-One Mean?

A function \( f \) is one-to-one (also called injective) if different inputs always produce different outputs. Formally:

In plain language: no two different \( x \)-values share the same \( y \)-value. Every output in the range is "hit" by at most one input.

One-to-One vs. Not One-to-One

One-to-One ✓ 1 2 3 a b c Not One-to-One ✕ 1 2 3 a b

The Horizontal Line Test

The graphical test for one-to-one is the Horizontal Line Test (HLT): A function is one-to-one if and only if every horizontal line intersects the graph at most once.

Passes HLT ✓ 1 hit Fails HLT ✕ 2 hits!

Formal Definition and Notation

Algebraic Test
Set \( f(a) = f(b) \) and show that \( a = b \) must follow. If you can find \( a \neq b \) with \( f(a) = f(b) \), the function is not one-to-one.
Graphical Test
Apply the Horizontal Line Test. If any horizontal line crosses the graph more than once, the function is not one-to-one.

Why Does One-to-One Matter?

A function has an inverse function \( f^{-1} \) if and only if it is one-to-one. The inverse "undoes" the original mapping: \( f^{-1}(f(x)) = x \).

1
Invertibility: Only one-to-one functions can be "reversed" to create an inverse.
2
Solving equations: If \( f \) is one-to-one and \( f(x) = c \), there is exactly one solution for \( x \).
3
Domain restrictions: Non-one-to-one functions (like \( x^2 \)) can be restricted to a domain where they become one-to-one.

Function vs. One-to-One vs. Onto

Function One-to-One (Injective) Onto (Surjective)
Rule Each input → one output Different inputs → different outputs Every output is hit by some input
Graph Test Vertical Line Test Horizontal Line Test Every \( y \) in codomain reached
Example \( f(x) = x^2 \) \( f(x) = 2x + 1 \) \( f: \mathbb{R} \to \mathbb{R},\; f(x) = x^3 \)

How to Test Algebraically

1
Assume \( f(a) = f(b) \) for arbitrary \( a \) and \( b \) in the domain.
2
Simplify the equation using algebra.
3
Conclude: If you can show \( a = b \) must follow, the function is one-to-one.
4
Counterexample: If you find specific \( a \neq b \) with \( f(a) = f(b) \), it is not one-to-one.

Example 1: \( f(x) = 3x - 5 \)

Claim: \( f(x) = 3x - 5 \) is one-to-one on \( \mathbb{R} \).

1
Assume \( f(a) = f(b) \): \( 3a - 5 = 3b - 5 \).
2
Add 5 to both sides: \( 3a = 3b \).
3
Divide by 3: \( a = b \). ✓

Example 2: \( g(x) = x^2 \) on \( \mathbb{R} \)

Claim: \( g(x) = x^2 \) is not one-to-one on all of \( \mathbb{R} \).

x y \( x = -a \) \( x = a \) \( g(x) = x^2 \)

Example 3: Restricting the Domain

We can restrict a non-one-to-one function to a smaller domain where it becomes one-to-one.

x y 1 hit ✓ Domain: \( x \geq 0 \) excluded

Example 4: \( h(x) = 2^x \)

Claim: \( h(x) = 2^x \) is one-to-one on \( \mathbb{R} \).

x y 1 hit ✓ asymptote y = 0 \( h(x) = 2^x \)

Monotonic Functions Are One-to-One

Strictly Increasing
\( a < b \implies f(a) < f(b) \)
Examples: \( e^x \), \( \ln(x) \), \( x^3 \)
Strictly Decreasing
\( a < b \implies f(a) > f(b) \)
Examples: \( -x \), \( \frac{1}{x} \) on \( (0,\infty) \)

Shortcut: If \( f'(x) > 0 \) for all \( x \) in the domain (or \( f'(x) < 0 \) for all \( x \)), then \( f \) is one-to-one on that domain.

Common Mistakes to Avoid

✕ Confusing VLT and HLT
The Vertical Line Test checks if a relation is a function. The Horizontal Line Test checks if a function is one-to-one. They test different things.
✕ Ignoring the Domain
\( x^2 \) is not one-to-one on \( \mathbb{R} \), but it is one-to-one on \( [0, \infty) \). Always state the domain.
✕ Assuming "Passes VLT" = One-to-One
Passing the VLT means it is a function, not that it is one-to-one. You need the HLT as well.

Quick Reference Table

Function One-to-One? Reasoning
\( f(x) = 3x - 5 \) Yes Linear, nonzero slope (increasing)
\( g(x) = x^2 \) on \( \mathbb{R} \) No \( g(-2) = g(2) = 4 \)
\( g(x) = x^2 \) on \( [0, \infty) \) Yes Strictly increasing on restricted domain
\( h(x) = 2^x \) Yes Strictly increasing (exponential)
\( p(x) = \sin(x) \) on \( \mathbb{R} \) No Periodic: \( \sin(0) = \sin(\pi) = 0 \)
\( p(x) = \sin(x) \) on \( [-\frac{\pi}{2}, \frac{\pi}{2}] \) Yes Strictly increasing on restricted domain
\( q(x) = |x| \) on \( \mathbb{R} \) No \( |{-3}| = |3| = 3 \)

Question 1 of 5

Which test determines whether a function is one-to-one?

Question 2 of 5

Is \( f(x) = x^3 \) one-to-one on \( \mathbb{R} \)?

Question 3 of 5

Which pair of inputs shows that \( g(x) = x^2 - 4 \) is not one-to-one on \( \mathbb{R} \)?

Question 4 of 5

On which restricted domain is \( f(x) = (x - 2)^2 \) one-to-one?

Question 5 of 5

A function \( f \) is one-to-one. What can you conclude?