Inverse Functions

Download Maple Worksheet

A function  fis said to be one-to-one  if

[Maple OLE 2.0 Object]      whenever    [Maple OLE 2.0 Object]  

Here is a one-to-one function

[Maple OLE 2.0 Object]

[Maple OLE 2.0 Object]

While the function below is not one-to-one.

[Maple OLE 2.0 Object]

¡@

Horizontal Line test  

A function is one-to-one if and only if no horizontal line intersects its graph more than once. The animation below shows that the function f(x) = exp(x) is one-to-one.

[Maple Plot]

 

¡@

If we reverse the inputs and outputs of the function F  below,

[Maple OLE 2.0 Object]

[Maple OLE 2.0 Object]

we get a new function G  as follows .

[Maple OLE 2.0 Object]

¡@

Notice that for all xin the domain of F , we have

[Maple OLE 2.0 Object]  

and for all yin the domain of G , we have

[Maple OLE 2.0 Object] .


Let  
fbe a one-to-one function with domain A  and range B . Then the inverse function  [Maple OLE 2.0 Object] has domain B and range A and is defined by

[Maple OLE 2.0 Object]

for any yin B.

This says that if
 fmaps xto y, then its inverse function [Maple OLE 2.0 Object] maps yback to x.

In the example above , G  is the inverse function of F .

Does function H have an inverse function? Why?

[Maple OLE 2.0 Object]

¡@

How to find the inverse function [Maple OLE 2.0 Object] of a one-to-one function  f?

Step 1   Write y = f(x).
Step 2
  Solve this equation for xin terms of y.
Step 3  To express
[Maple OLE 2.0 Object] as a function of x, interchange xand y, the resulting equation is [Maple OLE 2.0 Object].

¡@

For example, if we consider the function f(x) = x^3+2 . ( Note that is one-to-one.)

[Maple Plot]

Solving the equation y = x^3+2for xin terms of y,

(y-2)^(1/3), -1/2*(y-2)^(1/3)+1/2*I*sqrt(3)*(y-2)^(1/3), -1/2*(y-2)^(1/3)-1/2*I*sqrt(3)*(y-2)^(1/3)

we get that the inverse function is   g(x) = (x-2)^(1/3) .
The following figure shows the graphs of  
y = x^3+2(red) and y = (x-2)^(1/3)(blue). Note that they are mirror images of each other through the line y = x(green).

[Maple Plot]

¡@

Now we consider what does it mean to invert the sine function. First we note that there is a complication with trigonometric function that did not arise with the functions we have just discussed. The sine function clearly fails the horizontal line test.

[Maple Plot]
¡@

The following figure shows two periods of the sine function (blue) and the result (red) of interchanging xand yin the equation y = sin(x) .

[Maple Plot]
¡@

The problem is that the red curve is obviously not the graph of a function. In order to have an invertible function that takes all the values of the sine function, we restrict the domain of the sine to the interval from -Pi/2to Pi/2.

[Maple Plot]


This restricted sine and its inverse (called arcsine , in Maple we use the command arcsin(x) ) are shown in the next figure.

f := sin (red)

g := arcsin (blue)

[Maple Plot]

¡@

Here are problems to think about:

  1. If we restrict the domain of sine to [ Pi/2, 3*Pi/2], what does the resulting inverse function look like? What is the relation between this inverse function and arcsin(x) ?

By restricting the domain of cosine to the interval from 0to Pi, we invert cosine in the same fashion. The resulting inverse function is called arccosine. Note that the domain of both arcsin(x)and arccos(x)are [ -1, 1 ].

  1. What is the relation between arcsin(x)and arccos(x)?

If 0 < aand [Maple OLE 2.0 Object], the exponential function is either increasing or decreasing and so it is one-to-one. It therefore has an inverse function which is called the logarithmic function with base aand is denoted by [Maple OLE 2.0 Object]. Hence

[Maple OLE 2.0 Object]

and

log[a](a^x) = x   for every [Maple OLE 2.0 Object] ,
a^log[a](x) = x    for every [Maple OLE 2.0 Object] .

Laws of Logarithms

1.   log[a](x*y) = log[a](x)+log[a](y)
2.
log[a](x/y) = log[a](x)-log[a](y)
3.
log[a](x^r) = r*log[a](x)       (where ris any real number)

The logarithm with base eis called the natural logarithm  and has special notation

  log[e](x) = ln(x).

Hence, we have

[Maple OLE 2.0 Object]

ln(exp(x)) = x     for every [Maple OLE 2.0 Object] ,
exp(ln(x)) = x     for every [Maple OLE 2.0 Object] .

In particular,

  ln(e) = 1.


The following figure shows the graphs of  
y = exp(x)(red) and y = ln(x)(blue). Note that they are mirror images of each other through the line y = x(green).

[Maple Plot]


Download Maple Worksheet