Inverse Functions: Definition, Method and Examples
An inverse function reverses the input-output process of a one-to-one function. If a function maps an input to a specific output, its inverse maps that output back to the original input.
To find an inverse algebraically, interchange the variables representing the input and output, then solve for the new output variable. The graphs of a function and its inverse are always reflections across the line , and their domains and ranges swap.
What is an inverse function?
An inverse function undoes the action of another function. Using standard function notation, if a function takes an input and produces an output , the inverse function takes and produces .
The inverse of a function is written as .
The is a label, not an exponent. It indicates the reverse process, meaning is completely different from .
When a function is reversed, all of its input and output values trade places. The domain of the original function becomes the range of the inverse function, and the range of the original function becomes the domain of the inverse function.

If a point lies on the graph of , then the point will lie on the graph of .
Check whether an inverse exists
A function only has an inverse function if it is a one-to-one function. This means every output value is paired with exactly one input value.
If a function produces the same output for two different inputs, reversing the process becomes impossible because the inverse would not know which original input to map back to. Understanding its domain and range helps determine if this overlap happens.
You can verify if a function is one-to-one using the horizontal line test. If any horizontal line intersects the graph of the function more than once, the function is not one-to-one and does not have an inverse over its entire domain.

Some functions, like , are not one-to-one because both and yield . To create an inverse for this function, you must restrict its domain to . With this restriction, the function becomes one-to-one, and its inverse is .
Find an inverse algebraically
To find the equation of an inverse function, you systematically swap the input and output variables. When working with functions in algebra, you will commonly follow a four-step process.
- Replace with .
- Interchange all instances of and .
- Solve the new equation for .
- Replace the new with .
The fundamental rule for finding an inverse is swapping x and y.
Different types of functions may require distinct algebraic strategies to isolate the new , such as factoring or multiplying by a common denominator, but the core four steps remain the same.
Graph inverse functions
The graph of an inverse function is always a mirror image of the original function. The line of reflection is the diagonal line .
Because the process of finding an inverse swaps every -coordinate with its corresponding -coordinate, any point on the original function reflects directly across the line to become the point on the inverse function.

If a function intersects its own inverse, the intersection point will always lie perfectly on the line .
Verify compositions
To prove that two functions are inverses, you can test them using composite functions. When you compose a function with its true inverse, they completely cancel each other out, leaving only the original input.
This relationship is written as:

If substituting one equation into the other simplifies exactly to , you have proven that they are inverses. If the result is anything else, they are not inverses.
Worked examples
Review these examples to see how to swap variables and isolate the new output variable for different types of equations.
Example 1: Finding the inverse of a linear function
Question: Find the inverse of the function .
Method:
- Replace with :
- Interchange and :
- Solve for . First, add to both sides:
- Divide both sides by :
- Replace with .
Answer:
Check: Test a value. Let . The original function gives . Pass into the inverse function: . It returns the original input.
Example 2: Finding the inverse of a rational function
Question: Find the inverse of .
Method:
- Replace with :
- Interchange and :
- Multiply both sides by :
- Distribute the :
- Move all terms containing to one side:
- Factor out :
- Divide by :
Answer:
Check: Verify the domain and range swap. The vertical asymptote of is , making its domain . The horizontal asymptote of the inverse is , making its range .
Example 3: Finding the inverse with a restricted domain
Question: Find the inverse of for .
Method:
- Replace with :
- Interchange and :
- Subtract from both sides:
- Take the square root of both sides. Because the original domain was restricted to , the new range is restricted to , meaning you only keep the positive root:
Answer:
Check: Verify the domains. The original function has a domain of and a range of . The inverse function has a domain of and a range of .
Common mistakes
When working with inverse functions, learners often make three common errors:
Confusing notation: The notation means the inverse function. It does not mean the reciprocal . A reciprocal is a multiplicative inverse, not a function inverse.
Forgetting to restrict the domain: For a function like to have an inverse, its domain must be restricted (e.g., ) so it passes the horizontal line test.
Solving incorrectly for the new $y$: After swapping and , isolate completely using valid algebraic operations. Errors often happen when distributing or factoring during this step.
Frequently asked questions
Does every function have an inverse function?
No. Only one-to-one functions have inverse functions. If a function maps multiple inputs to the same output, reversing it will map one input to multiple outputs, which violates the definition of a function.
How is an inverse relation different from an inverse function?
Every relation has an inverse relation, found by swapping and . However, that reversed relation is only called an inverse function if it passes the vertical line test and assigns exactly one output to each input.
What happens to the domain and range in an inverse function?
The domain of the original function becomes the range of the inverse function, and the range of the original function becomes the domain of the inverse function.
Practice questions

The function shown above has an inverse, . Which of the following points must lie on the graph of ?
Find the inverse of the function .
Which test helps determine if a function's inverse will also be a function?
The vertical line test determines if a function has an inverse.
The horizontal line test determines if a function has an inverse.
The composition test determines if a function has an inverse.
The diagonal line test determines if a function has an inverse.
The horizontal line test determines if a function has an inverse.
Why must the domain of be restricted to to find its inverse function?
Because square roots cannot evaluate negative numbers.
Because without a restriction, the function fails the horizontal line test.
Because the range of an inverse must always contain positive numbers.
Because inverse functions can only reflect in the first quadrant.
Because without a restriction, the function fails the horizontal line test.
If and are inverse functions, what is the result of the composition ?
