A-Level Maths / Pure Mathematics / Algebra & Functions

Quadratics (Completing the Square, Discriminant)

Completing the square, discriminant, solving quadratic equations and inequalities.

Pure Mathematics AS 45 min

Learning Objectives

  • Complete the square for quadratic expressions, including when the coefficient of x² is not 1
  • Use the discriminant to determine the number and nature of roots of a quadratic equation
  • Solve quadratic equations by completing the square
  • Sketch quadratic graphs using completed square form to identify the vertex and line of symmetry

Key Formulae

x2+bx+c=(x+b2)2(b2)2+cx^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + c
ax2+bx+c=a(x+b2a)2+cb24aax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a}
Δ=b24ac\Delta = b^2 - 4ac

Why Completing the Square?

At GCSE you factorised quadratics like x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x+2)(x+3). But try factorising x2+6x+1x^2 + 6x + 1. It doesn’t split into nice integer factors.

Completing the square is the technique that handles every quadratic — factorisable or not. It also reveals the vertex of the parabola, which is essential for sketching, and leads us naturally to the discriminant.

Key Concepts

Completing the square (a = 1)

The idea is to rewrite x2+bx+cx^2 + bx + c in the form (x+p)2+q(x + p)^2 + q, where the vertex of the parabola sits at (p,q)(-p,\, q).

Start with the x2+bxx^2 + bx part. We take half the coefficient of xx and square it:

x2+bx=(x+b2)2(b2)2x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2

Then bring the constant cc back in:

x2+bx+c=(x+b2)2(b2)2+cx^2 + bx + c = \left(x + \frac{b}{2}\right)^2 - \left(\frac{b}{2}\right)^2 + c

Watch out: (x+a)2=x2+2ax+a2(x+a)^2 = x^2 + 2ax + a^2, not x2+a2x^2 + a^2. The middle term 2ax2ax is crucial.

Completing the square (a ≠ 1)

When the coefficient of x2x^2 is not 1, factor it out first:

ax2+bx+c=a(x2+bax)+cax^2 + bx + c = a\left(x^2 + \frac{b}{a}x\right) + c

Now complete the square inside the bracket, then multiply through by aa:

=a(x+b2a)2b24a+c= a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a} + c

This step is where most errors happen. Take your time factoring out aa, and always expand to check.

The discriminant

Consider the quadratic equation ax2+bx+c=0ax^2 + bx + c = 0. Using the quadratic formula:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The expression under the square root, Δ=b24ac\Delta = b^2 - 4ac, is called the discriminant. It controls how many real roots the equation has, because we can only take the square root of a non-negative number.

This is not a random formula to memorise — it falls straight out of completing the square. If you complete the square on ax2+bx+c=0ax^2 + bx + c = 0 and rearrange, you arrive at b24ac\sqrt{b^2 - 4ac} naturally.

Discriminant summary

ConditionMeaningWhat the graph does
b24ac>0b^2 - 4ac > 0Two distinct real rootsCrosses the xx-axis twice
b24ac=0b^2 - 4ac = 0One repeated real rootTouches the xx-axis (tangent)
b24ac<0b^2 - 4ac < 0No real rootsDoes not meet the xx-axis

Language note: At AS level we say “no real roots” rather than “no roots”. The equation still has solutions — you’ll meet them if you study Further Maths — but they are not real numbers.

Worked Examples

Example 1: Completing the square (a = 1)

Write x2+8x+3x^2 + 8x + 3 in the form (x+p)2+q(x + p)^2 + q.

Half the coefficient of xx is 82=4\frac{8}{2} = 4. So:

x2+8x+3=(x+4)216+3=(x+4)213x^2 + 8x + 3 = (x + 4)^2 - 16 + 3 = (x + 4)^2 - 13

The vertex of the parabola is at (4,13)(-4,\, -13).

Example 2: Solving by completing the square

Solve x2+6x+1=0x^2 + 6x + 1 = 0, giving your answer in surd form.

Complete the square:

x2+6x+1=(x+3)29+1=(x+3)28x^2 + 6x + 1 = (x + 3)^2 - 9 + 1 = (x + 3)^2 - 8

Set equal to zero:

(x+3)2=8(x + 3)^2 = 8

x+3=±8=±22x + 3 = \pm\sqrt{8} = \pm 2\sqrt{2}

x=3+22orx=322x = -3 + 2\sqrt{2} \quad \text{or} \quad x = -3 - 2\sqrt{2}

Don’t forget the ±. The square root step always gives two values. Dropping the negative root is one of the most common errors in this topic.

Example 3: Completing the square (a ≠ 1)

Write 2x2+12x+72x^2 + 12x + 7 in the form a(x+p)2+qa(x + p)^2 + q.

Factor out 2 from the first two terms:

2x2+12x+7=2(x2+6x)+72x^2 + 12x + 7 = 2(x^2 + 6x) + 7

Complete the square inside the bracket:

=2[(x+3)29]+7= 2\left[(x + 3)^2 - 9\right] + 7

Expand and simplify:

=2(x+3)218+7=2(x+3)211= 2(x + 3)^2 - 18 + 7 = 2(x + 3)^2 - 11

Check: 2(x+3)211=2(x2+6x+9)11=2x2+12x+1811=2x2+12x+72(x+3)^2 - 11 = 2(x^2 + 6x + 9) - 11 = 2x^2 + 12x + 18 - 11 = 2x^2 + 12x + 7

Example 4: Using the discriminant

Show that x2+3x+5=0x^2 + 3x + 5 = 0 has no real roots.

Here a=1a = 1, b=3b = 3, c=5c = 5.

b24ac=920=11b^2 - 4ac = 9 - 20 = -11

Since b24ac<0b^2 - 4ac < 0, the equation has no real roots. \square

The parabola y=x2+3x+5y = x^2 + 3x + 5 sits entirely above the xx-axis.

Example 5: Discriminant with an unknown (exam-style)

The equation kx2+6x+k=0kx^2 + 6x + k = 0 has two distinct real roots. Find the range of values of kk, where k0k \neq 0.

For two distinct real roots we need b24ac>0b^2 - 4ac > 0.

Here a=ka = k, b=6b = 6, c=kc = k:

364(k)(k)>036 - 4(k)(k) > 0

364k2>036 - 4k^2 > 0

4k2<364k^2 < 36

k2<9k^2 < 9

3<k<3-3 < k < 3

Since k0k \neq 0 (otherwise it wouldn’t be a quadratic), the final answer is:

3<k<3,k0-3 < k < 3, \quad k \neq 0

Common Patterns

These standard results come up repeatedly at AS level:

ExpressionCompleted square formVertex
x2+bx+cx^2 + bx + c(x+b2)2+cb24\left(x + \frac{b}{2}\right)^2 + c - \frac{b^2}{4}(b2,  cb24)\left(-\frac{b}{2},\; c - \frac{b^2}{4}\right)
x26x+10x^2 - 6x + 10(x3)2+1(x - 3)^2 + 1(3,1)(3,\, 1)
(x24x)+7-(x^2 - 4x) + 7(x2)2+11-(x - 2)^2 + 11(2,11)(2,\, 11) — maximum

Key link to graphs: If the completed square form is (x+p)2+q(x + p)^2 + q, the line of symmetry is x=px = -p and the minimum value of the quadratic is qq (when a>0a > 0). If a<0a < 0, the parabola is upside-down and qq is the maximum.

Exam Tips

  • Always write the completed square form before trying to solve — it organises your working
  • When a question says "express in the form", match their letters exactly (e.g. p, q, r)
  • If the discriminant question asks for "no real roots", set up the inequality b² − 4ac < 0 and solve for the unknown
  • Check your completed square by expanding it back — this takes 10 seconds and catches sign errors

Specification

Edexcel A Level Maths
Pure: Algebra & Functions > Quadratics (Completing the Square, Discriminant)
WJEC A Level Maths
Pure: Algebra & Functions > Quadratics (Completing the Square, Discriminant)

Resources

Related Lessons