An inverse function reverses a function’s input-output relationship. If , then , provided the inverse is defined.
A function needs to be one-to-one on the domain being inverted: different inputs must produce different outputs. Otherwise reversing the relation would assign one input to more than one output.
On this page (8 sections)
When does an inverse function exist?
A function has an inverse function on its range when it is one-to-one: distinct inputs have distinct outputs. Reversing its pairs then gives exactly one output for each new input.
The horizontal line test checks this property. A horizontal line must meet the function’s graph at most once. This is separate from the vertical line test, which checks whether the original relation is a function at all.
If a codomain larger than the actual range has been named, the inverse is defined only on the range unless the function reaches the entire codomain. Always identify which inputs the inverse accepts.
Finding an inverse algebraically
For on the real numbers, start with . Reversing the input-output labels gives .
Check both compositions
Both functions have all real numbers as domain and range, so these checks apply to every real input.
Graphs reflect across y = x
Reversing to reflects a graph across the line . The plot below uses the same unit scale on both axes so that the reflection is represented correctly.
Inverse functions exchange coordinates
- Reflection line:
Diagram explained
Both axes use the same unit scale. Interchanging the two coordinates reflects the solid function onto the dashed inverse. The dotted diagonal is the reflection line, not a third inverse.
| Original point | Inverse point |
|---|---|
The original pair becomes . The domain of the inverse is the original range, and its range is the original domain.
Restricting a domain
The function is not one-to-one on the real numbers because . Restricting it to selects the non-negative branch and gives .
Without the input restriction, , not always . For instance, .
A different restriction gives a different inverse
On domain , the same square rule is also one-to-one. Its inverse is , with domain and range . The original domain determines which inverse branch is correct.
Inverse notation is not reciprocal notation
The notation means the inverse function. It is not the reciprocal . For , these rules are:
The inverse undoes the assignment. The reciprocal takes the multiplicative inverse of an output and is undefined at .
Practice questions
Find the inverse of .
Why does not have an inverse on all real numbers?
What geometric relationship connects a function and its inverse?
Check your answers
Reverse to and solve: .
It is not one-to-one: . An inverse would have to return two outputs for input 4 unless a branch is selected.
Reverse each ordered pair. With equal axis scales, this is reflection across .
Related topics
See the inverse relationship in Exponential Functions and Logarithmic Functions; compare domain restrictions in Radical Functions.
Sources and further reading
- OpenStax: Inverse functions. Definitions, conventions and related examples.
- OpenStax Precalculus 2e. Functions, transformations, inverse functions and function families.
- Wolfram Language: FunctionDomain. Domain conventions and symbolic domain checks.
- Wolfram Language: FunctionRange. Range conventions and symbolic range checks.
