Learn in your language
Skip to content
StudyForALearn · Practise · Understand
IGCSE · Cambridge (CIE) · 0580

Functions, domains, inverses and composition

Track the order of input–output rules and state where they are valid.

Algebra and graphs pathway · E2.13

Extended only.

Before you begin

  • Substitute expressions and rearrange a formula.
  • Understand squares, roots and denominator restrictions.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

For f(x) = 4x − 3, what is f(2)?

What you will learn

  • Use function notation with a stated domain and range.
  • Find an inverse by reversing a one-to-one rule.
  • Form composite functions in the stated order.
gf(3): apply f first, then gfg(3): apply g first, then f37493919f: 2x + 1g: x²g: x²f: 2x + 1
With f(x) = 2x + 1 and g(x) = x², input 3 goes through f to 7, then through g to 49. Reversing the order gives 3 through g to 9, then through f to 19. Cambridge gf(x) means g(f(x)).

A function assigns one output to each allowed input

For f(x) = 3x − 4, f(2) = 2. The notation f(2) means apply the rule to input two; it is not f multiplied by two. The domain is the permitted input set and the range is the output set actually reached. If the domain is 0 ≤ x ≤ 2, the range of this increasing rule is −4 ≤ f(x) ≤ 2.

An algebraic formula can impose restrictions: f(x) = 1/(x − 2) cannot accept x = 2, and f(x) = √x requires x ≥ 0 for real outputs. A domain may be narrower still when the problem states it. For f(x) = x² with −2 ≤ x ≤ 3, the range is 0 to 9; substituting only the two endpoints would miss the minimum at zero.

An inverse undoes a one-to-one rule

To invert f(x) = 3x − 4, write y = 3x − 4 and solve x = (y + 4)/3. Rename the inverse input to x, giving f⁻¹(x) = (x + 4)/3. The notation f⁻¹ does not mean 1/f. Check f⁻¹(f(x)) = x and f(f⁻¹(x)) = x on the appropriate domains.

The unrestricted square rule is not one-to-one because two and negative two both map to four. If its domain is x ≥ 0, its inverse is √x, and the inverse's domain is the original non-negative range. If the original domain were x ≤ 0, its inverse would instead use −√x. Stating the restriction prevents an inverse rule from returning two outputs for one input.

Composition applies the inside function first

In Cambridge notation gf(x) = g(f(x)): apply f first, then g. If f(x) = 2x + 1 and g(x) = x², gf(x) = (2x + 1)² while fg(x) = 2x² + 1. At x = 3, the first order gives 49 and the reverse gives 19. Composition usually depends on the order and is not multiplication of outputs.

Replace every occurrence of the outer function's input with the complete inner expression, using brackets. For f(x) = 3/(x + 1) and g(x) = x², fg(x) = 3/(x² + 1). First ensure an actual input is allowed by the inner rule and its output is allowed by the outer rule. This course does not require students to derive domains and ranges of composite functions as a separate assessed technique.

Pause and explain

In gf(x) = g(f(x)), which rule acts first?

Put the idea to work

Worked example

For f(x) = 2x + 1 and g(x) = x², find gf(x), fg(x) and f⁻¹(x).

Show the worked solution
  1. Apply f before g: gf(x) = (2x + 1)².
  2. Apply g before f: fg(x) = 2x² + 1.
  3. Rearrange y = 2x + 1 to obtain f⁻¹(x) = (x − 1)/2.

Answer gf(x) = (2x + 1)²; fg(x) = 2x² + 1; f⁻¹(x) = (x − 1)/2

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

For f(x) = 5x + 2, find f(−1) and f⁻¹(x).

Give me a hint

Undo adding two, then multiplying by five.

Compare my reasoning
  1. f(−1) = 5(−1) + 2 = −3.
  2. From y = 5x + 2, rearrange x = (y − 2)/5.
  3. Thus f⁻¹(x) = (x − 2)/5; applying it to −3 returns −1.

f(−1) = −3; f⁻¹(x) = (x − 2)/5

Look for these in your work

  • Substituted the signed input correctly.
  • Checked the inverse using the original output.
2 · Independent

For f(x) = x − 4 and g(x) = 3x², find gf(x) and fg(x), then evaluate both at x = 2.

Give me a hint

Replace the outer rule's input with the complete inner expression.

Compare my reasoning
  1. gf(x) = 3(x − 4)², so gf(2) = 12.
  2. fg(x) = 3x² − 4, so fg(2) = 8.
  3. The different results confirm that changing the order changes this composite.

gf(x) = 3(x − 4)²; fg(x) = 3x² − 4; gf(2) = 12, fg(2) = 8

Look for these in your work

  • Kept the correct composition order.
  • Bracketed the expression before squaring.
3 · Transfer

A sensor calibration uses f(x) = 2x + 6 on raw readings 0 ≤ x ≤ 10. State its calibrated range, inverse, and the raw reading corresponding to calibrated output 18.

Give me a hint

The increasing rule maps the domain endpoints to its range endpoints.

Compare my reasoning
  1. Outputs run from f(0) = 6 to f(10) = 26.
  2. The inverse is f⁻¹(y) = (y − 6)/2, defined for calibrated readings 6 ≤ y ≤ 26.
  3. For y = 18, the raw reading is (18 − 6)/2 = 6, within its allowed input interval.

Range [6, 26]; inverse (y − 6)/2; raw reading 6

Look for these in your work

  • Kept the original domain and inverse domain distinct.
  • Checked the recovered reading is allowed.

Common mistakes

  • Reading f(x) as multiplication.
  • Confusing an inverse function with a reciprocal.
  • Applying composite functions in the opposite order.
Recall without your notes

What can you explain now?

For f(x) = x² on x ≥ 0, give its range and inverse.

Compare with the explanation

Range y ≥ 0; f⁻¹(x) = √x on x ≥ 0

The non-negative domain makes squaring one-to-one. Its non-negative outputs form the inverse's domain.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

Build two simple functions and apply them in both orders to the same input. Find an inverse for one and state its permitted inputs.

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Original StudyForA teaching content · AI-assisted checks · Human teacher review pending.

Number contains 19 sequenced lessons; Algebra and graphs contains 21; Coordinate geometry contains 10 teaching lessons and a mixed checkpoint. Nine earlier overviews support selected topics across the syllabus. The other six syllabus areas, full cumulative assessment and human teacher review are not yet complete. Written lesson practice is self-checked, not automatically graded. The checkpoint samples skills and does not save an exam grade or certify mastery.

Check the official syllabus 2025–2027 Open related practice and resources