Inverse Function Calculator
Calculate the inverse function f^(-1)(x) of a given function f(x) with detailed step-by-step instructions showing how to find the inverse algebraically.
About Inverse Function Calculator
Welcome to our Inverse Function Calculator, a free online tool that helps you find the inverse of a function with detailed step-by-step instructions. Whether you are a student learning about inverse functions, preparing for calculus, or a teacher creating examples, this calculator provides clear explanations of the algebraic process.
What is an Inverse Function?
An inverse function, denoted as $f^{-1}(x)$, reverses the operation of the original function $f(x)$. If $f(a) = b$, then $f^{-1}(b) = a$. In other words, the inverse function "undoes" what the original function does.
The key properties of inverse functions include:
- Composition property: $f(f^{-1}(x)) = x$ and $f^{-1}(f(x)) = x$
- Graphical relationship: The graph of $f^{-1}(x)$ is the reflection of $f(x)$ across the line $y = x$
- Domain-range swap: The domain of $f$ becomes the range of $f^{-1}$, and vice versa
How to Find the Inverse of a Function
Follow these steps to find the inverse function algebraically:
Step 1: Replace f(x) with y
Start by writing the function as $y = f(x)$. This makes the algebraic manipulation easier.
Step 2: Swap x and y
Interchange the variables x and y in the equation. This reverses the input-output relationship.
Step 3: Solve for y
Use algebraic techniques to isolate y on one side of the equation. This is often the most challenging step.
Step 4: Write in Function Notation
Replace y with $f^{-1}(x)$ to express the inverse function properly.
Step 5: Verify (Optional)
Confirm your answer by checking that $f(f^{-1}(x)) = x$.
Common Inverse Functions
| Original Function $f(x)$ | Inverse Function $f^{-1}(x)$ |
|---|---|
| $f(x) = x + a$ | $f^{-1}(x) = x - a$ |
| $f(x) = ax$ | $f^{-1}(x) = \frac{x}{a}$ |
| $f(x) = ax + b$ | $f^{-1}(x) = \frac{x - b}{a}$ |
| $f(x) = x^2$ (for $x \geq 0$) | $f^{-1}(x) = \sqrt{x}$ |
| $f(x) = x^3$ | $f^{-1}(x) = \sqrt[3]{x}$ |
| $f(x) = e^x$ | $f^{-1}(x) = \ln(x)$ |
| $f(x) = \ln(x)$ | $f^{-1}(x) = e^x$ |
| $f(x) = \frac{1}{x}$ | $f^{-1}(x) = \frac{1}{x}$ |
When Does a Function Have an Inverse?
Not all functions have inverse functions. A function has an inverse if and only if it is one-to-one (also called injective). This means each output value corresponds to exactly one input value.
The Horizontal Line Test
A function passes the horizontal line test if no horizontal line intersects its graph more than once. If a function passes this test, it has an inverse.
- Linear functions (with non-zero slope) are always one-to-one
- Quadratic functions are not one-to-one over all real numbers (they fail the horizontal line test)
- Strictly monotonic functions (always increasing or always decreasing) are one-to-one
Restricting the Domain
When a function is not one-to-one, we can restrict its domain to make it one-to-one. For example:
- $f(x) = x^2$ is not one-to-one, but $f(x) = x^2$ for $x \geq 0$ is one-to-one with inverse $f^{-1}(x) = \sqrt{x}$
- $f(x) = \sin(x)$ is not one-to-one, but $f(x) = \sin(x)$ for $-\frac{\pi}{2} \leq x \leq \frac{\pi}{2}$ is one-to-one with inverse $f^{-1}(x) = \arcsin(x)$
Examples
Example 1: Linear Function
Find the inverse of $f(x) = 3x - 5$
Solution:
- Write as $y = 3x - 5$
- Swap: $x = 3y - 5$
- Solve for y: $x + 5 = 3y$, so $y = \frac{x + 5}{3}$
- Therefore, $f^{-1}(x) = \frac{x + 5}{3}$
Example 2: Rational Function
Find the inverse of $f(x) = \frac{x - 1}{x + 2}$
Solution:
- Write as $y = \frac{x - 1}{x + 2}$
- Swap: $x = \frac{y - 1}{y + 2}$
- Solve: $x(y + 2) = y - 1$, so $xy + 2x = y - 1$
- Rearrange: $xy - y = -1 - 2x$, so $y(x - 1) = -2x - 1$
- Therefore, $f^{-1}(x) = \frac{-2x - 1}{x - 1} = \frac{2x + 1}{1 - x}$
Tips for Using This Calculator
- Enter functions using x as the variable
- Use * for multiplication (e.g., 2*x instead of 2x)
- Use ^ or ** for exponents (e.g., x^2 or x**2)
- Use sqrt(x) for square root
- Use log(x) for natural logarithm
- Use exp(x) or e^x for exponential function
Frequently Asked Questions
What does the -1 in f^(-1)(x) mean?
The -1 in $f^{-1}(x)$ is not an exponent. It is notation that indicates the inverse function. It should not be confused with $\frac{1}{f(x)}$, which is the reciprocal of f(x).
Can I find the inverse of any function?
Not all functions have inverses. Only one-to-one functions have inverse functions. If a function fails the horizontal line test, it does not have an inverse over its entire domain, but you may be able to restrict the domain to create an invertible function.
How do I verify that my inverse is correct?
To verify, check that both $f(f^{-1}(x)) = x$ and $f^{-1}(f(x)) = x$. If both compositions equal x, your inverse is correct.
How do I find the inverse of a linear function like f(x) = 3x - 7?
Write y = 3x - 7, swap x and y to get x = 3y - 7, then solve for y: y = (x + 7)/3. Therefore f⁻¹(x) = (x + 7)/3. You can check by composing: 3((x + 7)/3) - 7 = x. The inverse reverses the input and output, so it undoes the original function’s operations in reverse order.
What domain restriction makes the inverse of x squared a function?
The function f(x)=x^2 is not one-to-one over all real numbers, because x=2 and x=-2 both produce 4. Restrict its domain to x≥0, and its inverse is f⁻¹(x)=√x for x≥0. If instead the original domain is x≤0, the inverse is -√x. The restriction determines which branch reverses the original function.
Why is the domain of an inverse function different from the original domain?
An inverse swaps the original function’s inputs and outputs, so the original range becomes the inverse’s domain, and the original domain becomes the inverse’s range. For f(x)=e^x, the original range is positive numbers, so the inverse ln(x) has domain x>0. Check these restrictions when solving or composing functions; an algebraic expression may be undefined for some inputs.
Additional Resources
To learn more about inverse functions:
Reference this content, page, or tool as:
"Inverse Function Calculator" at https://MiniWebtool.com/inverse-function-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: Dec 12, 2025
Algebra Calculators:
- Absolute Value Equation Solver
- Absolute Value Inequality Solver
- Age Word Problem Solver New
- Algebraic Expression Simplifier
- Binomial Theorem Expansion Calculator Popular
- Coin Word Problem Solver New
- Completing the Square Calculator New
- Cubic Equation Solver New
- Descartes' Rule of Signs Calculator New
- Distance-Speed-Time Triangle Calculator New
- Domain and Range Calculator
- Expand Polynomials Calculator
- Exponential Equation Solver New
- Function Composition Calculator Popular
- Function Grapher
- Function Odd Even Neither Checker
- Inequality Solver Popular
- Inverse Function Calculator
- Linear Equation Solver
- Literal Equation Solver New
- Logarithmic Equation Solver Popular
- Mixture Problem Solver New
- Polar Equation Plotter New
- Polynomial Factoring Calculator Popular
- Polynomial Long Division Calculator Popular
- Quartic Equation Solver New
- Radical Equation Solver
- Radical Simplifier
- Rational Equation Solver New
- Rational Expression Calculator
- Rational Root Theorem Calculator New
- Standard Form to Slope-Intercept Converter New
- Synthetic Division Calculator
- System of Inequalities Grapher
- System of Linear Equations Solver
- System of Nonlinear Equations Solver New
- Train Meeting Problem Solver New
- Trigonometric Equation Solver Popular
- Vertex and Axis of Symmetry Calculator
- Work Rate Problem Solver New
- X and Y Intercept Calculator Popular