Precalculus
Inverse Functions: How to Find, Graph and Verify an Inverse
By MathSolver Pro Editorial Team · Published
An inverse function undoes what the original function does. If sends 2 to 7, its inverse sends 7 back to 2. This guide explains when an inverse exists, how to find its formula, and how to check it.
What an inverse function does
A function takes an input and produces an output. Its inverse, written , runs the process backwards: it takes an output of and returns the input that produced it. If , then . Doing one and then the other brings you back where you started.
A simple everyday example is temperature conversion. The function converts Celsius to Fahrenheit. Its inverse, , converts back. Feeding 37 degrees Celsius into the first gives 98.6 degrees Fahrenheit, and feeding 98.6 into the second returns 37.
The notation needs care. The in is not an exponent. The inverse function is different from the reciprocal . For , the inverse is , but the reciprocal is .
When does an inverse exist?
Reversing a function only works if each output came from exactly one input. Such a function is called one-to-one, or injective. If two different inputs give the same output, there is no way to know which input to return, so no inverse function exists on that domain.
The function fails this test on all real numbers, because . Asked to undo 9, an inverse would not know whether to return 3 or . Graphically, this is the horizontal line test: a function is one-to-one exactly when no horizontal line crosses its graph more than once. The line crosses the parabola twice, so the parabola fails.
Functions that are always increasing or always decreasing pass automatically. Linear functions with non-zero slope, , and are all one-to-one on their natural domains.
How to find an inverse algebraically
- Replace with .
- Swap and everywhere.
- Solve the new equation for .
- Replace with and state its domain, which is the range of .
Example 1:
- Write and swap: .
- Solve: , so .
- Check: .
Example 2:
- Swap: , so .
- Take the cube root: , defined for every real .
- Check at a point: and .
Example 3:
- Swap: .
- Multiply up: , so .
- Factor out : , so .
- Domains swap with ranges: has domain and range , while has domain and range .
When appears more than once after swapping, collect all the terms on one side and factor out, exactly as in Example 3.
Restricting the domain
A function that is not one-to-one can still have an inverse if you restrict its domain to a piece where it is. This is how square roots and inverse trigonometric functions are defined.
Restricting to keeps only the right half of the parabola, which is one-to-one. Its inverse is for . Choosing instead would give .
Example 4: with
- On the function is increasing, with range .
- Swap: , so .
- Take the square root. Because , choose the positive root: .
- So with domain .
Inverse trigonometric functions work the same way. Sine is not one-to-one, so is defined as the inverse of sine restricted to . That is why , not : the answer must lie in the restricted interval.
Exponentials and logarithms
The most important inverse pair in precalculus is and : for every real , and for . More generally, is the inverse of . The guide on logarithms builds all of their rules from this fact.
Example 5:
- Swap: , so .
- Take natural logs: .
- So for , matching the range of .
Graphs of inverse functions
Because an inverse swaps inputs and outputs, every point on the graph of becomes the point on the graph of . Geometrically, swapping coordinates is a reflection in the line . So the graph of an inverse is the mirror image of the original graph across that diagonal line.
This gives a quick way to sketch an inverse and a useful check: the graphs of and are reflections of each other, as are and . Features swap too. A horizontal asymptote of becomes a vertical asymptote of , which is exactly what happened in Example 3. Plotting both functions with the line on the graphing calculator makes the symmetry clear.
Verifying an inverse
To prove two functions are inverses, compose them in both orders and simplify. If both compositions equal on the relevant domains, the functions are inverses. For Example 3:
A faster informal check is to pick one input, apply , then apply your inverse and see whether you get the input back. It does not prove the formula is right, but it catches most errors. Composition is explained in more detail in the guide to function composition.
Inverses in calculus
If is differentiable and one-to-one, the slope of the inverse at a point is the reciprocal of the slope of at the matching point. If and , then:
For , we have and , so and . This works even though finding a formula for would be very difficult. It is the reason the derivative of is , since is the inverse of .
Common mistakes
- Treating as .
- Forgetting to swap and , which just rearranges the original function.
- Finding a formula for a function that is not one-to-one without restricting its domain.
- Choosing the wrong sign of a square root after restricting the domain.
- Not stating the domain of the inverse, which should equal the range of the original.
The inverse function calculator shows the swap and solve steps and checks the result by composition.
Inverses from tables and in applications
You do not always need a formula. If a table lists a one-to-one function, its inverse is found by swapping the two columns. Suppose a delivery company charges by weight, and its price table shows that 1 kilogram costs 6 dollars, 2 kilograms cost 9 dollars and 3 kilograms cost 12 dollars. The inverse table answers the opposite question: given what a customer paid, how heavy was the parcel? A payment of 9 dollars means 2 kilograms. If two weights had the same price, the inverse question would have no single answer, which is the one-to-one condition appearing in a practical setting.
Many real formulas are used in both directions. A loan calculator computes the monthly payment from the amount borrowed, and its inverse tells you how much you can borrow for a payment you can afford. A recipe scaled by servings can be inverted to find how many servings a given amount of flour makes. In science, a calibration curve turns a known concentration into an instrument reading, and the inverse turns a measured reading back into a concentration. Each time, the inverse is useful precisely because the original relationship is one-to-one over the range of values that matter.
Seeing inverses this way also makes the algebraic steps feel natural. Swapping and is just a compact way of saying that the roles of input and output have been exchanged, and solving for is answering the reverse question.
Frequently asked questions
Is the inverse the same as the reciprocal?
No. The inverse function undoes , while the reciprocal divides 1 by its output. For , the inverse is but the reciprocal is .
How can I tell from a graph if an inverse exists?
Use the horizontal line test. If some horizontal line crosses the graph more than once, the function is not one-to-one and has no inverse unless you restrict its domain.
Why do the domain and range swap?
Because the inverse takes outputs of as its inputs and returns inputs of as its outputs. Whatever values can produce become exactly the values the inverse accepts.
Does every linear function have an inverse?
Every linear function with does, and the inverse is . A constant function, where , sends every input to the same output, so it has no inverse.