To find the composite function (f(g(x))), substitute the entire expression for wherever appears in . Apply first, then apply to its output.
The Method
The notation
means that the output of becomes the input of . Use these steps:
- Write down the formula for .
- Replace every in that formula with .
- Use brackets around the substituted expression.
- Simplify carefully.
- Check the domain of the resulting composite function.
For example, let
Substitute into :
Therefore,
The brackets are essential when the input appears more than once or has a power. For example, if , then
Why Order Matters
A common misconception is that (f(g(x))) and (g(f(x))) are interchangeable. They are generally different because the inner function is applied first.
Using the earlier functions,
which is not equal to .
The domain must also satisfy both stages: must be in the domain of , and must lie in the domain of .
For a domain example, let and . Then . Although is defined for every real , the input to must be non-negative. Therefore , so the composite has domain . This restriction comes from the outer function after substitution.
Before expanding, read the notation from the inside out and state the intermediate output. This makes sign and bracket errors less likely. If either function contains a denominator, square root, or logarithm, test the original input and intermediate value against all restrictions. Simplifying an algebraic expression does not remove those restrictions; record the valid domain with the final composite.
IB Exam Technique
This is IB Mathematics: Analysis and Approaches, SL 2.5, and it may appear on Paper 1 or Paper 2. For the command term Find, show the substitution before simplifying; writing only the final expression may lose method marks. Always preserve the order and use brackets during substitution.
