Math Solver Free

Inverse Function Calculator

Find f⁻¹(x) with swap-and-solve steps — instantly and free.

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

  1. Type your function into the “Function f(x)” field using x as the variable — the field starts with 2x + 3 as a sample.
  2. 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.
  3. Press Find Inverse Function: the calculator recognises the family, applies swap-and-solve, and displays f⁻¹(x) in large type.
  4. 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

  1. Write: y = 3x − 6.
  2. Swap: x = 3y − 6.
  3. Solve for y: add 6 → x + 6 = 3y, divide by 3 → y = (x + 6)/3.
  4. 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.

Frequently Asked Questions

How do you find the inverse of f(x) = 2x + 3?

Write y = 2x + 3, swap to x = 2y + 3, then solve for y: subtract 3 to get x − 3 = 2y, divide by 2 to get y = (x − 3)/2. So f⁻¹(x) = (x − 3)/2. Check: f(f⁻¹(x)) = 2((x − 3)/2) + 3 = x. ✓ The same write, swap, and solve steps work for every linear function, whatever its slope and intercept.

What happens to the domain and range of an inverse function?

They swap completely. The domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f, because the inverse reverses every input-output pair of the original. That swap is exactly why the graph of an inverse is the mirror image of the original across the line y = x: every point (a, b) on f becomes the point (b, a) on f⁻¹.

What is an inverse function?

An inverse function undoes another function completely. If f maps a to b, then f⁻¹ maps b back to a, returning you to exactly where you started. Formally, both compositions collapse to the identity: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x for every x in the appropriate domain. Addition and subtraction are simple inverse pairs; functions like squaring need care because they are not one-to-one.

How do you find an inverse algebraically?

Use swap-and-solve. Write the function as y = f(x), swap every x and y in the equation, then solve the new equation for y using ordinary algebra. The resulting expression, renamed f⁻¹(x), is the inverse. The calculator above shows each of those steps for linear, power, exponential, logarithmic, and reciprocal functions, and the method is the same whatever function you start with.

Which functions have inverses?

Only one-to-one functions have true inverses: functions where each output comes from exactly one input, so the reversal is never ambiguous. The graph test is the horizontal line test — if any horizontal line meets the graph twice, the function is not one-to-one. That is why x² has no inverse over all real numbers, but gains one when its domain is restricted to x ≥ 0.

Is this calculator free?

Yes, completely free — no sign-up and nothing to install. Enter a function from the supported families — linear, power, exponential, logarithmic, or reciprocal — and its inverse is derived step by step and verified by composition, all in your browser. Use the example chips above the button to see each family inverted in one click.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team