Educerie · AP · Precalculus
AP Precalculus 2.7
Composition of Functions
How do you apply one function after another, evaluate the result from a table, a graph or a formula, and take a composite apart?
What you will learn
- Understand the composite as g first, then f, with a domain limited by g's outputs
- Know that composition is not commutative and the identity leaves a function unchanged
- Know how to build, decompose and read composites in every representation
You must be able to
- Evaluate f(g(a)) from tables, graphs or formulas
- Build f(g(x)) and g(f(x)) and show they differ
- State the domain of a composite
- Decompose a formula into an inside and an outside function
- Use composition to link two quantities in a context
- Describe a transformation as a composition
In the exam. Section I multiple choice, Part A (no calculator) and Part B: evaluate from tables or graphs, find the composite from two formulas, find its domain, or decompose a formula. Free-response 1 (calculator, no context) typically opens with a composition value read from a table or graph, and the next part reuses it to find an input for a given output. Marks are lost on reading the wrong function first.
1Evaluating a composite from tables and graphs
Work from the inside out. Evaluate first, then use that output as the input to .
Worked example 1. Two invented tables.
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 3 | 1 | 4 | 2 |
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 5 | 7 | 9 | 11 |
- : , then . So .
- : , then .
- : , but is not an input of in the table. This composite is undefined from the table.
The last item shows the domain rule. and are different, and one of them does not exist here.
On a graph, find on the horizontal axis, read the height of , then use that value as a horizontal position on the graph of and read its height.
2The domain of a composite
The composite is defined for the inputs of whose outputs lie in the domain of . Two things must hold: is in the domain of , and is in the domain of .
Worked example 2. Let and .
The formula is defined for every real . But needs . So the composite has the domain , even though the simplified formula looks unrestricted.
Now the other order:
This needs , so or . The two composites are different functions with different domains.
3Building the composite
To find , replace every in the formula of with the whole expression . Use brackets.
Worked example 3. Let and .
The results differ, so composition is not commutative.
Identity. If , then and . So .
4A table or graph of a composite
A table of lists , the output of , then the output of . Each row gives a point on the graph of the composite. In Worked example 1 the row for is , and the row for is .
5Composition in context
Composition links two quantities when no direct formula is given.
Worked example 4. A taxi's fare in dollars after miles is , and the taxi travels at miles per hour, so after hours it has gone miles.
The composite gives the fare after hours. The context restricts the input: .
6Decomposing a function
To rewrite as , find an "inside" part and an "outside" part. The inside is what you compute first. Replace each occurrence of the inside by a new variable.
- : inside , outside .
- : inside , outside .
- : inside , outside .
Check by substituting: must give . A decomposition is not unique, but each one must give back .
7Transformations are compositions
- A horizontal or vertical translation is a composition with . The function is composed with .
- A dilation is a composition with . The function is composed with .
When the change is made to the input before acts, the effect on the graph is horizontal (and opposite to what the sign suggests for a translation). When it is made after, it is vertical. For example, is with , a vertical shift up.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.