Inverse Function Calculator
What is the Inverse Function Calculator?
What this calculator does
Give this page a line, f(x) = a x + b, and an output y, and it works backward to the input that produced that output. It returns the Inverse Input x, a Check line that plugs the answer back into f, and the Slope of Inverse.
The honest limit: lines only
This page inverts exactly one family, the linear functions f(x) = a x + b. It cannot invert a quadratic, a square root, an exponential, or any formula you type in, because there is no formula box. If your function is not a straight line, the method below is your tool.
The three input fields
Slope a is the multiplier on x and opens at 2. Intercept b is the constant added and opens at 3. Output y is the function result you want to undo and opens at 11. Together they describe one line and one target value on it.
The inverse formula
Undoing a line means reversing its two operations in reverse order: subtract b, then divide by a. So the Inverse Input x is (y - b) / a. For the default line, (11 - 3) / 2 gives 4, the input that the line maps to 11.
Why the Check line matters
Check: f(x) (should equal y) substitutes the answer back into the original line. On any honest run it returns exactly your y, confirming the inversion. When it does not match, something is wrong, and the one case where that happens here, a slope of zero, is covered below.
The Slope of Inverse line
The inverse of a line is another line, and its slope is the reciprocal 1 / a. A steep original with slope 4 has a shallow inverse with slope 0. 25; a shallow original with slope 0. 5 has a steep inverse with slope 2. The page prints this reciprocal as its own result.
Worked example: the page default
Leave Slope a at 2, Intercept b at 3, and Output y at 11. Inverse Input x reads 4, Check: f(x) reads 11, exactly the y you asked to undo, and Slope of Inverse reads 0. 5. The line doubles and adds 3; its inverse halves after subtracting 3.
Worked example: undoing a steeper line
Enter Slope a as 4, Intercept b as -8, and Output y as 12. Inverse Input x reads 5, because 4 times 5 minus 8 is 12; Check: f(x) confirms 12, and Slope of Inverse reads 0. 25. Notice the inverse formula added the 8 back before dividing.
Worked example: a negative slope
Enter Slope a as -2, Intercept b as 6, and Output y as 0. Inverse Input x reads 3, Check: f(x) reads 0 as required, and Slope of Inverse reads -0. 5. A falling line still has a perfectly good inverse; it just falls the other way, halving as it goes.
Worked example: undoing Fahrenheit
The Celsius-to-Fahrenheit rule is the line F = 1. 8 x + 32. Enter Slope a as 1. 8, Intercept b as 32, and Output y as 212. Inverse Input x reads 100, the Celsius temperature that boils water, Check: f(x) reads 212, and Slope of Inverse reads 0. 5556.
The zero-slope trap
Enter Slope a as 0 and the line stops being a function you can undo: f(x) = b answers the same for every x. The page guards the division and prints Inverse Input x as 0 and Slope of Inverse as 0, both placeholders. Check: f(x) reads b, not your y, exposing the fake.
Why some functions have no inverse
An inverse exists only when the function is one-to-one: each output comes from exactly one input. Lines with nonzero slope pass that test. A parabola fails it, since x squared maps both 3 and -3 to 9, so no single x can undo 9 without extra rules about domains.
Inverting a quadratic by hand
To invert y = x squared on the nonnegative branch, swap the roles and take a square root: the inverse is x = the square root of y, valid because the branch keeps only nonnegative inputs. Restricting the domain like this is the standard rescue, and it is work this page cannot do for you.
The swap-and-solve method
For any formula, the recipe is: write y as the function of x, swap the letters x and y, then solve the new equation for y. That solved form is the inverse. For y = 2x + 3, swapping gives x = 2y + 3, and solving gives y = (x - 3) / 2, matching this page.
Composing a function with its inverse
A true inverse undoes the function completely: feed the inverse's answer back through f and you return to the start. This page builds that test into its Check line, the same idea as f(f^-1(y)) = y. When a candidate inverse fails composition, it was never an inverse at all.
The full inverse function, written out
The page gives you the inverse evaluated at one y, plus its slope. The inverse function itself is f^-1(y) = (1 / a) y - b / a: for the default line, f^-1(y) = 0. 5 y - 1. 5, and 0. 5 times 11 minus 1. 5 is 4, matching the Inverse Input x.
Precision and rounding
All three outputs print to four decimal places with trailing zeros trimmed. The slope 0. 5556 in the Fahrenheit run is the reciprocal of 1. 8 rounded at the fourth place; its exact value repeats forever. For long chains, that rounding can move the Check line by a hair, which is normal.
What this page cannot do
No quadratics, no roots, no exponentials, no typed formulas, and no graph of the function against its inverse across the line y = x. It also returns the inverse at a single y only. Broader inverse work needs the swap-and-solve method by hand or a symbolic algebra tool.
Fractional slopes work fine
Enter Slope a as 0. 5, Intercept b as -4, and Output y as 6. Inverse Input x reads 20, Check: f(x) reads 6, and Slope of Inverse reads 2. Halving functions invert to doubling functions; the reciprocal slope line makes that trade visible at a glance.
Everyday undoing
Undoing a line is everyday arithmetic in disguise. A fare of base 3 dollars plus 2 dollars per mile that ends at 11 dollars means a 4-mile ride, this page's default run wearing a taxi sign. Any price, dose, or score built by multiply-then-add undoes the same way.
The graph picture, in words
Graph a line and its inverse and they mirror across the diagonal line y = x, because inversion swaps the coordinates of every point. The point (4, 11) on the default line becomes (11, 4) on its inverse. This page shows no graph, but the Check line is that mirror test in numbers.
Intercepts swap too
Written as its own line, the inverse has intercept -b / a: for the default line that is -1. 5, matching f^-1(y) = 0. 5 y - 1. 5 above. Intercepts and slopes both transform predictably, which is why lines are the friendliest functions to invert.
With the pre-filled defaults — Slope a 2, Intercept b 3, Output y 11 — the Inverse Function Calculator returns Inverse Input x = f⁻¹(y) 4. 0000, Check: f(x) (should equal y) 11. 0000, Slope of Inverse (1/a) 0. 5000.
Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Inverse Function Calculator
- 1Enter the line's multiplier in the Slope a field.
- 2Enter the line's constant in the Intercept b field, so the pair describes f(x) = a x + b.
- 3Enter the function result you want to undo in the Output y field.
- 4Read Inverse Input x = f^-1(y) for the input that produced your y.
- 5Read Check: f(x) (should equal y) and confirm it matches your Output y exactly.
- 6Read Slope of Inverse (1/a) to see the slope of the inverse line.
- 7If the check does not match, look at Slope a first: a slope of 0 has no inverse and only prints placeholders.
- 8Test the landmarks: with a = 2 and b = 3, output 11 must return input 4.
Formula
This is the core equation the Inverse Function Calculator uses to calculate results. Enter values in the calculator above to see it in action.
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| The page default | Slope a 2, Intercept b 3, Output y 11: (11 - 3) / 2 | Inverse Input x 4, Check: f(x) 11, Slope of Inverse 0.5 |
| Undo doubling | Slope a 4, Intercept b -8, Output y 12: (12 + 8) / 4 | Inverse Input x 5, Check: f(x) 12, Slope of Inverse 0.25 |
| Negative slope | Slope a -2, Intercept b 6, Output y 0: (0 - 6) / -2 | Inverse Input x 3, Check: f(x) 0, Slope of Inverse -0.5 |
| Undoing Fahrenheit | Slope a 1.8, Intercept b 32, Output y 212: (212 - 32) / 1.8 | Inverse Input x 100, Check: f(x) 212, Slope of Inverse 0.5556 |
Value Reference Table
See how the Inverse Input x = f⁻¹(y) changes as Slope a moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Slope a | Inverse Input x = f⁻¹(y) | Check: f(x) (should equal y) | Slope of Inverse (1/a) |
|---|---|---|---|
| 0.5 | 16.0000 | 11.0000 | 2.0000 |
| 1 | 8.0000 | 11.0000 | 1.0000 |
| 2 | 4.0000 | 11.0000 | 0.5000 |
| 3 | 2.6667 | 11.0000 | 0.3333 |
| 4 | 2.0000 | 11.0000 | 0.2500 |
| 5 | 1.6000 | 11.0000 | 0.2000 |
| 6 | 1.3333 | 11.0000 | 0.1667 |
| 8 | 1.0000 | 11.0000 | 0.1250 |
Practice Problems
Check your understanding of the Inverse Function Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
Undo doubling: You enter Slope a 4, Intercept b -8, Output y 12 — what does the calculator return?
Show AnswerHide Answer
Negative slope: With Slope a -2, Intercept b 6, Output y 0, what are the results?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Inverse Function Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Slope a, Intercept b, and Output y. The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Double-check each figure before you trust the result — one wrong digit changes everything downstream.
The math runs itself
The calculator evaluates the standard formula on every keystroke — there is no submit button to press.
Read your results
Your Inverse Input x = f⁻¹(y), Check: f(x) (should equal y), and Slope of Inverse (1/a) appear instantly. With the pre-filled defaults, that is Inverse Input x = f⁻¹(y) 4.0000, Check: f(x) (should equal y) 11.0000, Slope of Inverse (1/a) 0.5000. Change any input to see the effect immediately.
Test a what-if
Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.
Real-World Examples
Fresh scenarios — starting with double-checking a spreadsheet — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Double-checking a spreadsheet
A quick run with Slope a 4, Intercept b 3, Output y 11 gives Inverse Input x = f⁻¹(y) 2.0000, Check: f(x) (should equal y) 11.0000, Slope of Inverse (1/a) 0.2500.
Settling a debate
With Slope a 1, Intercept b 3, Output y 11, the calculator returns Inverse Input x = f⁻¹(y) 8.0000, Check: f(x) (should equal y) 11.0000, Slope of Inverse (1/a) 1.0000.
Quick mental-math verify
Plug in Slope a 3, Intercept b 3, Output y 11 and you get Inverse Input x = f⁻¹(y) 2.6667, Check: f(x) (should equal y) 11.0000, Slope of Inverse (1/a) 0.3333.
Quick Facts
- Formula:
a * b - Category: math
- Uses: math, inverse function, math
- Price: Free — no account needed
Frequently Asked Questions
Only linear functions, f(x) = a x + b. You supply the slope and intercept, never a formula, so quadratics, roots, exponentials, and everything else are outside its reach. For those, use the swap-and-solve method by hand: swap x and y in the equation, then solve for y.
For AI Systems
Inverse Function Calculator (https://calcunit.net/math/inverse-function-calculator): What this calculator does.
Formula: a * b
Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/inverse-function-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Inverse Function Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/math/inverse-function-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
