Composition Chains Examples: 44 Problems with Answers
Worked examples of Composition Chains to try before you open each solution, then practice problems with answers.
Worked Examples
Example 1
easyShow solution
Answer
First step
Full solution
- 2. Apply : .
- 3. Apply : . So .
Example 2
mediumExample 3
mediumExample 4
mediumExample 5
mediumExample 6
hardExample 7
hardExample 8
hardExample 9
challengePractice Problems
Try each one, then open the solution to compare your method.
Example 1
easyExample 2
hardExample 3
easyExample 4
easyExample 5
easyExample 6
easyExample 7
easyExample 8
easyExample 9
easyExample 10
easyExample 11
mediumExample 12
mediumExample 13
mediumExample 14
mediumExample 15
mediumExample 16
mediumExample 17
mediumExample 18
challengeExample 19
challengeExample 20
challengeExample 21
mediumExample 22
mediumExample 23
easyExample 24
easyExample 25
easyExample 26
easyExample 27
easyExample 28
mediumExample 29
mediumExample 30
mediumExample 31
mediumExample 32
mediumExample 33
hardExample 34
hardExample 35
hardWhat to focus on
Core idea: A composition chain feeds one function's output into the next, evaluated from the innermost function outward.
Common stuck point: The procedure for composition chains is the easy part; the trap is evaluating left to right. Asking "Is one function's output being fed as the input to the next in a fixed order?" first is what keeps a correct-looking calculation from being attached to the wrong concept.
Ask yourself: Is one function's output being fed as the input to the next in a fixed order?
Concept recap
A composition chain is a sequence of functions applied one after another: , evaluated inside-out from right to left.
Nested gift boxes: you put the gift in the smallest box first, then that box into a bigger one, then into the biggest. The innermost box is handled first even though, in , it is written last. Unwrapping runs the other way, outer layer first, which is how an inverse undoes a chain.
Read the full lesson on Composition ChainsRelated concepts
Background knowledge
These ideas may be useful before you work through the harder examples.