A quadratic built from its roots
The solutions of a quadratic equation are also called its roots. If the roots are 2 and 3, then (x − 2)(x − 3) = 0 is an equation with exactly those roots, by the zero product property.
Call the two roots and , the Greek letters alpha and beta. Then has the roots and . Multiplying the left side by any number a other than 0 does not change where it is zero, so every quadratic with the roots and can be written as , where a is the coefficient of .
Expand the brackets: . Multiplying through by a gives .
Matching the coefficients
The same quadratic is also written . Two ways of writing one quadratic must have the same coefficients, term by term, as in Finding Unknown Coefficients by Matching.
Match the x terms: . Divide both sides by −a, and the sum of the roots is .
Match the constant terms: . Divide both sides by a, and the product of the roots is .
sum 5, product 4: x² − (sum)x + product, so the middle coefficient is −5 and the constant is 4; the axis of symmetry x = 2.5 is half the sum
Put the roots at 2 and 6 and read the expansion
The curve is , with its two roots as the handles. The expansion above it changes as they move: the sum of the roots appears, with a minus sign, as the coefficient of x, and their product appears as the constant term.
Reading them off without solving
Take . Here a = 2, b = −10 and c = 3. The sum of the roots is , and their product is .
Neither root was found. The quadratic formula gives them as and , which are awkward to work with, but their sum and product are simple numbers that can be read straight off the equation.
Checking on a quadratic that factors
factors as (x − 2)(x − 3), so its roots are 2 and 3. Their sum is 2 + 3 = 5, and . Their product is 2 × 3 = 6, and . Both rules agree.
The rules also work when a is not 1. factors as (2x − 1)(x − 3), so its roots are and 3. The rules give the sum and the product , and indeed and .
Watch the signs
The sum has a minus sign in front of b, and the product has no minus sign. For , the roots add to −5 and multiply to 6. A positive product means the roots have the same sign, and a negative sum means that sign is negative. The roots are −2 and −3: −2 + (−3) = −5 and −2 × (−3) = 6.
Building an equation from its roots
The rules also run backward. With a = 1, the expansion says that a quadratic equation with given roots is sum of the roots)x + (product of the roots) = 0.
For the roots 2 and −5, the sum is −3 and the product is −10, so the equation is , which is . Check by factoring: , which is zero at x = 2 and x = −5.
The usual mistakes
Leaving out the minus sign in the sum. For , the sum is , not −5.
Forgetting to divide by a. The sum for is , not 10, and the product is , not 3.
Mixing up the two rules. The sum is built from b and the product from c.
Worked example: Two Sisters' Ages with a Known Sum and a Known Product
Question The ages of two sisters add up to 19 years, and the product of their ages is 84. (a) Write down a quadratic equation whose roots are the two ages, and solve it. (b) How many years ago was the older sister exactly twice as old as the younger sister?
1.Let the two ages be the roots of a quadratic equation. The sum of the roots is 19 and their product is 84, so the equation is x2 − 19x + 84 = 0.
The sum of the roots is 19 and their product is 84, so the equation is x2 − 19x + 84 = 0. 2.Factorize. The product 84 is positive and the sum is −19, so both numbers are negative: they are −7 and −12, and (x − 7)(x − 12) = 0.
The numbers −7 and −12 have a product of 84 and a sum of −19: (x − 7)(x − 12) = 0. 3.So x = 7 or x = 12, and both roots are used, one for each sister. (a) The equation is x2 − 19x + 84 = 0, and the sisters are 7 and 12 years old. Check: 7 + 12 = 19 and 7 × 12 = 84.
(a) x = 7 or x = 12: the sisters are 7 and 12 years old. 4.Let it be k years ago. Then the sisters were (12 − k) and (7 − k) years old, so 12 − k = 2(7 − k). Expand the bracket: 12 − k = 14 − 2k. Add 2k to both sides: 12 + k = 14. Subtract 12 from both sides: k = 2.
Let it be k years ago: 12 − k = 2(7 − k), which gives k = 2. 5.(b) It was 2 years ago, when the sisters were 10 and 5 years old. Check: 10 = 2 × 5.
(b) It was 2 years ago, when the sisters were 10 and 5 years old.
Answer: (a) x2 − 19x + 84 = 0; the sisters are 7 and 12 years old; (b) 2 years ago
Common mistakes
- Writing the equation as x2 + 19x + 84 = 0. The coefficient of x is the sum of the roots with its sign changed, because (x − 7)(x − 12) expands to x2 − 19x + 84. The equation with +19x has the roots −7 and −12.
- Rejecting one of the two roots out of habit. A root is rejected only when the situation rules it out, and here the two roots are the two ages that the question asks for.