Year 11 (ages 15–16, Grade 10 in the US) · Maths · Algebraic fractions and functions · Lesson 6
Composite functions
Combine functions: fg(x) means apply g first, then f. Find composite values and expressions, use ff(x), solve equations like fg(x) = k or fg(x) = gf(x), and connect with inverses.
Exam boards: this lesson matches the AQA and Pearson Edexcel GCSE maths courses. Check which course your school follows.

18-minute video lesson
Teaching, worked examples and 24 practice questions solved step by step.
Watch free for a monthWhat your child will learn
- Understand fg(x) = f(g(x))
- Evaluate composite functions
- Find composite expressions
- Solve equations with composite functions
The method
- fg(x) means f(g(x)): do g FIRST.
- For a number: work out g(a), then put it into f.
- For an expression: replace x in f with the whole of g(x).
- fg(x) and gf(x) are usually different.
- ff(x): apply f twice.
- f⁻¹f(x) = x: an inverse undoes the function.
Key words: composite function, fg(x), gf(x), order, inverse.
Worked examples
Worked examples from the lesson, with every step.
Question 1
f(x) = 3x − 1 and g(x) = x². Find fg(2).
- Step 1: g(2) = 4
- Step 2: f(4) = 11
- Step 3: 11
Answer: 11
Question 2
f(x) = 3x − 1 and g(x) = x². Find gf(2).
- Step 1: f(2) = 5
- Step 2: g(5) = 25
- Step 3: 25
Answer: 25
Question 3
f(x) = 2x + 5 and g(x) = x − 4. Find fg(x).
- Step 1: f(x − 4)
- Step 2: 2x − 3
- Step 3: fg(x) = 2x − 3
Answer: fg(x) = 2x − 3