<< Chapter < Page | Chapter >> Page > |
You are working in the school cafeteria, making peanut butter sandwiches for today’s lunch.
...and so on. Each sentence in this little story is a function. Mathematically, if $c$ is the number of classes and $h$ is the number of children, then the first sentence asserts the existence of a function $h(c)$ .
The principal walks up to you at the beginning of the year and says “We’re considering expanding the school. If we expand to 70 classes, how much money do we need to budget? What if we expand to 75? How about 80?” For each of these numbers, you have to calculate each number from the previous one, until you find the final budget number.
$\underrightarrow{\text{\# Classes}}$ | $\underrightarrow{\text{\# Children}}$ | $\underrightarrow{\text{\# Sandwiches}}$ | $\underrightarrow{\text{lb.}}$ | $\underrightarrow{\text{\$\$}}$ |
But going through this process each time is tedious. What you want is one function that puts the entire chain together: “You tell me the number of classes, and I will tell you the budget.”
$\underrightarrow{\text{\# Classes}}$ | $\underrightarrow{\text{\$\$}}$ |
This is a composite function —a function that represents in one function, the results of an entire chain of dependent functions . Since such chains are very common in real life, finding composite functions is a very important skill.
We can consider how to build composite functions into the function game that we played on the first day. Suppose Susan takes any number you give her, quadruples it, and adds 6. Al takes any number you give him and divides it by 2. Mathematically, we can represent the two functions like this:
To create a chain like the one above, we give a number to Susan; she acts on it, and gives the resulting number to Al; and he then acts on it and hands back a third number.
$3\to \text{Susan}\to S(3)=18\to \text{Al}\to A(18)=9$
In this example, we are plugging $S(3)$ —in other words, 18— into Al’s function. In general, for any $x$ that comes in, we are plugging $S(x)$ into $A(x)$ . So we could represent the entire process as $A(S(x))$ . This notation for composite functions is really nothing new: it means that you are plugging $S(x)$ into the $A$ function.
But in this case, recall that $S(x)=\mathrm{4x}+6$ . So we can write:
What happened? We’ve just discovered a shortcut for the entire process. When you perform the operation $A(S(x))$ —that is, when you perform the Al function on the result of the Susan function—you are, in effect, doubling and adding 3. For instance, we saw earlier that when we started with a 3, we ended with a 9. Our composite function does this in one step:
$3\to \mathrm{2x}+3\to 9$
Understanding the meaning of composite functions requires real thought. It requires understanding the idea that this variable depends on that variable, which in turn depends on the other variable; and how that idea is translated into mathematics. Finding composite functions, on the other hand, is a purely mechanical process—it requires practice, but no creativity. Whenever you are asked for $f(g(x))$ , just plug the $g(x)$ function into the $f(x)$ function and then simplify.
$f(x)={x}^{2}-\mathrm{4x}$
$g(x)=x+2$
What is $f(g(x))$ ?
$f(g(x))=(x+2{)}^{2}-4(x+2)$
$f(g(x))=(x{}^{2}\text{}+\mathrm{4x}+4)-(\mathrm{4x}+8)$
$f(g(x))={x}^{2}-4$
$7\to g(x)\to 7+2=9\to f(x)\to (9{)}^{2}-4(9)=45$
$7\to {x}^{2}-4=(7{)}^{2}-4=45$ $\u2713$ It worked!
There is a different notation that is sometimes used for composite functions. This book will consistently use $f(g(x))$ which very naturally conveys the idea of “plugging $g(x)$ into $f(x)$ .” However, you will sometimes see the same thing written as $f\xb0g(x)$ , which more naturally conveys the idea of “doing one function, and then the other, in sequence.” The two notations mean the same thing.
Notification Switch
Would you like to follow the 'Math 1508 (lecture) readings in precalculus' conversation and receive update notifications?