Composition of Functions — Definition, Formula & Examples
Composition of functions is the process of applying one function to the result of another function. If you have functions and , the composition means you first evaluate , then plug that output into .
Given two functions and , the composite function is defined by for every in the domain of such that is in the domain of .
Key Formula
Where:
- = The outer function, applied second
- = The inner function, applied first
- = The input value from the domain of g
How It Works
To evaluate a composition, work from the inside out. In , start by computing , then feed that result into . When finding a general formula for , replace every in the rule for with the entire expression for . Order matters: and usually give different results. The domain of the composition is all values in the domain of whose outputs also land in the domain of .
Worked Example
Problem: Let and . Find .
Step 1: Evaluate the inner function at .
Step 2: Substitute that result into .
Step 3: State the composition.
Answer:
Another Example
Problem: Using the same functions and , find the general formula for .
Step 1: Write out the composition definition with as the outer function.
Step 2: Replace with its rule.
Step 3: Expand if needed.
Answer: . Notice this differs from , confirming that composition is not commutative.
Why It Matters
Composition of functions is central to Precalculus and Calculus, where the chain rule for derivatives is built directly on understanding how composed functions work. In computer science, piping the output of one operation into the next is the same idea. Mastering composition also prepares you to verify inverse functions, since and satisfy .
Common Mistakes
Mistake: Evaluating the functions in the wrong order — computing first instead of when asked for .
Correction: Always start with the innermost function. In , evaluate first, then apply to the result.
Mistake: Confusing composition with multiplication, writing as .
Correction: The symbol means 'compose,' not 'multiply.' Replace the input of with the entire expression .
