Login
📚 Precalculus
Chapters ▾

5.2 Inverse Functions

Thinking of a function as a process like we did in Section, in this section we seek another function which might reverse that process. As in real life, we will find that some processes (like putting on socks and shoes) are reversible while some (like cooking a steak) are not. We start by discussing a very basic function which is reversible, f ( x ) = 3 x + 4 . Thinking of f as a process, we start with an input x and apply two steps, as we saw in Section

  1. multiply by 3
  2. add 4

To reverse this process, we seek a function g which will undo each of these steps and take the output from f , 3 x + 4 , and return the input x . If we think of the real-world reversible two-step process of first putting on socks then putting on shoes, to reverse the process, we first take off the shoes, and then we take off the socks. In much the same way, the function g should undo the second step of f first. That is, the function g should

  1. subtract 4
  2. divide by 3

Following this procedure, we get g ( x ) = x 4 3 . Let's check to see if the function g does the job. If x = 5 , then f ( 5 ) = 3 ( 5 ) + 4 = 15 + 4 = 19 . Taking the output 19 from f , we substitute it into g to get g ( 19 ) = 19 4 3 = 15 3 = 5 , which is our original input to f . To check that g does the job for all x in the domain of f , we take the generic output from f , f ( x ) = 3 x + 4 , and substitute that into g . That is, g ( f ( x ) ) = g ( 3 x + 4 ) = ( 3 x + 4 ) 4 3 = 3 x 3 = x , which is our original input to f . If we carefully examine the arithmetic as we simplify g ( f ( x ) ) , we actually see g first `undoing' the addition of 4 , and then `undoing' the multiplication by 3 . Not only does g undo f , but f also undoes g . That is, if we take the output from g , g ( x ) = x 4 3 , and put that into f , we get f ( g ( x ) ) = f ( x 4 3 ) = 3 ( x 4 3 ) + 4 = ( x 4 ) + 4 = x . Using the language of function composition developed in Section, the statements g ( f ( x ) ) = x and f ( g ( x ) ) = x can be written as ( g f ) ( x ) = x and ( f g ) ( x ) = x , respectively. Abstractly, we can visualize the relationship between f and g in the diagram below.

Coordinate-plane figure.
Figure 5.6

The main idea to get from the diagram is that g takes the outputs from f and returns them to their respective inputs, and conversely, f takes outputs from g and returns them to their respective inputs. We now have enough background to state the central definition of the section.

We now formalize the concept that inverse functions exchange inputs and outputs.

Theorem is a consequence of Definition and the Fundamental Graphing Principle for Functions. We note the third property in Theorem tells us that the graphs of inverse functions are reflections about the line y = x . For a proof of this, see Example in Section and Exercise in Section. For example, we plot the inverse functions f ( x ) = 3 x + 4 and g ( x ) = x 4 3 below.

Coordinate-plane figure.
Figure 5.7

If we abstract one step further, we can express the sentiment in Definition by saying that f and g are inverses if and only if g f = I 1 and f g = I 2 where I 1 is the identity function restricted2 to the domain of f and I 2 is the identity function restricted to the domain of g . In other words, I 1 ( x ) = x for all x in the domain of f and I 2 ( x ) = x for all x in the domain of g . Using this description of inverses along with the properties of function composition listed in Theorem, we can show that function inverses are unique.3 Suppose g and h are both inverses of a function f . By Theorem, the domain of g is equal to the domain of h , since both are the range of f . This means the identity function I 2 applies both to the domain of h and the domain of g . Thus h = h I 2 = h ( f g ) = ( h f ) g = I 1 g = g , as required.4 We summarize the discussion of the last two paragraphs in the following theorem.5

The notation f 1 is an unfortunate choice since you've been programmed since Elementary Algebra to think of this as 1 f . This is most definitely not the case since, for instance, f ( x ) = 3 x + 4 has as its inverse f 1 ( x ) = x 4 3 , which is certainly different than 1 f ( x ) = 1 3 x + 4 . Why does this confusing notation persist? As we mentioned in Section, the identity function I is to function composition what the real number 1 is to real number multiplication. The choice of notation f 1 alludes to the property that f 1 f = I 1 and f f 1 = I 2 , in much the same way as 3 1 3 = 1 and 3 3 1 = 1 .

Let's turn our attention to the function f ( x ) = x 2 . Is f invertible? A likely candidate for the inverse is the function g ( x ) = x . Checking the composition yields ( g f ) ( x ) = g ( f ( x ) ) = x 2 = | x | , which is not equal to x for all x in the domain ( , ) . For example, when x = 2 , f ( 2 ) = ( 2 ) 2 = 4 , but g ( 4 ) = 4 = 2 , which means g failed to return the input 2 from its output 4 . What g did, however, is match the output 4 to a different input, namely 2 , which satisfies f ( 2 ) = 4 . This issue is presented schematically in the picture below.

Coordinate-plane figure.
Figure 5.8

We see from the diagram that since both f ( 2 ) and f ( 2 ) are 4 , it is impossible to construct a function which takes 4 back to both x = 2 and x = 2 . (By definition, a function matches a real number with exactly one other real number.) From a graphical standpoint, we know that if y = f 1 ( x ) exists, its graph can be obtained by reflecting y = x 2 about the line y = x , in accordance with Theorem. Doing so produces

Coordinate-plane figure.
Figure 5.9 y = f ( x ) = x 2

  switch  x  and  y  coordinates reflect across  y = x

Figure: ?
Figure 5.10 y = f 1 ( x ) ?

We see that the line x = 4 intersects the graph of the supposed inverse twice - meaning the graph fails the Vertical Line Test, Theorem, and as such, does not represent y as a function of x . The vertical line x = 4 on the graph on the right corresponds to the horizontal line y = 4 on the graph of y = f ( x ) . The fact that the horizontal line y = 4 intersects the graph of f twice means two different inputs, namely x = 2 and x = 2 , are matched with the same output, 4 , which is the cause of all of the trouble. In general, for a function to have an inverse, different inputs must go to different outputs, or else we will run into the same problem we did with f ( x ) = x 2 . We give this property a name.

Graphically, we detect one-to-one functions using the test below.

We say that the graph of a function passes the Horizontal Line Test if no horizontal line intersects the graph more than once; otherwise, we say the graph of the function fails the Horizontal Line Test. We have argued that if f is invertible, then f must be one-to-one, otherwise the graph given by reflecting the graph of y = f ( x ) about the line y = x will fail the Vertical Line Test. It turns out that being one-to-one is also enough to guarantee invertibility. To see this, we think of f as the set of ordered pairs which constitute its graph. If switching the x - and y -coordinates of the points results in a function, then f is invertible and we have found f 1 . This is precisely what the Horizontal Line Test does for us: it checks to see whether or not a set of points describes x as a function of y . We summarize these results below.

We put this result to work in the next example.

We have shown that the functions f and g in Example Example 1 are one-to-one. This means they are invertible, so it is natural to wonder what f 1 ( x ) and g 1 ( x ) would be. For f ( x ) = 1 2 x 5 , we can think our way through the inverse since there is only one occurrence of x . We can track step-by-step what is done to x and reverse those steps as we did at the beginning of the chapter. The function g ( x ) = 2 x 1 x is a bit trickier since x occurs in two places. When one evaluates g ( x ) for a specific value of x , which is first, the 2 x or the 1 x ? We can imagine functions more complicated than these so we need to develop a general methodology to attack this problem. Theorem tells us equation y = f 1 ( x ) is equivalent to f ( y ) = x and this is the basis of our algorithm.

Steps for finding the Inverse of a One-to-one Function

  1. Write y = f ( x )
  2. Interchange x and y
  3. Solve x = f ( y ) for y to obtain y = f 1 ( x )

Note that we could have simply written `Solve x = f ( y ) for y ' and be done with it. The act of interchanging the x and y is there to remind us that we are finding the inverse function by switching the inputs and outputs.

We now return to f ( x ) = x 2 . We know that f is not one-to-one, and thus, is not invertible. However, if we restrict the domain of f , we can produce a new function g which is one-to-one. If we define g ( x ) = x 2 , x 0 , then we have

Coordinate-plane figure.
Figure 5.17 y = f ( x ) = x 2

restrict domain to  x 0

Figure: ,
Figure 5.18 y = g ( x ) = x 2 , x 0

The graph of g passes the Horizontal Line Test. To find an inverse of g , we proceed as usual

y = g ( x ) y = x 2 , x 0 x = y 2 , y 0 switch  x  and  y y = ± x y = x since  y 0

We get g 1 ( x ) = x . At first it looks like we'll run into the same trouble as before, but when we check the composition, the domain restriction on g saves the day. We get ( g 1 g ) ( x ) = g 1 ( g ( x ) ) = g 1 ( x 2 ) = x 2 = | x | = x , since x 0 . Checking ( g g 1 ) ( x ) = g ( g 1 ( x ) ) = g ( x ) = ( x ) 2 = x . Graphing7 g and g 1 on the same set of axes shows that they are reflections about the line y = x .

Coordinate-plane figure.
Figure 5.19

Our next example continues the theme of domain restriction.

Our last example of the section gives an application of inverse functions.

Exercises

In Exercises -, show that the given function is one-to-one and find its inverse. Check your answers algebraically and graphically. Verify that the range of f is the domain of f 1 and vice-versa.

  1. f ( x ) = 6 x 2
  2. f ( x ) = 42 x
  3. f ( x ) = x 2 3 + 4
  4. f ( x ) = 1 4 + 3 x 5
  5. f ( x ) = 3 x 1 + 5
  6. f ( x ) = 2 x 5
  7. f ( x ) = 3 x 1 4
  8. f ( x ) = 1 2 2 x + 5
  9. f ( x ) = 3 x 1 5
  10. f ( x ) = 3 x 2 3
  11. f ( x ) = x 2 10 x , x 5
  12. f ( x ) = 3 ( x + 4 ) 2 5 , x 4
  13. f ( x ) = x 2 6 x + 5 , x 3
  14. f ( x ) = 4 x 2 + 4 x + 1 , x < 1
  15. f ( x ) = 3 4 x
  16. f ( x ) = x 1 3 x
  17. f ( x ) = 2 x 1 3 x + 4
  18. f ( x ) = 4 x + 2 3 x 6
  19. f ( x ) = 3 x 2 x + 3
  20. f ( x ) = x 2 2 x 1
  21. f ( x ) = a x + b , a 0
  22. f ( x ) = a x h + k , a 0 , x h
  23. f ( x ) = a x 2 + b x + c where a 0 , x b 2 a .
  24. f ( x ) = a x + b c x + d , (See Exercise below.)
  25. In Example, the price of a dOpi media player, in dollars per dOpi, is given as a function of the weekly sales x according to the formula p ( x ) = 450 15 x for 0 x 30 .

    1. Find p 1 ( x ) and state its domain.
    2. Find and interpret p 1 ( 105 ) .
    3. In Example, we determined that the profit (in dollars) made from producing and selling x dOpis per week is P ( x ) = 15 x 2 + 350 x 2000 , for 0 x 30 . Find ( P p 1 ) ( x ) and determine what price per dOpi would yield the maximum profit. What is the maximum profit? How many dOpis need to be produced and sold to achieve the maximum profit?
  26. Show that the Fahrenheit to Celsius conversion function found in Exercise in Section is invertible and that its inverse is the Celsius to Fahrenheit conversion function.
  27. Analytically show that the function f ( x ) = x 3 + 3 x + 1 is one-to-one. Since finding a formula for its inverse is beyond the scope of this textbook, use Theorem to help you compute f 1 ( 1 ) , f 1 ( 5 ) , and f 1 ( 3 ) .
  28. Let f ( x ) = 2 x x 2 1 . Using the techniques in Section, graph y = f ( x ) . Verify that f is one-to-one on the interval ( 1 , 1 ) . Use the procedure outlined on Page and your graphing calculator to find the formula for f 1 ( x ) . Note that since f ( 0 ) = 0 , it should be the case that f 1 ( 0 ) = 0 . What goes wrong when you attempt to substitute x = 0 into f 1 ( x ) ? Discuss with your classmates how this problem arose and possible remedies.
  29. With the help of your classmates, explain why a function which is either strictly increasing or strictly decreasing on its entire domain would have to be one-to-one, hence invertible.
  30. If f is odd and invertible, prove that f 1 is also odd.
  31. Let f and g be invertible functions. With the help of your classmates show that ( f g ) is one-to-one, hence invertible, and that ( f g ) 1 ( x ) = ( g 1 f 1 ) ( x ) .
  32. What graphical feature must a function f possess for it to be its own inverse?
  33. What conditions must you place on the values of a , b , c and d in Exercise in order to guarantee that the function is invertible?

With help from your classmates, find the inverses of the functions in Exercises -.

Answers

  1. f 1 ( x ) = x + 2 6
  2. f 1 ( x ) = 42 x
  3. f 1 ( x ) = 3 x 10
  4. f 1 ( x ) = 5 3 x + 1 3
  5. f 1 ( x ) = 1 3 ( x 5 ) 2 + 1 3 , x 5
  6. f 1 ( x ) = ( x 2 ) 2 + 5 , x 2
  7. f 1 ( x ) = 1 9 ( x + 4 ) 2 + 1 , x 4
  8. f 1 ( x ) = 1 8 ( x 1 ) 2 5 2 , x 1
  9. f 1 ( x ) = 1 3 x 5 + 1 3
  10. f 1 ( x ) = ( x 3 ) 3 + 2
  11. f 1 ( x ) = 5 + x + 25
  12. f 1 ( x ) = x + 5 3 4
  13. f 1 ( x ) = 3 x + 4
  14. f 1 ( x ) = x + 1 2 , x > 1
  15. f 1 ( x ) = 4 x 3 x
  16. f 1 ( x ) = x 3 x + 1
  17. f 1 ( x ) = 4 x + 1 2 3 x
  18. f 1 ( x ) = 6 x + 2 3 x 4
  19. f 1 ( x ) = 3 x 2 x + 3
  20. f 1 ( x ) = x 2 2 x 1
    1. p 1 ( x ) = 450 x 15 . The domain of p 1 is the range of p which is [ 0 , 450 ]
    2. p 1 ( 105 ) = 23 . This means that if the price is set to $ 105 then 23 dOpis will be sold.
    3. ( P p 1 ) ( x ) = 1 15 x 2 + 110 3 x 5000 , 0 x 450 . The graph of y = ( P p 1 ) ( x ) is a parabola opening downwards with vertex ( 275 , 125 3 ) ( 275 , 41.67 ) . This means that the maximum profit is a whopping $ 41.67 when the price per dOpi is set to $ 275 . At this price, we can produce and sell p 1 ( 275 ) = 11 . 6 ¯ dOpis. Since we cannot sell part of a system, we need to adjust the price to sell either 11 dOpis or 12 dOpis. We find p ( 11 ) = 285 and p ( 12 ) = 270 , which means we set the price per dOpi at either $ 285 or $ 270 , respectively. The profits at these prices are ( P p 1 ) ( 285 ) = 35 and ( P p 1 ) ( 270 ) = 40 , so it looks as if the maximum profit is $ 40 and it is made by producing and selling 12 dOpis a week at a price of $ 270 per dOpi.
  21. Given that f ( 0 ) = 1 , we have f 1 ( 1 ) = 0 . Similarly f 1 ( 5 ) = 1 and f 1 ( 3 ) = 1

Adapted from Precalculus, 3rd corrected edition, by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.