In short
The composition , also written , uses the output of as the input of : work from the inside out. Order matters: and are usually different. The identity function leaves any function unchanged when composed with it. A complicated function can be decomposed into simpler functions composed together.
What you need to know
- Evaluate a composition from formulas, tables and graphs.
- Write a formula for a composite function and explain why order matters.
- Use the identity function in compositions.
- Decompose a function into a composition of simpler functions.
Inside out
In , first apply to , then apply to the result. With and :
- As formulas: and .
The two orders give different functions: squaring then adding 3 is not the same as adding 3 then squaring. In context, the order follows the story. If converts a temperature from Celsius to Fahrenheit and gives the number of ice creams sold at a Fahrenheit temperature, only makes sense.
From tables and graphs
| x | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| f(x) | 3 | 4 | 1 | 2 |
| g(x) | 2 | 4 | 4 | 1 |
To find : , then . To find : , then . With a graph, read the inner value off one graph and use it as the input on the other. If the inner output is not in the outer function's domain, the composition is undefined there: works, but if had given 5, would not be in the table.
The identity function and decomposition
The identity function returns its input unchanged, so and . Topic 2.8 uses it to define inverses: , the identity.
Decomposing reverses composition: spot an inner expression and an outer operation. is with inside and outside. is with and . Decomposition is the skill that makes transformations and, later, the chain rule in calculus work.
Worked example in context. A shop converts a price in dollars to rupees with and then adds a delivery charge with . The total for a 20-dollar book is rupees. The other order, , would add 150 to the dollar price before converting, which gives a very different and meaningless number. When a question gives a context, always check that the output of the inner function is the kind of quantity the outer function expects as its input.
Key terms
- Composition
- : apply g, then f.
- Inner and outer function
- In f(g(x)), g is the inner function and f the outer function.
- Identity function
- I(x) = x; composing with it leaves a function unchanged.
- Decomposition
- Writing a function as a composition of simpler functions.
Common mistakes
Multiplying instead of composing: .
Substitute g(x) into f.
Working outside in.
Evaluate the inner function first.
Assuming .
Order usually matters; check both.
How this topic is tested
- Write the intermediate value: f(g(1)) = f(2) = 4.
- When decomposing, name both functions clearly.
- Check the domain of a composite at the inner and outer step.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · MP 1 · Procedural and Symbolic Fluency
If and , what is ?
Question 2 · MP 2 · Multiple Representations
Using the table in this lesson, what is ?
Question 3 · MP 1 · Procedural and Symbolic Fluency
Which is for and ?
Question 4 · MP 2 · Multiple Representations
is written as . Which pair works?
Question 5 · MP 1 · Procedural and Symbolic Fluency
What is the domain of for and ?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Function Concepts (short) · 4 points
The functions and are given by the table in this lesson: , , , ; , , , .
- (a) Find and .
- (b) Find all x in for which , and explain your reasoning.
Scoring guide: one point for each of the following
Part (a)
- f(g(3)) = f(4) = 2
- g(f(3)) = g(1) = 2
Part (b)
- f(x) = 4 only for x = 2, so we need g(x) = 2.
- g(x) = 2 only for x = 1, so x = 1.
Connected topics
Frequently asked questions
Is \((f \circ g)(x)\) the same as \(f(g(x))\)?
Yes. The circle notation means 'f after g': apply g first.
Can I compose a function with itself?
Yes. applies f twice; for , .
Why is decomposition useful?
It breaks a hard function into familiar pieces, which makes transformations, inverses and (in calculus) the chain rule straightforward.