Quadratics & their graphs · Lesson 5 of 6

The formula and the discriminant

The formula that solves any quadratic, what b² − 4ac tells you before you start, and how to set up quadratics from word problems.

15 minYou should already know: Linear & simultaneous equations
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6

Completing the square on ax2+bx+c=0ax^2 + bx + c = 0 with letters instead of numbers gives one formula that solves every quadratic.

What the formula means on the graph

The formula has two parts. −b2a-\frac{b}{2a} is the line of symmetry. The ±\pm part is how far each root sits from that line: one root adds the distance, the other takes it away.

The formula on the graphMove the sliders

y = x² − 6x + 5

x = (−b ± √(b² − 4ac)) ÷ 2a
= (6 ± √((−6)² − 4 × 1 × 5)) ÷ 2
= (6 ± √16) ÷ 2
= 1 or 5
−7−5−3−11357−12−8−44812xy22
16discriminant b² − 4actworeal rootsx = 3line of symmetry, −b ÷ 2a
The two roots sit either side of the line x = 3, each √(b² − 4ac) ÷ 2a = 2 away. That is what the ± in the formula does: one root adds the distance, the other takes it away.

Move cc slowly upwards (with a=1a = 1) and watch the two roots close in, meet, and then disappear. Watch the number under the square root as you do it.

The discriminant

The part under the square root, b2−4acb^2 - 4ac, is called the discriminant. It tells you how many roots there are before you do any other working.

b2−4acb^2 - 4acRootsThe graph
positivetwo different real rootscrosses the xx-axis twice
zeroone repeated root (equal roots)touches the xx-axis
negativeno real rootsmisses the xx-axis

“Equal roots” questions use the discriminant as an equation. For x2+kx+9=0x^2 + kx + 9 = 0 to have equal roots, k2−4×1×9=0k^2 - 4 \times 1 \times 9 = 0, so k2=36k^2 = 36 and k=±6k = \pm 6.

More: the discriminant and the formula

Using the formula carefully

  1. Write down aa, bb and cc with their signs before you substitute.
  2. Work out b2−4acb^2 - 4ac on its own first.
  3. Put brackets round negative numbers: (−3)2=9(-3)^2 = 9, while −32=−9-3^2 = -9.

One linear, one quadratic

When one equation is linear and the other quadratic, make one letter the subject of the linear equation and substitute into the quadratic. That leaves a quadratic in one letter: solve it, then use the linear equation to find the other letter for each answer. On a graph, the answers are where the line meets the curve.

x
A line and a curveThe two crossing points are the two solutions

More: one linear, one quadratic

Word problems

Many marks are lost on word problems because the equation never gets written down. Follow these steps:

  1. Choose a letter for the unknown and say what it stands for (“let the width be ww cm”).
  2. Write the other quantities in terms of it (the length is w+3w + 3).
  3. Form the equation from the fact you’re given (the area is 70, so w(w+3)=70w(w + 3) = 70).
  4. Rearrange to =0= 0 and solve.
  5. Check the answers make sense. A length or an age can’t be negative, so reject that root.

More word problems

A past question, step by step

Worked example · NECO 2024

NECO 2024 · Paper 1 · Q33

The difference between the present ages of two brothers is 6 and their product is 135. What is the sum of their ages?

  1. Choose a letter

    Let the younger brother be xx years old.

    Think first. If the younger brother is xx years old, how old is the elder?

  2. Form the equation

    The elder is x+6x + 6, and the product of their ages is 135:

    x(x+6)=135⇒x2+6x−135=0x(x + 6) = 135 \quad\Rightarrow\quad x^2 + 6x - 135 = 0

    Think first. Rearrange so one side is 0. Which two numbers multiply to −135-135 and add to 66?

  3. Solve

    15×(−9)=−13515 \times (-9) = -135 and 15−9=615 - 9 = 6:

    (x+15)(x−9)=0⇒x=9 or x=−15(x + 15)(x - 9) = 0 \quad\Rightarrow\quad x = 9 \text{ or } x = -15
  4. Check it makes sense

    An age can’t be negative, so x=9x = 9. The brothers are 9 and 15, and the sum of their ages is 2424. The answer is B.

Your turn

WAEC 2015 · Paper 2 · Q2 (b)

  1. (b)

    The diagram shows a rectangle PQRSPQRS, 20 cm20\text{ cm} high, from which a square of side x cmx\text{ cm} has been cut out of the middle of the base, leaving 10 cm10\text{ cm} on each side. If the area of the shaded portion is 484 cm2484\text{ cm}^2, find the values of xx.

    20 cm10 cm10 cmx cmx cmPQRS

    Separate values with commas, e.g. 3, −2

Worked solution (try it first)

(b)

  1. The rectangle is 20 cm high and 10+x+10=20+x10 + x + 10 = 20 + x cm wide.
  2. The shaded area is the rectangle without the square: 20(20+x)−x2=48420(20 + x) - x^2 = 484.
  3. Expand: 400+20x−x2=484400 + 20x - x^2 = 484, so x2−20x+84=0x^2 - 20x + 84 = 0.
  4. Factorise: (x−6)(x−14)=0(x - 6)(x - 14) = 0, so x=6x = 6 or x=14x = 14.

Report a problem with this question

More past questions like this