Functions · 0606 Topic 1

Composite Functions

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · 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)=3x−2f(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))=(3x−2)2+1=9x2−12x+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 fg≠gffg \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=7→x2=2→x=±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 x≥0x \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+1−23x^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)=f−1(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. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.