The inverse of a function 'undoes' the original function — if f(x) takes an input and produces an output, f⁻¹(x) takes that output and returns the original input. For a simple linear function y = mx + b, finding the inverse is a clean, mechanical process: swap x and y, then rearrange to solve for the new y.
This calculator handles that swap-and-solve process for any linear function you enter.
The method, step by step
Starting with y = mx + b: swap x and y to get x = my + b, then solve for y: y = (x − b) ÷ m. This gives the inverse function f⁻¹(x) = (x − b) ÷ m. Geometrically, the graph of the inverse is the original line reflected across the line y = x.
Frequently asked questions
A function that reverses another function's effect — if f(a) = b, then f⁻¹(b) = a. Composing a function with its inverse in either order returns the original input unchanged.
Only functions that are one-to-one (each output corresponds to exactly one input) have a true inverse function — a linear function with a non-zero gradient always qualifies, but many other functions (like a simple parabola) don't have an inverse function across their whole domain without restricting it.
The same swap-x-and-y, then solve-for-y method applies conceptually, but the algebra is more complex for non-linear functions, and not every function can be solved explicitly for its inverse — this calculator specifically handles the linear case.