Lesson 6

One-To-One Functions

Theory and examples

A function gives exactly one output for every allowed input. A one-to-one function is a type of function that requires all inputs (x-values) to produce different outputs (y-values).

Key idea

A function is one-to-one when every output it actually produces comes from exactly one input.

If different inputs share an output, the function is many-to-one.

What do "one-to-one" and "many-to-one" mean?Optional refresher

The names describe how inputs connect to outputs.

On each graph:vertical line testhorizontal line testCircles mark where a test line meets the graph.

One-to-one

Is a function
Each input has one output, and no output is shared. Every xx-value has its own yy-value.

Mapping diagram

Graph

Many-to-one

Is a function
Many inputs may share an output, but each input still has only one output. Many xx-values can produce the same yy-value.

Mapping diagram

Graph

One-to-many

Not a function
One input is linked to many outputs, so a single xx-value may produce more than one yy-value.

Mapping diagram

Graph

Many-to-many

Not a function
Inputs can be linked to many outputs, and outputs may also be shared. Both problems at once.

Mapping diagram

Graph

Once we already know a relation is a function, the possibilities we need here are one-to-one and many-to-one.

The horizontal line test

The vertical line test checks whether a graph is a function. We use the horizontal line test to check whether a function is one-to-one.

TestQuestion it answers
Vertical line testIs it a function?
Horizontal line testIs it one-to-one?

Drag the horizontal line up and down each graph below, or use the slider, and watch how many times it meets the curve.

One-to-one

One intersection.

Many-to-one

Two intersections.

The number of intersections is the whole point of the test:

Reading the result

  • If every horizontal line meets the graph at most once, the function is one-to-one — no output is ever repeated.
  • If even one horizontal line meets the graph twice, the function is many-to-one — those two crossing points are two different inputs that share the same output.

A line that misses the graph (zero intersections) simply means that height is not an output, so it does not affect the verdict.

That is exactly what the graphs above show: the straight line is met once wherever you drag it, so it is one-to-one, while the parabola always has some height that is crossed twice, so y=x2y=x^2 is many-to-one.

Why one-to-one matters

Knowing that a function is one-to-one is important for later studies, it means that the function has an inverse function.

Now lets look at how to prove a function is not one-to-one, algebraically.

Proving a function is not one-to-one

Show that f(x)=x2f(x)=x^2 on R\mathbb{R} is not one-to-one.

  1. f(3)=32=9f(3)=3^2=9

    Evaluate the function at one input.

  2. f(−3)=(−3)2=9f(-3)=(-3)^2=9

    Find a different input that produces the same output.

  3. f(3)=f(−3)but3≠−3f(3)=f(-3)\quad\text{but}\quad 3\neq -3

    Now we can see that two different x-values produce the same y-value, making the function many-to-one.

One counter-example is enough to prove the function is not one-to-one.

Many-to-one is still a function

A parabola passes the vertical line test, so f(x)=x2f(x)=x^2 is a function. It fails the horizontal line test, so it is many-to-one.

If a graph fails the vertical line test, it was not a function in the first place.

Lesson summary

  • A one-to-one function never gives the same output for two different inputs.
  • The horizontal line test checks whether a function is one-to-one.
  • A many-to-one relation can still be a function; it simply has a shared output.
  • One pair of different inputs with the same output is enough to prove that a function is not one-to-one.

Optional mastery

Mastery questions

Do you want a high study score? Be disciplined. Do the mastery questions.

Open mastery questions

Checkpoint

Multiple-choice questions

Answer every question correctly to unlock the next lesson. If something is marked red, change your answer and check again.

Question 1
What does the horizontal line test tell you?
Question 2
Is f:R→R, f(x)=x2f:\mathbb{R}\to\mathbb{R},\ f(x)=x^2 one-to-one?
Question 3
Which statement is enough to prove that h(x)=x2+1h(x)=x^2+1 is not one-to-one?