Split­ting the mid­dle term is quick when the num­bers are friendly, but many qua­drat­ics can­not be split using whole num­bers at all. Try find­ing two inte­gers with prod­uct −5-5 and sum −7-7 for x2−7x−5x^2 - 7x - 5: there are none. For every qua­dratic equa­tion, friendly or not, there is a for­mula that gives the roots directly. In this les­son we prove that for­mula, meet the dis­crim­i­nant, and use both meth­ods side by side.

The result

The roots of ax2+bx+c=0ax^2 + bx + c = 0, where a≠0a \neq 0, are

x=−b±b2−4ac2a=−b±Δ2a\displaystyle x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-b \pm \sqrt{\Delta}}{2a}

where Δ=b2−4ac\Delta = b^2 - 4ac. The num­ber Δ\Delta (the Greek let­ter delta) is called the dis­crim­i­nant.

The sign ±\pm means we get two roots: one using ++ and one using −-.

Proof by com­plet­ing the square

The idea is to turn the left side into a per­fect square, (x+something)2(x + \text{something})^2, and then take square roots. We use one fact: if x2=kx^2 = k, then x=±kx = \pm\sqrt{k}.

Start with the equa­tion and divide every term by aa (allowed, since a≠0a \neq 0):

ax2+bx+c=0x2+bax+ca=0x2+bax=−cax2+2(x)(b2a)=−ca\displaystyle \begin{aligned} ax^2 + bx + c &= 0 \\ x^2 + \frac{b}{a}x + \frac{c}{a} &= 0 \\ x^2 + \frac{b}{a}x &= -\frac{c}{a} \\ x^2 + 2(x)\left(\frac{b}{2a}\right) &= -\frac{c}{a} \end{aligned}

The last line writes the mid­dle term as 2×x×b2a\displaystyle 2 \times x \times \frac{b}{2a}, which looks like the mid­dle of (x+b2a)2\displaystyle (x + \frac{b}{2a})^2. To com­plete the square, add (b2a)2\displaystyle \left(\frac{b}{2a}\right)^2 to both sides:

x2+2(x)(b2a)+(b2a)2=−ca+(b2a)2(x+b2a)2=−ca+b24a2(x+b2a)2=b2−4ac4a2\displaystyle \begin{aligned} x^2 + 2(x)\left(\frac{b}{2a}\right) + \left(\frac{b}{2a}\right)^2 &= -\frac{c}{a} + \left(\frac{b}{2a}\right)^2 \\ \left(x + \frac{b}{2a}\right)^2 &= -\frac{c}{a} + \frac{b^2}{4a^2} \\ \left(x + \frac{b}{2a}\right)^2 &= \frac{b^2 - 4ac}{4a^2} \end{aligned}

Now take the square root of both sides:

x+b2a=±b2−4ac4a2=±b2−4ac2ax=−b2a±b2−4ac2ax=−b±b2−4ac2a\displaystyle \begin{aligned} x + \frac{b}{2a} &= \pm\sqrt{\frac{b^2 - 4ac}{4a^2}} = \pm\frac{\sqrt{b^2 - 4ac}}{2a} \\ x &= -\frac{b}{2a} \pm \frac{\sqrt{b^2 - 4ac}}{2a} \\ x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \end{aligned}

That is the for­mula.

Using the for­mula

Always do it in three steps: write the equa­tion in the form ax2+bx+c=0ax^2 + bx + c = 0, read off aa, bb and cc with their signs, then sub­sti­tute.

Exam­ple 1

Find the roots of x2−3x+2=0x^2 - 3x + 2 = 0.

Here a=1a = 1, b=−3b = -3, c=2c = 2.

x=−b±b2−4ac2a=3±9−4(1)(2)2(1)=3±12=3±12\displaystyle \begin{aligned} x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\ &= \frac{3 \pm \sqrt{9 - 4(1)(2)}}{2(1)} \\ &= \frac{3 \pm \sqrt{1}}{2} = \frac{3 \pm 1}{2} \end{aligned}

So x=3−12=1\displaystyle x = \frac{3 - 1}{2} = 1 or x=3+12=2\displaystyle x = \frac{3 + 1}{2} = 2.

Check by split­ting the mid­dle term: x2−x−2x+2=x(x−1)−2(x−1)=(x−1)(x−2)x^2 - x - 2x + 2 = x(x - 1) - 2(x - 1) = (x - 1)(x - 2), which gives the same roots 11 and 22.

Notice that −b=−(−3)=3-b = -(-3) = 3. Get­ting the sign of −b-b wrong is the most com­mon error with this for­mula.

Exam­ple 2

Find the roots of x2−7x−5=0x^2 - 7x - 5 = 0.

Here a=1a = 1, b=−7b = -7, c=−5c = -5.

x=7±49−4(1)(−5)2(1)=7±49+202=7±692\displaystyle \begin{aligned} x &= \frac{7 \pm \sqrt{49 - 4(1)(-5)}}{2(1)} \\ &= \frac{7 \pm \sqrt{49 + 20}}{2} \\ &= \frac{7 \pm \sqrt{69}}{2} \end{aligned}

So the roots are 7−692\displaystyle \frac{7 - \sqrt{69}}{2} and 7+692\displaystyle \frac{7 + \sqrt{69}}{2}. Since 6969 is not a per­fect square, the roots are irra­tional, which is exactly why split­ting the mid­dle term could not work.

The dis­crim­i­nant

The num­ber under the root, Δ=b2−4ac\Delta = b^2 - 4ac, tells us what kind of roots to expect before we fin­ish the work­ing. For an equa­tion whose coef­fi­cients aa, bb, cc are inte­gers:

  • If Δ\Delta is a per­fect square (as in Exam­ple 1, Δ=1\Delta = 1), the roots are ratio­nal and the qua­dratic can be split using ratio­nal num­bers.
  • If Δ\Delta is pos­i­tive but not a per­fect square (as in Exam­ple 2, Δ=69\Delta = 69), the roots are irra­tional.
  • If Δ\Delta is neg­a­tive, there is no real square root, so the equa­tion has no real roots. You will study this case fully with qua­dratic equa­tions.

Split­ting with a lead­ing coef­fi­cient

When aa is not 11, split­ting still works: look for two num­bers whose prod­uct is a×ca \times c and whose sum is bb.

Exam­ple 3

Solve 6x2−13x+6=06x^2 - 13x + 6 = 0.

Prod­uct 6×6=366 \times 6 = 36, sum −13-13. The fac­tor pairs of 3636 are 1×361 \times 36, 2×182 \times 18, 3×123 \times 12, 4×94 \times 9, and 4+9=134 + 9 = 13, so we use −4-4 and −9-9.

6x2−4x−9x+6=02x(3x−2)−3(3x−2)=0(3x−2)(2x−3)=0\begin{aligned} 6x^2 - 4x - 9x + 6 &= 0 \\ 2x(3x - 2) - 3(3x - 2) &= 0 \\ (3x - 2)(2x - 3) &= 0 \end{aligned}

So x=23\displaystyle x = \frac{2}{3} or x=32\displaystyle x = \frac{3}{2}.

By the for­mula, Δ=169−144=25\Delta = 169 - 144 = 25 and x=13±512\displaystyle x = \frac{13 \pm 5}{12}, which gives 1812=32\displaystyle \frac{18}{12} = \frac{3}{2} and 812=23\displaystyle \frac{8}{12} = \frac{2}{3}. Both meth­ods agree.

Exam­ple 4

Solve x2−5x−24=0x^2 - 5x - 24 = 0.

Prod­uct −24-24, sum −5-5. A neg­a­tive prod­uct means one num­ber is neg­a­tive: −8×3=−24-8 \times 3 = -24 and −8+3=−5-8 + 3 = -5.

x2−8x+3x−24=0x(x−8)+3(x−8)=0(x+3)(x−8)=0\begin{aligned} x^2 - 8x + 3x - 24 &= 0 \\ x(x - 8) + 3(x - 8) &= 0 \\ (x + 3)(x - 8) &= 0 \end{aligned}

So x=−3x = -3 or x=8x = 8.

Prac­tice

  1. Find the dis­crim­i­nant of 2x2−7x+32x^2 - 7x + 3.
  2. Solve x2−6x+5=0x^2 - 6x + 5 = 0 using the for­mula.
  3. Solve 2x2−x−6=02x^2 - x - 6 = 0 using the for­mula.
  4. Solve 2x2+7x+3=02x^2 + 7x + 3 = 0 using the for­mula.
  5. Solve x2+4x−1=0x^2 + 4x - 1 = 0.
  6. Solve 3x2+5x−2=03x^2 + 5x - 2 = 0 by split­ting the mid­dle term, and check with the for­mula.
  7. Which of the fol­low­ing are qua­dratic equa­tions? (i) 2x2−5=02x^2 - 5 = 0 (ii) x2−1x2=5\displaystyle x^2 - \frac{1}{x^2} = 5 (iii) 2x2+7x+52=0\sqrt{2}x^2 + 7x + 5\sqrt{2} = 0
  8. If x=−12\displaystyle x = -\frac{1}{2} is a zero of p(x)=8x3−ax2−x+2p(x) = 8x^3 - ax^2 - x + 2, find aa.
  9. Solve 44x2+65x+24=044x^2 + 65x + 24 = 0.

Answers

Show answers
  1. Δ=49−4(2)(3)=49−24=25\Delta = 49 - 4(2)(3) = 49 - 24 = 25
  2. Δ=36−20=16\Delta = 36 - 20 = 16, x=6±42\displaystyle x = \frac{6 \pm 4}{2}, so x=5x = 5 or x=1x = 1.
  3. Δ=1+48=49\Delta = 1 + 48 = 49, x=1±74\displaystyle x = \frac{1 \pm 7}{4}, so x=2x = 2 or x=−32\displaystyle x = -\frac{3}{2}.
  4. Δ=49−24=25\Delta = 49 - 24 = 25, x=−7±54\displaystyle x = \frac{-7 \pm 5}{4}, so x=−12\displaystyle x = -\frac{1}{2} or x=−3x = -3.
  5. Δ=16+4=20\Delta = 16 + 4 = 20, x=−4±202=−4±252=−2±5\displaystyle x = \frac{-4 \pm \sqrt{20}}{2} = \frac{-4 \pm 2\sqrt{5}}{2} = -2 \pm \sqrt{5}.
  6. Prod­uct −6-6, sum 55: use 66 and −1-1. 3x2+6x−x−2=3x(x+2)−1(x+2)=(3x−1)(x+2)3x^2 + 6x - x - 2 = 3x(x + 2) - 1(x + 2) = (3x - 1)(x + 2), so x=13\displaystyle x = \frac{1}{3} or x=−2x = -2. For­mula: Δ=25+24=49\Delta = 25 + 24 = 49, x=−5±76\displaystyle x = \frac{-5 \pm 7}{6} gives the same two roots.
  7. (i) and (iii). In (ii) the term 1x2=x−2\displaystyle \frac{1}{x^2} = x^{-2} has a neg­a­tive power.
  8. p(−12)=8(−18)−a4+12+2=−1−a4+52=0\displaystyle p\left(-\frac{1}{2}\right) = 8\left(-\frac{1}{8}\right) - \frac{a}{4} + \frac{1}{2} + 2 = -1 - \frac{a}{4} + \frac{5}{2} = 0, so a4=32\displaystyle \frac{a}{4} = \frac{3}{2} and a=6a = 6.
  9. Δ=652−4(44)(24)=4225−4224=1\Delta = 65^2 - 4(44)(24) = 4225 - 4224 = 1, x=−65±188\displaystyle x = \frac{-65 \pm 1}{88}, so x=−6488=−811\displaystyle x = -\frac{64}{88} = -\frac{8}{11} or x=−6688=−34\displaystyle x = -\frac{66}{88} = -\frac{3}{4}.