Inverse Function Calculator
Calculate inverse function instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Inverse Function Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: y = f(x) => x = f(y) => solve for y = f-1(x)
Worked example โ f-1(x) = (x - 7)/3 | Verified: f(f-1(4)) = 4
Formula
y = f(x) => x = f(y) => solve for y = f-1(x)
To find the inverse, swap x and y in the original equation and solve for y. The inverse function undoes the original: f(f-1(x)) = x and f-1(f(x)) = x. The graphs of f and f-1 are reflections across the line y = x.
Worked Examples
Example 1: Finding Inverse of a Linear Function
Problem:Find the inverse of f(x) = 3x + 7 and verify by computing f(f-1(4)).
Solution:Step 1: Write y = 3x + 7 Step 2: Swap x and y: x = 3y + 7 Step 3: Solve for y: 3y = x - 7, so y = (x - 7) / 3 Inverse: f-1(x) = (x - 7) / 3 Verification: f-1(4) = (4 - 7) / 3 = -1 f(f-1(4)) = f(-1) = 3(-1) + 7 = 4 = original input. Verified!
Result:f-1(x) = (x - 7)/3 | Verified: f(f-1(4)) = 4
Example 2: Inverse of Exponential Function
Problem:Find the inverse of f(x) = 2^x + 5 and evaluate the inverse at x = 13.
Solution:Step 1: Write y = 2^x + 5 Step 2: Swap: x = 2^y + 5 Step 3: Solve: 2^y = x - 5, so y = log_2(x - 5) Inverse: f-1(x) = log_2(x - 5) Domain of inverse: x > 5 Evaluate: f-1(13) = log_2(13 - 5) = log_2(8) = 3 Verify: f(3) = 2^3 + 5 = 13. Correct!
Result:f-1(x) = log_2(x - 5) | f-1(13) = 3 | Domain: (5, infinity)
Frequently Asked Questions
What is an inverse function and how does it work?
An inverse function essentially reverses the operation of the original function. If a function f takes an input x and produces output y, then the inverse function f-1 takes y as input and produces x as output. Mathematically, if f(a) = b, then f-1(b) = a. This means that applying a function and then its inverse brings you back to the starting value, expressed as f-1(f(x)) = x and f(f-1(x)) = x. Inverse functions are fundamental in algebra and calculus because they allow you to solve equations by undoing operations. Not all functions have inverses, as the original function must be one-to-one (bijective) for a true inverse to exist.
What does it mean for a function to be one-to-one?
A function is one-to-one (also called injective) if every output value corresponds to exactly one input value. In other words, no two different inputs produce the same output. Graphically, a function is one-to-one if and only if it passes the horizontal line test, meaning every horizontal line intersects the graph at most once. This property is essential for inverse functions because if two inputs map to the same output, the inverse would not know which input to return. Functions like f(x) = x^2 are not one-to-one on their full domain because f(2) = f(-2) = 4, but they can be made one-to-one by restricting the domain to x >= 0.
How do the domain and range relate between a function and its inverse?
The domain and range swap between a function and its inverse. 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. This relationship is logical because inverse functions swap inputs and outputs. For example, if f(x) = sqrt(x) has domain [0, infinity) and range [0, infinity), its inverse f-1(x) = x^2 (restricted to x >= 0) has the same domain and range in this case. For f(x) = e^x with domain (-infinity, infinity) and range (0, infinity), the inverse ln(x) has domain (0, infinity) and range (-infinity, infinity).
What is the graphical relationship between a function and its inverse?
A function and its inverse are always reflections of each other across the line y = x. This geometric relationship comes directly from the fact that inverse functions swap x and y coordinates. Every point (a, b) on the graph of f corresponds to the point (b, a) on the graph of f-1, and reflecting any point across y = x swaps its coordinates. This means that if you fold the coordinate plane along the line y = x, the graph of f would land exactly on the graph of f-1. This property provides a useful visual check for verifying that you have correctly found an inverse function, and it explains why the inverse of an increasing function is also increasing.
How do you find the inverse of an exponential function?
The inverse of an exponential function is a logarithmic function, and vice versa. To find the inverse of f(x) = a^x, swap x and y to get x = a^y, then take the logarithm base a of both sides to get y = log_a(x). So f-1(x) = log_a(x). For the natural exponential f(x) = e^x, the inverse is f-1(x) = ln(x). If the exponential is shifted, like f(x) = 2^x + 3, swap to get x = 2^y + 3, solve: 2^y = x - 3, then y = log_2(x - 3). The domain of the inverse becomes (3, infinity) because you can only take the logarithm of a positive number. This exponential-logarithm relationship is one of the most important inverse pairs in mathematics.
Can quadratic functions have inverse functions?
Quadratic functions like f(x) = x^2 do not have inverse functions on their entire domain because they fail the horizontal line test. The parabola y = x^2 gives the same output for both positive and negative inputs, such as f(2) = f(-2) = 4. However, if you restrict the domain to either x >= 0 or x <= 0, the function becomes one-to-one and an inverse exists. With domain restricted to x >= 0, the inverse of f(x) = x^2 is f-1(x) = sqrt(x). With domain restricted to x <= 0, the inverse is f-1(x) = -sqrt(x). This domain restriction technique is commonly used to create invertible versions of non-invertible functions, and it is exactly what the calculator does automatically for quadratic inputs.
What is the horizontal line test and why is it important?
The horizontal line test is a visual method to determine whether a function has an inverse function. If any horizontal line drawn across the graph of a function intersects the graph at more than one point, then the function is not one-to-one and does not have an inverse on that domain. This is because those multiple intersection points represent different x-values that produce the same y-value, making it impossible for the inverse to uniquely determine the original input. Linear functions with nonzero slope always pass the horizontal line test, strictly monotonic functions (always increasing or always decreasing) pass it, and exponential and logarithmic functions pass it. Trigonometric functions, even polynomials, and absolute value functions typically fail without domain restrictions.
How do you verify that two functions are inverses of each other?
To verify that two functions f and g are inverses, you must show that both compositions yield the identity function. Specifically, compute f(g(x)) and confirm it equals x for all x in the domain of g, then compute g(f(x)) and confirm it equals x for all x in the domain of f. Both conditions must hold. For example, to verify f(x) = 2x + 3 and g(x) = (x - 3)/2 are inverses: f(g(x)) = 2((x-3)/2) + 3 = (x-3) + 3 = x, and g(f(x)) = ((2x+3) - 3)/2 = 2x/2 = x. Both check out, confirming they are inverses. Simply checking one composition is not sufficient because there exist function pairs where one composition equals x but the other does not.
What role do inverse functions play in solving equations?
Inverse functions are the primary tool for isolating variables in equations because they undo the effect of the original function. When you solve 2x + 5 = 11, subtracting 5 and dividing by 2 is actually applying the inverse of f(x) = 2x + 5 to both sides. For exponential equations like 3^x = 81, you apply the inverse (log base 3) to get x = log_3(81) = 4. For trigonometric equations like sin(x) = 0.5, you apply arcsin to get x = arcsin(0.5). This pattern extends throughout mathematics: every time you solve an equation by performing an operation on both sides, you are implicitly using an inverse function. Understanding this connection makes equation-solving more systematic and helps you recognize when solutions might not exist.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎBessel Function Calculator
Calculate bessel function with inputs, formulas, and instant results.
๐งฎComposite Function Calculator
Calculate composite function with inputs, formulas, and instant results.
๐งฎError Function Calculator
Calculate error function with inputs, formulas, and instant results.
๐งฎFunction Domain Calculator
Calculate function domain with inputs, formulas, and instant results.
๐งฎFunction Range Calculator
Calculate function range with inputs, formulas, and instant results.
๐งฎGamma Function Calculator
Calculate gamma function with inputs, formulas, and instant results.
๐งฎInverse Variation Calculator
Calculate inverse variation with inputs, formulas, and instant results.
๐งฎPiecewise Function Evaluator
Calculate piecewise function evaluator with inputs, formulas, and instant results.