Functions and Models: Inverse Functions and Logarithms
Vocabulary
inverse function, one-to-one, injective, horizontal line test, laws of logarithms, natural logarithm, common logarithm, change of base formula
Objectives
Lecture Outline
The Idea of Inverse
Some functions have effects which are reversible. For example, the function which adds 3 to an input
has its effect reversed by the function which subtracts 3 from an input. Functions whose effects can be reversed are said to be invertible. Other examples of invertible functions include
, and
.
Not all functions are invertible. Functions such as
or
do not have inverses. In each of these cases, the function takes on some values more than once. The effect of each function is not reversible because we have no way of knowing a priori what value of
gives rise to the observed effect of the function on
.
When does a function have an inverse?
If a function never takes on the same value twice, then it has an inverse.
Algebraic Criterion: One-to-One
Definition: A function f is one-to-one if it never takes on the same value twice; that is,
does not equal
whenever
does not equal
.
A function has an inverse if and only if the function is one-to-one. Hence each of our previous examples of invertible functions is also an example of a one-to-one function. The functions
, and
are all one-to-one.
Visual Criterion: the Horizontal Line Test
Often it will be expedient to determine whether a function is one-to-one by examining its graph. The Horizontal Line Test states that a function is one-to-one if and only if no horizontal line intersects its graph more than once.
Let us apply the horizontal line test to verify that
, and
are all one-to-one.
> f:=x->x^3;
> g:=x->1/x;
> h:=x->(x+1)/(x+2);
> plot([f(x),2],x=-2..2);
> plot([g(x),-0.5],x=-10..10,y=-1..1,discont=true);
> plot([h(x),1],x=-8..5,y=-5..5,discont=true);
In each case, every horizontal line intersects the graph of the function at most once (sometimes, the horizontal line does not intersect the graph at all).
Since we know that
does not have an inverse, its graph must fail the Horizontal Line Test.
> f:=x->x^2;
> plot([f(x),3],x=-2..2);
As can be seen in the plot, the horizontal line
intersects the graph of f in two distinct points.
How does one find the inverse of a one-to-one function?
Algebraic Method
There is a three step method which is often useful for determining the formula for the inverse of a given function
.
Step 1:
Write
.
Step 2:
Solve for
in terms of
.
Step 3:
The last equation in Step 2 represents the inverse of f as a function of
. Switch the variables
and
to obtain a representation of the inverse of f as a function of
.
Example:
Find the inverse of
.
Solution
Graphing f and applying the horizontal line test reveals that f is indeed one-to-one and so has an inverse.
Step 1:
Step 2: We solve for
algebraically:
Step 3: Switching the variables
and
in the last equation, we have
.
Visual Method: Reflection across the line y=x
Given the graph of an invertible function, we can find the graph of the inverse of the function by reflecting across the line y = x.
Example:
Compare the graphs of
and
.
Solution
> plot1:=plot(x^3+1,x=-2..2,y=-1.5..1.5,color=red):
> plot2:=plot(surd(x-1,3),x=-2..2,y=-1.5..1.5,color=blue):
> plot3:=plot(x,x=-2..2,y=-1.5..1.5,color=green):
> plots[display]({plot1,plot2,plot3});
Note that the graph of the inverse of f (shown in blue) is the reflection of the graph of f (shown in red) across the line y = x (shown in green).
Logarithmic Functions
Inverse of Exponential Functions
Consider an elementary exponential function
as introduced in Section 1.5. Every exponential functions is either strictly increasing or strictly decreasing. Hence every exponential function is one-to-one and has an inverse. The inverse of
is the logarithmic function with base
, denoted by
.
By the definition of inverse we thus have that
and
.
Examples:
1.
since
.
2.
since
.
3.
since
(that is, the cube root of 8 is 2).
Laws of Logarithms
It will be useful in the future to be able to compress sums or differences of logarithmic expressions into a single logarithmic quantity. The Laws of Logarithms provide us with means to accomplish this compression.
We suppose that
are positive numbers.
1.
2.
3.
Examples:
1.
since we can use the second law to rewrite
, which is
.
2.
since we can rewrite
and apply the first law to obtain
.
Common and Natural Logarithms
Many scientific and mathematical texts preferentially use particular bases in logarithms. The common logarithm,
, often appears when metric measurements are used. The natural logarithm,
, is often abbreviated to
in mathematical writing. As we will see, it is possible to express any logarithm
in terms of any desired base
.
Change-of-Base Formula
The change-of-base formula states that
. In particular, if we take the base
, the change-of-base formula may be written as
. In this course, we will favor use of the natural logarithm since it is easier to perform calculations with logarithms to the base
.