Functions · 0606 Topic 1

Composite Functions

Teacher Rig, IGCSE Add Math tutor

Written by Teacher Rig

8 years teaching IGCSE Add Math · Updated 12 June 2026

A composite function applies one function to the output of another. The notation is the whole battle: fg(x)fg(x) means gg first, then ff, read right to left, like the innermost bracket of f(g(x))f(g(x)).

Building a composite: brackets first

f(x)=3x2f(x) = 3x - 2, g(x)=x2+1g(x) = x^2 + 1. Find fg(x)fg(x) and gf(x)gf(x). fg(x)=f(g(x))=3(x2+1)2=3x2+1fg(x) = f(g(x)) = 3(x^2 + 1) - 2 = 3x^2 + 1 gf(x)=g(f(x))=(3x2)2+1=9x212x+5gf(x) = g(f(x)) = (3x - 2)^2 + 1 = 9x^2 - 12x + 5

The working habit that earns the method mark: write the substitution line with the inner function still bracketed. 3(x2+1)23(x^2 + 1) - 2, before expanding. Jumping straight to the expanded form risks the whole question on one slip, and shows the examiner nothing creditable if it goes wrong.

Note fggffg \ne gf in general. If your two composites come out identical, recheck, it happens, but rarely in exam questions.

Solving fg(x)=kfg(x) = k

Build the composite first, then solve the resulting equation:

fg(x)=7fg(x) = 7: 3x2+1=7x2=2x=±23x^2 + 1 = 7 \to x^2 = 2 \to x = \pm\sqrt{2}

Keep both roots unless the domain excludes one (then reject in writing, the rejection sentence is routinely a mark). For f2(x)f^2(x), 0606 means ff(x)ff(x), apply ff twice, not [f(x)]2[f(x)]^2.

Domains of composites

The composite fgfg only accepts xx-values that gg accepts and whose outputs ff accepts. In practice 0606 tests this lightly, but if g(x)=xg(x) = \sqrt{x} feeds ff, the domain restriction x0x \ge 0 travels with it, and stating that is a mark when asked.

Common mistakes

  • Order reversed: computing gfgf when fgfg was asked (the single most common error in scripts)
  • Brackets dropped: 3x2+123x^2 + 1 - 2 instead of 3(x2+1)23(x^2 + 1) - 2
  • f2(x)f^2(x) treated as squaring instead of double application
  • Solving f(x)g(x)=kf(x)g(x) = k as if it were a composite, a product is not a composition

Composites combine naturally with inverse functions (e.g. solving fg(x)=5fg(x) = 5 via g(x)=f1(5)g(x) = f^{-1}(5)), a favourite harder part. Full topic context: Functions notes.

Keep going

See the teaching work on your own child. Free. Then decide.

Every student starts with a free 1-hour class taught by Teacher Rig or the specialist your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. RM80/hr after that. No registration fee, no lock-in, online anywhere in Malaysia.