In Try This 1 you combined P(s), a function that gave you a pet type given a student, and F(p), a function that gave you a food given a pet type. This combination gave the composite function, B(s), a function that gave the type of food to buy given a student. Combining functions this way is called a composition of functions. A composition of functions can be thought of as using the output of one function as the input of another function. In Try This 1 the output “pet” was used as an input to determine the food type. The following diagram shows how the functions from Try This 1 are related:
The most important thing to notice in the previous diagram is that F(P(s)) and B(s) are equivalent. Both F(P(s)) and B(s) represent the type of food to buy given the student. F(P(s)) is a composition of F(p) and P(s), so the output of P(s) (a pet type) is an input for F(p).
It is important to pay attention to the type of input for a function. For example, F(s) is not meaningful because F requires an input of a pet type and s is a student.
Sometimes a composition f(g(x)) is written This can be read as “f composed with g at x” or “f at g at x” or “f circle g at x.” In Try This 2 you will compose functions that are equations. Notice that the input and output for both functions are real numbers.
The composition is different than the multiplication (f • g)(x):
and (f • g)(x) = f(x)g(x)
Consider the functions f(x) = 3x + 1 and
Save your responses in your course folder.
With a partner or group, discuss the following question based on the information in Try This 2:
Compare and contrast and . Are they equivalent?
If required, save a record of your discussion in your course folder.