Functions: Composite and Inverse Functions
A composite function fg(x) means applying g first and then applying f to the result, so fg(x) = f(g(x)); the order matters, since gf(x) is usually different. An inverse function f^-1(x) reverses the effect of f(x), and is found by writing y = f(x), rearranging to make x the subject, then swapping x and y to give f^-1(x) in terms of x. Both ideas are core to AQA Level 2 Further Maths.
Before you start
Make sure you're comfortable with these topics first:
Method
- To find a composite function fg(x), first work out g(x), then substitute that whole expression into f(x) in place of x.
- Work carefully with brackets when substituting, expanding any powers or products that result.
- To find an inverse function, start by writing y = f(x).
- Rearrange the equation to make x the subject, undoing the operations in reverse order.
- Swap x and y (or simply rewrite in terms of x) to state f^-1(x).
- Check your inverse by picking a value a, working out f(a), then confirming that f^-1 of that result returns you to a.
Common mistakes
MistakeApplying the functions in reading order, so with f(x) = 2x and g(x) = x + 3, fg(x) is worked out as 2x + 3.
Insteadfg(x) means g first, then f: fg(x) = f(x + 3) = 2(x + 3) = 2x + 6. The expression 2x + 3 is gf(x), because there f is applied first. Write f(g(x)) in full if you are unsure.
MistakeConfusing the inverse with the reciprocal: for f(x) = 3x + 4, writing f^-1(x) = 1/(3x + 4).
InsteadThe inverse undoes f. Write y = 3x + 4, so x = (y - 4)/3, giving f^-1(x) = (x - 4)/3. Check: f(2) = 10 and f^-1(10) = 6/3 = 2, which returns to 2.
MistakeWriting gf(x) as x^2 - 6 when f(x) = x - 6 and g(x) = x^2, by squaring only the x.
InsteadSubstitute the whole of f(x) into g, keeping it in brackets: gf(x) = (x - 6)^2 = x^2 - 12x + 36. Test x = 8: f(8) = 2 and g(2) = 4, whereas x^2 - 6 gives 58.
Worked examples
Example 1
f(x) = 4x - 3 and g(x) = x + 5. Find fg(x), and hence find fg(2).
- Substitute g(x) into f(x): fg(x) = f(x + 5) = 4(x + 5) - 3.
- Expand the bracket: 4x + 20 - 3.
- Simplify: fg(x) = 4x + 17.
- Substitute x = 2: fg(2) = 4(2) + 17.
- Final answer: fg(2) = 25.
Example 2
f(x) = 2x - 2 and g(x) = x^2. (a) Find f^-1(x). (b) Solve gf(x) = fg(x).
- For part (a), write y = 2x - 2. Add 2 to both sides: y + 2 = 2x, so x = (y + 2)/2.
- Swap y for x: f^-1(x) = (x + 2)/2. Check: f(4) = 6 and f^-1(6) = 8/2 = 4.
- For part (b), gf(x) = g(2x - 2) = (2x - 2)^2 = 4x^2 - 8x + 4.
- fg(x) = f(x^2) = 2x^2 - 2.
- Set them equal: 4x^2 - 8x + 4 = 2x^2 - 2, so 2x^2 - 8x + 6 = 0, which is x^2 - 4x + 3 = 0.
- Factorise: (x - 1)(x - 3) = 0.
- Final answer: f^-1(x) = (x + 2)/2, and x = 1 or x = 3.
Example 3
f(x) = (x + 8)/6 and g(x) = 5x - 9. Given that fg(x) = 7/2, find x. Check your answer by applying g and then f.
- fg(x) applies g first and then f: multiply x by 5, subtract 9, add 8 and divide by 6. To recover x, undo these operations in reverse order.
- Undo f first. Its last operation divides by 6, so multiply the output by 6: 6 x (7/2) = 21.
- Then undo the addition of 8 by subtracting 8: g(x) = 21 - 8 = 13. This is the input to f, not yet the original input x.
- Now undo g. Add 9 to reverse its subtraction: 5x = 13 + 9 = 22.
- Divide by 5 to reverse its multiplication: x = 22/5. Keep this exact fraction for the check.
- Check forwards: g(22/5) = 22 - 9 = 13, then f(13) = (13 + 8)/6 = 21/6 = 7/2, as required.
- Final answer: x = 22/5.
Practice questions
Q1[1 mark]f(x) = 3x + 1 and g(x) = x - 2. Find f(5).Show answer
Answer: 16
Q2[1 mark]f(x) = 3x + 1 and g(x) = x - 2. Find g(10).Show answer
Answer: 8
Q3[2 marks]f(x) = 3x + 1 and g(x) = x - 2. Find fg(4).Show answer
Answer: 7 (g(4) = 2, then f(2) = 7)
Q4[2 marks]f(x) = 2x - 5. Find f^-1(x).Show answer
Answer: f^-1(x) = (x + 5)/2
Q5[3 marks]f(x) = (x - 3)/4. Find f^-1(x) and evaluate f^-1(5).Show answer
Answer: f^-1(x) = 4x + 3; f^-1(5) = 23
Q6[2 marks]f(x) = 4x - 1 and g(x) = x^2 + 2. Find gf(x), giving your answer in the form ax^2 + bx + c.Show answer
Answer: gf(x) = 16x^2 - 8x + 3
Exam-style questions
Written in the style of a GCSE Further Maths exam paper, with a full mark scheme.
Exam tips
- If the question asks for fg(a) for a number a, work numerically: find g(a) first, then f of that result. Find the general expression only when the answer is wanted in terms of x.
- For an equation such as gf(x) = fg(x), expand both sides fully and collect everything on one side to give a quadratic equal to zero before you solve it.
- To find an inverse, undo the operations in the opposite order to the way f applies them: if f multiplies by 5 and then subtracts 2, f^-1 adds 2 and then divides by 5.
Q1[4 marks]f(x) = 2x + 7 and g(x) = x^2 - 3. Find fg(x) and gf(x), giving each answer in its simplest form.Show mark scheme
Tick each line you got.
Nothing ticked yet - 4 available
Q2[4 marks]f(x) = (2x - 3)/5. Find f^-1(x), and hence evaluate f^-1(1).Show mark scheme
Tick each line you got.
Nothing ticked yet - 4 available
Q3[6 marks]f(x) = 2x - 3 and g(x) = x^2 + k, where k is a constant. (a) Find fg(x) in terms of x and k. (b) Given that fg(4) = 15, find the value of k. (c) Hence find gf(x), giving your answer in the form ax^2 + bx + c.Show mark scheme
Tick each line you got.
Nothing ticked yet - 6 available
See real GCSE Further Maths past-paper questions, with official mark schemes
This topic in real past papers
We have tagged some boards' past papers question by question (not every board or year yet). This topic comes up in:
- AQA GCSE Further Maths past papers: 6 questions across 5 papers, latest tagged June 2023
Free printable worksheet
Want more practice on paper? Download the Functions: Composite and Inverse Functions worksheet pack - 14 pages of exam-style questions with a full mark scheme. Free to download, no card or account. Print it for personal and classroom use.
This topic is chapter 9 of Level 2 Further Maths (AQA 8365) Essentials, the whole course as one free printable PDF. Its worksheet is also chapter 9 of Level 2 Further Maths (AQA 8365) Topic Workbook 1 and chapter 9 of Level 2 Further Maths (AQA 8365) 10-Minute Tests, free printable practice books.
Other versions of this worksheet: