Proofs

The discriminant decides how many roots there are

A quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 has real solutions that depend on one number, the discriminant

Δ=b2−4ac.\Delta = b^2 - 4ac.

Its sign decides how many real roots there are:

Value of Δ\Delta Number of real roots
Δ>0\Delta > 0 two distinct real roots
Δ=0\Delta = 0 one repeated real root
Δ<0\Delta < 0 no real roots

This page reads that rule off the completed square. It takes the completed-square identity as given — you can read why half the coefficient squared is the number to add — and it does not repeat the derivation of the quadratic formula. Instead it shows why the sign decides the count, and why the graph and the algebra are saying the same thing.

Before you start

You need three facts.

Predict first

The figure draws y=x2+bx+cy = x^2 + bx + c and marks the points where the curve meets the xx-axis. It starts with b=−2b = -2 and c=−3c = -3.

Before you read on, predict: keep b=−2b = -2 and change cc. At which value of cc does the curve touch the xx-axis exactly once? Write your prediction down. Then read the argument, and use the figure to test it.

What the completed square says

Start with the general quadratic, with a≠0a \neq 0. Take out the factor aa from the x2x^2 and xx terms:

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

Complete the square inside the bracket. Half of ba\frac{b}{a} is b2a\frac{b}{2a}, and its square is b24a2\frac{b^2}{4a^2}:

x2+bax=(x+b2a)2−b24a2.x^2 + \frac{b}{a}x = \left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2}.

Substitute that back. The −b24a2- \frac{b^2}{4a^2} is inside the bracket, so it is multiplied by aa:

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

Put the last two terms over the common denominator 4a4a:

ax2+bx+c=a(x+b2a)2−b2−4ac4a=a(x+b2a)2−Δ4a.ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2 - 4ac}{4a} = a\left(x + \frac{b}{2a}\right)^2 - \frac{\Delta}{4a}.

That line is the whole proof. Every quadratic can be written in it, for exactly the same aa, bb and cc it started with.

Setting it to zero

Now solve ax2+bx+c=0ax^2 + bx + c = 0 using that form:

a(x+b2a)2−Δ4a=0.a\left(x + \frac{b}{2a}\right)^2 - \frac{\Delta}{4a} = 0.

Move the constant across and divide by aa, which is allowed because a≠0a \neq 0:

(x+b2a)2=Δ4a2.\left(x + \frac{b}{2a}\right)^2 = \frac{\Delta}{4a^2}.

Look at the two sides. The left side is a square of a real number, so it is 00 or positive. The right side is a fixed number, because aa, bb and cc are fixed. The number of solutions is decided by whether that fixed number can be a square:

When Δ>0\Delta > 0, solving for xx gives the two roots. They are the quadratic formula:

x=−b±Δ2a.x = \frac{-b \pm \sqrt{\Delta}}{2a}.

The ±\pm is the two values of the bracket; the Δ\sqrt{\Delta} only has a real value when Δ>0\Delta > 0, which is the same condition.

The graph is doing the same thing

The completed-square form is also the vertex form. Reading y=a(x+b2a)2−Δ4ay = a\left(x + \frac{b}{2a}\right)^2 - \frac{\Delta}{4a} as a graph, the smallest or largest value of yy happens when the bracket is zero, at x=−b2ax = -\frac{b}{2a}. So the vertex is

(−b2a,−Δ4a).\left(-\frac{b}{2a}, -\frac{\Delta}{4a}\right).

The height of the vertex is −Δ4a-\frac{\Delta}{4a}. That number carries the sign of Δ\Delta, so the discriminant is telling you where the vertex sits compared with the xx-axis.

Take a>0a > 0, so the parabola opens upwards and the vertex is the lowest point.

When a<0a < 0. The parabola opens downwards. Multiplying the whole equation by −1-1 gives a quadratic with a positive leading coefficient and exactly the same roots, because a product is zero when its factors are zero. So the three cases above apply, and the discriminant decides the count in the same way.

The graph and the algebra agree because they are the same line of algebra. The algebra asks whether a square can equal Δ4a2\frac{\Delta}{4a^2}. The graph asks whether the curve reaches the axis. Those are the same question, and the answer is the sign of Δ\Delta in each case.

The boundary cases

A perfect square. When aa, bb and cc are whole numbers and Δ\Delta is a perfect square, the roots are whole numbers or fractions, so the quadratic factorises with whole numbers. For x2−5x+6x^2 - 5x + 6, Δ=25−24=1\Delta = 25 - 24 = 1, and the roots are x=2x = 2 and x=3x = 3, giving (x−2)(x−3)(x - 2)(x - 3).

A repeated root. When Δ=0\Delta = 0, the two roots merge into one. For x2−4x+4x^2 - 4x + 4, Δ=16−16=0\Delta = 16 - 16 = 0, and the form is (x−2)2\left(x - 2\right)^2. The root x=2x = 2 is repeated, and the curve touches the axis there.

No real root. When Δ<0\Delta < 0, the square would have to be negative. For x2+x+1x^2 + x + 1, Δ=1−4=−3\Delta = 1 - 4 = -3, and the curve stays above the axis. There is no real solution, and no amount of factorising will find one.

Test the figure. Move the sliders for bb and cc. Watch the crossings appear and disappear, and read the discriminant and the vertex height in the panel.

Explain. In your own words, why does a negative discriminant mean there is no real root? Answer in terms of the square, not by quoting the table.

Check your understanding

  1. Work out the discriminant of 2x2−7x+3=02x^2 - 7x + 3 = 0 and say how many real roots the equation has.
  2. For which value of kk does x2+6x+k=0x^2 + 6x + k = 0 have one repeated root?
  3. A parabola has its vertex at (3,2)(3, 2) and opens upwards. How many times does it meet the xx-axis? What is the sign of its discriminant?
Answers
  1. a=2a = 2, b=−7b = -7 and c=3c = 3, so Δ=(−7)2−4×2×3=49−24=25\Delta = (-7)^2 - 4 \times 2 \times 3 = 49 - 24 = 25. The discriminant is positive, so there are two distinct real roots.
  2. Δ=62−4×1×k=36−4k\Delta = 6^2 - 4 \times 1 \times k = 36 - 4k. One repeated root needs Δ=0\Delta = 0, so 36−4k=036 - 4k = 0 and k=9k = 9. The form is (x+3)2(x + 3)^2.
  3. The vertex is the lowest point, because the parabola opens upwards, and it sits at height 22 above the axis. The curve never reaches the axis, so it meets it zero times and the discriminant is negative.

A common error

The discriminant is Δ=b2−4ac\Delta = b^2 - 4ac, and the sign of cc matters. For x2+x−1x^2 + x - 1, a=1a = 1, b=1b = 1 and c=−1c = -1, so

Δ=12−4×1×(−1)=1+4=5,\Delta = 1^2 - 4 \times 1 \times (-1) = 1 + 4 = 5,

which is positive. Substituting a negative cc into −4ac-4ac makes that term positive, and the two terms add.

A repeated root is a root. When Δ=0\Delta = 0, the equation has the solution x=−b2ax = -\frac{b}{2a}, counted twice. It does not mean "no solution".

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.