CAIE A-Level · Mathematics 9709 · Quadratics

Completing the Square — Pure Mathematics 1 (9709)

8 min readSyllabus 1.1FreeBy Uzair Khan

Syllabus objective

Carry out the process of completing the square for a quadratic polynomial ax^2 + bx + c, and use a completed square form (e.g. to locate the vertex of the graph of y = ax^2 + bx + c, or to sketch the graph).

Introduction

Completing the square is one of the most versatile algebraic techniques in Pure Mathematics 1. It transforms any quadratic ax2+bx+cax^2 + bx + c into the form a(x+p)2+qa(x+p)^2 + q, revealing the structure of the parabola at a glance. On the 9709 exam, you are expected to carry out this process fluently and then use the result to state the vertex of the parabola, determine the line of symmetry, identify the maximum or minimum value, and produce a clear sketch. Questions on this topic appear both as standalone algebra problems and as part of longer questions on functions and graphs.


Core Concept

Every quadratic ax2+bx+cax^2 + bx + c can be rewritten by completing the square. The goal is to express the quadratic as a perfect square plus (or minus) a constant:

ax2+bx+c=a ⁣(x+b2a) ⁣2+(cb24a)ax^2 + bx + c = a\!\left(x + \frac{b}{2a}\right)^{\!2} + \left(c - \frac{b^2}{4a}\right)

Why does this help?
Because a ⁣(x+p)20a\!\left(x+p\right)^2 \geq 0 when a>0a > 0 (or 0\leq 0 when a<0a < 0), the minimum or maximum value of the whole expression is simply qq, achieved when x=px = -p. This gives the vertex (p,q)(-p,\, q) and the axis of symmetry x=px = -p directly.

Step-by-step process (for general ax2+bx+cax^2 + bx + c):

  1. Factor out aa from the first two terms.
  2. Complete the square inside the bracket by adding and subtracting (b2a)2\left(\dfrac{b}{2a}\right)^2.
  3. Expand the bracket back out and simplify the constant terms.
  4. Read off the vertex (p,q)(-p, q) from the form a(x+p)2+qa(x+p)^2 + q.

Key Formulae & Definitions

ax2+bx+c  =  a ⁣(x+b2a) ⁣2+cb24a\boxed{ax^2 + bx + c \;=\; a\!\left(x + \frac{b}{2a}\right)^{\!2} + c - \frac{b^2}{4a}}
FeatureReads directly from a(x+p)2+qa(x+p)^2 + q
Vertex(p,  q)(-p,\; q)
Axis of symmetryx=px = -p
Minimum value (if a>0a>0)qq
Maximum value (if a<0a<0)qq
Direction of openingUpward if a>0a>0; downward if a<0a<0

Worked Examples

Example 1 — Monic quadratic (a=1a = 1)

Rewrite x26x+11x^2 - 6x + 11 in completed square form and state the vertex.

Step 1. Since a=1a=1, no initial factoring is needed. Focus on x26xx^2 - 6x.

Step 2. Take half the coefficient of xx: 62=3\dfrac{-6}{2} = -3. Square it: (3)2=9(-3)^2 = 9.

Step 3. Add and subtract 99 inside the expression:

x26x+11=x26x+9perfect square9+11x^2 - 6x + 11 = \underbrace{x^2 - 6x + 9}_{\text{perfect square}} - 9 + 11

Step 4. Write the perfect square trinomial as a squared bracket and simplify:

=(x3)2+2= (x - 3)^2 + 2

Conclusion. The completed square form is (x3)2+2(x-3)^2 + 2.

  • Vertex: (3,  2)(3,\; 2)
  • Axis of symmetry: x=3x = 3
  • Minimum value: 22 (since a=1>0a = 1 > 0)

Example 2 — Non-monic quadratic (a1a \neq 1)

Rewrite 2x2+8x32x^2 + 8x - 3 in the form a(x+p)2+qa(x+p)^2 + q and hence sketch the graph.

Step 1. Factor 22 out of the first two terms only:

2x2+8x3=2 ⁣(x2+4x)32x^2 + 8x - 3 = 2\!\left(x^2 + 4x\right) - 3

Step 2. Complete the square inside the bracket. Half of 44 is 22; 22=42^2 = 4:

=2 ⁣(x2+4x+44)3= 2\!\left(x^2 + 4x + 4 - 4\right) - 3

Step 3. Separate the 4-4 from inside the bracket (multiply by the factor of 22 outside):

=2 ⁣(x+2)283= 2\!\left(x + 2\right)^2 - 8 - 3

Step 4. Simplify the constant:

=2(x+2)211= 2(x + 2)^2 - 11

Conclusion. The completed square form is 2(x+2)2112(x+2)^2 - 11.

  • Vertex: (2,  11)(-2,\; -11)
  • Axis of symmetry: x=2x = -2
  • Minimum value: 11-11 (since a=2>0a = 2 > 0)
  • yy-intercept: set x=0x=0: y=2(0+2)211=811=3y = 2(0+2)^2 - 11 = 8 - 11 = -3

To sketch: plot the vertex (2,11)(-2, -11), mark the yy-intercept (0,3)(0, -3), draw the axis of symmetry x=2x = -2, and sketch a upward-opening parabola passing through these points.


Example 3 — Negative leading coefficient

Find the maximum value of x2+4x+1-x^2 + 4x + 1.

Step 1. Factor out 1-1 from the xx-terms:

x2+4x+1= ⁣(x24x)+1-x^2 + 4x + 1 = -\!\left(x^2 - 4x\right) + 1

Step 2. Half of 4-4 is 2-2; (2)2=4(-2)^2 = 4. Add and subtract inside the bracket:

= ⁣(x24x+44)+1= ⁣(x2)2+4+1= -\!\left(x^2 - 4x + 4 - 4\right) + 1 = -\!\left(x - 2\right)^2 + 4 + 1

Step 3. Simplify:

= ⁣(x2)2+5= -\!(x-2)^2 + 5

Conclusion. Since a=1<0a = -1 < 0, the parabola opens downward.

  • Maximum value is 5\mathbf{5}, achieved at x=2x = 2.
  • Vertex: (2,  5)(2,\; 5).

Common Mistakes & Examiner Pitfalls

  1. Forgetting to multiply the constant back out. When a1a \neq 1, after writing a(x2+bax+kk)a(x^2 + \frac{b}{a}x + k - k), the term k-k is still inside the bracket and must be multiplied by aa before combining with cc. This is the most common error in non-monic cases.

  2. Sign errors on pp. The form is a(x+p)2+qa(x+p)^2 + q, so the vertex is at x=px = -p, not x=px = p. If the form is (x3)2+2(x-3)^2 + 2, the vertex is (3,2)(3, 2) — students often write (3,2)(-3, 2) by mistake.

  3. Misreading "minimum" vs "maximum". Always check the sign of aa first. If a<0a < 0, the vertex is a maximum, not a minimum.

  4. Incomplete sketches. The examiner expects: a labelled vertex, the yy-intercept, the correct orientation (up or down), and the axis of symmetry marked. Missing any of these costs marks.

  5. Squaring half the coefficient incorrectly. Half of ba\frac{b}{a} must be squared; a common slip is to forget to square, writing (x+b2a)2b2a(x + \frac{b}{2a})^2 - \frac{b}{2a} instead of subtracting (b2a)2\left(\frac{b}{2a}\right)^2.


Practice Questions

Q1. Write x2+10x+18x^2 + 10x + 18 in the form (x+p)2+q(x + p)^2 + q. State the minimum value and the value of xx at which it occurs.

<details><summary>Show answer</summary>

Step 1. Half of 1010 is 55; 52=255^2 = 25.

x2+10x+18=(x2+10x+25)25+18=(x+5)27x^2 + 10x + 18 = (x^2 + 10x + 25) - 25 + 18 = (x+5)^2 - 7

Minimum value: 7-7, occurring at x=5x = -5.

</details>

Q2. Express 3x212x+73x^2 - 12x + 7 in the form a(x+p)2+qa(x + p)^2 + q.

<details><summary>Show answer</summary>

Step 1. Factor out 33 from the xx-terms:

3x212x+7=3(x24x)+73x^2 - 12x + 7 = 3(x^2 - 4x) + 7

Step 2. Half of 4-4 is 2-2; (2)2=4(-2)^2 = 4:

=3(x24x+44)+7=3(x2)212+7= 3(x^2 - 4x + 4 - 4) + 7 = 3(x-2)^2 - 12 + 7

Step 3. Simplify:

=3(x2)25= 3(x-2)^2 - 5

So a=3a = 3, p=2p = -2, q=5q = -5. Vertex: (2,5)(2, -5).

</details>

Q3. Find the coordinates of the vertex of the curve y=2x2+12x7y = -2x^2 + 12x - 7.

<details><summary>Show answer</summary>

Step 1. Factor out 2-2:

y=2(x26x)7y = -2(x^2 - 6x) - 7

Step 2. Half of 6-6 is 3-3; (3)2=9(-3)^2 = 9:

y=2(x26x+99)7=2(x3)2+187y = -2(x^2 - 6x + 9 - 9) - 7 = -2(x-3)^2 + 18 - 7

Step 3. Simplify:

y=2(x3)2+11y = -2(x-3)^2 + 11

Vertex: (3,  11)(3,\; 11). Since a=2<0a = -2 < 0, this is a maximum.

</details>

Q4. The curve CC has equation y=x28x+ky = x^2 - 8x + k, where kk is a constant. Given that CC does not intersect the xx-axis, find the range of values of kk.

<details><summary>Show answer</summary>

Step 1. Complete the square:

y=(x4)216+ky = (x-4)^2 - 16 + k

Step 2. For CC not to intersect the xx-axis, the minimum value must be positive (since a>0a > 0, the parabola opens upward):

16+k>0    k>16-16 + k > 0 \implies k > 16
</details>

Q5. Sketch the graph of y=2(x1)28y = 2(x-1)^2 - 8, labelling the vertex and any intercepts with the axes.

<details><summary>Show answer</summary>

Vertex: (1,8)(1, -8) — read directly from the completed square form.

yy-intercept: Set x=0x = 0:

y=2(01)28=28=6(0,6)y = 2(0-1)^2 - 8 = 2 - 8 = -6 \quad \Rightarrow (0,\,-6)

xx-intercepts: Set y=0y = 0:

2(x1)2=8    (x1)2=4    x1=±22(x-1)^2 = 8 \implies (x-1)^2 = 4 \implies x - 1 = \pm 2
x=3 or x=1(3,0) and (1,0)x = 3 \text{ or } x = -1 \quad \Rightarrow (3,\,0) \text{ and } (-1,\,0)

Sketch: An upward-opening parabola with vertex (1,8)(1,-8), crossing the xx-axis at (1,0)(-1, 0) and (3,0)(3, 0), and the yy-axis at (0,6)(0,-6). Axis of symmetry: x=1x = 1.

</details>

Connections

Prerequisite topics (build on these first):

  • Expanding and factorising quadratics — you must be fluent with bracket expansion and recognising perfect squares before completing the square.
  • Index laws and algebraic manipulation — careful handling of coefficients underpins every step.

Topics that follow directly from this:

  • Solving quadratic equations — completing the square is an alternative to the quadratic formula and provides its derivation.
  • Discriminant and nature of roots — the completed square form makes it easy to count real roots geometrically.
  • Quadratic functions and their graphs — sketching, transformations (translations and stretches), and range of a quadratic function all depend on the vertex form derived here.
  • Inequalities involving quadratics — knowing the vertex and intercepts allows you to solve quadratic inequalities graphically.

Figures

Graph of y = (x minus 3) squared plus 2, an upward-opening parabola with vertex at (3, 2) and y-intercept at (0, 11).
Figure 1: Graph of y = (x − 3)² + 2 from Example 1. The vertex (3, 2) is the minimum point; the axis of symmetry is x = 3.
Graph of y = 2(x plus 2) squared minus 11, an upward-opening parabola with vertex at (-2, -11) and y-intercept at (0, -3).
Figure 2: Graph of y = 2(x + 2)² − 11 from Example 2. The vertex (−2, −11) is the minimum point; the axis of symmetry is x = −2.
Graph of y = negative (x minus 2) squared plus 5, a downward-opening parabola with vertex at (2, 5).
Figure 3: Graph of y = −(x − 2)² + 5 from Example 3. The vertex (2, 5) is the maximum point; the parabola opens downward since a = −1.

Keep learning

Explore CAIE A-Level Mathematics tutoring →

View the full Mathematics syllabus →

Part of Novark's free CAIE A-Level Mathematics notes