Worked Example · Quadratic Functions · Paper 1 · 4 marks

Completing the Square for a Maximum

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

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

When the x2x^2 coefficient is negative, completing the square gives a maximum instead of a minimum, because the squared term is now subtracted. The method is the same; only the sign of the vertex changes.

Express 3+4x2x23 + 4x - 2x^2 in the form ab(xc)2a - b(x - c)^2, and hence state the maximum value. [4]

The working

Step 1, reorder and factor the 2-2 from the xx-terms: 3+4x2x2=2x2+4x+3=2(x22x)+3(M1)3 + 4x - 2x^2 = -2x^2 + 4x + 3 = -2(x^2 - 2x) + 3 \quad \text{(M1)}

Step 2, complete the square inside the bracket (x22x=(x1)21x^2 - 2x = (x-1)^2 - 1): =2[(x1)21]+3(M1)= -2\big[(x - 1)^2 - 1\big] + 3 \quad \text{(M1)}

Step 3, multiply back and combine (2×1=+2-2 \times -1 = +2, then +2+3=5+2 + 3 = 5): =2(x1)2+5=52(x1)2(A1)= -2(x - 1)^2 + 5 = 5 - 2(x - 1)^2 \quad \text{(A1)}

Step 4, read the maximum. Since 2(x1)20-2(x - 1)^2 \le 0, the expression is largest when the bracket is zero: maximum value=5 (at x=1)(A1)\text{maximum value} = 5 \ (\text{at } x = 1) \quad \text{(A1)}

Where the marks are won and lost

  • Factor out the negative coefficient from the xx-terms first: 2(x22x)-2(x^2 - 2x). Handling the sign here is the crux.
  • Multiplying back: 2×(1)=+2-2 \times (-1) = +2, so the constant becomes +2+3=5+2 + 3 = 5. A sign slip on this product is the classic error.
  • Negative coefficient means maximum, not minimum, the vertex is the highest point.

Common mistakes

  • Forgetting to multiply the inside 1-1 by the outside 2-2 (giving the wrong constant).
  • Treating the turning point as a minimum.
  • Sign errors when factoring 2-2 out of +4x+4x (it becomes 2x-2x inside).

Full method: Completing the Square notes. See also Maximum/Minimum & the Vertex. Topic home: Quadratic Functions pillar.

Common questions

How do I complete the square when the x² term is negative?
Factor the negative coefficient out of the x-terms, complete the square inside the bracket, then multiply back. For −2x² + 4x you write −2(x² − 2x), complete to −2[(x − 1)² − 1], then expand to −2(x − 1)² + 2. Because the coefficient is negative, the squared term is always ≤ 0, so the turning point is a maximum, not a minimum. The sign flips the vertex from a minimum to a maximum.

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.