Reversing a function is a four-move routine: confirm it is one-to-one, swap and , solve for , and verify by composition. The underlying idea is that an inverse undoes a function, so if , then .
But the first move is not optional. An inverse exists only when the original function is one-to-one on the domain you are using. If two inputs share the same output, the inverse cannot decide which input to return.
When this method applies
Use this routine whenever you need to recover an original input from an output: solving equations, working with graphs, or describing operation pairs where one undoes the other. Subtraction undoes addition, division undoes multiplication, and logarithms undo exponentials. In calculus the same idea governs , , and . The method works only on a domain where the function is one-to-one, so part of the job is checking — or arranging — that condition before you start the algebra.
The procedure, step by step
- Check the condition. Confirm the function is one-to-one on the given domain, or restrict the domain so that it is. Each output must come from exactly one input. This is also why domain and range switch: the domain of is the range of , and vice versa.
- Swap variables. Write , then exchange and to reverse the roles of input and output.
- Solve for . Rearrange until is alone, then rename it .
- Verify. Check by composition that the function and its inverse undo each other.
A full run-through
Start with a one-to-one function:
Step 1: a line with nonzero slope is one-to-one everywhere, so no restriction is needed. Step 2, write and swap:
Step 3, solve for :
so
Step 4, verify by composition:
Checking the other direction, , confirms it. If both compositions return on the relevant domain, the inverse is correct.
Where each step trips people up
- At "check the condition," skipping it entirely. Run the algebra on over all reals and you get a tidy-looking expression, but no inverse function exists there: and , so the output has two sources. Restrict to and the function becomes one-to-one, with inverse . Without that restriction, calling the inverse is incomplete.
- At "solve for ," confusing with . One undoes a function; the other takes a reciprocal. They are different objects.
- After solving, forgetting the domain–range switch. It matters when you state where the inverse is defined. Self-check: if two functions are inverses, their graphs are reflections across the line . A quick sketch confirms a result makes sense.
FAQ
Run the four steps on : write , swap, solve for , and check by composition. Then try and decide what domain restriction is required before an inverse can exist at all.
Frequently Asked Questions
- Does every function have an inverse?
- No. A function has an inverse function only if it is one-to-one on the domain being used.
- Is $f^{-1}(x)$ the same as $\frac{1}{f(x)}$?
- No. $f^{-1}(x)$ means the inverse function, while $\frac{1}{f(x)}$ means the reciprocal of the output.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →