A7AlgebraHigherGrades 6–9

Functions

A function is a rule that turns an input into an output. Writing f(x)=2x+3f(x) = 2x + 3 names the rule ff, so f(4)f(4) means "put 4 into the rule", giving 11. AQA Higher papers use function notation to ask for outputs, solve equations, combine functions and reverse them.

45 min AQA GCSE Maths

The big picture

Think of a function as a machine. A composite function\textbf{composite function} feeds the output of one machine straight into another; an inverse function\textbf{inverse function} runs a machine backwards to recover the input.

The notation is compact, and most errors come from reading it the wrong way round. fg(x)fg(x) means apply gg first, then ff — the function nearest the xx acts first.

What you'll learn

  • Interpret and use function notation
  • Solve equations written in function notation
  • Find composite functions such as fg(x)fg(x)
  • Find inverse functions f−1(x)f^{-1}(x)
1

Function notation

f(x)=2x+3f(x) = 2x + 3 gives f(4)=2(4)+3=11f(4) = 2(4) + 3 = 11 and f(−1)=1f(-1) = 1.

You can substitute expressions as well: f(a+1)=2(a+1)+3=2a+5f(a + 1) = 2(a + 1) + 3 = 2a + 5.

Solving f(x)=17f(x) = 17 means finding the input: 2x+3=172x + 3 = 17, so x=7x = 7.

Example 1g(x)=x2−1g(x) = x^{2} - 1. Find g(−3)g(-3) and solve g(x)=48g(x) = 48.
1g(−3)=9−1=8g(-3) = 9 - 1 = 8.
2x2−1=48x^{2} - 1 = 48, so x2=49x^{2} = 49.
Answerg(−3)=8g(-3) = 8; x=7x = 7 or x=−7x = -7
Your turnSame method, new numbers — try it before moving on.

f(x)=3x−7f(x) = 3x - 7. Solve f(x)=11f(x) = 11.

Show worked solution
Solution
  1. 13x−7=113x - 7 = 11, so 3x=183x = 18.
  2. 2x=6x = 6.

Answer: x=6x = 6

2

Composite functions

fg(x)fg(x) means f(g(x))f(g(x)): apply gg, then apply ff to the result.

With f(x)=2x+3f(x) = 2x + 3 and g(x)=x2−1g(x) = x^{2} - 1: fg(3)=f(8)=19fg(3) = f(8) = 19, but gf(3)=g(9)=80gf(3) = g(9) = 80. Order matters.

Example 1Using f(x)=2x+3f(x) = 2x + 3 and g(x)=x2−1g(x) = x^{2} - 1, find fg(x)fg(x) and gf(x)gf(x).
1fg(x)=f(x2−1)=2(x2−1)+3=2x2+1fg(x) = f(x^{2} - 1) = 2(x^{2} - 1) + 3 = 2x^{2} + 1.
2gf(x)=g(2x+3)=(2x+3)2−1=4x2+12x+8gf(x) = g(2x + 3) = (2x + 3)^{2} - 1 = 4x^{2} + 12x + 8.
Answerfg(x)=2x2+1fg(x) = 2x^{2} + 1, gf(x)=4x2+12x+8gf(x) = 4x^{2} + 12x + 8
Your turnSame method, new numbers — try it before moving on.

f(x)=x+4f(x) = x + 4 and g(x)=2x2g(x) = 2x^2. Find gf(1)gf(1).

Show hint

gf(1)gf(1) means find f(1)f(1) first.

Show worked solution
Solution
  1. 1f(1)=5f(1) = 5.
  2. 2g(5)=2×25=50g(5) = 2 \times 25 = 50.

Answer: 5050

Example 2Solve gf(x)=0gf(x) = 0.
14x2+12x+8=04x^{2} + 12x + 8 = 0, so x2+3x+2=0x^{2} + 3x + 2 = 0.
2(x+1)(x+2)=0(x + 1)(x + 2) = 0.
Answerx=−1x = -1 or x=−2x = -2

Tip — Replace every xx in the outer function with the whole inner expression in brackets.

3

Inverse functions

The inverse f−1f^{-1} reverses ff: if f(4)=11f(4) = 11 then f−1(11)=4f^{-1}(11) = 4.

Method: write y=f(x)y = f(x), rearrange to make xx the subject, then swap yy for xx.

Example 1Find f−1(x)f^{-1}(x) when f(x)=5x−23f(x) = \dfrac{5x - 2}{3}.
1y=5x−23y = \dfrac{5x - 2}{3}, so 3y=5x−23y = 5x - 2.
2x=3y+25x = \dfrac{3y + 2}{5}.
Answerf−1(x)=3x+25f^{-1}(x) = \dfrac{3x + 2}{5}
Your turnSame method, new numbers — try it before moving on.

f(x)=4−3xf(x) = 4 - 3x. Find f−1(x)f^{-1}(x).

Type it like (4 - x)/3.

Show worked solution
Solution
  1. 1y=4−3xy = 4 - 3x, so 3x=4−y3x = 4 - y and x=4−y3x = \dfrac{4 - y}{3}.
  2. 2Swap: f−1(x)=4−x3f^{-1}(x) = \dfrac{4 - x}{3}.

Answer: f−1(x)=4−x3f^{-1}(x) = \dfrac{4 - x}{3}

Why this works

Composing a function with its inverse gets you back where you started: ff−1(x)=xff^{-1}(x) = x. That makes a quick check — substitute one value into ff, then into f−1f^{-1}.

Think like an examiner

  • Show the substitution step for composite functions.
  • Give the inverse in terms of xx, written as f−1(x)=…f^{-1}(x) = \dots.
  • Expand and simplify composite functions unless told otherwise.

Remember these

fg(x)=f(g(x))fg(x) = f\big(g(x)\big)
Composite: g first, then f.
y=f(x)⇒x=f−1(y)y = f(x) \Rightarrow x = f^{-1}(y)
Inverse: rearrange for x.
ff−1(x)=xff^{-1}(x) = x
Inverse undoes the function.

Watch out for these

Working out fg(x)fg(x) by applying ff first.
The function next to xx acts first.
Thinking f−1(x)=1f(x)f^{-1}(x) = \dfrac{1}{f(x)}.
The −1-1 means inverse, not reciprocal.
Writing fg(x)fg(x) as f(x)×g(x)f(x) \times g(x).
It is a composition, not a product.
Forgetting brackets: (2x+3)2−1(2x + 3)^{2} - 1 written as 2x2+9−12x^{2} + 9 - 1.
Square the whole expression.

Stretch yourself

f(x)=3x−1f(x) = 3x - 1. Solve ff(x)=f−1(x)ff(x) = f^{-1}(x).

Hint — Find ff(x)ff(x) and f−1(x)f^{-1}(x) separately, then form an equation.

Reveal solution
Solutionff(x)=3(3x−1)−1=9x−4ff(x) = 3(3x - 1) - 1 = 9x - 4. For the inverse, y=3x−1y = 3x - 1 gives x=y+13x = \dfrac{y + 1}{3}, so f−1(x)=x+13f^{-1}(x) = \dfrac{x + 1}{3}. Solve 9x−4=x+139x - 4 = \dfrac{x + 1}{3}: 27x−12=x+127x - 12 = x + 1, 26x=1326x = 13, x=12x = \tfrac12. Check: ff(12)=0.5ff(\tfrac12) = 0.5 and f−1(12)=0.5f^{-1}(\tfrac12) = 0.5 ✓. ■\blacksquare

Questions students ask

Is fg(x)fg(x) the same as gf(x)gf(x)?
Usually not. Always work out which function acts first.
Why swap xx and yy for the inverse?
The inverse is conventionally written as a function of xx, so the letters are renamed at the end.
Do all functions have inverses?
Only one-to-one functions. At GCSE you will be given functions that have inverses.

Key takeaways

  • f(a)f(a) means substitute aa into the rule.
  • fg(x)=f(g(x))fg(x) = f(g(x)): inside function first.
  • Composite functions are not products.
  • Find f−1f^{-1} by rearranging y=f(x)y = f(x) for xx.
  • f−1f^{-1} undoes ff.

Exam-style questions

Practise it the way it is examined

3 original questions · 12 marks, written to match the style and mark allocation of the real papers. Work on paper, then open the mark scheme and tick the marks you earned — method marks count even if the final answer slips.

Question 1Grade 65 marks

f(x)=2x−5f(x) = 2x - 5 and g(x)=x2g(x) = x^2.

  1. (a)Work out fg(3)fg(3).[2]
    Show mark scheme (a)

    Answer: 1313

  2. (b)Solve gf(x)=49gf(x) = 49.[3]
    Show mark scheme (b)

    Answer: x=6x = 6 or x=−1x = -1

Answer on paper first, then mark it.
Question 2Grade 84 marks

f(x)=x+32f(x) = \dfrac{x + 3}{2} and g(x)=4x−1g(x) = 4x - 1.

  1. Find (gf)−1(x)(gf)^{-1}(x).[4]
    Show mark scheme

    Answer: x−52\dfrac{x - 5}{2}

Answer on paper first, then mark it.
Question 3Grade 93 marks
  1. f(x)=x2−6x+2f(x) = x^2 - 6x + 2. Show that f(x)≥−7f(x) \ge -7 for all values of xx.[3]
    Show mark scheme
Answer on paper first, then mark it.

Unlimited practice

Skill drill

A new question every time, marked instantly, with a full worked solution. Aim for a streak of five, then move up a level.

0 / 0 first-time correct Streak 0Best at this level: 0

Generating a question…

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 19 lessons