Before we embark upon any further adventures with functions, we need to take some time to gather our thoughts and gain some perspective. Chapter first introduced us to functions in Section. At that time, functions were specific kinds of relations - sets of points in the plane which passed the Vertical Line Test, Theorem. In Section, we developed the idea that functions are processes - rules which match inputs to outputs - and this gave rise to the concepts of domain and range. We spoke about how functions could be combined in Section using the four basic arithmetic operations, took a more detailed look at their graphs in Section and studied how their graphs behaved under certain classes of transformations in Section. In Chapter, we took a closer look at three families of functions: linear functions (Section ), absolute value functions1 (Section ), and quadratic functions (Section ). Linear and quadratic functions were special cases of polynomial functions, which we studied in generality in Chapter. Chapter culminated with the Real Factorization Theorem, Theorem, which says that all polynomial functions with real coefficients can be thought of as products of linear and quadratic functions. Our next step was to enlarge our field2 of study to rational functions in Chapter. Being quotients of polynomials, we can ultimately view this family of functions as being built up of linear and quadratic functions as well. So in some sense, Chapters,, and can be thought of as an exhaustive study of linear and quadratic3 functions and their arithmetic combinations as described in Section. We now wish to study other algebraic functions, such as and , and the purpose of the first two sections of this chapter is to see how these kinds of functions arise from polynomial and rational functions. To that end, we first study a new way to combine functions as defined below.
The quantity is also read ` composed with ' or, more simply ` of .' At its most basic level, Definition tells us to obtain the formula for , we replace every occurrence of in the formula for with the formula we have for . If we take a step back and look at this from a procedural, `inputs and outputs' perspective, Defintion tells us the output from is found by taking the output from , , and then making that the input to . The result, , is the output from . From this perspective, we see as a two step process taking an input and first applying the procedure then applying the procedure . Abstractly, we have
Figure 5.1
In the expression , the function is often called the `inside' function while is often called the `outside' function. There are two ways to go about evaluating composite functions - `inside out' and `outside in' - depending on which function we replace with its formula first. Both ways are demonstrated in the following example.
It should be clear from Example Example 1 that, in general, when you compose two functions, such as and above, the order matters.4 We found that the functions and were different as were and . Thinking of functions as processes, this isn't all that surprising. If we think of one process as putting on our socks, and the other as putting on our shoes, the order in which we do these two tasks does matter.5 Also note the importance of finding the domain of the composite function before simplifying. For instance, the domain of is much different than its simplified formula would indicate. Composing a function with itself, as in the case of finding and , may seem odd. Looking at this from a procedural perspective, however, this merely indicates performing a task and then doing it again - like setting the washing machine to do a `double rinse'. Composing a function with itself is called `iterating' the function, and we could easily spend an entire course on just that. The last two problems in Example Example 1 serve to demonstrate the associative property of functions. That is, when composing three (or more) functions, as long as we keep the order the same, it doesn't matter which two functions we compose first. This property as well as another important property are listed in the theorem below.
By repeated applications of Definition, we find . Similarly, . This establishes that the formulas for the two functions are the same. We leave it to the reader to think about why the domains of these two functions are identical, too. These two facts establish the equality . A consequence of the associativity of function composition is that there is no need for parentheses when we write . The second property can also be verified using Definition. Recall that the function is called the identity function and was introduced in Exercise in Section. If we compose the function with a function , then we have , and a similar computation shows . This establishes that we have an identity for function composition much in the same way the real number is an identity for real number multiplication. That is, just as for any real number , , we have for any function , . We shall see the concept of an identity take on great significance in the next section. Out in the wild, function composition is often used to relate two quantities which may not be directly related, but have a variable in common, as illustrated in our next example.
A useful skill in Calculus is to be able to take a complicated function and break it down into a composition of easier functions which our last example illustrates.
Exercises
In Exercises -, use the given pair of functions to find the following values if they exist.
,
,
,
,
,
,
,
,
,
,
,
,
In Exercises -, use the given pair of functions to find and simplify expressions for the following functions and state the domain of each using interval notation.
,
,
,
,
,
,
,
,
,
,
,
,
Write the function as a composition of three or more non-identity functions.
Let and . In what order must these functions be composed with to create ?
What linear functions could be used to transform into ? What is the proper order of composition?
In Exercises -, use , and to find and simplify expressions for the following functions and state the domain of each using interval notation.
In Exercises -, write the given function as a composition of two or more non-identity functions. (There are several correct answers, so check your answer using function composition.)
In Exercises -, let be the function defined by
and let be the function defined
. Find the value if it exists.
In Exercises -, use the graphs of and below to find the function value.
Figure 5.4Figure 5.5
The volume of a cube is a function of its side length . Let's assume that is also a function of time , where is measured in inches and is measured in minutes. Find a formula for as a function of .
Suppose a local vendor charges per hot dog and that the number of hot dogs sold per hour is given by , where is the number of hours since AM, .
Find an expression for the revenue per hour as a function of .
Find and simplify . What does this represent?
What is the revenue per hour at noon?
Discuss with your classmates how `real-world' processes such as filling out federal income tax forms or computing your final course grade could be viewed as a use of function composition. Find a process for which composition with itself (iteration) makes sense.
Answers
For and ,
For and ,
For and ,
For and ,
For and ,
is not real
is not real
For and ,
For and ,
For and ,
For and ,
is undefined
For and ,
For and ,
is not real
For and ,
is not real
is not real
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
For and
, domain:
, domain:
, domain:
, domain:
, domain:
, domain:
, domain:
, domain:
,, domain:
Let and , then .
Let and , .
Let and , then .
Let and , then .
Let and , then .
Let and , then .
Let and , then .
Let and , then .
Let and , then .
Let and , then .
where and .
One possible solution is where and . You could also have where and .
which is undefined
which is undefined
so
, . This gives the revenue per hour as a function of time.
Noon corresponds to , so . The hourly revenue at noon is per hour.
Adapted from Precalculus, 3rd corrected edition, by Carl Stitz and Jeff Zeager (stitz-zeager.com), licensed under CC BY-NC-SA 3.0. Changes were made: reformatted as an accessible XYZ web edition. License: CC-BY-NC-SA-3.0.