01 / 21

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.

College Algebra

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 \).

Domain A Range B 1 2 3 a b c

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:

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

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.

Inverse Functions
Only one-to-one functions can be inverted. \( f^{-1} \) exists if and only if \( f \) is injective.
Cryptography
Encryption requires one-to-one mappings so every message can be uniquely decoded.
Solving Equations
If \( f \) is one-to-one and \( f(a) = f(b) \), we can immediately conclude \( a = b \).

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

Passes HLT ✓ \(f(x) = x^3\) 1 point Fails HLT ✕ \(f(x) = x^2\) 2 points!

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 \).

1
Assume \( f(a) = f(b) \) for arbitrary inputs \( a \) and \( b \).
2
Substitute the formula for \( f \) and simplify both sides.
3
Solve to show \( a = b \). If successful, the function is one-to-one.
4
Alternatively: find a single counterexample where \( a \neq b \) but \( f(a) = f(b) \) to disprove one-to-one.

Step-by-Step Checklist

1
Identify the function: write down \( f(x) \) clearly.
2
Choose your method: graphical (HLT) or algebraic (\( f(a) = f(b) \implies a = b \)).
3
Graphical: sketch or visualize the graph. Sweep a horizontal line across all \( y \)-values.
4
Algebraic: set \( f(a) = f(b) \), simplify, and check if \( a = b \) follows.
5
State your conclusion: "one-to-one" or "not one-to-one," with justification.

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

Claim: \( f(x) = 3x - 5 \) is one-to-one.

x y -2 -1 1 2 3 4 5 2 -2 \(f(x) = 3x - 5\) 1 point

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 \) ✓

x y -1 1 2 3 4 1 2 3 4 \(h(x) = 2^x\) y = 0 (asymptote) 1 point

Example 4: \( p(x) = |x| \) ✕

x y \(p(x) = |x|\) 2 points!

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.

\( f(x) = x^2 \)
Not one-to-one on \( (-\infty, \infty) \), but one-to-one on \( [0, \infty) \).
\( g(x) = |x| \)
Not one-to-one on \( (-\infty, \infty) \), but one-to-one on \( [0, \infty) \).
\( h(x) = \sin(x) \)
Not one-to-one on \( (-\infty, \infty) \), but one-to-one on \( [-\tfrac{\pi}{2}, \tfrac{\pi}{2}] \).

Common Mistakes

✕ Confusing VLT with HLT
The Vertical Line Test checks if a graph 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 all reals, but it is one-to-one on \( [0, \infty) \). Always state the domain.
✕ "Onto" means "one-to-one"
"Onto" (surjective) means every output is hit. "One-to-one" (injective) means no output is hit twice. They are independent properties.

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?