Inverse Functions Advanced. This lesson goes beyond core Algebra I. You can skip it.
Progress can't be saved in this browser, so this lesson's status can't be set.
Learning goals
- Swap input and output, algebraically and in a diagram, to build the inverse
- Read as the inverse, never the reciprocal
- Trade domain for range between a function and its inverse
- Apply the horizontal line test to spot a one-to-one rule
- Verify a pair by composing both ways to
Undoing what a function does
Take . It sends to and to . Subtracting three reverses those pairings: returns to , and returns to . Thus is the inverse of .
The forward pair becomes the inverse pair . An inverse swaps the input and output in every pair. The original outputs become the inverse’s allowed inputs.
The inverse of has its own symbol, , read aloud as ” inverse.” It is defined to undo , and “undo” can be stated precisely in two directions. If you run and then run , you return to the input you started with, for every in the domain of :
Reading from the inside out, turns into , and turns that back into . The reverse order must work too. If you start with any in the domain of (the range of ), you again come back to the start:
Together, the two equations say that and cancel each other, whichever one you apply first. For and , check both directions:
Adding three and then subtracting three lands you back where you began, and so does subtracting first and then adding.
Check your understanding
A function pairs its input and output like this: , , , the same kind of pairing shown in the diagram above. Which pairs belong to ?
The inverse swaps every pair, exactly as the diagram swapped 5 and 8: whatever was the input becomes the output, and whatever was the output becomes the input. So ties back to , back to , and back to , the original pairs read the other way.
The superscript that is not a reciprocal
For numbers, a raised means a reciprocal, as in . That can make look like . In function notation, however, names the function that undoes .
There is a useful analogy. A nonzero number times its reciprocal gives : . For functions, composition plays the role of multiplication: applying and then returns every allowed input of unchanged, just as multiplying by leaves a number unchanged. The operations differ, so the inverse function and the reciprocal are different objects.
Make the difference concrete. For , the inverse function is , while the reciprocal is . At ,
One returns the input that produced the output ; the other is one over the output that gives at , and it does not undo . Whenever you see , read “the function that reverses ,” never “one over .”
Check your understanding
Let , so that . What is ?
The expression is the reciprocal of the output, so drop the rule for into the denominator.
The inverse undoes the rule; the reciprocal just flips the output into a fraction.
Finding an inverse: swap, then solve
To find an inverse algebraically, write , swap and , then solve for . The swap turns each (input, output) pair into (output, input). Solving tells you how to recover the old input from the old output. You must still check that the reversal is a function: some rules send two inputs to the same output and cannot be undone.
Try it on . First, a few input-output pairs:
| input | |||
|---|---|---|---|
| output |
The inverse takes each output back to its input, so its pairs run the other way: , , . Write the output as :
Now swap their roles: the old output is the new input, and the old input is the value to recover.
Solve this for by subtracting three and dividing by two:
Rename the result, and the inverse is . The rule “double, then add three” is undone by “subtract three, then halve”: the steps come in reverse order, and each one is undone.
Worked example 1 Inverting a simple rational,
This rule subtracts three and then takes the reciprocal, and it accepts every input except , where the denominator would be zero. Find its inverse the same way. Start from
Swap and :
Solve for . Taking the reciprocal of both sides clears the fraction, and then add three:
So , with . The original function excludes input and never produces output ; its inverse excludes input and never produces output . This is a swap of domain and range, as the next section explains. Check one direction for every allowed input :
(A later section shows why checking the other direction, , matters too.)
Check your understanding
What is the inverse of ?
Write , swap and , then solve for .
So . Check it: .
Domain and range trade places
An inverse exchanges domain and range because it exchanges the two entries of every pair: the old outputs become inputs, and the old inputs become outputs. Therefore
- the domain of is the range of (the old outputs are the new inputs), and
- the range of is the domain of (the old inputs are the new outputs).
For , the domain excludes . The range excludes , since a reciprocal cannot be zero. Every other output is reached: choose , which is allowed when , and then . So its range is exactly all real numbers except .
The inverse therefore has domain all real numbers except and range all real numbers except .
Check your understanding
Suppose has an inverse, domain all numbers except and range all numbers except . What are the domain and range of ?
The domain of is the range of , and the range of is the domain of : the two trade places. Since excludes from its domain and from its range, excludes from its domain and from its range.
When a function has no inverse
An inverse function cannot exist when two different inputs give the same output. For on all real numbers, both and give :
An inverse would have to send the output back to the input it came from, but here came from two inputs. Should be or ? Neither choice reverses both original pairs. A function is allowed only one output per input, and this would force the single input to have two outputs. So squaring on all numbers has no inverse function.
A function is one-to-one when different inputs always give different outputs, that is, when no two inputs share an output. Squaring fails to be one-to-one because and collide. A line like is one-to-one, because two different inputs, stretched and shifted the same way, stay different. In fact a function has an inverse function exactly when it is one-to-one: two colliding inputs always block a reversal, the way and just did, and if each output comes from exactly one input, sending it back gives one answer each time.
The horizontal line test
The vertical line test from What Is a Function? asks whether each input has at most one output. To test whether a function is one-to-one, ask the reverse question: does each output come from at most one input?
A horizontal line collects points with the same output . If it meets a function’s graph twice, two different inputs share that output. Therefore a function is one-to-one exactly when every horizontal line meets its graph at most once. First establish that the graph is a function; then the horizontal line test tells you whether that function has an inverse.
The rising line passes because it never returns to a height. The parabola fails because the marked horizontal line meets it twice. For , the height gives the earlier example: the two crossings have inputs and .
Check your understanding
The graph of makes a V shape: it touches at and rises in a straight line on both sides. Apply the horizontal line test using the line . How many times does that horizontal line cross the graph, and what does it show?
Both and give , so the horizontal line crosses the V twice. Two crossings mean two different inputs share the output , so on all real numbers is not one-to-one and has no inverse function, the same kind of collision squaring has at every positive output.
A function that fails the test can often be repaired by shrinking its domain until it is one-to-one. Squaring collides because every positive output has two inputs that reach it, a positive one and its negative; only the output is different, since it comes from the single input . Throw away the negative inputs, keeping for , and every output now comes from a single nonnegative input. On that restricted domain squaring is one-to-one, and its inverse is the square root.
Worked example 2 An inverse on a restricted domain
Find the inverse of with the domain restricted to .
With the domain restricted, the rule is one-to-one, so an inverse function exists. Swap and solve, watching the restriction travel with the variable. Start from
Swap and . The condition was a statement about the input of , which becomes the output of , so it attaches to :
Solve for . When , two numbers square to , namely and ; when , the only number that squares to it is itself. Either way, the restriction keeps only the nonnegative choice:
So . Without the restriction, would give two values of for each positive , so it would not be a function. You can often do the same with other rules that fail the horizontal line test: cut the domain down to a piece on which the rule is one-to-one, then invert that piece.
Check your understanding
Which of these functions is one-to-one on all real numbers, so that it has an inverse function?
A function is one-to-one when no two different inputs share an output, which for a graph is the horizontal line test. The line always rises as grows, so it never returns to a height it already reached, and every horizontal line meets it exactly once. The two squaring rules send and to the same output, and the constant rule sends every input to , so those three are not one-to-one.
Verifying an inverse by composition
To check whether and are inverses, verify that they undo each other in both orders:
These are compositions, the operation from the last lesson, so verifying an inverse is just building the two composite functions and checking that each one collapses to , on every input the inside function actually accepts. Both directions are required: one can hold while the other fails, and then the two functions are not inverses.
Worked example 3 Checking a pair in both directions
Show that and are inverses, then see why checking one direction alone is not enough.
Build both compositions. For , drop the whole rule for into :
For , drop the whole rule for into :
Both directions give , so and are inverses.
To see why both were worth checking, look at a pair that passes one test and fails the other. Take on all numbers and . One direction works:
valid for every that accepts. But the other direction breaks:
which is not for negative inputs. At it gives , not . The square root cannot recover the sign that squaring destroyed. Because fails, squaring on all numbers and the square root are not inverses. This is what the one-to-one test predicts, since squaring on all numbers is not one-to-one. Both directions hold only when squaring is restricted to , so that no sign is lost.
Check your understanding
Take for every real number , and . It is true that for every . To show that and are not actually inverses, which input would you plug into to reveal the problem?
Plugging in a positive number does not reveal anything wrong: , right back where it started. The direction that fails needs a negative input, since squaring destroys the sign and the square root can never restore it. At : , not . Checking only would have missed this, which is why both directions have to be checked before calling two functions inverses.
Running a process backward
An inverse lets you recover a starting value from a known result. Keep the units and allowed values with each direction.
Worked example 4 Recovering the input from the output
A phone plan charges a fixed dollars per month plus dollars for each minute of calls, so the monthly cost for minutes, , is . A bill comes to dollars. Find a formula that recovers the minutes from the cost, and use it.
The cost function runs forward, minutes in and dollars out. You want the reverse, dollars in and minutes out, which is the inverse. Write the cost as and solve for :
So the inverse is , which is . Since , the model only ever produces a cost , so this inverse is meant for bills of dollars or more. Apply it to the dollar bill:
The bill accounts for minutes. Check it forward: dollars, the original bill.