Worked Example · Functions · Paper 1 · 5 marks

Solving a Modulus Function Equation

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

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

A modulus equation ax+b=k|ax + b| = k (with k0k \ge 0) splits into two linear equations, because the inside can be either +k+k or k-k. Show both branches, solve each, and the two marks for the solutions are secure.

The function ff is defined by f(x)=2x6f(x) = |2x - 6| for xRx \in \mathbb{R}. (i) Solve f(x)=4f(x) = 4. [3] (ii) State the range of ff. [2]

The working

(i) 2x6=4|2x - 6| = 4 means the inside is 44 or 4-4: 2x6=4or2x6=4(M1 for both cases)2x - 6 = 4 \qquad \text{or} \qquad 2x - 6 = -4 \quad \text{(M1 for both cases)}

Solve each: 2x=10x=5or2x=2x=1(A1, A1)2x = 10 \Rightarrow x = 5 \qquad \text{or} \qquad 2x = 2 \Rightarrow x = 1 \quad \text{(A1, A1)}

Check: 2(5)6=4=4|2(5) - 6| = |4| = 4 ✓ and 2(1)6=4=4|2(1) - 6| = |-4| = 4 ✓.

(ii) A modulus output is never negative, and 2x6|2x - 6| reaches 00 when 2x6=02x - 6 = 0 (at x=3x = 3): range: f(x)0(M1, A1)\text{range: } f(x) \ge 0 \quad \text{(M1, A1)}

Where the marks are won and lost

  • The two cases are the method mark. A single equation 2x6=42x - 6 = 4 gives only x=5x = 5 and throws away x=1x = 1.
  • The range of any modulus function is 0\ge 0 (it can touch 00). Writing f(x)>0f(x) > 0 misses that f(3)=0f(3) = 0 is attainable.
  • Both answers should be checked back in the modulus, cheap insurance against a sign slip.

Common mistakes

  • Solving only the +4+4 branch.
  • Squaring both sides and mis-handling the resulting quadratic (valid but slower and error-prone here).
  • Giving the range as f(x)>0f(x) > 0 or, worse, all reals.

Full method: Modulus Functions & Their Graphs notes. For inequalities of this type see Equations, Inequalities and Graphs. Topic home: Functions pillar.

Common questions

Why does a modulus equation give two answers?
The modulus |A| is the distance of A from zero, so |A| = 4 means A is 4 units from zero in either direction: A = 4 or A = −4. Applying that to |2x − 6| = 4 gives two linear equations, 2x − 6 = 4 and 2x − 6 = −4, and each yields one solution. You must solve both branches. Solving only the positive case is the usual way to lose half the marks. Always check each answer back in the original modulus equation.

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.