How to Find an Inverse Function
Inverse functions reverse each other’s work. If doubling then adding one is f(x) = 2x + 1, the inverse subtracts one then halves: f⁻¹(x) = (x−1)/2. An inverse is the mathematical undo button: whatever the original function does to an input, the inverse takes the output and reconstructs the input you started with. This calculator finds inverses for the standard families — linear, power, exponential, logarithmic, and reciprocal functions — and displays the swap-and-solve working step by step, so you learn the method while you check your answer. Graphically, an inverse is the mirror image of the original across the line y = x.
What the Symbols Mean
f(x) is the original function: a rule that turns an input x into an output. f⁻¹(x) is its inverse, and the superscript −1 is a label, not an exponent — f⁻¹(x) does not mean 1/f(x), a confusion worth stamping out early. The letters x and y are the input and output variables, and the heart of the method is that they exchange roles: what was an input becomes the output you are solving for. The defining test of a correct inverse is the identity f(f⁻¹(x)) = x, together with its twin f⁻¹(f(x)) = x — composing a function with its inverse, in either order, always returns the starting value untouched.
The Swap-and-Solve Method
- Write y = f(x).
- Swap every x with y (and y with x).
- Solve the new equation for y — that y is f⁻¹(x).
- Verify by composing: f(f⁻¹(x)) must equal x.
How to Use This Calculator
- Type your function into the “Function f(x)” field using x as the variable — the field starts with 2x + 3 as a sample.
- Or tap an example chip — 2x + 3, x^2, 2^x, e^x, log_10(x), or 1/x — to load one representative of each supported family.
- Press Find Inverse Function: the calculator recognises the family, applies swap-and-solve, and displays f⁻¹(x) in large type.
- Read the numbered steps underneath, which show the write, swap, and solve stages, plus a note whenever a domain restriction applies — for instance, the warning that appears for even powers such as x^2.
Worked Example 1: Inverting f(x) = 3x − 6
- Write: y = 3x − 6.
- Swap: x = 3y − 6.
- Solve for y: add 6 → x + 6 = 3y, divide by 3 → y = (x + 6)/3.
- Verify: f(f⁻¹(x)) = 3((x + 6)/3) − 6 = x + 6 − 6 = x ✓. The composition collapses to x exactly, so the inverse is confirmed.
Read the inverse's shape against the original's and the pattern becomes memorable: f multiplies by 3 and then subtracts 6, so its inverse must undo those operations in the reverse order — add 6 first, then divide by 3. Undoing in the wrong order is the most common slip with linear functions; the verification step exists precisely to catch it.
Worked Example 2: Inverting the Exponential f(x) = 2^x
Exponentials cannot be undone with ordinary algebra — they need their partner operation, the logarithm. Write y = 2^x. Swap the variables: x = 2^y. Now solve for y by taking the logarithm base 2 of both sides, which is defined precisely to answer “2 to what power gives this?”: y = log₂(x). So f⁻¹(x) = log₂(x). Verify by composition: f(f⁻¹(x)) = 2^(log₂(x)) = x, because raising 2 to its own logarithm returns the number itself. Verify numerically too: f(3) = 2³ = 8, and the inverse sends 8 back — log₂(8) = 3, since 2³ = 8. Note the domain consequence: 2^x only ever outputs positive numbers, so log₂(x) only accepts x > 0 as its input — the domain and range have swapped, as they always do.
Who Gets an Inverse?
Only one-to-one functions have inverses: no two inputs may share an output. The quick check is the horizontal line test — if any horizontal line crosses the graph twice, the function fails. That is why x² has no single inverse over all reals (split it into x ≥ 0 to fix that), while odd roots like ∛x are fine everywhere.
Famous Inverse Pairs
Powers pair with roots, exponentials pair with logarithms (e^x ↔ ln x), and 1/x is its own inverse. Recognizing the pairs saves algebra.
Domain and Range Swap, Too
Swapping x and y swaps more than the formula: the domain of the inverse is the range of the original, and vice versa. For f(x) = 3x − 6 above, both domain and range are all real numbers, so nothing changes — but for f(x) = √x (domain x ≥ 0, range y ≥ 0) the inverse x² only keeps its inverse status on x ≥ 0. Map both functions first with our domain and range calculator when the restriction is not obvious.
When You Actually Need an Inverse
Converting a temperature from Fahrenheit back to Celsius is an inverse function at work — the forward conversion multiplied and added, so the return trip subtracts and divides. Growth questions run backwards constantly: given a bank balance, a population, or a radioactive sample's remaining mass, finding how long it took to get there means applying the logarithm, the inverse of the exponential model. Engineers invert sensor calibration curves to turn a voltage reading back into the temperature or pressure it represents, and every “decode” step in computing is an inverse of an “encode” step.
Three Mistakes That Produce False Inverses
First, reading f⁻¹(x) as the reciprocal 1/f(x): the −1 is a label for the inverse function, not a power, and (2x + 3)⁻¹ as a reciprocal would be 1/(2x + 3) — a completely different function. Second, stopping halfway: swapping x and y gives an equation like x = 3y − 6, but the inverse is not found until you have isolated y; an unfinished swap is a common way to lose marks. Third, ignoring one-to-one failures: claiming √x is the inverse of x² over all real numbers forgets that (−3)² = 9 just as 3² = 9, so the reversal is ambiguous until the domain is restricted.
Check an inverse by composing both ways with our function composition calculator or solve the swap step with the algebra calculator.