Worked Example · Equations, Inequalities and Graphs · Paper 2 · 5 marks

Solving |2x − 4| = x + 1 Graphically and Algebraically

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

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

This question links algebra to a picture: the solutions of 2x4=x+1|2x - 4| = x + 1 are where the V-shaped graph y=2x4y = |2x - 4| meets the line y=x+1y = x + 1. Solve the two cases, then let the graph confirm how many solutions are genuine.

Solve 2x4=x+1|2x - 4| = x + 1. [5]

The working

Step 1, split into two cases: 2x4=x+1or2x4=(x+1)(M1)2x - 4 = x + 1 \qquad \text{or} \qquad 2x - 4 = -(x + 1) \quad \text{(M1)}

Step 2, solve each: 2x4=x+1    x=5(A1)2x - 4 = x + 1 \;\Rightarrow\; x = 5 \quad \text{(A1)} 2x4=x1    3x=3    x=1(A1)2x - 4 = -x - 1 \;\Rightarrow\; 3x = 3 \;\Rightarrow\; x = 1 \quad \text{(A1)}

Step 3, check both (the line y=x+1y = x + 1 must be 0\ge 0 at a solution):

  • x=5x = 5: LHS =104=6= |10 - 4| = 6, RHS =6= 6. ✓
  • x=1x = 1: LHS =24=2= |2 - 4| = 2, RHS =2= 2. ✓

Both are valid, matching the graph, where the line crosses the V twice: x=1andx=5(M1, A1)x = 1 \quad \text{and} \quad x = 5 \quad \text{(M1, A1)}

Where the marks are won and lost

  • The graphical picture tells you to expect two intersections, so two solutions are anticipated. If the algebra gave only one, that would flag an error.
  • Both candidates pass the check because x+10x + 1 \ge 0 at each (x=1x = 1 and x=5x = 5 are both 1\ge -1). Had a candidate made the RHS negative, it would be rejected.
  • The second case is 2x4=(x+1)2x - 4 = -(x + 1), distribute the minus sign to both terms: x1-x - 1.

Common mistakes

  • Distributing the negative to only one term: (x+1)=x+1-(x+1) = -x + 1 (wrong).
  • Skipping the check when it is needed (here both pass, but the habit protects marks elsewhere).
  • Giving one solution when the graph clearly shows two crossings.

Full method: Solving Equations Graphically notes. See also Graphs of Modulus Functions. Topic home: Equations, Inequalities and Graphs pillar.

Common questions

How does the graph of a modulus function help me count solutions?
The graph of y = |2x − 4| is a V shape sitting on the x-axis, and y = x + 1 is a straight line. Solutions of |2x − 4| = x + 1 are the points where the V and the line cross. Sketching them shows how many intersections to expect, usually two here, so you know how many algebraic answers to find and can spot if one should be rejected. The graph is the check on your algebra, and vice versa.

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.