Cubic Equation

Cubic Equation A hands-on approach

Back to the main page


The format of a cubic equation

All cubic equations are represented in the following format: f x 3 + g x 2 + h x + j = 0

Dividing all of the coefficients by f renders the following form: x 3 + a x 2 + b x + c = 0

The Integral Root Theorem

The Integral Root Theorem, which is a special case of the Rational Root Theorem, tells us that if a, b and c are all integers and if the equation has any integral roots all of those roots will be factors of the constant term c in this manner: p q = c

The Integral Root Theorem actually states that both p and q have to be integers.

Solving a cubic equation

Let's try to solve the following cubic equation: x 3 - 6 x 2 - 24 x + 64 = 0

Using the Integral Root Theorem the roots should be one or more of the following:
± 1 , ± 2 , ± 4 , ± 8 , ± 16 , ± 32 , ± 64

Let's check if we can find a root using these guesses. First we try the candidate ± 1
+1: (1) 3 - 6 (1) 2 - 24 (1) + 64 = 35
-1: (-1) 3 - 6 (-1) 2 - 24 (-1) + 64 = 81

Then we try the candidate ± 2
+2: (2) 3 - 6 (2) 2 - 24 (2) + 64 = 0

We've found our first root x 1 = 2 . We need not go any further. Now we continue utilizing Polynomial Long Division.

Polynomial Long Division

This is how to divide the polynomial ( x 3 - 6 x 2 - 24 x + 64 ) by the polynomial ( x - 2 )

                  x2 - 4x - 32
x - 2 x3 - 6x2 - 24x - 64
      -(x3 - 2x2)
               -4x2 - 24x +64
            -(-4x2 + 8x)
                       -32x + 64
                     -(-32x + 64)
                               0

In case you don't understand: Check this out.

This means that x 3 - 6 x 2 - 24 x + 64 = ( x - 2 ) ( x 2 - 4 x - 32 )

The other two roots

Now we can use my guide for Quadratic Equations provided in this page in order to get the other two roots. The roots of:

x 2 - 4 x - 32 = 0

Using the following formula x = p 2 ± p 2 4 q

We get x = (-4) 2 ± (-4) 2 4 + 32

x = 2 ± 6


So x 2= 8 and x3=-4 The first root we obtained earlier. It was x1=2