Worked Example · Functions · Paper 2 · 5 marks

Range of a Composite Function on an Interval

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

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

This question chains two skills: forming a composite function, then finding its range over an interval, which means weighing the endpoints against any turning point inside the interval, exactly as with a restricted-domain quadratic.

The functions ff and gg are defined by f(x)=x2f(x) = x^2 and g(x)=x3g(x) = x - 3. Find the range of the composite function gfgf for the domain 2x2-2 \le x \le 2. [5]

The working

Step 1, form the composite gf(x)=g(f(x))gf(x) = g\big(f(x)\big) (apply ff first, then gg): gf(x)=g(x2)=x23(M1, A1)gf(x) = g(x^2) = x^2 - 3 \quad \text{(M1, A1)}

Step 2, find the values of x2x^2 on [2,2][-2, 2]. The square is smallest at x=0x = 0 (giving 00) and largest at the endpoints x=±2x = \pm 2 (giving 44): 0x24(M1)0 \le x^2 \le 4 \quad \text{(M1)}

Step 3, apply the "3-3" to get the range of gfgf: 03x2343    3gf(x)1(A1, A1)0 - 3 \le x^2 - 3 \le 4 - 3 \;\Rightarrow\; -3 \le gf(x) \le 1 \quad \text{(A1, A1)}

Where the marks are won and lost

  • Composite order: gfgf means ff first, so gg acts on x2x^2, giving x23x^2 - 3, not (x3)2(x - 3)^2.
  • The minimum comes from x2=0x^2 = 0 at x=0x = 0, which is inside [2,2][-2, 2]. If the interval didn’t include 00, the minimum would move to the nearer endpoint, always check whether the turning point is in range.
  • Both endpoints give x2=4x^2 = 4 here (symmetry), so the maximum is 43=14 - 3 = 1.

Common mistakes

  • Computing fgfg instead of gfgf (wrong order).
  • Assuming the endpoints give both extremes and missing the minimum at x=0x = 0.
  • Reading the range as 3gf1-3 \le gf \le 1 but writing it back-to-front.

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

Common questions

How do I find the range of a composite over an interval?
Form the composite first, then treat it as an ordinary function on the given interval. Find the values it takes across the interval, checking the endpoints and any turning point inside the interval. For a composite ending in a square, the minimum is often at the point where the squared part is zero, if that point lies in the interval, so check whether it does before assuming the endpoints give the extremes.

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.