About the Inverse Function Calculator
An inverse function reverses a rule. If converts Celsius to Fahrenheit, its inverse converts Fahrenheit back to Celsius; if doubles a number and adds three, the inverse subtracts three and halves. Finding an inverse by hand means swapping the roles of input and output and solving an equation, which is routine for lines and quickly becomes fiddly for fractions, roots and exponentials.
This calculator finds for linear, rational, power, root, exponential, logarithmic and basic trigonometric functions. It shows the swap-and-solve steps, gives the domain of the inverse, and when is not one-to-one it chooses a standard branch and says so. Every answer is verified numerically by composing with at sample points.
What is an inverse function?
The inverse of a function is the function that satisfies for every in the domain of and for every in the range of . The notation means the inverse, not the reciprocal .
Only one-to-one functions have inverses, because each output must come from exactly one input. On a graph this is the horizontal line test: no horizontal line may meet the curve twice. The graph of is the reflection of the graph of in the line , and the domain and range swap places.
How to use the Inverse Function Calculator
- Type the function in terms of , for example (2x + 3)/(x - 1), x^3 + 1 or e^x.
- Press Find the inverse.
- Read the steps: replace f(x) with y, swap x and y, and solve for y.
- Note the domain of f⁻¹ and any branch restriction the calculator applied.
- Use the check lines to confirm that f and f⁻¹ undo each other.
Formulas
Defining property
Swap and solve
Domain and range swap
Inverse of a Möbius function
Worked example: (2x + 3)/(x − 1)
The example inverts . After swapping, the equation is cleared of its fraction, every term containing is gathered on one side, and is factored out.
The result is . Its domain excludes 2 because never outputs 2: as grows, approaches the horizontal asymptote without reaching it.
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Find f⁻¹, the function that undoes f(x) = (2 x + 3) / (x - 1).
Step-by-step solution
Replace f(x) with y
Multiply both sides by the denominator
Collect the x-terms on one side and factor out x
Divide to isolate x
Solved for x
Swap x and y to name the inverse
The domain of f⁻¹ is the range of f
Formulas used
Inverse
To invert a function, write y = f(x), undo its operations in reverse order to get x on its own, then swap the letters.
Verification
- Checked: f(f⁻¹(y)) = y at 12 sample points.
- Checked: f⁻¹(f(x)) = x at 12 sample points.
Detailed explanation
Why the swap-and-solve method works
Writing describes all pairs on the graph. Swapping the letters describes the reflected set of pairs, which is exactly the graph of the inverse. Solving the swapped equation for turns that set of pairs back into a formula. The method fails only when the solving step has more than one answer, which signals that is not one-to-one.
For each function type there is a matching undo operation: subtraction undoes addition, division undoes multiplication, a cube root undoes a cube, undoes and undoes . Inverting means undoing those operations in reverse order: subtract 1, then take the cube root, giving .
Restricting the domain
A function like fails the horizontal line test because and both map to 4. To give it an inverse we keep only part of its domain. The calculator uses the conventional branch , which gives , and reports the restriction in the answer. For the same branch gives with domain .
Trigonometric functions are restricted in the standard way too. For the calculator keeps , which produces on .
How the answer is checked
After finding a candidate inverse, the engine evaluates for sample values of in the range of and requires it to return ; if that fails, no inverse is reported. It also evaluates : when this returns only for some inputs, is not one-to-one, and the answer names the branch that was used. This catches sign slips and wrong branches that are easy to miss in algebra alone.
Common mistakes
- Reading as ; the exponent notation means inverse here, not reciprocal.
- Forgetting to swap and and simply solving for , then leaving the answer in terms of .
- Claiming has the inverse ; a function must give one output, so a branch is required.
- Ignoring the domain of the inverse, which equals the range of the original function.
- Undoing operations in the original order instead of reverse order.
Tips
- Test one value: if , then must be 2.
- Sketch with the graphing calculator and apply the horizontal line test before inverting.
- For fractions of linear terms, multiply out, collect the terms and factor out.
- Find the range of with the domain and range calculator to get the inverse's domain.
- Use the function composition calculator to verify that simplifies to .
Frequently asked questions
How do you find the inverse of a function?
Replace f(x) with y, swap x and y, solve the new equation for y, and write the result as f⁻¹(x). Then state its domain, which is the range of the original function.
Does every function have an inverse?
No. Only one-to-one functions do. Functions that fail the horizontal line test, such as x² or sin x, need a restricted domain before an inverse exists.
Which branch does the calculator choose for x²?
It uses x ≥ 0, so the inverse is the square root. The restriction is written in the answer so you know which branch was used.
Is f⁻¹(x) the same as 1/f(x)?
No. The superscript −1 means the inverse function. The reciprocal 1/f(x) is a different function and is usually written with a fraction or as (f(x))⁻¹.
What is the inverse of e^x?
The natural logarithm, ln x, with domain x > 0. In the same way, the inverse of 2^x is log base 2 of x.
How are the graphs of f and f⁻¹ related?
They are reflections of each other in the line y = x, so a point (a, b) on one graph corresponds to the point (b, a) on the other.
How does the calculator verify the inverse?
It evaluates f(f⁻¹(y)) at several sample points and reports an inverse only if every value comes back unchanged. It also composes in the other order to detect when a branch restriction was needed.
Find your inverse function
Type a function above to see f⁻¹(x), its domain and a numerical check that it really undoes f.