Enter your function
Pick a function type and fill in the parameters. This calculator focuses on the most common classroom-friendly forms, so your inverse is clean and useful for studying.
Use this free inverse function calculator to find f⁻¹(x) for common function families (linear, quadratic, exponential, logarithmic, reciprocal, and power). You’ll also get step-by-step logic, domain/range notes, and a quick “plug back in” check so you can trust the result.
Pick a function type and fill in the parameters. This calculator focuses on the most common classroom-friendly forms, so your inverse is clean and useful for studying.
An inverse function reverses what the original function does. If a function f takes an input x and outputs y, we write y = f(x). The inverse, written as f⁻¹, takes that output value and sends it back to the input: x = f⁻¹(y). In other words, the inverse “undoes” the function.
This idea shows up everywhere in algebra and precalculus because it connects directly to solving equations. If you can describe a process as a function (multiply, shift, square, exponentiate), then the inverse is the “reverse” process (divide, shift back, square-root, logarithm). Inverses are also why you learn paired operations like exponentials and logs, or squaring and square roots.
One of the most important rules is the composition identity: f(f⁻¹(x)) = x and f⁻¹(f(x)) = x, as long as you stay in the correct domains. That’s not just a definition — it’s a powerful self-check. If your inverse is right, composing the function and its inverse should bring you back to where you started.
Most textbook inverse problems use the same strategy. You start with y = f(x), then you swap the roles of input and output, and finally solve for the new output variable. Here’s the method you can memorize:
Example (linear): If f(x)=2x+3, start with y=2x+3. Swap: x=2y+3. Solve for y: y=(x−3)/2. So f⁻¹(x)=(x−3)/2. If you plug it back in, f(f⁻¹(x)) = 2·((x−3)/2)+3 = x. Perfect.
The only “gotcha” is that an inverse exists only when the function is one-to-one. That’s why you often see “restrict the domain” for quadratics (and even-power functions). The calculator above lets you choose a branch so the inverse is truly a function.
When you recognize a function family, you can often write its inverse almost instantly. Below are the exact forms used in this calculator, along with the inverse you’ll get. These are extremely common in algebra, precalc, and early calculus.
Notice the “swap pairs”: exponentials invert to logs, and logs invert to exponentials. Squares invert to square roots (with a sign choice based on the branch), and multiplying by a becomes dividing by a.
Example 1: Linear
Let f(x)=−3x+12. Write y=−3x+12. Swap: x=−3y+12. Solve: −3y=x−12 → y=(12−x)/3 = 4 − x/3. So f⁻¹(x)=4 − x/3.
Example 2: Quadratic with restriction
Let f(x)=(x−1)²+5 with domain x≥1. Write y=(x−1)²+5. Swap: x=(y−1)²+5. Solve: x−5=(y−1)² → √(x−5)=y−1 → y=1+√(x−5). Because we restricted x≥1, we choose the “+” branch, making the inverse a true function.
Example 3: Exponential
Let f(x)=2·3^(x−4)−7. Write y=2·3^(x−4)−7. Swap: x=2·3^(y−4)−7. Solve: x+7=2·3^(y−4) → (x+7)/2=3^(y−4). Take log base 3: log₃((x+7)/2)=y−4 → y=4+log₃((x+7)/2). So f⁻¹(x)=4+log₃((x+7)/2).
A function has an inverse function if it’s one-to-one, meaning different inputs always give different outputs. Graphically, that’s the horizontal line test. If a horizontal line hits the graph more than once, the function is not one-to-one unless you restrict the domain.
A parabola repeats y-values (for most y you get two x’s). That breaks one-to-one behavior. Restricting to x≥h (right side) or x≤h (left side) makes it one-to-one, so the inverse becomes a function.
If the domain of f is the set of allowed x-values, then the inverse’s domain becomes the original range. Similarly, the inverse’s range becomes the original domain. Swapping x and y is basically swapping those sets.
No. f⁻¹(x) is the inverse function, while 1/f(x) is the reciprocal. They only match in special cases.
Plug the inverse into the original: compute f(f⁻¹(x)). If it simplifies to x (on the correct domain), you’ve got the correct inverse. You can also test with a number: pick an x, compute y=f(x), then compute f⁻¹(y). You should get your original x back.
Logs need a positive argument: x−h > 0. Exponentials require base b>0 and b≠1 (otherwise it’s not invertible). The calculator warns you when inputs break these rules.
If you want a viral classroom trick: screenshot the inverse and the verification line (f(f⁻¹(x))=x), then share it in group chats — it’s the fastest “yes, that’s right” proof.
Most “wrong inverses” happen for the same predictable reasons. First, people forget that f⁻¹ is a function name, not a power. Writing f⁻¹(x) does not mean 1/f(x). Second, students often swap x and y but forget to finish the job by solving for y. A good habit is to circle the final line and make sure it reads “y = …” before you rename it f⁻¹(x).
Another big error is ignoring domain restrictions. Quadratics and even-power functions can’t be one-to-one on the entire real line, so the inverse requires a branch choice (right side or left side). If your teacher says “find the inverse,” they usually mean “find the inverse function,” which implicitly requires a restricted domain. The same idea applies to logs: the inside must be positive, so x−h>0. And with exponentials/logs, the base must be valid (b>0 and b≠1), otherwise there is no meaningful inverse.
Finally, always do a quick sanity check. Pick a simple input x (like 0 or 1), compute y=f(x), then compute x₂=f⁻¹(y). If x₂ matches your original x, you’re almost certainly correct. This 10-second test is also extremely shareable: it’s a “receipt” that your inverse works.
If you graph a function and its inverse on the same coordinate plane, they’re mirror images across the line y = x. That mirror idea is why the inverse method starts by swapping x and y: you’re literally swapping the roles of horizontal and vertical axes.
This helps when you’re unsure about the “+” or “−” sign in a square-root inverse. If your original function uses only the right branch (x≥h), then the inverse must output values ≥h as well. On a graph, that means the inverse lives on the correct mirrored side. When in doubt, graph a couple points and reflect them across y=x.
MaximCalculator provides simple, user-friendly tools. Always treat results as learning aids and double-check important work. If you’re unsure about domain restrictions, ask your teacher or use a graph to confirm one-to-one behavior.