Worked Example · Functions · Paper 1 · 5 marks

Solving a Composite Equation gf(x) = k

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

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

Forming a composite that contains a square and setting it to a value produces a squared equation, so square-rooting gives two solutions. This tests both composite formation and remembering the ±\pm.

The functions ff and gg are defined by f(x)=3x1f(x) = 3x - 1 and g(x)=x2g(x) = x^2. Solve the equation gf(x)=16gf(x) = 16. [5]

The working

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

Step 2, set equal to 1616: (3x1)2=16(M1)(3x - 1)^2 = 16 \quad \text{(M1)}

Step 3, square-root both sides (remember the ±\pm): 3x1=±43x - 1 = \pm 4

Step 4, solve each case: 3x1=43x=5x=533x - 1 = 4 \Rightarrow 3x = 5 \Rightarrow x = \frac{5}{3} 3x1=43x=3x=1(A1, A1)3x - 1 = -4 \Rightarrow 3x = -3 \Rightarrow x = -1 \quad \text{(A1, A1)}

So x=53x = \frac{5}{3} or x=1x = -1.

Where the marks are won and lost

  • Composite order: gfgf means ff first, so gg squares (3x1)(3x - 1), giving (3x1)2(3x - 1)^2, not 3x213x^2 - 1.
  • The ±\pm on square-rooting is essential: 16=±4\sqrt{16} = \pm 4 leads to two equations. Taking only +4+4 loses x=1x = -1.
  • Both solutions are valid (no domain restriction rules either out).

Common mistakes

  • Computing fgfg instead of gfgf.
  • Expanding (3x1)2(3x-1)^2 and forming a quadratic (valid but slower; the ±\pm route is cleaner) then mishandling it.
  • Forgetting the negative square root.

Full method: Composite Functions notes. Topic home: Functions pillar.

Common questions

When solving a composite equation, why two answers?
Because the composite here contains a square. Forming gf(x) = (3x − 1)² and setting it to 16 leads to (3x − 1)² = 16, and square-rooting gives 3x − 1 = ±4, hence two linear equations and two solutions. Whenever a squared term is undone, remember the plus-or-minus, dropping it loses half the answers unless a domain restriction rules one out.

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.