Proving the formula x = (−b ± √(b² − 4ac)) ÷ 2a by completing the square, the discriminant Δ = b² − 4ac, and using the formula to solve quadratic equations.
Lesson 4 of 11
6 min read
9 practice questions
Splitting the middle term is quick when the numbers are friendly, but many quadratics cannot be split using whole numbers at all. Try finding two integers with product −5 and sum −7 for x2−7x−5: there are none. For every quadratic equation, friendly or not, there is a formula that gives the roots directly. In this lesson we prove that formula, meet the discriminant, and use both methods side by side.
The result
The roots of ax2+bx+c=0, where a=0, are
x=2a−b±b2−4ac=2a−b±Δ
where Δ=b2−4ac. The number Δ (the Greek letter delta) is called the discriminant.
The sign ± means we get two roots: one using + and one using −.
Proof by completing the square
The idea is to turn the left side into a perfect square, (x+something)2, and then take square roots. We use one fact: if x2=k, then x=±k.
Start with the equation and divide every term by a (allowed, since a=0):
Always do it in three steps: write the equation in the form ax2+bx+c=0, read off a, b and c with their signs, then substitute.
Example 1
Find the roots of x2−3x+2=0.
Here a=1, b=−3, c=2.
x=2a−b±b2−4ac=2(1)3±9−4(1)(2)=23±1=23±1
So x=23−1=1 or x=23+1=2.
Check by splitting the middle term: x2−x−2x+2=x(x−1)−2(x−1)=(x−1)(x−2), which gives the same roots 1 and 2.
Notice that −b=−(−3)=3. Getting the sign of −b wrong is the most common error with this formula.
Example 2
Find the roots of x2−7x−5=0.
Here a=1, b=−7, c=−5.
x=2(1)7±49−4(1)(−5)=27±49+20=27±69
So the roots are 27−69 and 27+69. Since 69 is not a perfect square, the roots are irrational, which is exactly why splitting the middle term could not work.
The discriminant
The number under the root, Δ=b2−4ac, tells us what kind of roots to expect before we finish the working. For an equation whose coefficients a, b, c are integers:
If Δ is a perfect square (as in Example 1, Δ=1), the roots are rational and the quadratic can be split using rational numbers.
If Δ is positive but not a perfect square (as in Example 2, Δ=69), the roots are irrational.
If Δ is negative, there is no real square root, so the equation has no real roots. You will study this case fully with quadratic equations.
Splitting with a leading coefficient
When a is not 1, splitting still works: look for two numbers whose product is a×c and whose sum is b.
Example 3
Solve 6x2−13x+6=0.
Product 6×6=36, sum −13. The factor pairs of 36 are 1×36, 2×18, 3×12, 4×9, and 4+9=13, so we use −4 and −9.
6x2−4x−9x+62x(3x−2)−3(3x−2)(3x−2)(2x−3)=0=0=0
So x=32 or x=23.
By the formula, Δ=169−144=25 and x=1213±5, which gives 1218=23 and 128=32. Both methods agree.
Example 4
Solve x2−5x−24=0.
Product −24, sum −5. A negative product means one number is negative: −8×3=−24 and −8+3=−5.
x2−8x+3x−24x(x−8)+3(x−8)(x+3)(x−8)=0=0=0
So x=−3 or x=8.
Practice
Find the discriminant of 2x2−7x+3.
Solve x2−6x+5=0 using the formula.
Solve 2x2−x−6=0 using the formula.
Solve 2x2+7x+3=0 using the formula.
Solve x2+4x−1=0.
Solve 3x2+5x−2=0 by splitting the middle term, and check with the formula.
Which of the following are quadratic equations? (i) 2x2−5=0 (ii) x2−x21=5 (iii) 2x2+7x+52=0
If x=−21 is a zero of p(x)=8x3−ax2−x+2, find a.
Solve 44x2+65x+24=0.
Answers
Show answers
Δ=49−4(2)(3)=49−24=25
Δ=36−20=16, x=26±4, so x=5 or x=1.
Δ=1+48=49, x=41±7, so x=2 or x=−23.
Δ=49−24=25, x=4−7±5, so x=−21 or x=−3.
Δ=16+4=20, x=2−4±20=2−4±25=−2±5.
Product −6, sum 5: use 6 and −1. 3x2+6x−x−2=3x(x+2)−1(x+2)=(3x−1)(x+2), so x=31 or x=−2. Formula: Δ=25+24=49, x=6−5±7 gives the same two roots.
(i) and (iii). In (ii) the term x21=x−2 has a negative power.
p(−21)=8(−81)−4a+21+2=−1−4a+25=0, so 4a=23 and a=6.
Δ=652−4(44)(24)=4225−4224=1, x=88−65±1, so x=−8864=−118 or x=−8866=−43.