Function
Composition
Learn how to combine functions by feeding the output of one into the input of another: mastering \( (f \circ g)(x) \) for modelling and problem solving.
What Is Function Composition?
Function composition creates a new function by applying one function to the result of another. If you have two functions \( f \) and \( g \), their composition is written:
Think of it as a two-step machine: input goes into \( g \), the output goes into \( f \), and the final result comes out.
The Function Machine Model
Why Does Composition Matter?
The Formal Definition
Similarly, \( (g \circ f)(x) = g\!\bigl(f(x)\bigr) \). Note: composition is not commutative: in general, \( f \circ g \neq g \circ f \).
Domain of a Composite Function
\( f \circ g \) vs \( g \circ f \): Order Matters
Composition is not commutative. Switching the order usually gives a completely different function.
| \( (f \circ g)(x) \) | \( (g \circ f)(x) \) | |
|---|---|---|
| Meaning | \( f(g(x)) \) | \( g(f(x)) \) |
| Inner function | \( g \) | \( f \) |
| Outer function | \( f \) | \( g \) |
| Example | \( f(x)=x^2,\; g(x)=x+1 \) \( (x+1)^2 \) |
\( f(x)=x^2,\; g(x)=x+1 \) \( x^2+1 \) |
How to Evaluate a Composition
Example 1: Linear & Quadratic
Let \( f(x) = x^2 + 3 \) and \( g(x) = 2x - 1 \). Find \( (f \circ g)(x) \).
\( (2x-1)^2 + 3 \)
Example 2: Evaluating at a Point
Using the same functions \( f(x) = x^2 + 3 \) and \( g(x) = 2x - 1 \), find \( (f \circ g)(3) \).
Example 3: Domain Restrictions
Let \( f(x) = \sqrt{x} \) and \( g(x) = 5 - x^2 \). Find \( (f \circ g)(x) \) and state its domain.
Visualising \( \sqrt{5 - x^2} \)
Composition and Inverse Functions
If \( f \) and \( f^{-1} \) are inverse functions, their compositions yield the identity:
This is the defining property of inverse functions. To verify that two functions are inverses, show both compositions equal \( x \).
\( f(f^{-1}(x)) = 3\!\left(\frac{x-2}{3}\right) + 2 = x \) ✓
\( (f \circ I)(x) = f(x) \)
Decomposing a Composite Function
Sometimes you need to work backwards: given a composite function, identify what \( f \) and \( g \) could be.
Common Mistakes to Avoid
Summary of Key Ideas
| Concept | Key Fact |
|---|---|
| Notation | \( (f \circ g)(x) = f(g(x)) \) |
| Order | Not commutative: \( f \circ g \neq g \circ f \) in general |
| Domain | \( x \in \text{dom}(g) \) and \( g(x) \in \text{dom}(f) \) |
| Inverses | \( f(f^{-1}(x)) = f^{-1}(f(x)) = x \) |
| Decomposition | Identify inner and outer to reverse-engineer a composition |
| Associativity | \( (f \circ g) \circ h = f \circ (g \circ h) \) |
Question 1 of 5
If \( f(x) = 3x + 1 \) and \( g(x) = x^2 \), what is \( (f \circ g)(2) \)?
Question 2 of 5
Given \( f(x) = x - 4 \) and \( g(x) = 2x + 5 \), find \( (f \circ g)(x) \).
Question 3 of 5
If \( h(x) = \sqrt{2x - 6} \), which decomposition represents \( h \) as \( f \circ g \)?
Question 4 of 5
What is the domain of \( (f \circ g)(x) \) if \( f(x) = \frac{1}{x} \) and \( g(x) = x - 3 \)?
Question 5 of 5
If \( f(x) = x + 7 \) and \( f^{-1}(x) = x - 7 \), what is \( (f \circ f^{-1})(5) \)?