Worked Example · Functions · Paper 2 · 4 marks

Domain of a Composite Function

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 16 August 2026

The domain of a composite is the set of inputs for which the whole expression is defined. When the composite contains a square root, the quantity under the root must be 0\ge 0; that condition gives the domain.

The functions ff and gg are defined by f(x)=xf(x) = \sqrt{x} for x0x \ge 0, and g(x)=x3g(x) = x - 3. Find fg(x)fg(x) and state its domain. [4]

The working

Step 1, form fg(x)=f(g(x))fg(x) = f\big(g(x)\big) (apply gg first, then ff): fg(x)=f(x3)=x3(M1, A1)fg(x) = f(x - 3) = \sqrt{x - 3} \quad \text{(M1, A1)}

Step 2, find the domain. The expression under the square root must be 0\ge 0: x30    x3(M1, A1)x - 3 \ge 0 \;\Rightarrow\; x \ge 3 \quad \text{(M1, A1)}

So fg(x)=x3fg(x) = \sqrt{x - 3}, defined for x3x \ge 3.

Where the marks are won and lost

  • Composite order: fgfg means gg first, so ff acts on (x3)(x - 3), giving x3\sqrt{x - 3}, not x3\sqrt{x} - 3.
  • The square-root condition (x30x - 3 \ge 0) is what fixes the domain. Forgetting it, or writing x0x \ge 0 (the domain of ff alone), loses the domain marks.
  • The domain of the composite comes from the composite, not just from ff‘s or gg‘s individual domains.

Common mistakes

  • Writing fg(x)=x3fg(x) = \sqrt{x} - 3 (wrong order, ff applied first).
  • Giving the domain as x0x \ge 0 instead of x3x \ge 3.
  • Using strict >> when \ge is correct (0\sqrt{0} is defined).

Full method: Composite Functions notes. See also Domain & Range. Topic home: Functions pillar.

Common questions

How do I find the domain of a composite function?
Form the composite, then find the values of x for which the whole expression is defined. If the composite contains a square root, the expression under the root must be greater than or equal to zero; if it contains a fraction, the denominator must not be zero. So set up the condition from the composite and solve it. The domain is the set of x-values that keep every part of the composite valid.

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.