Relations and Inverse Functions
An inverse function undoes the original, f⁻¹(f(x)) = x. It exists only when the function passes the horizontal line test, and its graph is the reflection of the original across the line y = x.
An inverse function undoes the original, f⁻¹(f(x)) = x. It exists only when the function passes the horizontal line test, and its graph is the reflection of the original across the line y = x.
An inverse function undoes whatever the original function did, sending every output back to the input that produced it. Not every function has one — whether it does comes down to a single graphical check.
If squares a number,
must take a square root to undo it. If
doubles a number,
must halve it. Applying a function and then its inverse always returns you to where you started.
Verify that and
really are inverses of each other.
This round trip — apply , then apply
, and recover the starting value — is exactly what it means for two functions to be inverses.
A relation is a function only if it passes the vertical line test — every vertical line meets the graph at most once, so every input gives exactly one output. A function has an inverse only if it also passes the horizontal line test — every horizontal line meets the graph at most once, so every output came from exactly one input. This second property is called one-to-one.
If some horizontal line crosses the graph twice, then two different inputs share the same output, and there is no way to reverse the process unambiguously — the "inverse" would not know which input to send that output back to.
| Function | Vertical line test | Horizontal line test | Has an inverse? |
|---|---|---|---|
| y = 2x | Pass | Pass | Yes |
| y = x³ | Pass | Pass | Yes |
| y = x² | Pass | Fail | No |
| y = |x| | Pass | Fail | No |
| y = 5 | Pass | Fail | No |
Notice that fails only because both
and
give
. Restricting the domain to
removes the repeated output, and on that restricted piece the function does have an inverse:
.