Read an introductory example


The Inverse of a Function

Consider a general function f with domain A and range B. For every y in B, there is at least one number x in A such that y=f(x). If f is one-to-one, there is exactly one x in A such that y=f(x). Because x is unique, we can define a function g from B to A as follows:
x=g(y)y=f(x). As in Figure 1, the function g reverses the correspondence given by f and is called the inverse of f and the process of obtaining g from f is called inversion.

The process of inversion can be applied to any one-to-one function. If f is one-to-one, we often denote its inverse function by f1. The symbol f1 is read “f inverse.”

  • Note that the “1” in the symbol f1 denotes an inverse and not an exponent. In other words f1(y) is NOT the same as 1/[f(y)]. The reciprocal 1/[f(y)] is denoted by [f(y)]1.
    f1(y)1f(y)
Figure 1:The function and its inverse undo the effects of each other.

 

Definition 1: Suppose f is a one-to-one function on a domain A with range B. The inverse function f1 is
defined as follows:
x=f1(y)meansy=f(x) for every y in B.

Domains and Ranges of Inverse Functions

From the above definition, it is clear that the range and domain of f and f1 simply switch!

Dom(f)=Rng(f1) and
Rng(f)=Dom(f1)

 

Example 1
Given the function f has an inverse and f(1)=3, f(2)=4, and f(5)=1, find f1(3),f1(4), and f1(1).
Solution
From Definition 1 we have
f1(3)=1because f(1)=3f1(4)=2because f(2)=4f1(1)=5because f(5)=1
As we can see in the following arrow diagram, the effect of f1 simply undoes the effect of f.

(a) (b)
Figure 2

The following theorem can be used to verify that a function g is the inverse of f.

Theorem 1: Let f be a one-to-one function with domain A and range B, and g be a function with domain B and range A. The function g is the inverse function of f (i.e. g=f1 ) if and only if the following conditions hold:

(1)   g(f(x))=x                 for every x in A=Dom(f)

and

(2)   f(g(y))=y               for every y in B=Dom(g).

Click to Read the Proof

Inverse of Inverse

The above theorem indicates that if g is the inverse of f then the inverse of g is f. In other words the inverse of inverse of f is f, or f and f1 are inverses of each other.

if  g=f1  then  g1=f

Changing the Independent Variable

Note that y in f1(y) simply represents an arbitrary number in the domain of the function f1. There is nothing special about y. Therefore, y can be replaced by any letter that you like such as u,z, or even x! So, instead of f1(y), we may write f1(x). In this case the two conditions of the above theorem can be written as

f1(f(x))=x      for every x in the domain of f

and

f(f1(x))=x       for every x in the domain of f1.

Example 2
Verify that
f(x)=5x3+2andg(x)=x253 are inverses of each other.
Solution

The domain of f and the domain of g are both the entire set of real numbers R. Thus to prove that they are inverse of each other, we have to show that for all x, we have f(g(x))=x and g(f(x))=x:
f(g(x))=f(x253)=5(x253)3+2=5x25+2=x
and
g(f(x))=g(5x3+2)=((5x3+2)253)3=(5x353)3=(x3)3=x.

When Does a Function Have an Inverse?

As explained at the beginning of this section, if a function f is one-to-one, then it has an inverse function; otherwise, it does not. That is,

A function has an inverse function if an only if it is one-to-one 

In Section 2.15, we learned that every monotonic (= increasing or decreasing) function is one-to-one. Thus we can say:

  • Every increasing or decreasing function has an inverse function.

 

Example 3
Determine if each of the following functions has an inverse function.
(a) f(x)=x3+1
(b) h(x)=x3x
Solution
(a) We know how y=x3 looks like. So we can easily sketch the graph of f(x)=x3+1 by shifting the graph of y=x3 upward one unit. From Figure 3(a), it is clear that f is a one-to-one function, so it has an inverse function. Alternatively, we can algebraically show that f is one-to-one. To do so, we have to show that f(x1)=f(x2) implies x1=x2
f(x1)=f(x2)x13+1=x23+1x13=x23x133=x233( take cube roots of both sides)x1=x2

(b) We note that h(x)=x3x=x(x21), and thus h has three real roots 1,0, and 1; that is,
h(1)=h(1)=h(0)=0. Because the value of h at three different values of x is the same, h is not a one-to-one function We may confirm the fact that h is not one-to-one by sketching its graph using a computer or a graphing calculator. As it is clear from the Figure 3(b),the horizontal test is not passed, and hence h is not one-to-one.Therefore, h does not have an inverse function.

(a) Graph of y=x3+1 . The horizontal line test is passed. (b) Graph of y=x3x. The horizontal line test is not passed.

Figure 3

How to Find the Inverse Function

To find the inverse of a one-to-one function y=f(x), we have to solve the equation y=f(x) for x. Solving this equation for x may not be easy if not impossible, but the fact that f is one-to-one assures that there is a unique solution for x in terms of y provided that y lies in the range of f. The process of inversion is more explained through the following examples.

Example 4
Given f(x)=2x5+3, find its inverse function.
Solution
Let y=f(x) and then solve for x in terms of y to find x=f1(y)
2x5+3=y(let y=f(x))2x5=y3x5=y32x=(y32)1/5(bring both sides to the power 1/5)
Therefore, f1(y)=(y32)1/5. Note that y must lie within the range of f. Because f is a polynomial of an odd degree, its range is (,). Therefore, y can be any number, and the domain of f1 is (,) or R

Recall that y in f1(y) represents an arbitrary number in the domain of f1. That is, f1(y)=(y32)1/5 simply means that f1 transforms the input y to the output (y32)1/5. So if you wish to denote the input variable by x instead of  y then just replace every “y” in f1(y) with an “x.” That is,
f1(x)=(x32)1/5.

The steps of finding the inverse of a function can be summarized as

  1. Write down the equation y=f(x).
  2. Solve the equation y=f(x) for x and express x as a function of y: x=g(y)
  3. The equation x=g(y) provides a formula for the inverse function f1; that is, f1(y)=g(y) with y as the independent variable. 
  4. If y is acceptable as the independent variable for f1, you are finished. However, if you wish to denote the independent variable, as usual,  by x, simply replace every y in the formula f1(y) by x to obtain a formula for f1(x). Now as usual, we can show the output of f1(x) by y and write y=f1(x)
Example 5
Given g(x)=2x1, find the inverse of g.
Solution
First let y=g(x) and solve for x in terms of y to find x=g1(y):
2x1=yx=y+12.
Therefore,
x=g1(y)=(y+1)/2. Again we note that y must lie within the range of g. The graph of g is a line which shows that its range is (,) and hence y can be any real number.

We can show the input of g1 by “x” instead of “y”. That is,
g1(x)=x+12. We can easily verify that g(g1(x))=x and g1(g(x))=x.

Example 6
Given h(x)=2x+3, find the inverse of h.
Solution
Let y=h(x) and solve for x in terms of y to find x=h1(y):
2x+3=y2x+3=y2x=y232
Therefore, h1(y)=(y23)/2. We note that y must lie within the range of h. We know that the output of the square root is always nonnegative, and because h(3/2)=0, the range of h is [0,).
Therefore
h1(y)=12(y23),y0.

If we wish, we can replace “y” in h1(y) with “x” and write:
h1(x)=12(x23),x0.

Example 7
Given u(x)=x2+1 (x0), find u1.
Solution
Let y=u(x), solve this equation for x in terms of y to find u1:
x2+1=yx2=y1
Now there are two solutions for x, x=±y1. Because the domain of u is restricted to x0, we choose
x=y1. Therefore, u1(y)=y1. As we can see the range of u is [1,) [simply plot the graph of u to see that], and the domain of u1 is [1,). Again we can denote the independent variable of u1 by “x” instead of “y”. Thus
u1(x)=x1. Note that if we do not restrict the domain of u(x)=x2+1 to negative numbers (or positive numbers), its graph does not pass the horizontal test, which shows, in this case, the function would not be one-to-one and hence would not have an inverse function.

Graph of the Inverse Function

Let’s graph a number of functions we have seen in the examples of this section and their inverses.

(a) f(x)=2x5+3 andf1(x)=(x32)1/5  (b) g(x)=2x1 and g1(x)=x+12 (c) h(x)=2x+3 and h1(x)=12(x23),x0

Figure 4

In these figures, the graphs of each function and its inverse appear to be mirror images of each other with respect to the bisector of the first and third quadrants y=x. Those are not coincidences. If (a,b) is a point on the graph of f, then b=f(a). It follows from b=f(a) that a=f1(b), which means (b,a) is on the graph of f1. A similar argument will verify that if (b,a) is on the graph of f1, then (a,b) will be on the graph of f. We get the point (b,a) from (a,b) by reflecting through the line y=x.

The graphs of a function and its inverse are the reflections of one another through the line y=x
  •  The line y=x is the bisector of the first and third quadrants.
  • Here we have plotted the graph of y=f1(x); that is, if the independent variable is laid off along the horizontal axis (= x-axis) and the dependent variable along the y-axis. But if we plot x=f1(y);
    that is, if the independent variable is marked off along the vertical axis (=y-axis) and the dependent along the x-axis, then the graph of the inverse function x=f1(y) coincides with the graph of y=f(x).
Example 8
Given f(x) is graphed in Figure 5, sketch the graph of f1(x).

Figure 5

Solution
The graph of f1 will be obtained by reflecting the graph of f across the line y=x. The reflection of the point (a,b) across the line y=x is the point (b,a). Because (2,4),(3,2),(4,1) and (5,0.5) are on the graph of f, the points (4,2),(2,3),(1,4), and (0.5,5) are on graph of f1. The graph of f1 is depicted in Figure 6.

Figure 6 : The graph of f (orange) and the graph of its inverse f1 are reflections of one another across y=x.