One-to-One Mapping Examples: 47 Problems with Answers

Worked examples of One-to-One Mapping to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Determine whether f(x)=2x+3 is one-to-one by (a) the definition and (b) the horizontal line test.
Show solution

Answer

f(x)=2x+3 is one-to-one

First step

1.
Definition: assume f(a)=f(b). Then 2a+3=2b+3⇒2a=2b⇒a=b. So f(a)=f(b)⇒a=b. f is one-to-one. ✓

Full solution

  1. 2.
    Horizontal line test: f(x)=2x+3 is a line with positive slope. Any horizontal line y=c intersects it at exactly one point (x=(c−3)/2).
  2. 3.
    Both methods confirm f is one-to-one (injective).
A one-to-one function has no two distinct inputs sharing an output: f(a)=f(b)⇒a=b. Linear functions with non-zero slope are always one-to-one because they are strictly monotone.

Example 2

medium
Show that g(x)=x3 is one-to-one on R, then find its inverse function.

Example 3

medium
Show that f(x)=5−2x is one-to-one and find its inverse.

Example 4

medium
Find the inverse of f(x)=x+4 (with x≥−4) and state its domain.

Example 5

medium
Determine whether the floor function f(x)=⌊x⌋ is one-to-one on R.

Example 6

hard
Find the inverse of f(x)=x+2x−1 and state its domain.

Example 7

hard
A function f:Z→Z is defined by f(n)=2n+5. Show it is one-to-one but not onto.

Example 8

hard
Show that f(x)=ex+x is one-to-one on R.

Example 9

challenge
Find all real b such that f(x)=x3+bx is one-to-one on R.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Which functions are one-to-one? (A) f(x)=x2 on R. (B) f(x)=ex. (C) f(x)=∣x∣.

Example 2

hard
Find the inverse of h(x)=2x+1x−3 and state its domain.

Example 3

easy
Is f(x)=x+5 one-to-one? (Do different inputs give different outputs?)

Example 4

easy
Apply the horizontal line test: a line y=2x. Is it one-to-one?

Example 5

easy
Is f(x)=x2 one-to-one over all reals?

Example 6

easy
Does the table (1,2),(2,4),(3,6) define a one-to-one function?

Example 7

easy
Does the table (1,5),(2,5),(3,9) define a one-to-one function?

Example 8

easy
Is f(x)=3x−1 one-to-one?

Example 9

easy
A constant function f(x)=7. Is it one-to-one?

Example 10

easy
Is the map 'each person to their fingerprint' one-to-one?

Example 11

medium
Is f(x)=x3 one-to-one over the reals? Justify.

Example 12

medium
Restrict the domain of f(x)=x2 to make it one-to-one. Give a valid restriction.

Example 13

medium
A graph dips down then rises (a parabola). State why it fails the horizontal line test.

Example 14

medium
Is f(x)=1x (for x≠0) one-to-one?

Example 15

medium
How many distinct inputs can map to a single output in a one-to-one function?

Example 16

medium
Is f(x)=∣x∣ one-to-one on the reals? If not, restrict it.

Example 17

medium
If f is one-to-one and f(a)=f(b), what can you conclude?

Example 18

medium
Is the doubling map on integers, n↦2n, one-to-one?

Example 19

challenge
Determine all real k for which f(x)=kx+3 is one-to-one.

Example 20

challenge
Is f(x)=x2−4x+7 one-to-one on the reals? Find the largest interval [a,∞) where it is.

Example 21

challenge
A function maps {1,2,3} to {a,b}. Can it be one-to-one? Explain.

Example 22

medium
Is the map 'day of week to its number 1..7' one-to-one?

Example 23

easy
Is f(x)=7x one-to-one on R?

Example 24

easy
Is the function given by the table {(1,4),(2,7),(3,4),(4,9)} one-to-one?

Example 25

easy
Which function is NOT one-to-one? (A) f(x)=2x−1 (B) f(x)=x4 on R (C) f(x)=x5

Example 26

easy
Is f(x)=ln⁡(x) on (0,∞) one-to-one?

Example 27

medium
Restrict the domain of f(x)=(x−3)2 so that it becomes one-to-one. State a valid restriction.

Example 28

medium
Is f(x)=1x−2 one-to-one on its domain?

Example 29

medium
Is f(x)=sin⁡x one-to-one on R? If not, give a domain restriction that makes it one-to-one.

Example 30

medium
Is f(x)=2x one-to-one?

Example 31

medium
Suppose f and g are both one-to-one. Is f∘g one-to-one?

Example 32

medium
Which of these is one-to-one on R? (A) f(x)=cos⁡x (B) f(x)=x3+x (C) f(x)=x2+1

Example 33

hard
Is f(x)=x3−3x+4 one-to-one on R? Justify using the derivative.

Example 34

hard
For what values of a is f(x)=x2+ax+1 one-to-one on [0,∞)?

Example 35

hard
Is f(x)=x∣x∣ one-to-one on R?

Example 36

hard
How many one-to-one functions are there from a 3-element set to a 5-element set?

Example 37

challenge
Let f:R→R satisfy f(f(x))=x for all x. Must f be one-to-one?

Example 38

challenge
Let f:N→N be one-to-one. Must its image be all of N?

What to focus on

Core idea: A one-to-one function never lets two distinct inputs share the same output.

Common stuck point: The procedure for one-to-one mapping is the easy part; the trap is confusing one-to-one with being a function. Asking "Does every output value come from at most one input?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Does every output value come from at most one input?

Concept recap

A one-to-one (injective) function maps every distinct input to a distinct output — no two different inputs produce the same output.

A one-to-one function is like assigned seats on a plane: every passenger has their own seat, so the seat number tells you exactly who should be sitting there. If two passengers were booked into seat 14C, the seat number would no longer identify one person, and the mapping would not be one-to-one.

Read the full lesson on One-to-One Mapping

Background knowledge

These ideas may be useful before you work through the harder examples.

function definition