The qua­dratic func­tion is the poly­no­mial of degree 22, and it is the most impor­tant func­tion of this chap­ter. Its graph is a curve called a parabola, and the shape and posi­tion of that curve decide how to solve qua­dratic inequa­tions later on. Before draw­ing it, you need a firm hold on its roots: how to find them, how to tell what kind they are with­out find­ing them, and how their sum, prod­uct and dif­fer­ence con­nect to the coef­fi­cients.

Qua­dratic func­tion and qua­dratic equa­tion

A func­tion of the form

y=f(x)=ax2+bx+c(a≠0)y = f(x) = ax^2 + bx + c \quad (a \neq 0)

is called a qua­dratic func­tion, or a qua­dratic expres­sion.

The equa­tion

ax2+bx+c=0(a≠0)ax^2 + bx + c = 0 \quad (a \neq 0)

is called a qua­dratic equa­tion. A value of xx that sat­is­fies it is called a root of the equa­tion. A root of the equa­tion is also called a zero of the func­tion, because the func­tion takes the value 00 there.

The con­di­tion a≠0a \neq 0 mat­ters: if a=0a = 0 the x2x^2 term dis­ap­pears and we are back to a lin­ear func­tion.

The roots and the dis­crim­i­nant

The roots of the qua­dratic equa­tion ax2+bx+c=0ax^2 + bx + c = 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

is called the dis­crim­i­nant. The dis­crim­i­nant decides the kind of roots, because it sits under the square root sign.

  • Δ>0\Delta > 0: the roots are real and dis­tinct (two dif­fer­ent real roots).
  • Δ=0\Delta = 0: the roots are real and equal (both are −b2a\displaystyle -\frac{b}{2a}).
  • Δ<0\Delta < 0: there are no real roots. The roots are imag­i­nary, because the square root of a neg­a­tive num­ber is not a real num­ber.

Exam­ple 1

Find the nature of the roots of (a) 2x2−7x+3=02x^2 - 7x + 3 = 0 (b) x2−6x+9=0x^2 - 6x + 9 = 0 (c) x2+x+1=0x^2 + x + 1 = 0. Solve those that have real roots.

(a) Here a=2a = 2, b=−7b = -7, c=3c = 3. So Δ=49−24=25>0\Delta = 49 - 24 = 25 > 0: real and dis­tinct roots.

x=7±54,so x=3 or x=12\displaystyle x = \frac{7 \pm 5}{4}, \quad \text{so } x = 3 \text{ or } x = \frac{1}{2}

(b) Here a=1a = 1, b=−6b = -6, c=9c = 9. So Δ=36−36=0\Delta = 36 - 36 = 0: real and equal roots, both equal to 62=3\displaystyle \frac{6}{2} = 3.

(c) Here a=b=c=1a = b = c = 1. So Δ=1−4=−3<0\Delta = 1 - 4 = -3 < 0: no real roots.

Sum, prod­uct and dif­fer­ence of the roots

If α\alpha and β\beta are the roots of ax2+bx+c=0ax^2 + bx + c = 0, then

  1. Sum of roots: α+β=−ba=−coefficient of xcoefficient of x2\displaystyle \alpha + \beta = -\frac{b}{a} = -\frac{\text{coefficient of } x}{\text{coefficient of } x^2}
  2. Prod­uct of roots: αβ=ca=constant termcoefficient of x2\displaystyle \alpha\beta = \frac{c}{a} = \frac{\text{constant term}}{\text{coefficient of } x^2}
  3. Dif­fer­ence of roots: ∣α−β∣=Δ∣a∣=b2−4ac∣a∣\displaystyle |\alpha - \beta| = \frac{\sqrt{\Delta}}{|a|} = \frac{\sqrt{b^2 - 4ac}}{|a|}

The third result is very impor­tant and is easy to prove from the first two. Start from the iden­tity (α−β)2=(α+β)2−4αβ(\alpha - \beta)^2 = (\alpha + \beta)^2 - 4\alpha\beta:

(α−β)2=(−ba)2−4ca=b2a2−4aca2=b2−4aca2\displaystyle \begin{aligned} (\alpha - \beta)^2 &= \left(-\frac{b}{a}\right)^2 - \frac{4c}{a} \\ &= \frac{b^2}{a^2} - \frac{4ac}{a^2} \\ &= \frac{b^2 - 4ac}{a^2} \end{aligned}

Tak­ing the pos­i­tive square root of both sides,

∣α−β∣=b2−4ac∣a∣\displaystyle |\alpha - \beta| = \frac{\sqrt{b^2 - 4ac}}{|a|}

The mod­u­lus signs appear because a square root is never neg­a­tive, and we do not know in advance which root is larger or whether aa is pos­i­tive.

Exam­ple 2

With­out solv­ing, find the sum, prod­uct and dif­fer­ence of the roots of 3x2+5x−2=03x^2 + 5x - 2 = 0. Then check by solv­ing.

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

α+β=−53,αβ=−23=−23\displaystyle \alpha + \beta = -\frac{5}{3}, \qquad \alpha\beta = \frac{-2}{3} = -\frac{2}{3}

Δ=25−4(3)(−2)=25+24=49,∣α−β∣=493=73\displaystyle \Delta = 25 - 4(3)(-2) = 25 + 24 = 49, \qquad |\alpha - \beta| = \frac{\sqrt{49}}{3} = \frac{7}{3}

Check: x=−5±76\displaystyle x = \frac{-5 \pm 7}{6} gives x=13\displaystyle x = \frac{1}{3} or x=−2x = -2. Their sum is 13−2=−53\displaystyle \frac{1}{3} - 2 = -\frac{5}{3}, their prod­uct is −23\displaystyle -\frac{2}{3}, and their dif­fer­ence is 13+2=73\displaystyle \frac{1}{3} + 2 = \frac{7}{3}. All three agree.

Exam­ple 3

If α\alpha and β\beta are the roots of x2−5x+3=0x^2 - 5x + 3 = 0, find α2+β2\alpha^2 + \beta^2 and (α−β)2(\alpha - \beta)^2.

Here α+β=5\alpha + \beta = 5 and αβ=3\alpha\beta = 3.

α2+β2=(α+β)2−2αβ=25−6=19\alpha^2 + \beta^2 = (\alpha + \beta)^2 - 2\alpha\beta = 25 - 6 = 19

(α−β)2=(α+β)2−4αβ=25−12=13(\alpha - \beta)^2 = (\alpha + \beta)^2 - 4\alpha\beta = 25 - 12 = 13

Nei­ther answer needed the roots them­selves, which are the untidy num­bers 5±132\displaystyle \frac{5 \pm \sqrt{13}}{2}.

The fac­tored form

Result. If α\alpha and β\beta are the roots of ax2+bx+c=0ax^2 + bx + c = 0, then

ax2+bx+c=a(x−α)(x−β)ax^2 + bx + c = a(x - \alpha)(x - \beta)

Proof. Take aa out as a com­mon fac­tor and use the sum and prod­uct of the roots:

ax2+bx+c=a[x2+bax+ca]=a[x2−(−ba)x+ca]=a[x2−(α+β)x+αβ]=a[x2−αx−βx+αβ]=a(x−α)(x−β)\displaystyle \begin{aligned} ax^2 + bx + c &= a\left[x^2 + \frac{b}{a}x + \frac{c}{a}\right] \\ &= a\left[x^2 - \left(-\frac{b}{a}\right)x + \frac{c}{a}\right] \\ &= a\left[x^2 - (\alpha + \beta)x + \alpha\beta\right] \\ &= a\left[x^2 - \alpha x - \beta x + \alpha\beta\right] \\ &= a(x - \alpha)(x - \beta) \end{aligned}

This is called the fac­tored form of the qua­dratic. You will use it again and again when draw­ing graphs and solv­ing inequa­tions, because it shows the roots at a glance.

Exam­ple 4

Write 2x2−7x+32x^2 - 7x + 3 in fac­tored form.

From Exam­ple 1(a), the roots are 33 and 12\displaystyle \frac{1}{2}, and a=2a = 2. So

2x2−7x+3=2(x−3)(x−12)=(x−3)(2x−1)\displaystyle 2x^2 - 7x + 3 = 2(x - 3)\left(x - \frac{1}{2}\right) = (x - 3)(2x - 1)

Mul­ti­ply­ing out (x−3)(2x−1)(x - 3)(2x - 1) gives 2x2−x−6x+3=2x2−7x+32x^2 - x - 6x + 3 = 2x^2 - 7x + 3, as it should.

Exam­ple 5

For what val­ues of kk does x2+kx+16=0x^2 + kx + 16 = 0 have equal roots?

Equal roots need Δ=0\Delta = 0: k2−4(1)(16)=0k^2 - 4(1)(16) = 0, so k2=64k^2 = 64 and k=8k = 8 or k=−8k = -8.

Prac­tice

  1. Find the dis­crim­i­nant of x2−4x+1=0x^2 - 4x + 1 = 0 and state the nature of its roots.
  2. Find the nature of the roots of 4x2+12x+9=04x^2 + 12x + 9 = 0, and find the root.
  3. Show that 2x2−3x+5=02x^2 - 3x + 5 = 0 has no real roots.
  4. Solve 6x2−x−2=06x^2 - x - 2 = 0 using the for­mula.
  5. Write the sum and the prod­uct of the roots of 5x2−3x−7=05x^2 - 3x - 7 = 0.
  6. Find the dif­fer­ence of the roots of x2−7x+10=0x^2 - 7x + 10 = 0 with­out solv­ing it.
  7. Find the dif­fer­ence of the roots of 2x2+3x−4=02x^2 + 3x - 4 = 0.
  8. Write 3x2−10x+33x^2 - 10x + 3 in fac­tored form.
  9. If α\alpha and β\beta are the roots of x2−4x+2=0x^2 - 4x + 2 = 0, find α2+β2\alpha^2 + \beta^2 and ∣α−β∣|\alpha - \beta|.
  10. For what val­ues of kk does x2−kx+9=0x^2 - kx + 9 = 0 have equal roots?

Answers

Show answers
  1. Δ=16−4=12>0\Delta = 16 - 4 = 12 > 0, so the roots are real and dis­tinct.
  2. Δ=144−144=0\Delta = 144 - 144 = 0, so the roots are real and equal. The root is −128=−32\displaystyle -\frac{12}{8} = -\frac{3}{2}.
  3. Δ=9−40=−31<0\Delta = 9 - 40 = -31 < 0, so there are no real roots.
  4. Δ=1+48=49\Delta = 1 + 48 = 49, so x=1±712\displaystyle x = \frac{1 \pm 7}{12}, giv­ing x=23\displaystyle x = \frac{2}{3} or x=−12\displaystyle x = -\frac{1}{2}.
  5. Sum =35\displaystyle = \frac{3}{5}, prod­uct =−75\displaystyle = -\frac{7}{5}.
  6. Δ=49−40=9\Delta = 49 - 40 = 9, so ∣α−β∣=91=3\displaystyle |\alpha - \beta| = \frac{\sqrt{9}}{1} = 3. (The roots are 55 and 22.)
  7. Δ=9+32=41\Delta = 9 + 32 = 41, so ∣α−β∣=412\displaystyle |\alpha - \beta| = \frac{\sqrt{41}}{2}.
  8. Δ=100−36=64\Delta = 100 - 36 = 64, so the roots are 10±86\displaystyle \frac{10 \pm 8}{6}, that is 33 and 13\displaystyle \frac{1}{3}. Hence 3x2−10x+3=3(x−3)(x−13)=(x−3)(3x−1)\displaystyle 3x^2 - 10x + 3 = 3(x - 3)\left(x - \frac{1}{3}\right) = (x - 3)(3x - 1).
  9. α+β=4\alpha + \beta = 4, αβ=2\alpha\beta = 2. Then α2+β2=16−4=12\alpha^2 + \beta^2 = 16 - 4 = 12, and (α−β)2=16−8=8(\alpha - \beta)^2 = 16 - 8 = 8, so ∣α−β∣=22|\alpha - \beta| = 2\sqrt{2}.
  10. k2−36=0k^2 - 36 = 0, so k=6k = 6 or k=−6k = -6.