The quadratic function is the polynomial of degree 2 2 2 , and it is the most important function of this chapter. Its graph is a curve called a parabola, and the shape and position of that curve decide how to solve quadratic inequations later on. Before drawing it, you need a firm hold on its roots: how to find them, how to tell what kind they are without finding them, and how their sum, product and difference connect to the coefficients.
Quadratic function and quadratic equation#
A function of the form
y = f ( x ) = a x 2 + b x + c ( a ≠ 0 ) y = f(x) = ax^2 + bx + c \quad (a \neq 0) y = f ( x ) = a x 2 + b x + c ( a = 0 )
is called a quadratic function , or a quadratic expression .
The equation
a x 2 + b x + c = 0 ( a ≠ 0 ) ax^2 + bx + c = 0 \quad (a \neq 0) a x 2 + b x + c = 0 ( a = 0 )
is called a quadratic equation . A value of x x x that satisfies it is called a root of the equation. A root of the equation is also called a zero of the function, because the function takes the value 0 0 0 there.
The condition a ≠ 0 a \neq 0 a = 0 matters: if a = 0 a = 0 a = 0 the x 2 x^2 x 2 term disappears and we are back to a linear function.
The roots and the discriminant#
The roots of the quadratic equation a x 2 + b x + c = 0 ax^2 + bx + c = 0 a x 2 + b x + c = 0 are
x = − b ± b 2 − 4 a c 2 a = − b ± Δ 2 a \displaystyle x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-b \pm \sqrt{\Delta}}{2a} x = 2 a − b ± b 2 − 4 a c = 2 a − b ± Δ
where
Δ = b 2 − 4 a c \Delta = b^2 - 4ac Δ = b 2 − 4 a c
is called the discriminant . The discriminant decides the kind of roots, because it sits under the square root sign.
Δ > 0 \Delta > 0 Δ > 0 : the roots are real and distinct (two different real roots).
Δ = 0 \Delta = 0 Δ = 0 : the roots are real and equal (both are − b 2 a \displaystyle -\frac{b}{2a} − 2 a b ).
Δ < 0 \Delta < 0 Δ < 0 : there are no real roots. The roots are imaginary, because the square root of a negative number is not a real number.
Example 1#
Find the nature of the roots of (a) 2 x 2 − 7 x + 3 = 0 2x^2 - 7x + 3 = 0 2 x 2 − 7 x + 3 = 0 (b) x 2 − 6 x + 9 = 0 x^2 - 6x + 9 = 0 x 2 − 6 x + 9 = 0 (c) x 2 + x + 1 = 0 x^2 + x + 1 = 0 x 2 + x + 1 = 0 . Solve those that have real roots.
(a) Here a = 2 a = 2 a = 2 , b = − 7 b = -7 b = − 7 , c = 3 c = 3 c = 3 . So Δ = 49 − 24 = 25 > 0 \Delta = 49 - 24 = 25 > 0 Δ = 49 − 24 = 25 > 0 : real and distinct roots.
x = 7 ± 5 4 , so x = 3 or x = 1 2 \displaystyle x = \frac{7 \pm 5}{4}, \quad \text{so } x = 3 \text{ or } x = \frac{1}{2} x = 4 7 ± 5 , so x = 3 or x = 2 1
(b) Here a = 1 a = 1 a = 1 , b = − 6 b = -6 b = − 6 , c = 9 c = 9 c = 9 . So Δ = 36 − 36 = 0 \Delta = 36 - 36 = 0 Δ = 36 − 36 = 0 : real and equal roots, both equal to 6 2 = 3 \displaystyle \frac{6}{2} = 3 2 6 = 3 .
(c) Here a = b = c = 1 a = b = c = 1 a = b = c = 1 . So Δ = 1 − 4 = − 3 < 0 \Delta = 1 - 4 = -3 < 0 Δ = 1 − 4 = − 3 < 0 : no real roots.
Sum, product and difference of the roots#
If α \alpha α and β \beta β are the roots of a x 2 + b x + c = 0 ax^2 + bx + c = 0 a x 2 + b x + c = 0 , then
Sum of roots: α + β = − b a = − coefficient of x coefficient of x 2 \displaystyle \alpha + \beta = -\frac{b}{a} = -\frac{\text{coefficient of } x}{\text{coefficient of } x^2} α + β = − a b = − coefficient of x 2 coefficient of x
Product of roots: α β = c a = constant term coefficient of x 2 \displaystyle \alpha\beta = \frac{c}{a} = \frac{\text{constant term}}{\text{coefficient of } x^2} α β = a c = coefficient of x 2 constant term
Difference of roots: ∣ α − β ∣ = Δ ∣ a ∣ = b 2 − 4 a c ∣ a ∣ \displaystyle |\alpha - \beta| = \frac{\sqrt{\Delta}}{|a|} = \frac{\sqrt{b^2 - 4ac}}{|a|} ∣ α − β ∣ = ∣ a ∣ Δ = ∣ a ∣ b 2 − 4 a c
The third result is very important and is easy to prove from the first two. Start from the identity ( α − β ) 2 = ( α + β ) 2 − 4 α β (\alpha - \beta)^2 = (\alpha + \beta)^2 - 4\alpha\beta ( α − β ) 2 = ( α + β ) 2 − 4 α β :
( α − β ) 2 = ( − b a ) 2 − 4 c a = b 2 a 2 − 4 a c a 2 = b 2 − 4 a c a 2 \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} ( α − β ) 2 = ( − a b ) 2 − a 4 c = a 2 b 2 − a 2 4 a c = a 2 b 2 − 4 a c
Taking the positive square root of both sides,
∣ α − β ∣ = b 2 − 4 a c ∣ a ∣ \displaystyle |\alpha - \beta| = \frac{\sqrt{b^2 - 4ac}}{|a|} ∣ α − β ∣ = ∣ a ∣ b 2 − 4 a c
The modulus signs appear because a square root is never negative, and we do not know in advance which root is larger or whether a a a is positive.
Example 2#
Without solving, find the sum, product and difference of the roots of 3 x 2 + 5 x − 2 = 0 3x^2 + 5x - 2 = 0 3 x 2 + 5 x − 2 = 0 . Then check by solving.
Here a = 3 a = 3 a = 3 , b = 5 b = 5 b = 5 , c = − 2 c = -2 c = − 2 .
α + β = − 5 3 , α β = − 2 3 = − 2 3 \displaystyle \alpha + \beta = -\frac{5}{3}, \qquad \alpha\beta = \frac{-2}{3} = -\frac{2}{3} α + β = − 3 5 , α β = 3 − 2 = − 3 2
Δ = 25 − 4 ( 3 ) ( − 2 ) = 25 + 24 = 49 , ∣ α − β ∣ = 49 3 = 7 3 \displaystyle \Delta = 25 - 4(3)(-2) = 25 + 24 = 49, \qquad |\alpha - \beta| = \frac{\sqrt{49}}{3} = \frac{7}{3} Δ = 25 − 4 ( 3 ) ( − 2 ) = 25 + 24 = 49 , ∣ α − β ∣ = 3 49 = 3 7
Check: x = − 5 ± 7 6 \displaystyle x = \frac{-5 \pm 7}{6} x = 6 − 5 ± 7 gives x = 1 3 \displaystyle x = \frac{1}{3} x = 3 1 or x = − 2 x = -2 x = − 2 . Their sum is 1 3 − 2 = − 5 3 \displaystyle \frac{1}{3} - 2 = -\frac{5}{3} 3 1 − 2 = − 3 5 , their product is − 2 3 \displaystyle -\frac{2}{3} − 3 2 , and their difference is 1 3 + 2 = 7 3 \displaystyle \frac{1}{3} + 2 = \frac{7}{3} 3 1 + 2 = 3 7 . All three agree.
Example 3#
If α \alpha α and β \beta β are the roots of x 2 − 5 x + 3 = 0 x^2 - 5x + 3 = 0 x 2 − 5 x + 3 = 0 , find α 2 + β 2 \alpha^2 + \beta^2 α 2 + β 2 and ( α − β ) 2 (\alpha - \beta)^2 ( α − β ) 2 .
Here α + β = 5 \alpha + \beta = 5 α + β = 5 and α β = 3 \alpha\beta = 3 α β = 3 .
α 2 + β 2 = ( α + β ) 2 − 2 α β = 25 − 6 = 19 \alpha^2 + \beta^2 = (\alpha + \beta)^2 - 2\alpha\beta = 25 - 6 = 19 α 2 + β 2 = ( α + β ) 2 − 2 α β = 25 − 6 = 19
( α − β ) 2 = ( α + β ) 2 − 4 α β = 25 − 12 = 13 (\alpha - \beta)^2 = (\alpha + \beta)^2 - 4\alpha\beta = 25 - 12 = 13 ( α − β ) 2 = ( α + β ) 2 − 4 α β = 25 − 12 = 13
Neither answer needed the roots themselves, which are the untidy numbers 5 ± 13 2 \displaystyle \frac{5 \pm \sqrt{13}}{2} 2 5 ± 13 .
Result. If α \alpha α and β \beta β are the roots of a x 2 + b x + c = 0 ax^2 + bx + c = 0 a x 2 + b x + c = 0 , then
a x 2 + b x + c = a ( x − α ) ( x − β ) ax^2 + bx + c = a(x - \alpha)(x - \beta) a x 2 + b x + c = a ( x − α ) ( x − β )
Proof. Take a a a out as a common factor and use the sum and product of the roots:
a x 2 + b x + c = a [ x 2 + b a x + c a ] = a [ x 2 − ( − b a ) x + c a ] = a [ x 2 − ( α + β ) x + α β ] = a [ x 2 − α 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} a x 2 + b x + c = a [ x 2 + a b x + a c ] = a [ x 2 − ( − a b ) x + a c ] = a [ x 2 − ( α + β ) x + α β ] = a [ x 2 − α x − β x + α β ] = a ( x − α ) ( x − β )
This is called the factored form of the quadratic. You will use it again and again when drawing graphs and solving inequations, because it shows the roots at a glance.
Example 4#
Write 2 x 2 − 7 x + 3 2x^2 - 7x + 3 2 x 2 − 7 x + 3 in factored form.
From Example 1(a), the roots are 3 3 3 and 1 2 \displaystyle \frac{1}{2} 2 1 , and a = 2 a = 2 a = 2 . So
2 x 2 − 7 x + 3 = 2 ( x − 3 ) ( x − 1 2 ) = ( x − 3 ) ( 2 x − 1 ) \displaystyle 2x^2 - 7x + 3 = 2(x - 3)\left(x - \frac{1}{2}\right) = (x - 3)(2x - 1) 2 x 2 − 7 x + 3 = 2 ( x − 3 ) ( x − 2 1 ) = ( x − 3 ) ( 2 x − 1 )
Multiplying out ( x − 3 ) ( 2 x − 1 ) (x - 3)(2x - 1) ( x − 3 ) ( 2 x − 1 ) gives 2 x 2 − x − 6 x + 3 = 2 x 2 − 7 x + 3 2x^2 - x - 6x + 3 = 2x^2 - 7x + 3 2 x 2 − x − 6 x + 3 = 2 x 2 − 7 x + 3 , as it should.
Example 5#
For what values of k k k does x 2 + k x + 16 = 0 x^2 + kx + 16 = 0 x 2 + k x + 16 = 0 have equal roots?
Equal roots need Δ = 0 \Delta = 0 Δ = 0 : k 2 − 4 ( 1 ) ( 16 ) = 0 k^2 - 4(1)(16) = 0 k 2 − 4 ( 1 ) ( 16 ) = 0 , so k 2 = 64 k^2 = 64 k 2 = 64 and k = 8 k = 8 k = 8 or k = − 8 k = -8 k = − 8 .
Practice#
Find the discriminant of x 2 − 4 x + 1 = 0 x^2 - 4x + 1 = 0 x 2 − 4 x + 1 = 0 and state the nature of its roots.
Find the nature of the roots of 4 x 2 + 12 x + 9 = 0 4x^2 + 12x + 9 = 0 4 x 2 + 12 x + 9 = 0 , and find the root.
Show that 2 x 2 − 3 x + 5 = 0 2x^2 - 3x + 5 = 0 2 x 2 − 3 x + 5 = 0 has no real roots.
Solve 6 x 2 − x − 2 = 0 6x^2 - x - 2 = 0 6 x 2 − x − 2 = 0 using the formula.
Write the sum and the product of the roots of 5 x 2 − 3 x − 7 = 0 5x^2 - 3x - 7 = 0 5 x 2 − 3 x − 7 = 0 .
Find the difference of the roots of x 2 − 7 x + 10 = 0 x^2 - 7x + 10 = 0 x 2 − 7 x + 10 = 0 without solving it.
Find the difference of the roots of 2 x 2 + 3 x − 4 = 0 2x^2 + 3x - 4 = 0 2 x 2 + 3 x − 4 = 0 .
Write 3 x 2 − 10 x + 3 3x^2 - 10x + 3 3 x 2 − 10 x + 3 in factored form.
If α \alpha α and β \beta β are the roots of x 2 − 4 x + 2 = 0 x^2 - 4x + 2 = 0 x 2 − 4 x + 2 = 0 , find α 2 + β 2 \alpha^2 + \beta^2 α 2 + β 2 and ∣ α − β ∣ |\alpha - \beta| ∣ α − β ∣ .
For what values of k k k does x 2 − k x + 9 = 0 x^2 - kx + 9 = 0 x 2 − k x + 9 = 0 have equal roots?
Answers#
Show answers
Δ = 16 − 4 = 12 > 0 \Delta = 16 - 4 = 12 > 0 Δ = 16 − 4 = 12 > 0 , so the roots are real and distinct.
Δ = 144 − 144 = 0 \Delta = 144 - 144 = 0 Δ = 144 − 144 = 0 , so the roots are real and equal. The root is − 12 8 = − 3 2 \displaystyle -\frac{12}{8} = -\frac{3}{2} − 8 12 = − 2 3 .
Δ = 9 − 40 = − 31 < 0 \Delta = 9 - 40 = -31 < 0 Δ = 9 − 40 = − 31 < 0 , so there are no real roots.
Δ = 1 + 48 = 49 \Delta = 1 + 48 = 49 Δ = 1 + 48 = 49 , so x = 1 ± 7 12 \displaystyle x = \frac{1 \pm 7}{12} x = 12 1 ± 7 , giving x = 2 3 \displaystyle x = \frac{2}{3} x = 3 2 or x = − 1 2 \displaystyle x = -\frac{1}{2} x = − 2 1 .
Sum = 3 5 \displaystyle = \frac{3}{5} = 5 3 , product = − 7 5 \displaystyle = -\frac{7}{5} = − 5 7 .
Δ = 49 − 40 = 9 \Delta = 49 - 40 = 9 Δ = 49 − 40 = 9 , so ∣ α − β ∣ = 9 1 = 3 \displaystyle |\alpha - \beta| = \frac{\sqrt{9}}{1} = 3 ∣ α − β ∣ = 1 9 = 3 . (The roots are 5 5 5 and 2 2 2 .)
Δ = 9 + 32 = 41 \Delta = 9 + 32 = 41 Δ = 9 + 32 = 41 , so ∣ α − β ∣ = 41 2 \displaystyle |\alpha - \beta| = \frac{\sqrt{41}}{2} ∣ α − β ∣ = 2 41 .
Δ = 100 − 36 = 64 \Delta = 100 - 36 = 64 Δ = 100 − 36 = 64 , so the roots are 10 ± 8 6 \displaystyle \frac{10 \pm 8}{6} 6 10 ± 8 , that is 3 3 3 and 1 3 \displaystyle \frac{1}{3} 3 1 . Hence 3 x 2 − 10 x + 3 = 3 ( x − 3 ) ( x − 1 3 ) = ( x − 3 ) ( 3 x − 1 ) \displaystyle 3x^2 - 10x + 3 = 3(x - 3)\left(x - \frac{1}{3}\right) = (x - 3)(3x - 1) 3 x 2 − 10 x + 3 = 3 ( x − 3 ) ( x − 3 1 ) = ( x − 3 ) ( 3 x − 1 ) .
α + β = 4 \alpha + \beta = 4 α + β = 4 , α β = 2 \alpha\beta = 2 α β = 2 . Then α 2 + β 2 = 16 − 4 = 12 \alpha^2 + \beta^2 = 16 - 4 = 12 α 2 + β 2 = 16 − 4 = 12 , and ( α − β ) 2 = 16 − 8 = 8 (\alpha - \beta)^2 = 16 - 8 = 8 ( α − β ) 2 = 16 − 8 = 8 , so ∣ α − β ∣ = 2 2 |\alpha - \beta| = 2\sqrt{2} ∣ α − β ∣ = 2 2 .
k 2 − 36 = 0 k^2 - 36 = 0 k 2 − 36 = 0 , so k = 6 k = 6 k = 6 or k = − 6 k = -6 k = − 6 .