Grade 12 · Mathematics · Algebra

Quadratic equations

Solve quadratic equations by factorising, completing the square and using the formula, and use the discriminant, with worked examples and practice questions.

By David K. Mvula Updated 19 September 2026 11 min read

By the end of this lesson you should be able to

  • Solve quadratic equations by factorising
  • Solve quadratic equations using the quadratic formula and by completing the square
  • Use the discriminant to describe the roots of a quadratic equation
  • Form and solve quadratic equations from word problems

What is a quadratic equation?

A quadratic equation is an equation that can be written in the standard form

ax2+bx+c=0(a0)ax^2 + bx + c = 0 \qquad (a \neq 0)

where aa, bb and cc are numbers. The highest power of xx is 22, and a quadratic equation usually has two solutions, also called roots. Some have one repeated root, and some have no real roots at all.

Always begin by moving every term to one side so that the other side is 00. Beginning with an equation that is not in standard form is the most common cause of lost marks.

Method 1: factorising

If the quadratic factorises, this is the quickest method. It relies on one fact: if two numbers multiply to give 00, at least one of them must be 00.

Example 1. Solve x2+5x+6=0x^2 + 5x + 6 = 0.

Find two numbers that multiply to 66 and add to 55. They are 22 and 33.

(x+2)(x+3)=0(x + 2)(x + 3) = 0

So x+2=0x + 2 = 0 or x+3=0x + 3 = 0, which gives x=2x = -2 or x=3x = -3.

Example 2. Solve 2x2+7x+3=02x^2 + 7x + 3 = 0.

Here a1a \neq 1, so the numbers must multiply to a×c=6a \times c = 6 and add to 77. They are 11 and 66. Split the middle term:

2x2+x+6x+3=02x^2 + x + 6x + 3 = 0 x(2x+1)+3(2x+1)=0x(2x + 1) + 3(2x + 1) = 0 (2x+1)(x+3)=0(2x + 1)(x + 3) = 0

So x=12x = -\dfrac{1}{2} or x=3x = -3.

Method 2: the quadratic formula

When a quadratic does not factorise neatly, use the formula.

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

Write down aa, bb and cc first, keeping their signs, then substitute carefully using brackets.

Example 3. Solve 3x25x2=03x^2 - 5x - 2 = 0.

Here a=3a = 3, b=5b = -5 and c=2c = -2.

x=(5)±(5)24(3)(2)2(3)=5±25+246=5±76x = \frac{-(-5) \pm \sqrt{(-5)^2 - 4(3)(-2)}}{2(3)} = \frac{5 \pm \sqrt{25 + 24}}{6} = \frac{5 \pm 7}{6}

So x=126=2x = \dfrac{12}{6} = 2 or x=26=13x = \dfrac{-2}{6} = -\dfrac{1}{3}.

Example 4. Solve x24x3=0x^2 - 4x - 3 = 0, giving your answers correct to 2 decimal places.

Here a=1a = 1, b=4b = -4 and c=3c = -3.

x=4±16+122=4±282x = \frac{4 \pm \sqrt{16 + 12}}{2} = \frac{4 \pm \sqrt{28}}{2}

x=4+5.29152=4.65x = \dfrac{4 + 5.2915}{2} = 4.65 or x=45.29152=0.65x = \dfrac{4 - 5.2915}{2} = -0.65.

Method 3: completing the square

Completing the square rewrites the equation as (x+p)2=q(x + p)^2 = q, which you can solve by taking square roots. It is also the method used to derive the formula.

Example 5. Solve x2+6x7=0x^2 + 6x - 7 = 0 by completing the square.

Move the constant across: x2+6x=7x^2 + 6x = 7.

Add the square of half the coefficient of xx, which is 32=93^2 = 9, to both sides:

x2+6x+9=16(x+3)2=16x^2 + 6x + 9 = 16 \quad\Rightarrow\quad (x + 3)^2 = 16

Take square roots, remembering both signs: x+3=±4x + 3 = \pm 4.

So x=1x = 1 or x=7x = -7.

The discriminant

The part of the formula under the square root, b24acb^2 - 4ac, is called the discriminant. It tells you about the roots without solving the equation.

DiscriminantNumber of real roots
b24ac>0b^2 - 4ac > 0Two different real roots
b24ac=0b^2 - 4ac = 0One repeated (equal) real root
b24ac<0b^2 - 4ac < 0No real roots

Example 6. Find the values of kk for which x2+kx+9=0x^2 + kx + 9 = 0 has equal roots.

Equal roots need b24ac=0b^2 - 4ac = 0:

k24(1)(9)=0k2=36k=6 or k=6k^2 - 4(1)(9) = 0 \quad\Rightarrow\quad k^2 = 36 \quad\Rightarrow\quad k = 6 \text{ or } k = -6

Quadratic equations in word problems

Define a letter, form the equation, solve it, then decide whether each root makes sense. A length cannot be negative.

Example 7. The length of a rectangle is 3 m more than its width. Its area is 40 m². Find the dimensions.

Let the width be ww metres, so the length is w+3w + 3.

w(w+3)=40w2+3w40=0(w+8)(w5)=0w(w + 3) = 40 \quad\Rightarrow\quad w^2 + 3w - 40 = 0 \quad\Rightarrow\quad (w + 8)(w - 5) = 0

So w=8w = -8 or w=5w = 5. A width cannot be negative, so w=5w = 5.

The rectangle is 5 m wide and 8 m long. Check: 5×8=405 \times 8 = 40. ✓

Common mistakes

Not writing the equation in standard form first. For x2=5xx^2 = 5x, do not divide by xx, because that loses the solution x=0x = 0. Rewrite it as x25x=0x^2 - 5x = 0, so x(x5)=0x(x - 5) = 0 and x=0x = 0 or x=5x = 5.

Sign errors in the formula. If b=5b = -5, then b=5-b = 5 and b2=25b^2 = 25. Use brackets when substituting negative numbers.

Forgetting the ±\pm. Square roots give two values. Leaving out one of them gives half the answer.

Accepting every root in a word problem. Always test each root against the situation. A negative length, age or number of people is rejected.

Practice questions

  1. Solve x27x+12=0x^2 - 7x + 12 = 0.
  2. Solve x29=0x^2 - 9 = 0.
  3. Solve 2x2x6=02x^2 - x - 6 = 0.
  4. Solve x2+2x5=0x^2 + 2x - 5 = 0, giving your answers correct to 2 decimal places.
  5. Solve x28x+3=0x^2 - 8x + 3 = 0 by completing the square, giving your answers correct to 2 decimal places.
  6. Find the values of kk for which x2+kx+16=0x^2 + kx + 16 = 0 has equal roots.
  7. Without solving, state the nature of the roots of 2x23x+5=02x^2 - 3x + 5 = 0.
  8. The product of two consecutive positive integers is 132. Find the integers.
Show answers
  1. (x3)(x4)=0(x - 3)(x - 4) = 0, so x=3x = 3 or x=4x = 4
  2. x2=9x^2 = 9, so x=3x = 3 or x=3x = -3
  3. (2x+3)(x2)=0(2x + 3)(x - 2) = 0, so x=32x = -\dfrac{3}{2} or x=2x = 2
  4. x=2±242=1±6x = \dfrac{-2 \pm \sqrt{24}}{2} = -1 \pm \sqrt{6}, so x=1.45x = 1.45 or x=3.45x = -3.45
  5. (x4)2=13(x - 4)^2 = 13, so x=4±13x = 4 \pm \sqrt{13}, giving x=7.61x = 7.61 or x=0.39x = 0.39
  6. k264=0k^2 - 64 = 0, so k=8k = 8 or k=8k = -8
  7. b24ac=940=31b^2 - 4ac = 9 - 40 = -31, which is less than 00, so there are no real roots
  8. Let the integers be nn and n+1n + 1. Then n2+n132=0n^2 + n - 132 = 0, so (n+12)(n11)=0(n + 12)(n - 11) = 0. Since nn is positive, n=11n = 11. The integers are 11 and 12.

Summary

  • Rearrange to ax2+bx+c=0ax^2 + bx + c = 0 before doing anything else.
  • Factorise when you can, use the formula when you cannot, and use completing the square when the question asks for it.
  • The discriminant b24acb^2 - 4ac tells you whether there are two, one or no real roots.
  • In word problems, check each root against the situation before giving your answer.

Now practise this topic

Real questions show you what still needs work. Try a past paper under timed conditions, or take a short quiz.