Introduction
Function composition builds a new function by plugging one function’s output into another.
In simpler terms, if you had two functions, and , then the composite function is (sometimes denoted as ; this is not multiplication; this is an open dot).
This chaining of dependencies is useful for modeling. For example, suppose the function gives the average daily temperature on day , and gives the cost to heat a house at temperature . Then cost () as a function of days () is . The cost depends on the temperature , which depends on the days .Combining the two steps into one function is the definition of forming the composition between function and function (or in other words,
Although it may be hard to see the practical uses now, it is often very useful to see how a certain variable changes with respect to another. If you are taking AP Physics or AP Chemistry, you can see this pattern being used all the time. Though it may not be clear, every time you substitute an equation or variable in, you are, in some way, creating a composition of functions.
Definition and Notation
Formally, if and are functions, the composition is defined by .
We read this as “ of of ” or “ composed with at .” The circle symbol ∘ means that we first apply to , then apply to the result.
(Do NOT confuse this symbol with a multiplication dot. They do not always produce the same result.)
It can be difficult to understand just looking at the function notations themselves, so let’s look at an example. Say we had and . Then, the composition of the two functions would be defined as so:
Substituting in,
Then, plugging in into our function ,
Composition is a binary operation on functions (meaning that it takes two functions, uses composition, and produces another function), like addition or multiplication of functions, but note it is not the same as multiplying values: usually
Additionally, composition is also associative, meaning the order does not matter.
What this means is that:
and
Evaluating Composite Functions
There are three ways to evaluate composite functions.
First off, though, to compute a composite value at a specific , you must always work from the inside outwards: first, evaluate , then evaluate at whatever value you get from your calculation of at .
For example, if and , then
Analytic/Formula Method
First, substitute into . Suppose and .
We first replace the in with to get . This gives us a single formula for the composite function, to which you can simply plug in whatever value of they ask you to find the composite function at. If we were asked to find the composite of and at , for example, we would simply plug into our new composite.
Numerical/Tabular Method
Here, we use the values of at as our inputs for the function . Going back to our previous example, Suppose
and . We are still trying to find the composite of and at .
Using this method, we would first find :
Then, we would plug in our output for , , as our input for .
The reason this method is sometimes also called the “tabular method” is because in later units (such as when you begin to analyze trig functions), you will often create a table of values for the parent trig function, and then apply the transformations in a separate column (this is a form of composite functions).
Graphical Method
This method is the most straightforward, but really only useful when you’re using a calculator to graph it. You simply graph the composition of and by plugging into a calculator. Then, you read off values from the graphs at specific values of
Although, sometimes you may be provided separate graphs (or even a table of values) that describe and . Say the graph of has a point , and the graph of has a point . Then,
In summary, composing “processes” involves plugging the outputs of one function into another, whether by algebraic solution or by carrying intermediate values that are solved for, given graphically, or given numerical (usually through means of a table of a values).
Domain of a Composite Function
The domain of consists of those for which both steps make sense: must be in the domain of and must be in the domain of , so both and are defined.
In other words, the value of must be in the domain of , and the range of must be included within the domain of .
To save time on tests and/or quizzes on composite functions, you must first determine whether the domain will pose an issue.
Commutativity and Identity
Although it is associative, composition is not commutative, meaning (usually) (note, it is possible for in some cases; however, the chances are very unlikely).
The AP exam will often emphasize that order matters in composition.
Decomposing Functions
Sometimes a given function can be rewritten as a composite , which can simplify analysis. However, in the context of the AP exam, this is just free points.
Say the function .
I could say that when and .
I could even say that when and . Obviously, this example has no practical use. However, the point is, you can decompose functions into other functions by using the idea of composition of functions.
Transformations Viewed as Composition
Standard function transformations (shifts, stretches, reflections) can themselves be seen as compositions with simple functions.
For shifts, say we have functions and . If we wanted to create a new function where but shifted right by one, we could write .
Similarly, this can be applied to both stretches (dilations) and reflections. The same idea is applied.
Practice Questions
- Let and . Find and simplify the composite function . Then, determine the domain of \left(f∘g\right)\left(x\right).
- Let and . Compute and .
- Consider . Write as a composition .
- Let and . Find the composite functions and . Then, determine whether or not their domains are equal.
- Let and . What is the function of ?
- Say we have two functions, and . What is the domain of the composite function ?
- Suppose the average daily temperature on day of winter is modeled by the function , where (in Farenheit), and the cost to heat a house at temperature is modeled by (in dollars). Express the heating cost directly as a function of . Then, calculate the cost on day .
- Let . Find a function such that . Explain (using transformations) how this composition results in the graph of be shifted horizontally.
Solutions to Practice Problems
Question 1: Since we have a square root in the denominator, the value inside of the square root must be greater than or equal to . Additionally, since the domain can not include , as that would result in the denominator being . Therefore, our domain is , with .
Question 2:
.
Question 3: One possible answer is
Question 4: . The domain is .
. The domain is .
Therefore, their domains are not equal.
Question 5: for for .
for for .
Note that we can drop the original domain restriction that because our final expression requires that , which is stronger than .
The domain needed is
Question 6: The domain of is .
, so its domain is that .
Question 7: Heating cost = .
dollars.
Question 8: . If we want . Since we are subtracting from the input, we are shifting the graph of to the right by , as it now has a zero at instead of .
