Home › Chapter 14 › Quadratic equations

4. Quadratic equations: three methods

A quadratic equation has x² as its highest power. Some factorise easily and some do not, so you need several methods. This section covers completing the square, the quadratic formula and factorising when the x² coefficient is not 1.

Prior knowledge Expanding brackets · factorising x² + bx + c · solving by factorising · squaring negatives · surds (for exact answers)

Completing the square

Any quadratic x² + bx + c can be rewritten as (x + p)² + q. This is called completing the square.

Why does it work? (x + p)² = x² + 2px + p². So the coefficient of x is always twice p. Start from the x² and x terms:

  1. Halve the coefficient of x. That is p.
  2. Write (x + p)². This expands to x² + bx + p², which has an extra p².
  3. Subtract p² and keep the original constant: x² + bx + c = (x + p)² − p² + c.
Worked example Write x² + 6x + 2 in the form (x + p)² + q.
Half of 6 is 3. (x + 3)² = x² + 6x + 9, which is 7 too big, so x² + 6x + 2 = (x + 3)² − 7.
Worked example: odd coefficient x² + 5x + 1. Half of 5 is 5/2. (x + 5/2)² = x² + 5x + 25/4. So x² + 5x + 1 = (x + 5/2)² − 25/4 + 1 = (x + 5/2)² − 21/4.

Solving an equation

Worked example Solve x² + 4x − 6 = 0 (2 decimal places).
(x + 2)² − 4 − 6 = 0, so (x + 2)² = 10. Square root both sides, remembering ±: x + 2 = ±√10. So x = −2 ± √10, that is x = 1.16 or x = −5.16.

When the coefficient of x² is not 1

Take that coefficient out as a factor of the x² and x terms first.

Worked example Write 2x² + 8x − 3 in the form a(x + p)² + q.
2(x² + 4x) − 3 = 2[(x + 2)² − 4] − 3 = 2(x + 2)² − 8 − 3 = 2(x + 2)² − 11.
Why it is useful In y = (x + p)² + q the smallest value of y is q (when x = −p). This is the turning point (−p, q) of the parabola you met in Chapter 18.

The quadratic formula

Completing the square on ax² + bx + c = 0 in general gives a formula that always works:

If ax² + bx + c = 0, then x = (−b ± √(b² − 4ac)) ÷ 2a
  1. Rearrange so that one side is 0. Then identify a, b and c, including their signs.
  2. Substitute, using brackets around negative numbers.
  3. Work out b² − 4ac first. Then do the two calculations (+ and −) separately.
Worked example Solve x² − 7x + 11 = 0, giving exact answers and then 3 significant figures.
a = 1, b = −7, c = 11. b² − 4ac = (−7)² − 4(1)(11) = 49 − 44 = 5.
x = (7 ± √5) ÷ 2. Exact: x = (7 + √5)/2 or (7 − √5)/2. As decimals: x = 4.62 or x = 2.38.
Worked example Solve 2x² + 3x − 4 = 0 (2 d.p.). a = 2, b = 3, c = −4. b² − 4ac = 9 + 32 = 41.
x = (−3 ± √41) ÷ 4, so x = 0.85 or x = −2.35.

The discriminant b² − 4ac

The part under the square root tells you how many real solutions there are.

b² − 4acSolutions
positivetwo different solutions
zeroone (repeated) solution
negativeno real solutions (cannot take √ of a negative)
Common mistakes Writing −b² instead of (−b)²: if b = −7 then b² = 49. Dividing only the square root by 2a instead of the whole numerator. Forgetting the 4 in 4ac, or the sign of c. Not rearranging to “= 0” first. Calculators: use brackets or work out b² − 4ac on its own.

Factorising when the x² coefficient is not 1

You already know how to factorise x² + bx + c. When a quadratic is ax² + bx + c with a ≠ 1, there are more possibilities, so use a method.

Step 0: common factor

Always look first for a number that divides every term. 6x² + 14x − 12 = 2(3x² + 7x − 6). Then factorise the quadratic inside.

The “split the middle term” method

  1. Multiply a × c.
  2. Find two numbers that multiply to a × c and add to b.
  3. Use them to split the middle term, then factorise in pairs.
Worked example Factorise 6x² + 7x − 3.
a × c = 6 × (−3) = −18. Two numbers with product −18 and sum 7: 9 and −2.
6x² + 9x − 2x − 3 = 3x(2x + 3) − 1(2x + 3) = (3x − 1)(2x + 3).
Check by expanding: 6x² + 9x − 2x − 3 ✓.
Worked example: with a common factor Factorise completely 6x² + 14x − 12. Take out 2: 2(3x² + 7x − 6). For the bracket, a × c = −18 and 9 and −2 would sum to 7: 3x² + 9x − 2x − 6 = 3x(x + 3) − 2(x + 3) = (3x − 2)(x + 3). So the answer is 2(3x − 2)(x + 3).

Difference of two squares

a² − b² = (a − b)(a + b). For example 4x² − 25 = (2x)² − 5² = (2x − 5)(2x + 5). It works only when both terms are squares and there is a minus between them.

Solving by factorising

Worked example Solve 2x² + 5x − 3 = 0. Factorise: (2x − 1)(x + 3) = 0. So 2x − 1 = 0 (x = 1/2) or x + 3 = 0 (x = −3).
Which method? If a question says “factorise”, factorise. If it asks for answers “to 2 decimal places” or “in surd form”, the quadratic probably will not factorise: use the formula or completing the square. If the answers are whole numbers or simple fractions, try factorising first. You can always check a solution by substituting it back.
← Regions in a planeNext: Algebraic fractions →