Inverse Function Calculator
Calculate inverse function instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.
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\nStep 2: Swap x and y: x = 3y + 7\nStep 3: Solve for y: 3y = x - 7, so y = (x - 7) / 3\nInverse: f-1(x) = (x - 7) / 3\n\nVerification: f-1(4) = (4 - 7) / 3 = -1\nf(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\nStep 2: Swap: x = 2^y + 5\nStep 3: Solve: 2^y = x - 5, so y = log_2(x - 5)\nInverse: f-1(x) = log_2(x - 5)\n\nDomain of inverse: x > 5\nEvaluate: f-1(13) = log_2(13 - 5) = log_2(8) = 3\nVerify: 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 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 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.