Composition of Functions
Evaluate one function inside another. Distinguish the order of composition.
5 min · Composition and inverse functions · Foundations
Learning goals
- Evaluate one function inside another.
- Distinguish the order of composition.
Understand the concept
The composite function (f ∘ g)(x) = f(g(x)) applies g first, then applies f to the result. The intermediate output must be an allowed input of f.
Composition is generally not commutative: f(g(x)) and g(f(x)) can have different values. Substitute the entire inner expression into every occurrence of the variable in the outer function.
Worked example 1
Let f(x) = 2x + 1 and g(x) = x². Then f(g(3)) = f(9) = 19.
Worked example 2
For the same functions, g(f(3)) = g(7) = 49, demonstrating that order matters.
Check your understanding
UNVRST English edition · Educational support · Editorial policy