A x3 + B x2 + C x + D = 0
The coefficients A, B, C, D are real or complex numbers with A not 0.
Dividing through by A, the equation comes to the form
x3 + b x2 + c x + d = 0
x = y + r
The cubic equation becomes:
(y + r)3 + b (y + r)2 + c (y + r) + d = 0
<=>
y3 + (3 r + b) y2 + (3 r2 + 2 r b + c) y + r3 + r2 b + r c + d = 0
Now we choose y such that the quadratic term disappears
choose r = -b/3
So, with te substitution
b
x = y - -
3
the equation
x3 + b x2 + c x + d = 0
comes in the form
y3 + e y + f = 0
1
y = z + s -
z
The constant s is an undefined constant for the present.
y3 + e y + f = 0
becomes
s
(z + -)3 + e (z + (s/z)) + f = 0
z
expanding an multiplying through by z3 , we have
z6 + (3 s + e) z4 + f z3 + s (3 s + e) z2 + s3 = 0
Now we choose s = -e/3.
z6 + f z3 - e3/27 = 0
With z3 = u
u2 + f u -e3/27 = 0
This is an easy to solve quadratic equation.
A x3 + B x2 + C x + D = 0
The coefficients A, B, C, D are real or complex numbers with A not 0.
Dividing through by A, the equation comes to the form
x3 + b x2 + c x + d = 0
With te substitution
b
x = y - -
3
comes
y3 + e y + f = 0
To reduce the last equation we use the Vieta subtitition
e
y = z - ---
3 z
The equation becomes
z6 + f z3 - e3/27 = 0
With z3 = u
u2 + f u - e3/27 = 0
This is an easy to solve quadratic equation.
45 x3 + 24 x2 - 7 x - 2 = 0
<=>
3 8 2 7 2
x + -- x - -- x - -- = 0
15 45 45
With te substitution
8
x = y - ---
45
comes
3 169 506
y - --- y - ----- = 0
675 91125
Now we leave the fractional notation
<=> y3 - 0.25037037037 y - 5.55281207133e-3 = 0
To reduce the last equation we use the Vieta subtitition
0.0834567901235
y = z + ---------------
z
Then we have
z6 - 5.55281207133e-3 z3 + 5.81279532442e-4 = 0
With z3 = u
u2 - 5.55281207133e-3 u + 5.81279532442e-4 = 0
The solutions for u are
u1 = 2.77640603567e-3 + 0.0239493444997 i and
u2 = 2.77640603567e-3 - 0.0239493444997 i
Each solution yields three values of z.
To calculate these values, we bring the u-values in polar form.
u1 = 0.024109739369 (cos(1.45538324457) + i sin(1.45538324457))
u2 = 0.024109739369 (cos(1.45538324457) - i sin(1.45538324457))
The six values of z are in polar form
z1 = 0.288888888889 (cos(0.48512774819) + i sin (0.48512774819) )
z2 = 0.288888888889 (cos(2.57952285058) + i sin (2.57952285058) )
z3 = 0.288888888889 (cos(-1.6092673542) + i sin (-1.6092673542) )
z4 = 0.288888888889 (cos(0.48512774819) - i sin (0.48512774819) )
z5 = 0.288888888889 (cos(2.57952285058) - i sin (2.57952285058) )
z6 = 0.288888888889 (cos(-1.6092673542) - i sin (-1.6092673542) )
With
0.0834567901235
y = z + ---------------
z
we find three real y-values
y1 = 0.511111111112
y2 = - 0.488888888888
y3 = - 0.022222222221
Finaly, with te substitution
8
x = y - ---
45
we find the three roots of the given equation
x1 = 0.333333333334
x2 = -0.666666666666
x3 = -0.199999999999
The exact roots are
x1 = 1/3
x2 = -2/3
x3 = 1/5
See
Iteration method
and
Example