Composite and inverse functions

GCSE Maths Higher (Edexcel) · Edexcel 1MA1 · Higher · A7 · Algebra

45 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes, past-paper booklets and workbooks are open to everyone. Practice needs a free account.

Or take a quick quiz: 9 questions on this subtopic in GCSE Maths Higher (Edexcel), marked as you tap.

Revision notes

Higher only. Using function notation f(x), working out composite functions such as fg(x), and finding inverse functions \(f^{-1}(x)\). Questions are usually 2 to 4 marks and link closely to substitution, rearranging and solving equations.

Key facts

  • \(f(a)\): replace every x with a
  • \(fg(x) = f(g(x))\): g first, then f
  • \(fg(x)\) is usually not the same as \(gf(x)\)
  • Inverse: write \(y = f(x)\), make x the subject, then write it in terms of x
  • \(ff^{-1}(x) = x\)
  • \(f^{-1}(x) \ne \dfrac{1}{f(x)}\)

Notes

Function notation

diagram
  • \(f(x) = 2x + 5\) means 'the function f doubles x and adds 5'. x is the input and f(x) is the output.
  • x× 2+ 5f(x) = 2x + 53611, so f(3) = 11→→
    A function is a machine: input x, output f(x).
  • \(f(3)\) means substitute \(x = 3\): \(f(3) = 2 \times 3 + 5 = 11\)
  • \(f(a + 1)\) means replace every x with \((a + 1)\): \(2(a + 1) + 5 = 2a + 7\)
  • 'Solve \(f(x) = 9\)' means solve \(2x + 5 = 9\), so \(x = 2\)

Composite functions

diagram
  • \(fg(x)\) means apply g first, then apply f to the result: \(fg(x) = f(g(x))\). Work from the inside out.
  • With \(f(x) = 2x + 5\) and \(g(x) = x^2\): \(fg(x) = 2x^2 + 5\), but \(gf(x) = (2x + 5)^2\). The order matters.
  • For a number, e.g. \(fg(3)\): \(g(3) = 9\), then \(f(9) = 23\)
  • 323fg(3) = f(g(3)) = f(9) = 23g: square91st: gf: × 2, + 52nd: f
    In \(fg(x)\), the function next to x (g) acts first.
  • \(ff(x)\) means apply f twice: \[\begin{aligned}f(2x + 5) &= 2(2x + 5) + 5 \\ &= 4x + 15\end{aligned}\]

Inverse functions

diagram
  • \(f^{-1}(x)\) undoes f: if \(f(3) = 11\), then \(f^{-1}(11) = 3\)
  • Method: write \(y = f(x)\), rearrange to make x the subject, then write the answer as \(f^{-1}(x) = \ldots\) using x.
  • \(y = 2x + 5\) gives \(x = \dfrac{y - 5}{2}\), so \(f^{-1}(x) = \dfrac{x - 5}{2}\)
  • x× 2+ 5fx− 5÷ 2f−1(x) = (x − 5) ÷ 2run itbackwards
    The inverse undoes each step in reverse order.
  • \(f^{-1}(x)\) does not mean \(\dfrac{1}{f(x)}\)
  • \(ff^{-1}(x) = f^{-1}f(x) = x\): a function and its inverse cancel each other out. Use this to check an inverse. Grade 8+ only

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own.

Evaluate a function and solve f(x) = k

3 marksGrade 6
  1. For f(number), substitute the number for x.
  2. For f(x) = k, write the equation and solve it.

Example. \(f(x) = 4x - 3\)
(a) Find \(f(-2)\).
(b) Solve \(f(x) = 19\)

Show the model answerHide the model answer
(a) \(4 \times (-2) - 3 = -11\)
B1
(b) \(4x - 3 = 19\)
M1
\(x = 5.5\)
A1

Find a composite function

4 marksGrade 7
  1. Work out the inner function first.
  2. Substitute the result into the outer function, using brackets.
  3. Expand and simplify if asked.

Example. \(f(x) = 3x + 1\) and \(g(x) = x^2 - 2\).
(a) Find \(fg(4)\).
(b) Find \(gf(x)\). Simplify your answer.

Show the model answerHide the model answer
(a) \(g(4) = 14\) M1, \(f(14) = 43\)
A1
(b) \((3x + 1)^2 - 2\)
M1
\(= 9x^2 + 6x - 1\)
A1

Find an inverse function

2 marksGrade 7
  1. Write \(y = \) the function.
  2. Rearrange to make x the subject.
  3. Write \(f^{-1}(x) = \ldots\) with x in place of y.

Example. \(h(x) = \dfrac{2x - 7}{5}\). Find \(h^{-1}(x)\)

Show the model answerHide the model answer
\(y = \dfrac{2x - 7}{5}\), so \(5y + 7 = 2x\)
M1
\(h^{-1}(x) = \dfrac{5x + 7}{2}\)
A1

Solve an equation involving a composite function

3 marksGrade 8
  1. Write the composite function as an expression in x.
  2. Set it equal to the value and solve (a square gives ±).
  3. Give all solutions.

Example. \(f(x) = 2x - 1\) and \(g(x) = x^2\). Solve \(gf(x) = 25\)

Show the model answerHide the model answer
\(gf(x) = (2x - 1)^2\)
M1
\((2x - 1)^2 = 25\), so \(2x - 1 = \pm 5\)
M1
\(x = 3\) or \(x = -2\)
A1

Find the inverse of a fractional function

4 marksGrade 9
  1. Write \(y = \) the function and multiply both sides by the denominator.
  2. Expand, then collect the x terms on one side.
  3. Factorise out x and divide.

Example. \(f(x) = \dfrac{3x + 2}{x - 4}\), \(x \ne 4\). Find \(f^{-1}(x)\)

Show the model answerHide the model answer
\(y(x - 4) = 3x + 2\)
M1
\(xy - 3x = 4y + 2\)
M1
\(x(y - 3) = 4y + 2\)
M1
\(f^{-1}(x) = \dfrac{4x + 2}{x - 3}\)
A1

Don’t lose marks

  • Doing composite functions in the wrong order: fg(x) means g first.
  • Multiplying the functions: fg(x) is not \(f(x) \times g(x)\)
  • Leaving an inverse in terms of y, or writing \(f^{-1}(x) = \dfrac{1}{f(x)}\)
  • Forgetting brackets when substituting an expression: with \(g(x) = x^2 - 2\), \(g(x + 1) = (x + 1)^2 - 2\)

More tips

Memory tricks

  • Read fg(x) as 'f of g of x': the function next to x acts first.
  • Check an inverse with a number: work out f(2), then put the answer into \(f^{-1}\); you should get 2.
  • For simple functions, find the inverse with a function machine: reverse the order and use inverse operations.

Exam technique

  • Write the middle step (e.g. \(g(4) = 14\)) so the method mark can be seen.
  • Give an inverse as \(f^{-1}(x) = \ldots\) with x as the variable.
  • In 'show that' questions, expand and simplify fully and end with the given expression.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade 6
    Evaluate a function for a given inputSubstitute the value for x, e.g. \(f(x) = 3x^2 - 1\) gives \(f(-2) = 11\)
  2. Grade 6
    Solve an equation such as f(x) = kSet the function equal to the value and solve, e.g. \(2x + 7 = 15\) gives \(x = 4\)
  3. Grade 7
    Find a composite functionfg(x) means apply g first, then f: substitute g(x) into f.
  4. Grade 7
    Find an inverse functionWrite \(y = f(x)\), make x the subject, then write \(f^{-1}(x)\) in terms of x.
  5. Grade 8
    Solve equations involving composite functionse.g. form and solve an equation from \(gf(x) = 25\)
  6. Grade 9
    Find inverses of fractional functionsWhen x appears twice after rearranging, collect the x terms and factorise, e.g. for \(f(x) = \dfrac{3x + 2}{x - 4}\)

Quick recall

Cover the answers and test yourself. The app has these as flashcards that come back just before you'd forget them.

A function machine takes an input \(x\). It first adds 6 and then multiplies the result by 2. The output is \(f(x)\). Write \(f(x)\) as an expression in \(x\).
\(f(x) = 2(x + 6)\)
The machine for \(f^{-1}\) is built from some of these four steps. Write down the letters of the steps it uses, in the order they happen.
A then B
The functions \(g\) and \(h\) are given by \(g(x) = 5x\) and \(h(x) = \frac{x}{3}\). Write down \(g^{-1}(x)\).
\(g^{-1}(x) = \frac{x}{5}\)
The function \(f\) is given by \(f(x) = \sqrt{x}\) for \(x \ge 0\). Find \(f^{-1}(x)\).
\(f^{-1}(x) = x^2\)
In \(\text{fg}(x)\), which function is applied to \(x\) first? Write f or g.
g
The function \(f\) is given by \(f(x) = 5x - 2\). Work out \(f^{-1}(f(7))\).
7

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy1 mark
The function \(f\) is given by \(f(x) = x + 7\).
Which of these is \(f^{-1}(x)\)? Tick (✓) one box.
[1]
  • \(x - 7\)
  • \(7 - x\)
  • \(\frac{1}{x + 7}\)
  • \(x + 7\)
Show the answer and mark scheme
Answer: \(x - 7\)
  • B1 for \(x - 7\) ticked

Worked solution: The inverse undoes adding 7, so it subtracts 7.

Question 2Medium3 marks
The function \(f\) is given by \(f(x) = \frac{x - 5}{2}\). Ellie tries to find \(f^{-1}(x)\). Ellie’s working is:
\(y = \frac{x - 5}{2}\)
\(2y = x - 5\)
\(x = 2y - 5\)
\(f^{-1}(x) = 2x - 5\)
(a) Write down the line in which Ellie first makes an error.
[1]
(b) Find the correct \(f^{-1}(x)\).
[2]
Show the answer and mark scheme
(a) Answer: \(x = 2y - 5\)
  • B1 for the line \(x = 2y - 5\) (accept the third line)

Worked solution: From \(2y = x - 5\) the next line should be \(x = 2y + 5\).

(b) Answer: \(f^{-1}(x) = 2x + 5\)
  • M1 for \(x = 2y + 5\) or \(2x = y - 5\) oe
  • A1 for \(f^{-1}(x) = 2x + 5\)

Worked solution: \(y = \frac{x - 5}{2}\) gives \(2y = x - 5\), so \(x = 2y + 5\). Swap letters: \(f^{-1}(x) = 2x + 5\).

Question 3Hard5 marks
The function \(f\) is given by \(f(x) = \frac{2x + 1}{x - 3}\) for \(x \ne 3\).
(a) Find \(f^{-1}(x)\).
[4]
(b) State the value of \(x\) that must be excluded from the domain of \(f^{-1}\).
[1]
Show the answer and mark scheme
(a) Answer: \(f^{-1}(x) = \frac{3x + 1}{x - 2}\)
  • M1 for \(y(x - 3) = 2x + 1\) (clearing the fraction)
  • M1 for \(xy - 3y = 2x + 1\) and collecting the terms in \(x\) on one side
  • M1 for factorising, \(x(y - 2) = 3y + 1\)
  • A1 for \(f^{-1}(x) = \frac{3x + 1}{x - 2}\)

Worked solution: y(x − 3) = 2x + 1, xy − 2x = 3y + 1, x(y − 2) = 3y + 1, x = (3y + 1)/(y − 2).

(b) Answer: \(x = 2\)
  • B1ft for \(x = 2\) (the value of x that makes their denominator 0)

Worked solution: The denominator x − 2 is 0 when x = 2.

More in Algebra

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.