GCSE · Maths · AQA · Spec 8300 · Foundation

Functions — inputs and outputs

Drop 7 into a machine and 3 drops out. Could you get the 7 back from the 3 alone? And what if someone bolts a second machine onto the front?

Put 7 into f(x) = (2x + 1)/5

1In: 72345

Stage 1 of 5: In: 7. paused

In: 7 · 1/5scrub 7 through →

This is the input: the number you feed in. Here x = 7.

Every input goes through the same operations, in the same order, and comes out as exactly one output.

UK note

AQA Higher tier: you are expected to understand and use f(x) notation, and the fg(x) and f⁻¹(x) notation further down this page. At Foundation tier, the part you need is reading an expression as a machine: input, operations in order, output.

Higher

Inverse function

Run the machine backwards

f sends x through × 2, then + 1, then ÷ 5, so f(7) = 3. The inverse function f⁻¹ takes an output of f back to the input that made it. Put the steps of f⁻¹ in the order it does them, then lock in.

1 · First step of f⁻¹3 · Last step of f⁻¹
  1. − 1

    undoes the + 1

  2. ÷ 2

    undoes the × 2

  3. × 5

    undoes the ÷ 5

Higher

Composite function

Two machines joined: which one runs first?

f(x) = (2x + 1)/5 is the machine from the top of the page, and g(x) = x + 5. The composite function fg(x) joins the two machines into one.

Be honest: how would you work out fg(2)?
How sure are you?
Higher

From machine to algebra

Write f⁻¹(x) and fg(x) as expressions

f(x) = 3x − 4 and g(x) = 2x + 5. (a) Find f⁻¹(x). (b) Find fg(x) as a single expression.

  1. (a) Let y = 3x − 4, so y is the output when the input is x.
  2. Undo the − 4 by adding 4 to both sides: y + 4 = 3x
  3. missing step
Which line is step 3?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

One machine, three ways: run it forwards, run it backwards, or plug it into another machine.

What you need to know

  • A function is a machine: an input goes in, the same operations happen in a fixed order, and exactly one output comes out.
  • Read the order off the expression: in (2x + 1)/5 it's × 2, then + 1, then ÷ 5 on the whole top.
  • Brackets and fraction bars decide the order, so anything inside a bracket happens before whatever is outside it.
  • Have a goYour turn: in (x − 4)/3, which operation happens first, and which happens last?

    − 4 first, ÷ 3 last.

    The fraction bar divides the whole top, so the top has to be finished first. Doing ÷ 3 first would only divide the x.

  • Higher: f(x) means 'the output when x goes in', so f(7) = 3 says input 7 gives output 3. It is not f × 7.
  • Have a goYour mate Jas announces: 'f(4) = 12, so f × 4 = 12, so f = 3. Easy.' What do you tell Jas before the teacher hears?

    f isn't a number. f(4) = 12 means put 4 in, get 12 out.

    The bracket holds the input, not a multiplication. f is the machine's name, so f(4) = 12 tells you what comes out when 4 goes in.

  • Higher: the inverse function f⁻¹ runs the machine backwards, taking each output of f back to the input that made it.
  • Higher: build f⁻¹ by undoing each operation with its opposite, in reverse order, so f's last step is undone first.
  • Have a goA machine does + 3, then × 2. Out pops 16. What went in?

    5

    Undo the × 2 first: 16 ÷ 2 = 8, then undo the + 3: 8 − 3 = 5. Undoing in the forward order (16 − 3, then ÷ 2) gives 6.5, and 6.5 doesn't go back to 16.

  • Higher: only a one-to-one machine, where each output comes from just one input, has an inverse. x² sends 3 and −3 both to 9.
  • Higher: fg(x) = f(g(x)) is a composite function. g sits next to x, so g acts first and its output feeds f.
  • Higher: fg(x) is not f(x) × g(x), and gf(x) is usually a different function, so the order really matters.
  • Have a gof(x) = x + 1 and g(x) = 10x. Which is bigger, fg(2) or gf(2)? Decide before you work anything out.

    gf(2) = 30 beats fg(2) = 21.

    fg(2): g first, 2 × 10 = 20, then + 1 = 21. gf(2): f first, 2 + 1 = 3, then × 10 = 30. Same two machines, swapped order, different answer.

  • Higher: for f⁻¹(x), set y = f(x) and rearrange for x. For fg(x), put all of g(x), in a bracket, in place of x in f.

The big picture

A function is a machine: an input goes in, its operations happen in a fixed order, and one output comes out. At Higher, f(x) names that output, a one-to-one machine can be run backwards as its inverse f⁻¹(x), and two machines can be chained into a composite such as fg(x), where g goes first. Order runs the whole show.

Key points

1Input → operations in a fixed order → one output.
2Higher: f(7) = 3 means 'put 7 in, get 3 out', not f × 7.
3Higher: f⁻¹ uses the opposite operations in reverse order, and only a one-to-one function has one.
4Higher: in fg(x), g acts first; fg(x) = f(g(x)).
5Higher: f⁻¹(x) is not 1/f(x).

Worked example

Problem

(Higher) f(x) = 4x + 1 and g(x) = x². (a) Find f(−2). (b) Find gf(x). (c) Find f⁻¹(x).

⚠ Watch out

Higher: building an inverse by swapping each operation for its opposite but keeping the forward order. Looks convincing. Isn't. For f(x) = (2x + 1)/5 that gives ÷ 2, then − 1, then × 5, which sends 3 to 2.5 instead of back to 7. Undo the last operation first.

🧠

Memory hook

One machine, three ways. Forwards is the function. At Higher, backwards is the inverse (for a one-to-one machine): shoes off before socks, so the last thing done is the first thing undone. Joined is the composite: the machine next to x goes first.

✓

Check yourself

(Higher) No peeking: h(x) = 2x − 9. Work out h(6). Then write h⁻¹(x), and check that it sends your answer back to 6.

Flashcards

(10)
What does a function do to each input?
It puts it through the same operations, in a fixed order, and gives exactly one output.
(Higher) What does f(x) mean?
The output of the function f when the input is x. f(7) = 3 means input 7 gives output 3. It does not mean f × 7.
For the expression 3(x − 2), in what order do the operations act on x?
Subtract 2 first, because it's inside the bracket, then multiply by 3.
(Higher) What is the inverse function f⁻¹?
The function that reverses f: it takes each output of f back to the one input that produced it.
(Higher) How do you build the inverse machine from the machine for f?
Use the opposite of each operation, in reverse order, so f's last operation is undone first.
(Higher) Why doesn't g(x) = x², over all numbers, have an inverse function?
Two different inputs give the same output (3 and −3 both give 9), so a backwards machine couldn't know which one to return. Restricting the inputs, for example to x ≥ 0, fixes that.
(Higher) What is a composite function?
Two functions applied in succession: the output of the first becomes the input of the second.
(Higher) In fg(x), which function acts first?
g, the one written next to x. fg(x) = f(g(x)).
(Higher) Does f⁻¹(x) mean 1/f(x)?
No. The ⁻¹ means inverse: f⁻¹ undoes f. 1/f(x) is the reciprocal of f(x), which is a different thing.
(Higher) How can you check an inverse you have found?
Put a number through f, then put the output through f⁻¹. You should land back on the number you started with.

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

See the full AQA Maths curriculum →

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 26 October 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.

Helpful guides for parents and students