Composite Functions Exam Questions: GCSE Guide
Composite functions exam questions explained through three GCSE worked examples. Learn function order, show clear methods and avoid common exam mistakes.

A student sees fg(x)fg(x)fg(x) and pauses. Does it mean multiply, substitute, or start with the first letter? Composite functions exam questions ask you to apply one function to the output of another. In fg(x)=f(g(x))fg(x)=f(g(x))fg(x)=f(g(x)), you apply ggg first, then fff. Getting that order right is the first step towards a clear, mark-worthy solution.
Imagine a student working through three questions, each adding one challenge: finding a numerical output, forming an algebraic expression, then solving an equation. These are original exam-style questions, not extracts from a particular paper. The marking comments explain useful working to show; exact marks depend on the question’s mark scheme.
Your composite functions checklist
Before calculating, establish what the question wants:
- A value: substitute the given input into the inner function, then use its output in the outer function.
- An expression: replace every input in the outer function with the complete inner expression.
- An equation to solve: form the composite expression first, then solve the resulting equation.
- A check: confirm the order, brackets and final answer.
Composite functions are a GCSE Higher tier topic. MathsGenie’s inverse and composite functions lesson brings the relevant explanations and practice together. Students following Eduqas can use the matching Eduqas functions lesson.
Read the order before doing the algebra
The notation looks less mysterious when you read from the brackets outwards:
fg(x)=f(g(x)).fg(x)=f(g(x)).fg(x)=f(g(x)).The input enters ggg, and that result enters fff. By contrast,
gf(x)=g(f(x))gf(x)=g(f(x))gf(x)=g(f(x))starts with fff. These usually produce different results, so function order deserves its own moment of attention.
Composition also differs from multiplication. You are feeding one output into another rule, not multiplying two separate outputs. Writing the nested form at the start makes your interpretation visible and gives the rest of your working a reliable structure.
Composite functions exam questions: three worked examples
Question one: calculate a numerical output
The student begins with:
f(x)=3x−2,g(x)=x+4.f(x)=3x-2,\qquad g(x)=x+4.f(x)=3x−2,g(x)=x+4.Find fg(2)fg(2)fg(2).
Their first useful line establishes the order:
fg(2)=f(g(2)).fg(2)=f(g(2)).fg(2)=f(g(2)).First, calculate the inner output:
g(2)=2+4=6.g(2)=2+4=6.g(2)=2+4=6.Then put that output into fff:
f(6)=3×6−2=16.f(6)=3\times6-2=16.f(6)=3×6−2=16.Therefore,
fg(2)=16.\boxed{fg(2)=16}.fg(2)=16.Where the method is visible: the lines showing g(2)g(2)g(2) followed by f(6)f(6)f(6) demonstrate correct composition. If an arithmetic slip occurs, written evidence of the intended process may still earn credit where the mark scheme allows it. A bare incorrect answer gives the examiner much less to assess.
The student can also check the order by describing the operations: add four first, then multiply by three and subtract two. That description should match the calculation.
Start practising this same inner-then-outer method with the Question Bank on MathsGenie’s composite functions topic page.
Question two: form and simplify an expression
The next question keeps the input algebraic:
f(x)=x2−5,g(x)=2x+3.f(x)=x^2-5,\qquad g(x)=2x+3.f(x)=x2−5,g(x)=2x+3.Find and simplify fg(x)fg(x)fg(x).
The student writes:
fg(x)=f(2x+3).fg(x)=f(2x+3).fg(x)=f(2x+3).The rule for fff squares its entire input, then subtracts five. Therefore,
fg(x)=(2x+3)2−5.fg(x)=(2x+3)^2-5.fg(x)=(2x+3)2−5.Now expand carefully:
(2x+3)(2x+3)−5(2x+3)(2x+3)-5(2x+3)(2x+3)−5 =4x2+6x+6x+9−5=4x^2+6x+6x+9-5=4x2+6x+6x+9−5 fg(x)=4x2+12x+4.\boxed{fg(x)=4x^2+12x+4}.fg(x)=4x2+12x+4.Where the method is visible: the expression (2x+3)2−5(2x+3)^2-5(2x+3)2−5 shows the correct substitution before any expansion. The following lines show how it was simplified. Keeping those stages separate helps an examiner distinguish understanding of composition from accuracy in algebra.
Brackets do essential work here. The whole expression 2x+32x+32x+3 replaces the input of fff, so the whole expression must be squared.
A quick check is to choose an easy input and compare both forms. At x=0x=0x=0, applying the original functions gives g(0)=3g(0)=3g(0)=3 and f(3)=4f(3)=4f(3)=4. The simplified expression also gives 444. This does not prove the expression is correct, but it can expose a mistake.
Stick-figure revision comic about deciding who goes first
Question three: solve an equation involving composition
Now the student meets a question with two possible answers:
f(x)=x2−1,g(x)=2x+3.f(x)=x^2-1,\qquad g(x)=2x+3.f(x)=x2−1,g(x)=2x+3.Solve fg(x)=24fg(x)=24fg(x)=24.
They form the composite function before solving:
(2x+3)2−1=24.(2x+3)^2-1=24.(2x+3)2−1=24.Add one to both sides:
(2x+3)2=25.(2x+3)^2=25.(2x+3)2=25.Taking square roots gives two possibilities:
2x+3=5or2x+3=−5.2x+3=5\quad\text{or}\quad2x+3=-5.2x+3=5or2x+3=−5.Solve each equation:
2x=2or2x=−8,2x=2\quad\text{or}\quad2x=-8,2x=2or2x=−8,so
x=1orx=−4.\boxed{x=1\quad\text{or}\quad x=-4}.x=1orx=−4.Where the method is visible: the initial composite equation shows correct substitution. Isolating the squared expression and considering both square roots show the solving method. The final solutions establish accuracy, subject to any restrictions stated in the question.
The student checks both answers in the original functions. For x=1x=1x=1, the inner output is 555; for x=−4x=-4x=−4, it is −5-5−5. Both produce 242424 when substituted into fff. The negative inner output is valid here because squaring it gives a positive result.
Common mistakes that lose useful working
Applying the functions in the wrong order. Rewrite fg(x)fg(x)fg(x) as f(g(x))f(g(x))f(g(x)) before substituting. The expression inside the brackets acts first.
Treating composition as multiplication. Writing f(x)g(x)f(x)g(x)f(x)g(x) answers a different question. Make the substitution explicit.
Dropping brackets. If the outer function squares its input, the entire inner expression needs brackets before the square.
Expanding a square incorrectly. A squared binomial includes a middle term. Writing it as two brackets can make that term harder to miss.
Losing a square-root solution. When a squared expression equals a positive number, consider both the positive and negative roots, then check any stated restrictions.
Assuming every written line earns a mark. Credit comes from relevant, correct mathematical progress. Show substitution and solving steps clearly, then compare them with the specific mark scheme.
Exam-style practice and past paper questions
Try these without looking back at the examples. Use
f(x)=2x−3,g(x)=x2+1.f(x)=2x-3,\qquad g(x)=x^2+1.f(x)=2x−3,g(x)=x2+1.- Find fg(3)fg(3)fg(3).
- Find and simplify gf(x)gf(x)gf(x).
- Solve fg(x)=17fg(x)=17fg(x)=17.
Answers: fg(3)=17fg(3)=17fg(3)=17; gf(x)=4x2−12x+10gf(x)=4x^2-12x+10gf(x)=4x2−12x+10; and x=3x=3x=3 or x=−3x=-3x=−3.
For the equation, your working should include 2(x2+1)−3=172(x^2+1)-3=172(x2+1)−3=17, which simplifies to x2=9x^2=9x2=9. If you found only the positive answer, revisit the square-root step.
When choosing composite functions past paper questions, match the exam board and tier to your course. MathsGenie’s Edexcel GCSE topic booklets provide topic-based past-paper practice. Attempt questions before reading solutions, then identify whether each error came from function order, substitution or algebra. That diagnosis tells you what to practise next.
Turn the method into independent answers
Our imagined student now has a repeatable approach: identify the inner function, substitute with brackets, and show the algebra. Your next challenge is recognising those steps without a worked solution beside you. Start your next composite functions practice session with MathsGenie’s Lessons and Question Bank, then answer a question independently.



