Solving a Cubic Completely

Hunt one root, divide, finish on the quadratic.

Find one root by trial

Solve x³ − 2x² − 5x + 6 = 0. Write f(x) = x³ − 2x² − 5x + 6. There is no formula to reach for, so the first job is to find one root by trial.

The factor theorem narrows the search. If the roots are whole numbers p, q and s, then f(x) = (x − p)(x − q)(x − s), whose constant term is −pqs. So pqs = −6, and each whole-number root divides 6. The candidates are ±1, ±2, ±3 and ±6.

Try them in turn. f(1) = 1 − 2 − 5 + 6 = 0, so x = 1 is a root and x − 1 is a factor. Had the first try failed, the search would carry on: f(2) = 8 − 8 − 10 + 6 = −4 and f(−1) = −1 − 2 + 5 + 6 = 8, so neither 2 nor −1 is a root.

Divide by the factor

Dividing the cubic by x − 1 leaves a quadratic. By long division: x³ / x = x², and x²(x − 1) = x³ − x²; subtracting from x³ − 2x² leaves −x², and bringing down −5x gives −x² − 5x. Then −x² / x = −x, and −x(x − 1) = −x² + x; subtracting leaves −6x, and bringing down 6 gives −6x + 6. Then −6x / x = −6, and −6(x − 1) = −6x + 6, which leaves 0.

So x³ − 2x² − 5x + 6 = (x − 1)(x² − x − 6). The remainder is 0, as the factor theorem said it would be.

Or match the coefficients

The same quadratic comes from matching coefficients. Write x³ − 2x² − 5x + 6 = (x − 1)(x² + bx + c) and multiply out the right side: x³ + (b − 1)x² + (c − b)x − c.

The x² terms give b − 1 = −2, so b = −1. The constants give −c = 6, so c = −6. The x terms are then a check: c − b = −6 + 1 = −5, which matches. The quadratic is x² − x − 6.

Finish on the quadratic

Factor the quadratic: x² − x − 6 = (x − 3)(x + 2), because −3 × 2 = −6 and −3 + 2 = −1. So x³ − 2x² − 5x + 6 = (x − 1)(x − 3)(x + 2).

The cubic is 0 when any bracket is 0, so the roots are x = 1, x = 3 and x = −2. Check the two new roots by substitution: f(3) = 27 − 18 − 15 + 6 = 0 and f(−2) = −8 − 8 + 10 + 6 = 0. All three divide 6, as the search predicted.

xy

The curve y = x³ − 2x² − 5x + 6 crosses the x-axis three times, at the dots: x = −2, x = 1 and x = 3. Those are the three roots, one found by trial and two from the quadratic.

The same method on two more cubics

Solve x³ + 2x² − 5x − 6 = 0. The candidates divide 6. f(1) = 1 + 2 − 5 − 6 = −8, not 0. f(2) = 8 + 8 − 10 − 6 = 0, so x − 2 is a factor. Dividing leaves x² + 4x + 3 = (x + 1)(x + 3), so the roots are 2, −1 and −3.

Solve x³ − 3x² − 6x + 8 = 0. The candidates divide 8. f(1) = 1 − 3 − 6 + 8 = 0, so x − 1 is a factor. Dividing leaves x² − 2x − 8 = (x − 4)(x + 2), so the roots are 1, 4 and −2. Check: f(4) = 64 − 48 − 24 + 8 = 0.

When the quadratic does not factor

Solve x³ − 3x² − 3x + 1 = 0. The candidates are ±1. f(1) = 1 − 3 − 3 + 1 = −4, but f(−1) = −1 − 3 + 3 + 1 = 0, so x + 1 is a factor. Dividing leaves x² − 4x + 1, which has no whole-number factors.

Use the quadratic formula: x = (4 ± √(16 − 4)) / 2 = (4 ± 2√3) / 2 = 2 ± √3, because √12 = √4 × √3 = 2√3. So the roots are −1, 2 + √3 ≈ 3.732 and 2 − √3 ≈ 0.268. Only one root was found by trial; the other two are irrational, and the quadratic formula finds them.

Check 2 + √3 in the quadratic: (2 + √3)² − 4(2 + √3) + 1 = 7 + 4√3 − 8 − 4√3 + 1 = 0.

xy

The curve y = x³ − 3x² − 3x + 1. It crosses the x-axis at x = −1, the root found by trial, and between the gridlines at the two roots from the quadratic formula: 2 − √3, about 0.268, and 2 + √3, about 3.732.

When there is only one real root

Solve x³ − 1 = 0. f(1) = 0, so x − 1 is a factor, and dividing leaves x² + x + 1. Its discriminant is 1² − 4 × 1 × 1 = −3, which is negative, so the quadratic has no real roots. The cubic has one real root, x = 1.

A cubic always has at least one real root, because its graph runs from far below the x-axis to far above it. It has three when the quadratic left over has two.

The usual mistakes

Calling a candidate a root without testing it. For x³ − 2x² − 5x + 6, 2 divides 6, but f(2) = −4, so x − 2 is not a factor.

Getting the sign of the factor wrong. The root x = 1 gives the factor x − 1, not x + 1; f(−1) = 8, so x + 1 is not a factor.

Changing the signs of the roots from the quadratic. x² − x − 6 = (x − 3)(x + 2) has roots 3 and −2, not −3 and 2.

Stopping at two roots, or giving the root already found as one of the other two. The quadratic holds the other two roots, so the cubic x³ − 2x² − 5x + 6 has three: 1, 3 and −2.

A frame from 28 m of rod

In the application below, the cubic is 2x³ − 7x² + 9 = 0. Its leading coefficient is 2, so the candidates include halves as well as whole numbers. The first root found is x = −1, which cannot be a length, and the two lengths come from the quadratic left after dividing it out.

Worked example: A Box-Shaped Frame Welded from 28 m of Steel Rod: Every Frame That Encloses 9 Cubic Meters

Question A welder has 28 m of steel rod to make the twelve edges of a box-shaped frame with a square base. The frame must enclose 9 m3. (a) Taking the side of the base as x m, show that 2x3 − 7x2 + 9 = 0, and use the factor theorem to find one root. (b) Solve the equation completely, and give the dimensions of every frame the welder can make.

  1. 1.The base and the top are squares with 4 edges of x m each, and the four upright edges are h m each, so 8x + 4h = 28 and h = 7 − 2x. The height must be more than 0, so 0 < x < 3.5.

    −1001020−101234side of the square base (m), xvalue of the cubic8x + 4h = 28, so h = 7 − 2xh > 0, so 0 < x < 3.5
    −1001020−101234side of the square base (m), xvalue of the cubic8x + 4h = 28, so h = 7 − 2xh > 0, so 0 < x < 3.5
    The rod gives 8x + 4h = 28, so h = 7 − 2x, and the height must be more than 0: the shaded band is 0 < x < 3.5.
  2. 2.The volume is x2(7 − 2x) = 9, so 7x2 − 2x3 = 9, which rearranges to 2x3 − 7x2 + 9 = 0.

    −1001020−101234side of the square base (m), xvalue of the cubicx2(7 − 2x) = 92x3− 7x2+ 9 = 0
    −1001020−101234side of the square base (m), xvalue of the cubicx2(7 − 2x) = 92x3− 7x2+ 9 = 0
    The volume is x2(7 − 2x) = 9, which rearranges to 2x3 − 7x2 + 9 = 0. Its graph is drawn to scale.
  3. 3.(a) Try the factors of 9 over the factors of 2. At x = 1 the cubic is 2 − 7 + 9 = 4, not 0. At x = −1 it is −2 − 7 + 9 = 0, so by the factor theorem (x + 1) is a factor and x = −1 is a root.

    −1001020−101234side of the square base (m), xvalue of the cubicx = −1x = 1: 2 − 7 + 9 = 4, not 0x = −1: −2 − 7 + 9 = 0, so (x + 1) is a factor
    −1001020−101234side of the square base (m), xvalue of the cubicx = −1x = 1: 2 − 7 + 9 = 4, not 0x = −1: −2 − 7 + 9 = 0, so (x + 1) is a factor
    (a) At x = 1 the cubic is 4, but at x = −1 it is 0, so (x + 1) is a factor and the curve crosses the axis at x = −1.
  4. 4.Divide by (x + 1): 2x3 − 7x2 + 9 = (x + 1)(2x2 − 9x + 9), and the quadratic factorizes as (2x − 3)(x − 3). The roots are x = −1, x = 1.5 and x = 3.

    −1001020−101234side of the square base (m), xvalue of the cubicx = −1x = 1.5x = 3(x + 1)(2x2− 9x + 9)= (x + 1)(2x − 3)(x − 3)
    −1001020−101234side of the square base (m), xvalue of the cubicx = −1x = 1.5x = 3(x + 1)(2x2− 9x + 9)= (x + 1)(2x − 3)(x − 3)
    Divide by (x + 1) and factorize the quadratic: (x + 1)(2x − 3)(x − 3). The curve crosses the axis at 1.5 and 3 as well.
  5. 5.(b) Reject x = −1, because a length cannot be negative. x = 3 gives h = 7 − 6 = 1, a frame 3 m by 3 m by 1 m, and x = 1.5 gives h = 7 − 3 = 4, a frame 1.5 m by 1.5 m by 4 m. Check: 32 × 1 = 9 and 1.52 × 4 = 9.

    −1001020−101234side of the square base (m), xvalue of the cubicx = −1x = 1.5x = 3x = 3: 3 m by 3 m by 1 mx = 1.5: 1.5 m by 1.5 m by 4 mx = −1 is not a length
    −1001020−101234side of the square base (m), xvalue of the cubicx = −1x = 1.5x = 3x = 3: 3 m by 3 m by 1 mx = 1.5: 1.5 m by 1.5 m by 4 mx = −1 is not a length
    (b) Two roots lie in the band: frames 3 m by 3 m by 1 m and 1.5 m by 1.5 m by 4 m. The root −1 is rejected.

Answer: (a) x = −1 is a root, so (x + 1) is a factor; (b) x = −1, 1.5 or 3; rejecting −1, the frames are 3 m by 3 m by 1 m and 1.5 m by 1.5 m by 4 m

Common mistakes

  • Stopping at x = −1, the first root the factor theorem finds, and deciding that there is no frame. A negative root is not a length, but dividing it out leaves the quadratic whose two roots are.
  • Writing the rod as 4x + 4h = 28, which counts the edges of the base but not of the top. The frame has two squares of four edges each, so the rod gives 8x + 4h = 28.

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

Practice Solving a Cubic Completely in the app