Functions, composite and inverse

A function is a rule that turns an input into an output. Functions can be combined and reversed.

Practise this lesson free (6 questions)

More tools

Function notation

f(x) = 3x + 1 means: multiply by 3, then add 1.
f(4) = 3 × 4 + 1 = 13

Composite functions

fg(x) means do g first, then f.
f(x) = 3x + 1 and g(x) = x2: fg(2) = f(4) = 13. gf(2) = g(7) = 49.

Inverse functions

f-1(x) undoes f. Write y = f(x), swap x and y, and rearrange.
f(x) = 3x + 1 → x = 3y + 1 → y = x − 13
f-1(x) = x − 13
Worked example

f(x) = 2x − 5. Find f-1(9).

  1. f-1(x) = x + 52
  2. f-1(9) = 142 = 7

Answer: 7

Key idea

f(a) means put a into the rule. fg(x) means g first, then f. For the inverse, swap x and y and rearrange.

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. f(x) = 4x − 1. Find f(8).

    Show the answer

    Answer: 31

    4 × 8 − 1 = 31.

  2. f(x) = x + 2 and g(x) = 5x. Find fg(3).

    Show the answer

    Answer: 17

    g(3) = 15, then f(15) = 17.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons