This works whenever . Below you will see where the formula comes from, how to handle shifted and negative forms, what happens to asymptotes, when no inverse exists, and how to verify an answer in under a minute.
How do you find the inverse of a rational function?
The idea is the same as in the inverse of a linear function: an inverse undoes the original, so inputs and outputs trade places. What makes rational functions different is that ends up buried in a denominator, so one extra move is needed.
- Write , then swap and .
- Multiply both sides by the denominator to clear the fraction.
- Move every term containing to one side and everything else to the other.
- Factor out and divide by what remains.
The step that costs the most points is step 4. After clearing the fraction you often have in two terms, such as and . You cannot isolate until it is factored out, and dividing term by term is the usual error. Also, the notation is a name for the inverse, not an exponent. The function notation page explains why is never .
Quick check
Answer:
Where the inverse of a rational function formula comes from

Run the four steps once with letters instead of numbers. Start from , swap, and solve:
Multiply the top and bottom by and the result reads . That gives a memory rule: swap and , negate and . It is a fast way to check any hand calculation.
The rule is not a coincidence. Put the coefficients in a matrix . Its inverse matrix is , and the scalar in front cancels inside a fraction. The quantity is the 2×2 determinant, and it decides whether the function is invertible at all.
If , as in , the fraction simplifies to the constant 2. A constant function has no inverse.
One more consequence: when , the formula returns the original function, so is its own inverse. The function is the simplest case, and is another.
Finding the inverse of a rational function step by step
Take . Replace with and swap the variables:
So . The negatives are the usual place for slips. When moves across the equals sign it becomes on the left, and when moves it becomes on the right, which is how the numerator ends up as .
Now test the shortcut. Here , , , . Swapping and and negating and gives . Multiply top and bottom by and it matches. Two independent routes to the same answer is a strong sign it is right.
Inverse of a rational function in shifted form
Many textbooks write rational functions as a shifted reciprocal, . These are transformations of the reciprocal parent function, and for them there is a faster method than clearing fractions: undo the operations in reverse order.
Take . Reading forward, adds 2, takes 3 divided by that, then subtracts 1. Reversing it means add 1 first, then undo the division, then subtract 2:
The pattern is tidy. In the shift inside the denominator is and the outside shift is . In those two shifts trade places and change sign: the inside shift is and the outside shift is . The numerator 3 does not change.
Try this: Find the inverse of by undoing the operations in reverse order. (Answer: .) Then confirm that the asymptotes of and swap.
Domain, range and asymptotes of the inverse

An inverse swaps inputs and outputs, so it also swaps domain and range. For rational functions this shows up directly in the asymptotes, which makes the picture easy to read and the algebra easy to verify.
| Feature | ||
|---|---|---|
| Vertical asymptote | ||
| Horizontal asymptote | ||
| Domain | ||
| Range |
This table assumes . Try it on the earlier example . It has vertical asymptote and horizontal asymptote . The inverse has vertical asymptote and horizontal asymptote . The two have swapped, exactly as the table predicts.
A common slip is claiming the range of is all real numbers. The horizontal asymptote value is never reached, so it is missing from the range, and that missing value becomes the missing input of the inverse.
Quick check
Answer:
Which rational functions have an inverse function?
A function has an inverse function only if it is one-to-one: each output comes from exactly one input. The horizontal line test checks this, and it is the sideways twin of the vertical line test. Any rational function with a linear numerator and linear denominator passes (when ), which is why the formula above works so cleanly.
Higher powers change things. Consider . Both and give , so it fails the test. As with the inverse of a quadratic function, the fix is to restrict the domain to . Then:
The positive root is chosen because on the restricted domain. On the outputs of cover , so the inverse has domain . Test : and . Notice the inverse is no longer rational. It behaves like the inverse of a square root function family, with a root in it.
Inverse of a rational function vs its reciprocal
Students often confuse with . The reciprocal flips the fraction upside down. The inverse swaps what goes in with what comes out. These give different functions almost every time.
Use again. Its reciprocal is . Its inverse is . At they split: , so the reciprocal of is , while .
asks which input produces the output 2. asks for the reciprocal of the output at 2.
The only time the two ideas touch is for , where the reciprocal and the inverse are the same function. That is a special coincidence, not a rule, and it is the reason the confusion survives so long.
How do you check the inverse of a rational function?
The strongest check is composition. If is the inverse of , then . This uses the idea behind composition of functions. For and , substitute into :
The common factor cancels, and the constants collapse to in the denominator, leaving . That is a full check, though the algebra is heavy.
Two quicker checks catch most errors. First, pick an easy input: , so must equal 1. Second, compare asymptotes with the table in the earlier section. If the vertical asymptote of your answer is not , something went wrong.
Quick check
Answer: , so is the inverse of
Real use: solving a mixture formula backwards
Rational inverses appear whenever a ratio is controlled by one quantity. Suppose 50 liters of a 10% salt solution receives liters of a 30% solution. The concentration of the mix is
Often the question runs the other way: how much to add for a target concentration? That is the inverse. Clear the fraction and factor out :
For a 20% mix, gives liters. Check: .
The asymptotes now carry meaning. In the original formula, approaches 0.3 as grows but never reaches it, which is the horizontal asymptote. In the inverse, that same value 0.3 is the vertical asymptote, so no amount of the 30% solution can produce a mix at or above 30%.
Practice problems
0 of 5 solved
- Find the inverse of .
Answer:
Swap and : . Take reciprocals of both sides: . Add 4: . - Find the inverse of .
Answer:
Swap: . Clear the fraction: . Gather terms: . Factor: , so . - Find the inverse of .
Answer:
Swap: . Clear: . Gather: . Factor: , so . - Find the inverse of and state the domain of the inverse.
Answer: , domain
Swap: . Clear: . Gather: . Factor: . The denominator is zero at , so the domain excludes 2. - Find the value of that makes its own inverse.
Answer:
A function is its own inverse when . Here and , so . Check: , so the function is valid.
Common questions
What is the inverse of a rational function?
It is the function that reverses the original, found by swapping and and solving for . For the inverse is , which is another rational function of the same type.
Is the inverse of a rational function always a rational function?
Not always. When the numerator and denominator are both linear, the inverse is rational. When the original has or higher powers, solving for usually produces a root, so the inverse is no longer rational.
Does every rational function have an inverse?
Only one-to-one rational functions have an inverse function. A function that fails the horizontal line test, such as , needs a restricted domain first.
How do you find the domain of the inverse of a rational function?
The domain of the inverse is the range of the original function. For with , that means all real numbers except .
Is the inverse of a rational function the same as its reciprocal?
No. The reciprocal is , which flips the fraction. The inverse swaps inputs and outputs, and the two agree only in special cases such as .
Which rational functions are their own inverse?
A function is its own inverse when (and ). Examples are and .