GCSE · Maths · AQA · Spec 8300 · Higher

Inverse and composite functions (Higher)

Put 3 through 'add 5', then 'double': you get 16. Swap the machines and you get 11. Function notation tells you which order you mean, and how to go backwards.

Follow one number through the machines

1Input 323456

Stage 1 of 6: Input 3. paused

Input 3 · 1/6drag to scrub →

Start with x = 3 and work out fg(3). Written as f(g(3)), g sits on the inside, next to the 3, so g gets the number first.

g(x) = x + 5 and f(x) = 2x. Scrub to push 3 through fg, then bring it home.

Read the notation

What is the notation telling you to do?

Same two machines as above: f(x) = 2x and g(x) = x + 5. This time the input is 4.

Only one of these is right. Which would you have said?
How sure are you?

Write the chain as one expression

Problem

f(x) = 2x and g(x) = x + 5. Write fg(x) as a single expression, then check it against the machine chain.

Maths · Algebra

Work backwards from an output

You know what came out of the composite. Solve to find what went in.

Goalf(x) = 2x and g(x) = x + 5. Solve fg(x) = 30.
1
fg(x) = 2x + 10

Start from the composite written as one expression.

2
3
4
5

Step 1 of 5

Start from the composite written as one expression.

Watch out: Solve the whole composite, not just the outer function. Solving 2x = 30 (f on its own) gives 15, which is g's output, not the input you were asked for.

Find an inverse by changing the subject

y = 3x + 2

Call f's output y. Read the machines: f(x) = 3x + 2 multiplies by 3, then adds 2.

1 / 5

Spot the slip

Where does this inverse go wrong?

f(x) = 5x − 3. Find f⁻¹(x), then use it to find the input that gives an output of 12.

A student's answer — which line goes wrong?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Chain two function machines together, then run the chain backwards.

What you need to know

  • f(x) is the output when x goes into f. If f(x) = 2x, then f(7) = 14.
  • fg(x) means f(g(x)): g acts first, and its output is f's input.
  • To write fg(x) as one expression, substitute the whole of g(x) for x in f(x).
  • If you know a composite's output, form an equation and solve it to find the input.
  • f⁻¹(x) is the inverse of f: it maps each output back to its input. Find it by making x the subject of y = f(x).

The big picture

A function turns an input into an output. A composite function applies two functions in succession: in fg(x), g acts first and its output becomes f's input, so it can't be worked from left to right. You can write a composite as one expression, and solve it to find the input that gives a known output. The inverse function f⁻¹(x) reverses f, taking each output back to its input, and you find it by changing the subject.

Key points

1A function is a rule: one input in, one output out.
2A composite is two functions in succession. Work from the inside out: in fg(x), g first, then f.
3fg(x) and gf(x) are usually different functions.
4To solve fg(x) = k, write fg(x) as one expression, set it equal to k and solve.
5An inverse undoes the operations in reverse order. f⁻¹(x) is not 1 ÷ f(x).
6To check an inverse, put a number through f and then f⁻¹: you should get your number back.

Worked example

Problem

f(x) = 3x + 1 and g(x) = x². (a) Find gf(x). (b) Solve gf(x) = 49.

⚠ Watch out

Working fg(x) from left to right. f is written first, but it can't act until it has an input, and its input is g(x). So g goes first. Doing f first gives gf(x), which is usually a different function.

🧠

Memory hook

Socks on, then shoes. Shoes off before socks. A composite puts the inside function on first (in fg(x), that's g), and an inverse takes things off in reverse: undo the last step first.

✓

Check yourself

f(x) = x − 7 and g(x) = 3x. Find fg(5), then find f⁻¹(x). (Answers: g(5) = 15, so fg(5) = f(15) = 8. f subtracts 7, so f⁻¹(x) = x + 7.)

Flashcards

(12)
What is a function?
A rule that turns each input into an output, like a machine: a number goes in, a number comes out.
What does f(5) mean?
The output you get when 5 is put into the function f.
What is a composite function?
Two functions applied one after the other: the output of the first becomes the input of the second.
In fg(x), which function acts first, and why?
g. fg(x) means f(g(x)), so f's input is g's output, and that has to exist before f can act.
Are fg(x) and gf(x) the same?
Usually not. Swapping the order changes which function acts first, and usually changes the output.
How do you write fg(x) as a single expression?
Replace every x in f(x) with the whole expression for g(x), in brackets, then simplify.
You're told fg(x) = k. How do you find x?
Write fg(x) as one expression, set it equal to k, and solve the equation.
What is an inverse function?
The function that reverses f: it maps each output of f back to the input that produced it.
Does f⁻¹(x) mean 1 ÷ f(x)?
No. On a function, ⁻¹ means the inverse (the reverse process), not a reciprocal.
How do you find f⁻¹(x) algebraically?
Write y = f(x), rearrange to make x the subject, then rewrite it with x as the input: f⁻¹(x) = …
When undoing a function, which operation do you undo first?
The last one f did. Reverse the order as well as each operation, like taking shoes off before socks.
How can you check an inverse is right?
Put a number into f, then put the output into f⁻¹. You should get your original number back.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More AQA GCSE Maths topics

How this lesson was checked. This AQA GCSE Maths (specification 8300)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 28 September 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.