GCSE · Maths · OCR · Spec J560

Functions

Put −2 and 2 into x² and both give 4. Fine. Put 4 into ±√x and you get 2 and −2. Not fine. Why?

Sort the relationships

Which of these are functions, and which can be reversed?

A function sends every valid input to exactly one output. An inverse function runs the arrows backwards, and that has to give exactly one output too. Tick every set each relationship belongs to, or tick In none.

  • A a valid function
  • B has an inverse function
  1. f(x) = 5x
  2. f(x) = 2x + 1
  3. f(x) = x² for any x (−2 and 2 both give 4)
  4. f(x) = x² with the domain restricted to x ≥ 0
  5. y = ±√x (4 gives both 2 and −2)

Domain and range

Inputs in, outputs out

The function f(x) = x² is given the domain −2 ≤ x ≤ 2. That is the set of inputs. Set the two ends of its range, the set of outputs, and decide whether each end is included.

Notation and order

Which thing happens to the number first?

f(x) = 3x − 10 and g(x) = 2x + 1. Build the answers line by line, choosing the missing step each time.

  1. f(x) = 3x − 10 is a recipe: take x, multiply by 3, then subtract 10. Here f is the name of the recipe, not a number, so f(x) is not f × x.Any value can go in, including negatives and decimals: f(0.5) = 3 × 0.5 − 10 = −8.5.
  2. missing step
Which line is step 2?

Writing a composite algebraically

One line is hiding a slip

A student finds fg(x) when f(x) = 7 − x and g(x) = 3x − 2. Tap the line where the working goes wrong.

A student's answer — which line goes wrong?

Maths · Algebra

Finding an inverse function, then checking it

Step forward — the next line lights up, the rest dim back.

GoalFind f⁻¹(x) for f(x) = 2x + 1, then check it
1
y = 2x + 1

Write f(x) as y. The aim is to make x the subject.

2
3
4
5
6

Step 1 of 6

Write f(x) as y. The aim is to make x the subject.

Reflecting in y = x

Why x² needs a restricted domain to be reversed
xyy = x2−2y = x²reflected: x = y²

View: Reflect all of it. Showing 3 layers: Axes and the line y = x, y = x², Its reflection in y = x

View

Layers

Explore

Reflect every point in the dashed line y = x and swap its coordinates: (2, 4) becomes (4, 2) and (−2, 4) becomes (4, −2). The input 4 now has two outputs, so the reflection is not a function.

A sketch, not to scale. Switch the view, then tap the highlighted parts.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

A function sends every valid input to exactly one output, and that one rule decides what has an inverse.

What you need to know

  • A function is a rule that gives exactly one output for every valid input.
  • The domain is the set of inputs. The range is the set of outputs.
  • If some inputs are invalid, restrict the domain: for 1/x, x can be any value except 0.
  • One-to-one and many-to-one are both valid functions. One-to-many, like ±√x, is not.
  • Have a goA classmate says x → x² can't be a function because 3 and −3 both give 9. Fair?

    No. Two inputs sharing one output is many-to-one, which is allowed.

    The rule only forbids one input giving two outputs. It never demands a different output for every input.

  • f(x) = 3x + 5 is shorthand. f names the function, and f(x) does not mean f multiplied by x.
  • To evaluate, substitute. 2f(x) doubles the output, while f(4x) and f(x + 5) change the input first.
  • Have a goZoe says f(4x) and 4f(x) are basically the same. Try f(x) = 2x + 1 with x = 3. Is she right?

    No. f(4x) = f(12) = 25, but 4f(x) = 4 × 7 = 28.

    In f(4x) the 4 changes the input first. In 4f(x) the 4 multiplies the output.

  • The inverse function f⁻¹(x) reverses f, sending outputs back to inputs. It does not mean 1/f(x).
  • Have a gof(x) = 2x, so f(5) = 10. Without finding a formula, what does f⁻¹(10) equal?

    5

    The inverse sends the output 10 back to the input 5. Reading f⁻¹(10) as 1 ÷ 10 is the tempting wrong turn.

  • Find the inverse by making x the subject, then check it: if f sends a to b, f⁻¹ sends b to a.
  • The graph of y = f⁻¹(x) reflects y = f(x) in y = x. x² needs a restricted domain, such as x ≥ 0, first.
  • gf(x) means do f first, then g. fg(x) and gf(x) are not necessarily the same.

The big picture

A function sends every valid input to exactly one output. Its domain is the set of inputs and its range is the set of outputs. Function notation tells you the order of operations, in 2f(x), f(4x) and gf(x). An inverse function reverses the mapping and only exists when the reverse is also a function. Composite functions chain two or more functions with the inner one first.

Key points

1A function sends every valid input to exactly one output. One-to-one and many-to-one are valid; one-to-many is not.
2The domain is the set of inputs and the range is the set of outputs; the range of f is the domain of f⁻¹.
3In gf(x), f runs first and its output is the input of g. Work the inner function first, never just left to right.
4To find f⁻¹, make x the subject, then check that if f sends a to b, f⁻¹ sends b back to a.
5A many-to-one function such as x² only has an inverse function once its domain is restricted, for example to x ≥ 0.

Worked example

Problem

f(x) = x² + x and g(x) = x + 3. Write fg(x) as an expression in x and simplify it.

⚠ Watch out

Reading f⁻¹(x) as 1/f(x). For f(x) = 2x, the inverse function is f⁻¹(x) = x/2, not 1/(2x): f sends 3 to 6, and f⁻¹ has to send 6 back to 3.

🧠

Memory hook

Nearest the number goes first: in gf(x), f is nearest x, so f runs first. And f⁻¹ undoes f; it is not 1 ÷ f.

✓

Check yourself

f(x) = 6x. Write down f⁻¹(x), then check it using f(2). Answer: f⁻¹(x) = x/6, and f(2) = 12 with f⁻¹(12) = 12/6 = 2.

Flashcards

(15)
What is a function?
A relationship that sends every valid input to exactly one output.
What are the domain and the range of a function?
The domain is the set of inputs. The range is the set of outputs, so for x² with every input allowed the range is f(x) ≥ 0.
How do you make a function like 1/x valid?
Restrict the domain to leave out the invalid input: x can be any value except 0, because dividing by 0 is undefined.
Which of one-to-one, many-to-one and one-to-many is NOT a valid function?
One-to-many, where one input gives several outputs, such as ±√x giving both 2 and −2 from 4. One-to-one (2x) and many-to-one (x²) are valid.
In f(x) = 3x + 5, what do f and x mean?
f is the name of the function and is not a variable, and other functions can be named g, h and so on. x is the variable. f(x) means 'a function of x', not f × x.
How do you read 2f(x), f(4x) and f(x + 5)?
2f(x): work out f(x), then double it. f(4x): multiply x by 4, then put it in f. f(x + 5): add 5 to x, then put it in f.
Can f(4) + g(5) be combined into one expression first?
No. The inputs are different, so work out f(4) and g(5) separately, then add the results.
What does an inverse function do?
It reverses the mapping, sending values in the range back to values in the domain. It is written f⁻¹(x), and it is not 1/f(x).
How are the domain and range of f and f⁻¹ linked?
The range of f is the domain of f⁻¹, and the domain of f becomes the range of f⁻¹.
How do you find an inverse function and check it?
Make x the subject: f(x) = 5x gives f⁻¹(x) = x/5. Check: if f(x) = 12x sends 4 to 48, then f⁻¹(48) = 48/12 = 4.
How is the graph of y = f⁻¹(x) related to the graph of y = f(x)?
It is the reflection of y = f(x) in the line y = x, so the x- and y-coordinates of each point swap.
Why does f(x) = x² have no inverse function until its domain is restricted?
Reflecting it in y = x gives a one-to-many relationship, which is not a function. Restricting to x ≥ 0 makes the inverse valid: f⁻¹(x) = √x.
What does gf(x) mean, and is it always equal to fg(x)?
Do f first, then use its output as the input of g. fg(x) and gf(x) are not necessarily equal; they match, for example, when the functions are identical or one is the inverse of the other.
How do you work out fgh(4) or ff(2)?
fgh(4): find h(4), put that into g, then put that output into f. ff(2) means f applied to f(2), and fff(2) means f applied three times.
How do you write a composite function algebraically?
Substitute the inner function's expression into the outer function and simplify. If a bracket is being subtracted, subtract both terms inside it.

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 OCR GCSE Maths topics

See the full OCR Maths curriculum →

How this lesson was checked. This OCR GCSE Maths (specification J560)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 13 November 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