Inverse Functions
A reversible heat pump is a climate-control system that is an air conditioner and a heater in a single device. Operated in one direction, it pumps heat out of a house to provide cooling. Operating in reverse, it pumps heat into the building from the outside, even in cool weather, to provide heating. As a heater, a heat pump is several times more efficient than conventional electrical resistance heating.
If some physical machines can run in two directions, we might ask whether some of the function “machines” we have been studying can also run backwards. The diagram below provides a visual representation of this question. In this section, we will consider the reverse nature of functions.
Can a function “machine” operate in reverse?
Verifying that two functions are inverse functions
Betty is traveling to Milan for a fashion show and wants to know what the temperature will be. She is not familiar with the Celsius scale. To get an idea of how temperature measurements are related, Betty wants to convert 75 degrees Fahrenheit to degrees Celsius, using the formula
and substitutes 75 for to calculate
Knowing that a comfortable 75 degrees Fahrenheit is about 24 degrees Celsius, Betty gets the week’s weather forecast for Milan, and wants to convert all of the temperatures to degrees Fahrenheit.
| Mon | Tue | Wed | Thu | |
|---|---|---|---|---|
| High | 26 °C | 29 °C | 30 °C | 26 °C |
| Low | 19 °C | 19 °C | 20 °C | 18 °C |
At first, Betty considers using the formula she has already found to complete the conversions. After all, she knows her algebra, and can easily solve the equation for after substituting a value for . For example, to convert 26 degrees Celsius, she could write
After considering this option for a moment, however, she realizes that solving the equation for each of the temperatures will be awfully tedious. She realizes that since evaluation is easier than solving, it would be much more convenient to have a different formula, one that takes the Celsius temperature and outputs the Fahrenheit temperature.
The formula for which Betty is searching corresponds to the idea of an inverse function, which is a function for which the input of the original function becomes the output of the inverse function and the output of the original function becomes the input of the inverse function.
Given a function , we represent its inverse as , read as “ inverse of .” The raised is part of the notation. It is not an exponent; it does not imply a power of . In other words, does not mean because is the reciprocal of and not the inverse.
The “exponent-like” notation comes from an analogy between function composition and multiplication: just as (1 is the identity element for multiplication) for any nonzero number , so equals the identity function, that is,
This holds for all in the domain of . Informally, this means that inverse functions “undo” each other. However, just as zero does not have a reciprocal, some functions do not have inverses.
Given a function , we can verify whether some other function is the inverse of by checking if both and are true.
For example, and are inverse functions.
and
A few coordinate pairs from the graph of the function are , , and . A few coordinate pairs from the graph of the function are , , and . If we interchange the input and output of each coordinate pair of a function, the interchanged coordinate pairs would appear on the graph of the inverse function.
Inverse function. For any one-to-one function , a function is an inverse function of if . This can also be written as for all in the domain of . It also follows that for all in the domain of if is the inverse of .
The notation is read “ inverse.” Like any other function, we can use any variable name as the input for , so we will often write , which we read as “ inverse of .” Keep in mind that
and not all functions have inverses.
Example. If for a particular one-to-one function and , what are the corresponding input and output values for the inverse function?
Solution. The inverse function reverses the input and output quantities, so if
Alternatively, if we want to name the inverse function , then and . Notice that if we show the coordinate pairs in a table form, the input and output are clearly reversed.
Given that , find .
The inverse swaps input and output, so read the statement backwards.How to: given two functions and , test whether the functions are inverses of each other.
- Determine whether or .
- If both statements are true, then and . If either statement is false, then both are false, and and .
Example. If and , is ?
Solution.
We must also verify the other formula.
so and . Notice the inverse operations are in reverse order of the operations from the original function.
If and , is ?
Substitute one into the other and simplify; the cube and the cube root undo each other.Example. If (the cube function) and , is ?
Solution.
No, the functions are not inverses. The correct inverse to the cube is, of course, the cube root , that is, the one-third is an exponent, not a multiplier.
If and , is ?
Work from the inside out: the and the cancel before the cube.Finding domain and range of inverse functions
The outputs of the function are the inputs to , so the range of is also the domain of . Likewise, because the inputs to are the outputs of , the domain of is the range of . We can visualize the situation as below.
When a function has no inverse function, it is possible to create a new function where that new function on a limited domain does have an inverse function. For example, the inverse of is , because a square “undoes” a square root; but the square is only the inverse of the square root on the domain , since that is the range of .
We can look at this problem from the other side, starting with the square (toolkit quadratic) function . If we want to construct an inverse to this function, we run into a problem, because for every given output of the quadratic function, there are two corresponding inputs (except when the input is 0). For example, the output 9 from the quadratic function corresponds to the inputs 3 and . But an output from a function is an input to its inverse; if this inverse input corresponds to more than one inverse output (input of the original function), then the “inverse” is not a function at all! To put it differently, the quadratic function is not a one-to-one function; it fails the horizontal line test, so it does not have an inverse function. In order for a function to have an inverse, it must be a one-to-one function.
In many cases, if a function is not one-to-one, we can still restrict the function to a part of its domain on which it is one-to-one. For example, we can make a restricted version of the square function with its domain limited to , which is a one-to-one function (it passes the horizontal line test) and which has an inverse (the square-root function).
If on , then the inverse function is .
- The domain of = range of = .
- The domain of = range of = .
Q&A. Is it possible for a function to have more than one inverse?
No. If two supposedly different functions, say, and , both meet the definition of being inverses of another function , then you can prove that . We have just seen that some functions only have inverses if we restrict the domain of the original function. In these cases, there may be more than one way to restrict the domain, leading to different inverses. However, on any one domain, the original function still has only one unique inverse.
Domain and range of inverse functions. The range of a function is the domain of the inverse function .
The domain of is the range of .
How to: given a function, find the domain and range of its inverse.
- If the function is one-to-one, write the range of the original function as the domain of the inverse, and write the domain of the original function as the range of the inverse.
- If the domain of the original function needs to be restricted to make it one-to-one, then this restricted domain becomes the range of the inverse function.
Example. Identify which of the toolkit functions besides the quadratic function are not one-to-one, and find a restricted domain on which each function is one-to-one, if any. The toolkit functions are reviewed below. We restrict the domain in such a fashion that the function assumes all -values exactly once.
| Constant | Identity | Quadratic | Cubic | Reciprocal |
|---|---|---|---|---|
| Reciprocal squared | Cube root | Square root | Absolute value |
|---|---|---|---|
Solution. The constant function is not one-to-one, and there is no domain (except a single point) on which it could be one-to-one, so the constant function has no meaningful inverse.
The absolute value function can be restricted to the domain , where it is equal to the identity function.
The reciprocal-squared function can be restricted to the domain .
We can see that these functions (if unrestricted) are not one-to-one by looking at their graphs, shown below: (a) absolute value and (b) reciprocal squared. They both would fail the horizontal line test. However, if a function is restricted to a certain domain so that it passes the horizontal line test, then in that restricted domain, it can have an inverse.
The domain of function is and the range of function is . What are the domain and range of the inverse function?
An inverse swaps the two sets: what goes in becomes what comes out.Finding and evaluating inverse functions
Once we have a one-to-one function, we can evaluate its inverse at specific inverse function inputs or construct a complete representation of the inverse function in many cases.
Inverting tabular functions
Suppose we want to find the inverse of a function represented in table form. Remember that the domain of a function is the range of the inverse and the range of the function is the domain of the inverse. So we need to interchange the domain and range.
Each row (or column) of inputs becomes the row (or column) of outputs for the inverse function. Similarly, each row (or column) of outputs becomes the row (or column) of inputs for the inverse function.
Example. A function is given below, showing distance in miles that a car has traveled in minutes. Find and interpret .
| (minutes) | 30 | 50 | 70 | 90 |
|---|---|---|---|---|
| (miles) | 20 | 40 | 60 | 70 |
Solution. The inverse function takes an output of and returns an input for . So in the expression , 70 is an output value of the original function, representing 70 miles. The inverse will return the corresponding input of the original function , 90 minutes, so . The interpretation of this is that, to drive 70 miles, it took 90 minutes.
Alternatively, recall that the definition of the inverse was that if , then . By this definition, if we are given , then we are looking for a value so that . In this case, we are looking for a so that , which is when .
Now consider a slightly longer table for the same journey.
| (minutes) | 30 | 50 | 60 | 70 | 90 |
|---|---|---|---|---|---|
| (miles) | 20 | 40 | 50 | 60 | 70 |
Using the table above, find , in miles.
Read the table forwards: 60 is an input, so look for it in the top row.Using the same table, find , in minutes.
Read the table backwards: here 60 is an output, so look for it in the bottom row.Evaluating the inverse of a function, given a graph of the original function
We saw in Functions and Function Notation that the domain of a function can be read by observing the horizontal extent of its graph. We find the domain of the inverse function by observing the vertical extent of the graph of the original function, because this corresponds to the horizontal extent of the inverse function. Similarly, we find the range of the inverse function by observing the horizontal extent of the graph of the original function, as this is the vertical extent of the inverse function. If we want to evaluate an inverse function, we find its input within its domain, which is all or part of the vertical axis of the original function’s graph.
How to: given the graph of a function, evaluate its inverse at specific points.
- Find the desired input on the -axis of the given graph.
- Read the inverse function’s output from the -axis of the given graph.
Example. A function is graphed below. Find and .
Solution. To evaluate , we find 3 on the -axis and find the corresponding output value on the -axis. The point tells us that .
To evaluate , recall that by definition means the value of for which . By looking for the output value 3 on the vertical axis, we find the point on the graph, which means , so by definition, .
Using the graph of above, find .
Find the height 1 on the vertical axis, then read across to the curve and down to the input.Using the same graph, estimate .
The output 4 sits just above the marked point , so the input is a little past 5.Finding inverses of functions represented by formulas
Sometimes we will need to know an inverse function for all elements of its domain, not just a few. If the original function is given as a formula—for example, as a function of —we can often find the inverse function by solving to obtain as a function of .
How to: given a function represented by a formula, find the inverse.
- Make sure is a one-to-one function.
- Solve for .
- Interchange and .
- Replace with . (Variables may be different in different cases, but the principle is the same.)
Example. Find a formula for the inverse function that gives Fahrenheit temperature as a function of Celsius temperature, given .
Solution.
By solving in general, we have uncovered the inverse function. If
then
In this case, we introduced a function to represent the conversion because the input and output variables are descriptive, and writing could get confusing.
Solve for in terms of given .
Undo the operations in reverse: multiply by 3 first, then add 5.Example. Find the inverse of the function .
Solution.
So or .
The domain and range of exclude the values 3 and 4, respectively. and are equal at two points but are not the same function, as the table below shows.
| 1 | 2 | 5 | ||
|---|---|---|---|---|
| 3 | 2 | 5 |
Example. Find the inverse of the function .
Solution.
So .
The domain of is . Notice that the range of is , so this means that the domain of the inverse function is also .
The formula we found for looks like it would be valid for all real . However, itself must have an inverse (namely, ) so we have to restrict the domain of to in order to make a one-to-one function. This domain of is exactly the range of .
What is the inverse of the function ?
Set , isolate the radical, then square both sides.State the domains of and of its inverse.
The domain of the inverse is the range of — and a square root is never negative, so never exceeds 2.Finding inverse functions and their graphs
Now that we can find the inverse of a function, we will explore the graphs of functions and their inverses. Let us return to the quadratic function restricted to the domain , on which this function is one-to-one, and graph it as below.
Restricting the domain to makes the function one-to-one (it will obviously pass the horizontal line test), so it has an inverse on this restricted domain.
We already know that the inverse of the toolkit quadratic function is the square root function, that is, . What happens if we graph both and on the same set of axes, using the -axis for the input to both and ?
We notice a distinct relationship: The graph of is the graph of reflected about the diagonal line , which we will call the identity line, shown below with the square-root function dashed.
This relationship will be observed for all one-to-one functions, because it is a result of the function and its inverse swapping inputs and outputs. This is equivalent to interchanging the roles of the vertical and horizontal axes.
Example. Given the graph of below, sketch a graph of .
Solution. This is a one-to-one function, so we will be able to sketch an inverse. Note that the graph shown has an apparent domain of and range of , so the inverse will have a domain of and range of .
If we reflect this graph over the line , the point reflects to and the point reflects to . Sketching the inverse (dashed) on the same axes as the original graph gives the figure below.
Q&A. Is there any function that is equal to its own inverse?
Yes. If , then , and we can think of several functions that have this property. The identity function does, and so does the reciprocal function, because
Any function , where is a constant, is also equal to its own inverse.
Key concepts
- If is the inverse of , then .
- Each of the toolkit functions has an inverse.
- For a function to have an inverse, it must be one-to-one (pass the horizontal line test).
- A function that is not one-to-one over its entire domain may be one-to-one on part of its domain.
- For a tabular function, exchange the input and output rows to obtain the inverse.
- The inverse of a function can be determined at specific points on its graph.
- To find the inverse of a formula, solve the equation for as a function of . Then exchange the labels and .
- The graph of an inverse function is the reflection of the graph of the original function across the line .
Key terms
inverse function — for any one-to-one function , the inverse is a function such that for all in the domain of ; this also implies that for all in the domain of .
This section is adapted from Precalculus 2e, Section 1.7: Inverse Functions by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated every figure as an accessible inline SVG, including the reversible function-machine diagram and the domain-and-range diagram, and generated every graph from an explicit formula — the source’s unlabelled curves for and for the reflection example are and , fitted to the points the text names; presented Milan’s weather forecast and every function table as Markdown tables, giving the forecast temperatures without the source’s weather icons; drew the inverse or comparison curve dashed where the source distinguishes it by colour; omitted the media links and end-of-section exercises; converted the practice problems (“Try Its”) into interactive exercises with instant feedback, using multiple choice where the answer is a domain, an interval, or a yes/no judgement; and omitted the final sketching practice item, which asks for the pair of graphs the worked example immediately above already shows.