- Home
- Courses
- OCR A-Level Maths
- Functions
- Composite Functions
Composite Functions
A thermostat reads a temperature, converts it to a voltage, and the voltage sets a fan speed. Each step is a function; the whole chain is a . In notation, means "apply first, then " — and the order is the thing students most often get backwards.
The big picture
Composition is how complicated functions are built from simple ones, and recognising the pieces is a skill you will use constantly. The chain rule in differentiation is nothing more than a rule for differentiating composites; integration by substitution undoes one; and graph transformations like or are compositions with very simple functions. Two technical points make or break exam answers: is evaluated from right to left, and the composite only exists where the range of the inner function lies inside the domain of the outer one.
What you'll be able to do
- Evaluate composite functions numerically and algebraically
- Recognise that and are usually different
- Determine the domain and range of a composite function
- Solve equations involving composite functions and decompose functions into composites
Reading and evaluating fg
means : work out first, then use that result as the input to . The function written nearest acts first.
Some texts write ; OCR generally writes . Repeated application, , is often written — which does mean .
Numerically, evaluate inside out. With and : , while .
Composition is not commutative. Putting socks on then shoes differs from shoes then socks, and differs from for almost every pair of functions you will meet.
Algebraic composites
To find as an expression, substitute the whole of , in brackets, wherever appears in .
With and : , and .
Example 1Given and , solve .
Tip — When the composite contains a perfect square, take square roots rather than expanding — and remember the negative root.
Domain and range of a composite
For to exist, every output of must be an acceptable input to . In other words, the must lie within the .
The domain of is the domain of (restricted further if necessary). To find the range of , take the range of and ask what does to that set.
Example 1 for and for . Explain why exists and find its range.
Example 2With the same functions, explain why cannot have domain .
Think of the range of the inner function as the only doorway into the outer function. The composite range is whatever the outer function produces from that doorway — often much smaller than the outer function’s full range.
Decomposing a function
Going the other way — spotting how a function is built — is just as important. is with (inside) and (outside).
There is usually more than one valid decomposition. The natural one takes the innermost operation as and the last operation you would press on a calculator as .
This is precisely the recognition step for the chain rule: differentiates the outer square root and multiplies by the derivative of the inner .
Example 1Express as a composite of two functions.
Think like an examiner
- Show the intermediate step, such as , before the final value.
- Substitute the inner function in brackets when forming .
- Justify existence of a composite by comparing the range of the inner with the domain of the outer.
- For , apply twice — do not square.
Common misconceptions
Composition
Stretch yourself
The functions and are defined for all real by and , where is a non-zero constant. Show that the equation has exactly one solution, and find the value of for which that solution is .
Hint — Form both composites and subtract. The terms cancel, leaving a linear equation in .
Reveal solution
Questions students ask
Which function goes first in fg?
Can fg exist when gf does not?
How does this connect to the chain rule?
What does mean?
Key takeaways
- : apply first.
- In general .
- fg exists when the range of lies within the domain of .
- The range of fg is found by applying to the range of .
- Decomposing functions into composites prepares you for the chain rule.
How this fits the course
Test yourself
Answer a few questions, then review anything you missed.
Keep practising
Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.
Related lessons
All 6 lessons- Same chapterFunction NotationUnderstanding function notation and terminology.
- Same chapterDomain and RangeUnderstanding the domain and range of functions.
- Same chapterInverse FunctionsUnderstanding and finding inverse functions.
Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.