Chapter 16 Composite and inverse functions
Section 16.1 Composite functions
The examples in Section 14.2 all had a similar pattern to the initial approach: we made a substitution for based on recognizing an inner component and an outer component to the function. For example, for
from Example 14.2.4, the inner component is the sine function and the outer component is a power function. For
from Example 14.2.5, the inner component is a polynomial function and the outer component is the square root component. It is just a matter of changing perspective on the function from a single input-output process to a chain of two (or more) input-output processes.
Example 16.1.3. Composing a polynomial with a root.
Example 16.1.4. Transformations are compositions with a linear function.
More important than computing composite functions is recognizing an existing function as a composite.
Example 16.1.5. Recognizing a composite function.
We can also have compositions of more than two functions.
Example 16.1.6. A composition of four functions.
Finally, here is a version of the Chain Rule in terms of composition of functions.
Pattern 16.1.7. Chain Rule.
Justification.
If we set then we may regard the composite
as required.
Section 16.2 Inverse functions
Example 16.2.1. Outputs as inputs.
Suppose a reservoir is filled with water to a depth of 3 m. A period of steady, heavy rain begins, and it is observed that the depth of water is increasing by 50 cm⁄h. Knowing that a constant variation must mean a linear quantity, we can create quantity model
for the depth of water in metres at time hours after it began raining.
With our model expressed as a function of time, we can directly answer questions like “What will the depth be 1 h after the rain began?” But often we want to answer questions like “If it keeps raining at this rate, how long until the reservoir overflows?” In other words, “How long must it rain at this rate for the water to reach a specific depth ” To answer this type of question directly, we need a formula where is the input and is the output:
Not every function can be “inverted” as in Example 16.2.1. To isolate the old independent variable, we need to be able to “undo” whatever operations have been applied. The key is to recognize that in special situations, computing a composition has a simplifying effect.
Example 16.2.2. Undoing cube and cube root.
Definition 16.2.3. Inverse functions.
A function for which a corresponding inverse exists is called intertible.
Remark 16.2.4. Inverses are unique.
Not every function has an corresponding inverse function, but when a function does have an inverse, that inverse function is unique in the sense that no other function can be an inverse for
Because an invertible function has only one unique inverse function, we can unambiguously write to mean the inverse function for , and the requirements of Definition 16.2.3 become
Warning 16.2.5.
In this case, the negative exponent in does not mean reciprocal. A reciprocal is a type of inverse, since division is the reverse process to multiplication. But function inverses are more general, as not every function involves a multiplication process. So, in general, does not mean
Example 16.2.6. Cube and cube root are inverse functions.
We can now say that Example 16.2.2 demonstrates that the cube and cube-root functions are inverses of each other. That is, if then Or if we write then
Pattern 16.2.7. A function is the inverse of its inverse.
Some functions don’t have an inverse function, even when is seems like they should.
Example 16.2.8. Square and square root.
The problem in Example 16.2.8 is that in the first calculation, we must use the domain of the square root function, since makes the formula undefined. But in the second calculation, we assume that we are using the domain of the square function, and in that case negative are permitted but do not result back at when composed. For example,
We will fix this problem later in this chapter, so that the square root function is the inverse of a version of the square function.
If we suspect a function is invertible but don’t know an inverse function for it, is there a way we can attempt to compute an inverse? Consider again the example of cube and cube root. The two equalities
both state the same relationship between the numbers and It’s only the point of view that has changed: in the first equality we think of as the input into the cube process with as the corresponding output, whereas in the second equality we think of as the input into the cube-root process with as the corresponding output. This reveals why composing the two processes together returns us back to where we started:
So in an inverse function, input-to-output relationships are reversed, This tells us how to attempt to compute an inverse function formula: interchange the roles of input and output, just as in Example 16.2.1.
Example 16.2.10. Computing an inverse function formula.
Consider the function
If is invertible, then, exactly as in (✶), the inverse function should maintain the same relationship between input and output just with their roles reversed:
In this form, the relationship between and is preserved, but with expressed as a formula in we can view as the input and as the output.
The reversed formula above tells us the formula for the inverse function:
If we consider an input-output formula as a sequence of calculation instructions (paying proper mind to BEDMAS), it makes sense that these two formulas are inverse: to compute an output for one must
- multiply the input by
- then add
to that result - then compute the cube of that result,
whereas to compute an output for one must
- compute the cube-root of the input,
- then subtract
from that result - then divide that result by
Notice that the two sequences of operations involve the opposite operations in the reverse order, which confirms that if we bothered to compute both compositions, we should find
as required by Definition 16.2.3.
Section 16.3 One-to-one functions
How can we tell whether a function is invertible in the first place?
Example 16.3.1. A function without an inverse.
If we try to apply the same procedure as in Example 16.2.10 to
we run into a problem: there are two different ways we could isolate If we set
then certainly can’t be negative and we can take its square root. But there are two different numbers whose square is the right-hand side above:
Neither function
will universally satisfy
Example 16.3.2. A function that really, really doesn’t have an inverse.
The equality
is actually stating the purpose of an inverse function: to answer the question “Given an output what input produced it?” The reason that Example 16.2.10 works but Example 16.3.1 and Example 16.3.2 don’t is that in that first example, every output value can be traced back to a single corresponding input value but in the other two examples some output values could correspond to two or more input values.
Definition 16.3.3. One-to-one function.
A function is called one-to-one if for every output value in the range of there is one and only one corresponding input value so that
Warning 16.3.4. Don’t get mixed up!
A common mistake is to mix up the above definition with the statement every input produces exactly one output, but every function does that! (That is the idea behind the Vertical Line Test.) The correct (shortened) version of Definition 16.3.3 is to say that a function is one-to-one if every output is produced by exactly one input.
Example 16.3.5. A shifted cube function is one-to-one.
The range of the function is all of and for each output value in that range, there is exactly one input that produces that output.
Example 16.3.7. The sine function is not one-to-one.
The range of the function is but there are output values in that range which have many corresponding input values. For example, occurs at positive inputs
and also at negative inputs
The diagrams in Figure 16.3.6 and Figure 16.3.8 suggest a graphical test for the property of one-to-one.
Pattern 16.3.9. Horizontal Line Test.
A function is one-to-one if its graph exhibits the following property: a horizontal line that intersects the graph must do so only once.
Remark 16.3.11.
In the Horizontal Line Test, it’s fine if there are horizontal lines that do not intersect the graph at all — this just indicates that -value at the height of that line is not in the range of the function. But if some horizontal line intersects the graph more than once, then those different intersection points represent input-output pairs with the same output value but different input values, as in Figure 16.3.10.
Example 16.3.12. The square function fails the Horizontal Line Test.
The function fails the Horizontal Line Test for many horizontal lines. In fact, every horizontal line at height will intersect the graph twice.
The one-to-one property is exactly what lets us form an inverse function.
Fact 16.3.14. A one-to-one function is invertible.
Every one-to-one function is invertible, where for the inverse function precisely when for the original function. In this case the inverse function is also one-to-one, with
And because creating an inverse function is essentially interchanging the roles of input and output variables, we have the following further properties.
Pattern 16.3.15. Domain and range of an inverse function.
The domain of an inverse function is precisely the range of the of the original function and the range of an inverse function is precisely the domain of the original function.
Section 16.4 Graph of an inverse function
If creating an inverse function interchanges the roles input and output variables, then creating the graph of an inverse function interchanges the horizontal and vertical axes.
Pattern 16.4.1. Graphs of inverse functions are reflections.
Example 16.4.2. Graphs of the natural logarithm and exponential functions.
The graph of the natural logarithm clearly passes the Horizontal Line Test. We have previously explored how the graph of the natural exponential function lines up with the reflection of the graph of the natural logarithm in the line (See Pattern 9.3.7.)
When we reflect in the line a horizontal line becomes a vertical line. So when we verify the Horizontal Line Test for an invertible function it is equivalent to verifying the Vertical Line Test for its inverse function.
Example 16.4.4. Restricting the domain to create an invertible function.
We know that the square function fails the Horizontal Line Test, but we also know that the square root function is sort of like an inverse function for the square function.
As we see in Figure 16.4.5.(a), the graph of is in fact the reflection of part of the graph of and the graph of passes the Vertical Line Test because the “bottom half” of this sideways parabola is not actually part of the graph. This indicates how we should “fix” the square function so that the square root function is actually its inverse: just remove the “left” half of the upright parabola. In other words, suppose we create a new square function with a restricted domain that cuts off the portion of the graph that is causing the Horizontal Line Test to fail:
Then the new graph of this new function becomes one-to-one and hence the function is invertible. And, in fact,
We have fixed also fixed the problem where
(as in Example 16.2.8). When we now compute we assume that is in the domain of which has been restricted to In that case,
Section 16.5 Derivative of an inverse function
If the graphs of a function and its inverse are related as in the previous section, then slopes on the graphs should also be related.
Example 16.5.1. Derivatives of the cube and cube root functions.
Even though Pattern 12.4.3 allows us to directly compute formulas for the derivatives of both and let’s explore the relationship between their derivatives.
To compute a Derivative value like from the definition, we should first approximate that instantaneous rate with an average rate calculation over a short time interval containing So suppose we choose and so that is small but not zero. The corresponding average rate value
Notice that in Figure 16.5.2.(b), which is the graph of the cube root function, we have labelled the horizontal axis as and the vertical axis as to match our idea that the inverse function interchanges the roles of input and output. So while creates a small range around on the vertical axis for the cube graph, it also creates a small domain around on the horizontal axis for the cube root graph. This allows us to relate the derivative value not to but to On the second graph, the slope of the reflected secant line must be calculated as
The result is that an average rate for the inverse function is the reciprocal of a corresponding average rate for the original function. Since this is true about every average rate function calculation, we conclude that there should also be a reciprocal relationship for the derivatives of the two functions.
Let’s test out this conclusion. On the one hand, we know so On the other hand, we can also use Pattern 12.4.3 to directly compute that
so
which is indeed the reciprocal of our computed value for
Pattern 16.5.3. Derivative of an inverse function.
Remark 16.5.4.
Kep in mind that the reason there is an inside the in the fraction on the right is because an input for is the same as an output for and the derivative function should have the same inputs as (except for any points of non-differentiability).
Example 16.5.5. Derivative of the natural exponential function.
We’ve already used logarithmic differentiation to confirm (see Procedure 14.5.4), so let’s use that knowledge to test the formula of Pattern 16.5.3. (In fact, this calculation is mathematically equivalent to our previous verification via logarithmic differentiation.)
With the knowledge of the Fundamental Theorem of Calculus, we might interpret our definition of the natural logarithm (Definition 8.1.1) as specifically designed so that
Viewing the natural exponential function as the inverse of the natural logarithm, we take in Pattern 16.5.3, so that Using in the formula from that pattern, we have
as expected.