The Sum and Product of the Roots

Both read off a, b and c without solving.

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 (x − α)(x − β) = 0 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 a(x − α)(x − β), where a is the coefficient of x².

Expand the brackets: (x − α)(x − β) = x² − αx − βx + αβ = x² − (α + β)x + αβ. Multiplying through by a gives ax² − a(α + β)x + aαβ.

Matching the coefficients

The same quadratic is also written ax² + bx + c. 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: b = −a(α + β). Divide both sides by −a, and the sum of the roots is α + β = −b/a.

Match the constant terms: c = aαβ. Divide both sides by a, and the product of the roots is αβ = c/a.

−5−4−3−2−10123456x = 2.5x² − (1 + 4)x + (1)(4)= x² − 5x + 4

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 y = (x − r₁)(x − r₂), 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 2x² − 10x + 3 = 0. Here a = 2, b = −10 and c = 3. The sum of the roots is −b/a = 10/2 = 5, and their product is c/a = 3/2.

Neither root was found. The quadratic formula gives them as (5 + √19)/2 and (5 − √19)/2, 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

x² − 5x + 6 factors as (x − 2)(x − 3), so its roots are 2 and 3. Their sum is 2 + 3 = 5, and −b/a = −(−5)/1 = 5. Their product is 2 × 3 = 6, and c/a = 6/1 = 6. Both rules agree.

The rules also work when a is not 1. 2x² − 7x + 3 factors as (2x − 1)(x − 3), so its roots are 1/2 and 3. The rules give the sum −b/a = 7/2 and the product c/a = 3/2, and indeed 1/2 + 3 = 7/2 and 1/2 × 3 = 3/2.

Watch the signs

The sum has a minus sign in front of b, and the product has no minus sign. For x² + 5x + 6 = 0, 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 x² − (α + β)x + αβ says that a quadratic equation with given roots is x² − (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 x² − (−3)x + (−10) = 0, which is x² + 3x − 10 = 0. Check by factoring: x² + 3x − 10 = (x − 2)(x + 5), which is zero at x = 2 and x = −5.

The usual mistakes

Leaving out the minus sign in the sum. For 2x² − 10x + 3, the sum is −(−10)/2 = 5, not −5.

Forgetting to divide by a. The sum for 2x² − 10x + 3 is 10/2 = 5, not 10, and the product is 3/2, 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. 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.

    roots with a sum of 19 and a product of 84: x2− (sum)x + (product) = 0x2− 19x + 84=0
    x2− (sum)x + (product) = 0x2− 19x + 84=0
    The sum of the roots is 19 and their product is 84, so the equation is x2 − 19x + 84 = 0.
  2. 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.

    roots with a sum of 19 and a product of 84: x2− (sum)x + (product) = 0x2− 19x + 84=0(x − 7)(x − 12)=0factorize−7 and −12: the product is 84 and the sum is −19
    x2− (sum)x + (product) = 0x2− 19x + 84=0factorize(x − 7)(x − 12)=0−7 and −12: the product is 84 and the sum is −19
    The numbers −7 and −12 have a product of 84 and a sum of −19: (x − 7)(x − 12) = 0.
  3. 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.

    roots with a sum of 19 and a product of 84: x2− (sum)x + (product) = 0x2− 19x + 84=0(x − 7)(x − 12)=0factorizex = 7 or x = 12: one root for each sistercheck: 7 + 12 = 19, and 7 × 12 = 84
    x2− (sum)x + (product) = 0x2− 19x + 84=0factorize(x − 7)(x − 12)=0x = 7 or x = 12: one root for each sistercheck: 7 + 12 = 19, and 7 × 12 = 84
    (a) x = 7 or x = 12: the sisters are 7 and 12 years old.
  4. 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.

    k years ago the sisters were 12 − k and 7 − k years old12 − k=2(7 − k)12 − k=14 − 2kexpand the bracket12 + k=14add 2k to both sidesk=2subtract 12 from both sides
    k years ago the sisters were 12 − k and 7 − k years old12 − k=2(7 − k)expand the bracket12 − k=14 − 2kadd 2k to both sides12 + k=14subtract 12 from both sidesk=2
    Let it be k years ago: 12 − k = 2(7 − k), which gives k = 2.
  5. 5.(b) It was 2 years ago, when the sisters were 10 and 5 years old. Check: 10 = 2 × 5.

    k years ago the sisters were 12 − k and 7 − k years old12 − k=2(7 − k)12 − k=14 − 2kexpand the bracket12 + k=14add 2k to both sidesk=2subtract 12 from both sidesYounger7 − 2 = 5Older5512 − 2 = 10 = 2 × 5
    k years ago the sisters were 12 − k and 7 − k years old12 − k=2(7 − k)expand the bracket12 − k=14 − 2kadd 2k to both sides12 + k=14subtract 12 from both sidesk=2Younger7 − 2 = 5Older5512 − 2 = 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.

More quadratic equations problems, worked step by step →

Practice The Sum and Product of the Roots in the app