A function is a rule that turns each input into exactly one output, written f(x). A composite function applies one function and then another: fg(x) means f(g(x)), so g acts first, even though f is written first. An inverse function f⁻¹(x) undoes f, and you find it by writing y = f(x), making x the subject, then swapping the letters back.
In Cambridge IGCSE 0580, functions are sub-topic E2.13 and are Extended only. The syllabus covers function notation, domain and range, inverse functions and composite functions defined by gf(x) = g(f(x)). Students are not expected to find the domain or range of a composite, and questions may include mapping diagrams. Functions questions search well online for a reason: they look unfamiliar at first. Our Cambridge IGCSE 0580 tutoring treats them as ordinary algebra with new notation.
Notation at a glance
| Notation | Meaning | Example with f(x) = 4x − 7 |
|---|---|---|
| f(3) | Substitute 3 for x | 4(3) − 7 = 5 |
| f(a + 1) | Substitute a + 1 for x | 4(a + 1) − 7 = 4a − 3 |
| f⁻¹(x) | The inverse: undoes f | (x + 7)/4 |
| fg(x) | f(g(x)): apply g, then f | Depends on g |
| ff(x) | f(f(x)): apply f twice | 4(4x − 7) − 7 = 16x − 35 |
f⁻¹(x) is not 1/f(x). The −1 is notation for "inverse", not a power. That one confusion costs marks every series.
Worked example 1: evaluating and composing
f(x) = 4x − 7 and g(x) = x² + 1. Find (a) f(3), (b) g(−2), (c) fg(x), (d) gf(x).
(a) f(3) = 12 − 7 = 5.
(b) g(−2) = (−2)² + 1 = 5.
(c) fg(x) = f(g(x)). Put g(x) into f wherever there is an x:
f(x² + 1) = 4(x² + 1) − 7 = 4x² − 3.
(d) gf(x) = g(f(x)) = (4x − 7)² + 1 = 16x² − 56x + 49 + 1 = 16x² − 56x + 50.
fg(x) and gf(x) are different, so order matters. A quick way to remember: read from the right. In fg(x), x meets g first.
Worked example 2: a simple inverse
f(x) = (5x + 2)/3. Find f⁻¹(x), and check your answer.
Write y = (5x + 2)/3 and make x the subject:
- Multiply by 3: 3y = 5x + 2
- Subtract 2: 3y − 2 = 5x
- Divide by 5: x = (3y − 2)/5
Swap y back to x: f⁻¹(x) = (3x − 2)/5.
Check: f(4) = 22/3. Then f⁻¹(22/3) = (22 − 2)/5 = 4. The inverse brings you back to the start, as it should. A check like this takes thirty seconds and is worth doing on every inverse question.
Worked example 3: an inverse where x appears twice
h(x) = (x + 4)/(x − 2), x ≠ 2. Find h⁻¹(x).
Write y = (x + 4)/(x − 2). Here x appears twice, so collect and factorise:
- Multiply by (x − 2): y(x − 2) = x + 4
- Expand: xy − 2y = x + 4
- Collect x terms: xy − x = 2y + 4
- Factorise: x(y − 1) = 2y + 4
- Divide: x = (2y + 4)/(y − 1)
So h⁻¹(x) = (2x + 4)/(x − 1), x ≠ 1.
This is exactly the "subject appears twice" method from our guide to rearranging formulae. If that step is shaky, inverse questions will be too.
Worked example 4: solving an equation with a composite
f(x) = 2x + 3 and g(x) = 1/(x − 1), x ≠ 1. Solve fg(x) = x, giving your answers in surd form.
fg(x) = f(g(x)) = 2/(x − 1) + 3.
Set it equal to x: 2/(x − 1) + 3 = x.
Multiply every term by (x − 1):
2 + 3(x − 1) = x(x − 1)
2 + 3x − 3 = x² − x
0 = x² − 4x + 1
This does not factorise, so complete the square: (x − 2)² − 3 = 0, which gives x = 2 ± √3.
Multi-step questions like this combine functions, algebraic fractions and quadratics. Our guide to quadratic equations and completing the square covers the final step.
Domain and range
The domain is the set of inputs a function accepts. The range is the set of outputs it produces.
- f(x) = x² + 3, for all real x, has range f(x) ≥ 3, because x² is never negative.
- h(x) = (x + 4)/(x − 2) has domain x ≠ 2, because the denominator cannot be zero.
- For an inverse function, domain and range swap: the range of f becomes the domain of f⁻¹.
A sketch is often the fastest way to see a range. Our guide to curve sketching with domain and range works through quadratic, reciprocal and exponential cases.
Mapping diagrams
The syllabus says functions may include mapping diagrams: two ovals of numbers with arrows from inputs to outputs. Each input must have exactly one arrow out; otherwise the mapping is not a function. To find an inverse from a mapping, reverse every arrow.
Non-calculator and calculator handling
Functions are mainly tested on Paper 2, because the work is algebraic: composing, inverting and solving. Expect questions such as "find ff(2)" or "solve f(x) = f⁻¹(x)", with exact answers.
On Paper 4, functions appear less often, sometimes with decimal inputs or as part of a longer question that leads into a graph. The calculator helps with evaluation only.
Mistakes our tutors see
- Applying composites in the wrong order: working out fg(x) as g(f(x)).
- Treating f⁻¹(x) as 1/f(x).
- Squaring only part of a bracket, as in (4x − 7)² written as 16x² + 49.
- Forgetting to swap y back to x at the end of an inverse.
- Losing the excluded value, such as x ≠ 2, when the question expects it.
- Substituting f(x) into g as a number when an expression in x is required.
When to get help
- The notation makes simple algebra feel hard.
- You get fg and gf the wrong way round under exam pressure.
- Inverses are fine for linear functions but break down when x appears twice.
- Multi-part functions questions run out of time before the final part.
Self-check
- f(x) = 3 − 2x. Find f(−4).
- Find f⁻¹(x) for f(x) = 3 − 2x.
- f(x) = x + 5 and g(x) = 2x². Find gf(1) and fg(1).
- f(x) = 3x − 4. Solve f(x) = f⁻¹(x).
- State the range of f(x) = (x − 1)² + 2 for all real x.
Answers.
- 3 + 8 = 11
- y = 3 − 2x, so x = (3 − y)/2 and f⁻¹(x) = (3 − x)/2
- f(1) = 6, so gf(1) = 2 × 36 = 72; g(1) = 2, so fg(1) = 7
- f⁻¹(x) = (x + 4)/3; 3x − 4 = (x + 4)/3 gives 9x − 12 = x + 4, so x = 2
- f(x) ≥ 2
Where this leads
Functions close the strand on our complete 0580 algebra topic map and connect to the gradient functions in our guide to gradients and stationary points. Additional Mathematics 0606 takes functions further, with the domain and range of composites and inverses and modulus functions; see our guide to 0606 functions, modulus and inverses. Students who move on to IB or A level meet function notation in every unit.
How Maths Bodhi helps
In a free demo, the tutor gives one composite, one inverse and one equation question, then asks the student to explain the order of operations aloud. Practice is original and exam-style, and progress is tracked through written method. Students learning from outside Gurgaon can work with our IGCSE online maths tutors.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Written and checked by the Maths Bodhi team. Facts checked against official Cambridge International and Pearson sources, November 2026.
Frequently asked questions
- How do you find a composite function in IGCSE?
- For fg(x), substitute the whole expression for g(x) into f wherever x appears. The function written next to x acts first, so in fg(x), g acts first.
- How do you find an inverse function in IGCSE?
- Write y = f(x), rearrange to make x the subject, then replace y with x. If x appears twice, collect the x terms and factorise.
- Are functions in IGCSE Core?
- No. Functions are E2.13 in the 0580 2025 to 2027 syllabus and are Extended only. Core has no function notation, inverses or composites.
- Is fg(x) the same as gf(x)?
- Usually not. fg(x) = f(g(x)) and gf(x) = g(f(x)) give different expressions in most cases, so always check which function acts first.
- Does f⁻¹(x) mean 1/f(x)?
- No. f⁻¹(x) is the inverse function, which undoes f. It is not the reciprocal of f(x).
- Do I need to find the domain of a composite function for 0580?
- No. The 0580 syllabus says candidates are not expected to find the domains and ranges of composite functions. That skill appears in Additional Mathematics 0606.
