Roots and Coefficients of a Cubic

Three sums, read off without solving.

Three brackets, multiplied out

For a quadratic, the two roots add to −b/a and multiply to c/a. A cubic has three roots, and the same idea gives three relationships.

If the cubic ax³ + bx² + cx + d = 0 has roots α, β and γ, it factors as a(x − α)(x − β)(x − γ) = 0. Multiply out two brackets first: (x − α)(x − β) = x² − (α + β)x + αβ.

Now multiply by x − γ. Times x gives x³ − (α + β)x² + αβx. Times −γ gives −γx² + (αγ + βγ)x − αβγ. Collect the like terms: x³ − (α + β + γ)x² + (αβ + βγ + γα)x − αβγ. Finally multiply through by a.

So ax³ + bx² + cx + d = ax³ − a(α + β + γ)x² + a(αβ + βγ + γα)x − aαβγ.

Match the coefficients

Two polynomials that are equal for every x have the same coefficients. Match them one power at a time.

The x² terms: b = −a(α + β + γ), so α + β + γ = −b/a. The x terms: c = a(αβ + βγ + γα), so αβ + βγ + γα = c/a. The constants: d = −aαβγ, so αβγ = −d/a.

The signs alternate: minus, plus, minus. The sum αβ + βγ + γα adds the products of the roots two at a time, and it is often written Σαβ, just as α + β + γ is written Σα.

Check on x³ − 6x² + 11x − 6 = (x − 1)(x − 2)(x − 3), whose roots are 1, 2 and 3. Here a = 1, b = −6, c = 11 and d = −6. The sum is 1 + 2 + 3 = 6 = −b/a. The pairs give 1 × 2 + 2 × 3 + 3 × 1 = 11 = c/a. The product is 1 × 2 × 3 = 6 = −d/a.

xy

The gold curve is y = x³ − 6x² + 11x − 6, and the plain curve is twice it, y = 2x³ − 12x² + 22x − 12. Both cross the x-axis at x = 1, 2 and 3. Doubling every coefficient leaves the roots where they are, and −b/a stays 12/2 = 6: that is why each sum is divided by a.

Read off without solving

For 2x³ − 6x² + 4x − 10 = 0, a = 2, b = −6, c = 4 and d = −10. So α + β + γ = −(−6)/2 = 3, αβ + βγ + γα = 4/2 = 2, and αβγ = −(−10)/2 = 5.

None of the roots has been found, and none needs to be. These three values hold whether the roots are real or not; this cubic has only one real root, close to 2.904, and the other two are complex, yet the three sums are still 3, 2 and 5.

Other symmetric expressions follow from the three. The sum of the reciprocals is 1/α + 1/β + 1/γ = (βγ + γα + αβ)/(αβγ), over a common denominator. For this cubic that is 2/5.

A quartic, one row longer

A quartic ax⁴ + bx³ + cx² + dx + e = 0 has four roots α, β, γ and δ, and four sums. The roots one at a time: Σα = −b/a. Two at a time: Σαβ = c/a. Three at a time: Σαβγ = −d/a. All four multiplied: αβγδ = e/a. The signs still alternate, starting with minus.

Check on (x − 1)(x − 2)(x − 3)(x − 4) = x⁴ − 10x³ + 35x² − 50x + 24. The roots add to 1 + 2 + 3 + 4 = 10. The six pairs give 2 + 3 + 4 + 6 + 8 + 12 = 35. The four triples give 6 + 8 + 12 + 24 = 50. The product is 24. With a = 1, those are −b, c, −d and e, as the pattern says.

The sum of the squares

Square the sum of the roots: (α + β + γ)² = α² + β² + γ² + 2αβ + 2βγ + 2γα. Each product of two different roots appears twice. So (Σα)² = Σα² + 2Σαβ, and rearranging, Σα² = (Σα)² − 2Σαβ.

If Σα = 5 and Σαβ = 6, then α² + β² + γ² = 25 − 12 = 13. For the roots 1, 2 and 3: Σα² = 6² − 2 × 11 = 36 − 22 = 14, and directly 1 + 4 + 9 = 14.

For 2x³ − 6x² + 4x − 10 = 0, Σα² = 3² − 2 × 2 = 5, again without finding a root.

Building a cubic from its sums

The relationships work backwards too. With a = 1, a cubic whose roots have sum S, pair sum P and product Q is x³ − Sx² + Px − Q = 0. Roots with S = 12, P = 47 and Q = 60 give x³ − 12x² + 47x − 60 = 0.

The roots of that cubic are 3, 4 and 5: 3 + 4 + 5 = 12, 12 + 20 + 15 = 47, and 3 × 4 × 5 = 60.

The usual mistakes

Dropping the minus sign. For x³ − 6x² + 11x − 6, α + β + γ = −b/a = −(−6) = 6, not −6.

Dropping the minus from the product. For 2x³ + 4x² − 6x + 8, αβγ = −d/a = −8/2 = −4, not 4.

Mixing up the coefficients. c gives the pair sum, not the sum of the roots, so 11 is αβ + βγ + γα for x³ − 6x² + 11x − 6, and −3 = c/a is not the product for 2x³ + 4x² − 6x + 8.

Giving the pair sum a minus sign. Σαβ = c/a: the signs alternate starting with minus on b, so the c term arrives positive.

Taking (Σα)² as the sum of the squares. It still holds 2Σαβ: with Σα = 5 and Σαβ = 6, the sum of the squares is 25 − 12 = 13, not 25, and taking off one Σαβ instead of two gives 19.

A gift box

In the application below, the edges, the card and the volume of a box give the sum, the pair sum and the product of its three dimensions. Those are the three sums of a cubic, and the longest rod in the box comes from the sum of the squares before the cubic is solved.

Worked example: A Gift Box Known Only by Its Edges, Its Card and Its Volume: The Diagonal Before the Dimensions

Question The twelve edges of a gift box add up to 48 cm, the card that covers its six faces has an area of 94 cm2, and the box holds 60 cm3. (a) Show that the length, width and height of the box are the three roots of x3 − 12x2 + 47x − 60 = 0. Without solving the cubic, find the length of the longest straight rod that fits inside the box, from one corner to the opposite corner. (b) Solve the cubic to find the dimensions of the box.

  1. 1.Call the dimensions a, b and c cm. The box has 4 edges of each length, so 4(a + b + c) = 48 and a + b + c = 12. It has two faces of each size, so 2(ab + bc + ca) = 94 and ab + bc + ca = 47. The volume gives abc = 60.

    abc−2−1012345x (cm)value of the cubic4(a + b + c) = 48, so a + b + c = 122(ab + bc + ca) = 94, so ab + bc + ca = 47abc = 60
    abc−2−1012345x (cm)value of the cubic4(a + b + c) = 48, so a + b + c = 122(ab + bc + ca) = 94, so ab + bc + ca = 47abc = 60
    The box has 4 edges and 2 faces of each kind, so a + b + c = 12, ab + bc + ca = 47 and abc = 60.
  2. 2.A cubic with roots a, b and c is x3 − (a + b + c)x2 + (ab + bc + ca)x − abc = 0, which is x3 − 12x2 + 47x − 60 = 0.

    abc−2−1012345x (cm)value of the cubicx3− 12x2+ 47x − 60 = 0
    abc−2−1012345x (cm)value of the cubicx3− 12x2+ 47x − 60 = 0
    A cubic with roots a, b and c is x3 − (a + b + c)x2 + (ab + bc + ca)x − abc = 0, which is x3 − 12x2 + 47x − 60 = 0.
  3. 3.The rod from corner to opposite corner has length √a2 + b2 + c2, and a2 + b2 + c2 = (a + b + c)2 − 2(ab + bc + ca) = 144 − 94 = 50. (a) The longest rod is √50 = 5√2 ≈ 7.07 cm.

    abc−2−1012345x (cm)value of the cubica2+ b2+ c2= 122− 2 × 47 = 50the diagonal is√50≈ 7.07 cm
    abc−2−1012345x (cm)value of the cubica2+ b2+ c2= 122− 2 × 47 = 50the diagonal is√50≈ 7.07 cm
    (a) The diagonal from corner to opposite corner is √a2 + b2 + c2, and a2 + b2 + c2 = 144 − 94 = 50, so it is √50 ≈ 7.07 cm.
  4. 4.Try the factors of 60: at x = 3 the cubic is 27 − 108 + 141 − 60 = 0, so (x − 3) is a factor. Dividing, x3 − 12x2 + 47x − 60 = (x − 3)(x2 − 9x + 20) = (x − 3)(x − 4)(x − 5).

    abc−2−1012345x (cm)value of the cubicx = 3: 27 − 108 + 141 − 60 = 0(x − 3)(x − 4)(x − 5)
    abc−2−1012345x (cm)value of the cubicx = 3: 27 − 108 + 141 − 60 = 0(x − 3)(x − 4)(x − 5)
    At x = 3 the cubic is 0, so (x − 3) is a factor, and dividing gives (x − 3)(x − 4)(x − 5). The curve crosses the axis at 3, 4 and 5.
  5. 5.(b) The box is 3 cm by 4 cm by 5 cm. Check: 3 + 4 + 5 = 12, 12 + 20 + 15 = 47, 3 × 4 × 5 = 60, and √9 + 16 + 25 = √50.

    5 cm3 cm4 cm−2−1012345x (cm)value of the cubicthe box is 3 cm by 4 cm by 5 cmcheck: 9 + 16 + 25 = 50
    5 cm3 cm4 cm−2−1012345x (cm)value of the cubicthe box is 3 cm by 4 cm by 5 cmcheck: 9 + 16 + 25 = 50
    (b) The box is 3 cm by 4 cm by 5 cm, drawn to scale. The three roots add up to 12 and multiply to 60.

Answer: (a) the longest rod is √50 = 5√2 ≈ 7.07 cm; (b) 3 cm by 4 cm by 5 cm

Common mistakes

  • Using 94 for ab + bc + ca. The card covers two faces of each size, so 94 is 2(ab + bc + ca), and the sum of products in pairs is 47.
  • Writing the cubic as x3 + 12x2 + 47x + 60 = 0. The signs alternate: the coefficient of x2 is minus the sum of the roots, and the constant is minus their product.

More polynomials and the binomial theorem problems, worked step by step →

Practice Roots and Coefficients of a Cubic in the app