Hi, I’m Ari. We can start composite functions from the beginning, work through an example together, or practise a question. Tell me which step is confusing.
GCSE Maths · Algebra
Composite functions GCSE Questions and Worked Answers
A composite function applies one rule to the output of another. fg(x) means f(g(x)): work out g first, then use that result as the input to f. In general fg(x) and gf(x) are different.
Free AI tutor · GCSE composite functions
Practise GCSE composite functions for free with an AI tutor
Ask Ari for an explanation or work through an original exam-style question together.
Ari is an AI tutor and can make mistakes. Use the worked answers below to check important results.
Start with the meaning
What you need to know about composite functions
Put 3 through a machine that squares numbers: it gives 9. Feed that 9 into a second machine that adds 2: it gives 11. Connecting two rules in this way makes a composite function. The output of the first machine becomes the input of the second.
See the idea first
Keep the intermediate value visible
Let g(x) mean the output of the first rule at input x. Then f(g(x)) means feed that entire output into f. The shorter notation fg(x) means the same thing. Read the route from the innermost brackets outwards: x → g → f. It does not mean multiply the two outputs.
| Start | g: square | f: double and add 1 | fg output |
|---|---|---|---|
| 2 | 4 | 2 × 4 + 1 | 9 |
| 3 | 9 | 2 × 9 + 1 | 19 |
| -2 | 4 | 2 × 4 + 1 | 9 |
From problem to method
Typical problems you need to be able to solve
These are the main kinds of question in this topic. Each card first states the problem, then explains how to solve it.
Calculate a composite value
What the problem asks: f(x) = x + 4 and g(x) = 3x. Find fg(2).
How to solve it: First g(2) = 6. Then f(6) = 10. Keeping the intermediate 6 makes the order visible.
Find the combined rule
What the problem asks: For f(x) = x + 4 and g(x) = 3x, find gf(x).
How to solve it: Apply f first, giving x + 4. Replace the input of g with the whole bracket: g(x + 4) = 3(x + 4) = 3x + 12.
Find an original input
What the problem asks: With those same rules, solve fg(x) = 19.
How to solve it: The combined rule is 3x + 4. Solve 3x + 4 = 19 to get x = 5, then check the journey 5 → 15 → 19.
A reliable routine
Follow a composite function
Use this when one function is applied to another function's output. Substitution works because the outside rule accepts the complete result of the inside rule as one input.
- Rewrite fg(x) as f(g(x)) if the order is unclear.
- Evaluate the inside rule, or write its expression.
- Substitute the whole result into every input position of the outside rule, using brackets.
- Simplify, or solve the resulting equation; check any excluded inputs.
Check: A different order usually gives a different answer. Repeated f means applying f twice, not squaring f(x).
Fully worked
Composite functions GCSE worked examples
Each solution explains the clue, why the method fits and how to check the result.
Example 1
Numeric composition
Question
f(x) = 2x + 3 and g(x) = x − 4. Find fg(9).
Hence fg(9) = 13.
Example 2
Reverse the order
Question
f(x) = 2x + 3 and g(x) = x − 4. Find gf(9).
Thus gf(9) = 17, different from fg(9).
Example 3
An algebraic result
Question
f(x) = 3x − 1 and g(x) = x². Find fg(x) and gf(x).
For fg, square first:
For gf, square the whole output of f:
Example 4
A composite equation
Question
f(x) = 4x + 1 and g(x) = x − 2. Solve fg(x) = 21.
Check: g(7) = 5 and f(5) = 21.
Example 5
Apply the same rule twice
Question
f(x) = 2x − 5. Find ff(x).
This is not (2x − 5)²: the rule is repeated, not its output multiplied by itself.
Example 6
An excluded input
Question
f(x) = 1/x and g(x) = x + 3. Find fg(x) and state the excluded input.
The denominator cannot be zero.
At x = −3, g would send zero into a rule that divides by its input.
10 original questions · total 28 marks
Composite functions GCSE exam-style questions
Try each question before opening its fully worked answer. The difficulty rises through the set.
Before you startAllow about 33 minutes · Show your working. Give exact answers unless a question asks you to round, and include units where needed. · answers start collapsed
Two linear machines
f(x) = x + 6, g(x) = 2x. Find fg(4).
Show worked answer
Therefore fg(4) = 14.
The other order
f(x) = x + 6, g(x) = 2x. Find gf(4).
Show worked answer
Therefore gf(4) = 20.
Negative input
f(x) = x², g(x) = x − 1. Find fg(−2).
Show worked answer
Expand the result
f(x) = 5x, g(x) = x + 2. Find fg(x).
Show worked answer
Square a bracket
f(x) = x² + 1, g(x) = x − 3. Find fg(x), expanded.
Show worked answer
A repeated rule
f(x) = 3x + 2. Find ff(x).
Show worked answer
Solve
f(x) = 2x + 1, g(x) = x + 4. Solve fg(x) = 19.
Show worked answer
Check 5 → 9 → 19.
Two solutions
f(x) = x², g(x) = x − 2. Solve fg(x) = 9.
Show worked answer
Both intermediate values, 3 and −3, square to 9.
Domain restriction
f(x) = 1/(x − 1), g(x) = 2x. Find fg(x) and its excluded input.
Show worked answer
An inverse pair
f(x) = 4x − 7 and g(x) = (x + 7)/4. Show that fg(x) = x.
Show worked answer
The rules undo one another.
Examiner-style feedback
Common composite functions mistakes
In fg(x), g acts first. Rewrite it as f(g(x)).
Substituting x − 3 into x² gives (x − 3)², not x² − 3.
Test a number in each route; they usually produce different results.
30-second recap
Choose, carry out, check
Translate the wording before you reach for a rule.
- Inner rule first.
- Show the intermediate output.
- Substitute whole expressions in brackets.
- Check the full journey and allowed inputs.
Quick answers
Composite functions FAQ
Does fg mean f times g?
Not in this function notation. It means f composed with g: f(g(x)).
Can the orders ever agree?
Yes, for some pairs of rules, such as adding two fixed numbers. Do not assume they agree without checking.
Content standards
Curriculum and rights review
A7 Higher-tier content. All definitions and worked tasks are introduced from simple inputs. Questions, suggested marks, solutions and diagrams are original practice material, not official past-paper questions.
Official specification references