This site is supported by donations to The OEIS Foundation.

Cubic formula

From OeisWiki
Jump to: navigation, search


This article page is a stub, please help by expanding it.


The cubic formula gives the roots of any cubic equation

The three (distinct or not) roots are given by (Cardano published a similar formula in 1545)

where

Equivalently, the three (distinct or not) roots of

with 
B =  − 
b
3a
, C =
c
3a
and 
D =  − 
d
a
, may be written as

where

Completing the cube

The three roots are obtained by completing the cube, i.e.

or, letting 
y = x +
b
3a
= x  −  B
,

yielding the depressed cubic equation

with 
R = C  −  B 2
and 
S =  −  2B 3  +  3BC  −  D
.

Solving the depressed cubic equation with Vieta's substitution

The depressed cubic equation

is solved by doing Vieta's substitution

yielding

Multiplying by 
w 3
, it becomes a sextic equation in 
w
, which happens to be a quadratic equation in 
z = w 3

which is solved with the quadratic formula to get

with

If 
w1  ± 
, 
w2  ± 
and 
w3  ± 
are the three cube roots for each of the two solutions in 
w 3
, then

and

Thus, the three (distinct or not) roots are given by (see how the three roots of the two solutions are used in pairs, yielding three roots)

where 
3  q  ∓  Q
=
B 2  −  C
3  q  ±  Q
, since 
q 2  −  Q 2 = (B 2  −  C ) 3
.
Finally, the three (distinct or not) roots of 
ax 3 + bx 2 + cx + d = 0, a   ≠   0,
may be written as

where

with 
B =  − 
b
3a
, C =
c
3a
and 
D =  − 
d
a
.

Vieta's formulas for the cubic

Vieta's formulas for the cubic

gives a system of three equations in three variables (which are the three roots)

By dividing the third equation into the second equation, one obtains a formula for the harmonic sum of the roots

See also

External links