Inverse functions
Before we move on to inverse functions, we discuss function composition. Suppose we have two functions and ; the composition of and , denoted by , is evaluated by plugging the second function in the first function, as follows
note that the order is important and interchanging the order generally gives a different result. Consider and , then
and
In this case, the compositions are the same, both yielding ,
Choosing a value for and plugging it in the composition of and (or of and ), we end up with that same value of , i.e. for ,
and a similar result is obtained for . Whatever operation the first function does to the value of , the second one undoes it. An inversefunction, denoted by is a rule that undoes 's rule (e.g. addition and subtraction are inverse operations).
A function is one-to-one if whenever i.e. for each value, there exists one unique value. For example, is a 1 - 1 function while on , is not. Inverse functions exist only for functions; if is not , then maps back to more than one value, violating the definition of a function.
Definition 1.1 Given two, one-to-one functions and , if
then is the inverse of , denoted by and is the inverse of , denoted by .
For a 1 - 1 function with domain and range , its inverse has domain and range .
Inverse function theorem
If is strictly increasing or decreasing, then is a 1 - 1 function and invertible. A function is increasing if and strictly increasing if whenever for all and in its domain. Similarly, a function is decreasing if and strictly decreasing if whenever . An example of a strictly increasing function is and an example of a strictly decreasing function over is .
Suppose that we have an increasing function ; then, any tangent drawn to the curve of at any point is positively sloped which implies that the derivative, denoted by (this is the rate of change of with ), is positive . Note that this is a sufficient but
number is positive if it is greater than zero and negative if it is less than zero. A number is nonnegative if it is greater than or equal to zero. not necessary condition for a function to be strictly increasing. For instance, consider ; this is a strictly increasing function since increases as increases. However, is not positive at all values of since at . Increasing and strictly increasing functions never have a negative gradient. Further, strictly increasing functions can have a zero gradient provided that this occurs at what is referred to as an inflection point (like in the example above).
Finding inverses
Given a function (assumed to be ), we want to find the inverse function, . We outline the steps required to construct from next.
For a function , replace every with and every with . Next, solve the resulting equation for . This is the inverse function since . To verify, check that .
Example 1.3 Given , find
Solution We write and replace all 's with and 's with to give . Solving for ,
Replacing with gives the inverse. To verify the result,
and
There is an interesting relationship between the graphs of the functions and . Given a function , to plot the graph of the inverse, we swap the coordinates of every point on the graph. Geometrically, this is represented by reflecting the graph of about the line as shown in Fig. 1.2; this is always the case with the graphs of a function and its inverse.
Derivatives
Derivatives are discussed in detail in Chapter 3; however for the purposes of this section we use the definition of the derivative as a slope of a curve at a point or, simply, the slope of the tangent line.
The derivatives of the function and its inverse are related; if lies on the graph of then lies on the graph of (as shown in Fig. 1.2). The slopes of the tangent lines at the inverse points are reciprocals of each other; this is true for all slopes of inverses. The graph of function is or equivalently so, we have
Figure 1.2: The graph of the inverse of a function is a reflection of about the line . For every point on the graph of , there is a corresponding point on the graph of the inverse function.
Let be a 1 - 1 function that is differentiable on an interval . If is the inverse of and then,
Note that the above result is a consequence of taking the derivative with respect to (wrt) on both sides of
As an example, consider which is a , strictly increasing function with domain, and range, . Its inverse is given by the natural logarithm function denoted by . The domain is all positive numbers and the range is all real numbers.
The natural logarithm is sometimes written as or just log (often in programming languages). Generally, given and with , the logarithm base of , written as gives the exponent to which needs to be raised to obtain . That is, means . It follows that and are inverses.
Back to the natural logarithm, its derivative is
Using Eq. (1.6), we write which is equivalent to ,
Restricting domains
We mentioned that a function needs to be 1 - 1 to have an inverse. A non 1 - 1 function cannot have an inverse over its domain; however, we can define its inverse if we restrict the domain such that the function becomes 1 - 1 . For instance, is not 1 - 1 for . For the restricted functions for and for , we can find an inverse.
Periodic functions such as the trigonometric functions sin, cos, tan cannot be 1 - 1 functions.
Definition 1.2 A function is periodic with period if
for all . The period of is the smallest positive for which the above relation holds.
To invert those functions, we restrict the domain. A conventional choice is to restrict the domain to for and for . Of course other domains can be used, e.g. giving different inverse trigonometric functions. The tangent function (see Fig. 1.3(a) for the graph of in ) can also be inverted by restricting the domain, say to the open interval [this is shown in red in Fig. 1.3(a)]. The values that form the restricted domain are called principal values. Figure 1.3(b) shows the inverse of or (given by ) restricted in the open interval .
(a)
(b)
Figure 1.3: (a) The graph of in . The red part of the graph is in . (b) The inverse of the red part of graph in panel (a) given by ; its range is .
Note on trigonometric functions
Recall the elementary geometric definition of and sine which defines and for .
Using the right triangle shown, we define
We extend the definitions to the endpoints as:
The sine and cosine satisfy the addition formulae,
which can be proven geometrically by stacking two right triangles.
Similarly, we can show,
It is much easier however to prove the addition formulae using complex numbers (see Chapter 7, Section 7.2) or rotation matrices. The addition formulae can be used to extend the definitions of and to any angle. The cosine and sine can also be defined (for any angle) through a polar form. Consider a circle of radius centred at the origin. The coordinates of the point on the circle are
where is the angle (taken anti-clockwise) between the -axis and the line segment joining and (see below).
Using the polar form or the addition formulae.
Combining the two, we have
Similarly,
and consequently,
i.e. the tangent function is periodic with period .