If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Intro to invertible functions

Not all functions have inverses. Those who do are called "invertible." Learn how we can tell whether a function is invertible or not.
Inverse functions, in the most general sense, are functions that "reverse" each other. For example, if f takes a to b, then the inverse, f1, must take b to a.

Do all functions have an inverse function?

Consider the finite function h defined by the following table.
x1234
h(x)2125
We can create a mapping diagram for function h.
Now let's reverse the mapping to find the inverse, h1.
Notice here that h1 maps the input of 2 to two different outputs: 1 and 3. This means that h1 is not a function.
Because the inverse of h is not a function, we say that h is non-invertible.
In general, a function is invertible only if each input has a unique output. That is, each output is paired with exactly one input. That way, when the mapping is reversed, it will still be a function!
Here's an example of an invertible function g. Notice that the inverse is indeed a function.

Check your understanding

1) f is a finite function that is defined by this table.
x21   0   1   2
f(x)21356
Is f an invertible function?
Choose 1 answer:

2) g is a finite function that is defined by this table.
x2581019
g(x)23216
Is g an invertible function?
Choose 1 answer:

Challenge Problem

3*) Is f(x)=x2 an invertible function?
Choose 1 answer:

Invertible functions and their graphs

Consider the graph of the function y=x2.
We know that a function is invertible if each input has a unique output. Or in other words, if each output is paired with exactly one input.
But this is not the case for y=x2.
Take the output 4, for example. Notice that by drawing the line y=4, you can see that there are two inputs, 2 and 2, associated with the output of 4.
In fact, if you slide the horizontal line up and down, you will see that most outputs are associated with two inputs! So the function y=x2 is a non-invertible function.
In contrast, consider the function y=x3.
If we take a horizontal line and slide it up and down the graph, it only ever intersects the function in one spot!
This means that each output corresponds with exactly one input. In other words, each input has a unique output. The function y=x3 is invertible.
The reasoning above describes what is called the horizontal line test: In general, a function f is invertible if it passes the horizontal line test.

Check your understanding

4) Is g invertible?
Choose 1 answer:

5) Is h invertible?
Choose 1 answer:

Want to join the conversation?