The cubic equation is the closed-form solution for the roots of a cubic polynomial. A general cubic equation is of the form
(the coefficient of may be taken as 1 without loss of generality by dividing the entire equation through by ). Mathematica can solve cubic equations exactly using the built-in command Solve[a3 x^3 + a2 x^2 + a1 x + a0 == 0, x]. The solution can also be expressed in terms of Mathematica algebraic root objects by first issuing SetOptions[Roots, Cubics->False].
The solution to the cubic (as well as the quartic) was published by Gerolamo Cardano(1501-1576) in his treatise Ars Magna. However, Cardano was not the original discoverer of either of these results. The hint for the cubic had been provided by Niccolò Tartaglia , while the quartic had been solved by Ludovico Ferrari. However, Tartaglia himself had probably caught wind of the solution from another source. The solution was apparently first arrived at by a little-remembered professor of mathematics at the University of Bologna by the name of Scipione del Ferro (ca. 1465-1526). While del Ferro did not publish his solution, he disclosed it to his student Antonio Maria Fior (Boyer and Merzbach 1991, p. 283). This is apparently where Tartaglia learned of the solution around 1541.
To solve the general cubic (1), it is reasonable to begin by attempting to eliminate the term by making a substitution of the form
Then
The is eliminated by letting , so
Then
so equation (1) becomes
Defining
then allows (12) to be written in the standard form
The simplest way to proceed is to make Vièta's substitution
which reduces the cubic to the equation
which is easily turned into a quadratic equation in by multiplying through by to obtain
(Birkhoff and Mac Lane 1996, p. 106). The result from the quadratic formula is
where Q and R[i/] are sometimes more useful to deal with than are [i]p and q. There are therefore six solutions for w (two corresponding to each sign for each root of ).Plugging w back in to (17) gives three pairs of solutions, but each pair is equal, so there are three solutions to the cubic equation.
Equation (12) may also be explicitly factored by attempting to pull out a term of the form from the cubic equation, leaving behind a quadratic equation which can then be factored using the quadratic formula. This process is equivalent to making Vièta's substitution, but does a slightly better job of motivating Vièta's "magic" substitution, and also at producing the explicit formulas for the solutions. First, define the intermediate variables
(which are identical to p and q up to a constant factor). The general cubic equation (12) then becomes
Let B and C be, for the moment, arbitrary constants. An identity satisfied by perfect cubic polynomial equations is that
The general cubic would therefore be directly factorable if it did not have an x term (i.e., if Q = 0). However, since in general , add a multiple of --say--to both sides of (23) to give the slightly messy identity
which, after regrouping terms, is
We would now like to match the coefficients C and with those of equation (22), so we must have
Plugging the former into the latter then gives
Therefore, if we can find a value of B satisfying the above identity, we have factored a linear term from the cubic, thus reducing it to a quadratic equation. The trial solution accomplishing this miracle turns out to be the symmetrical expression
Taking the second and third powers of B gives
Plugging and B into the left side of (28) gives
so we have indeed found the factor of (22), and we need now only factor the quadratic part. Plugging into the quadratic part of (25) and solving the resulting
then gives the solutions
These can be simplified by defining
so that the solutions to the quadratic part can be written
Defining
where D is the polynomial discriminant (which is defined slightly differently, including the opposite sign, by Birkhoff and Mac Lane 1996) then gives very simple expressions for A and B, namely
Therefore, at last, the roots of the original equation in z are then given by
with the coefficient of in the original equation, and S and T as defined above.
These three equations giving the three roots of the cubic equation are sometimes known as Cardano's formula. Note that if the equation is in the standard form of Vièta
in the variable x, then, and , and the intermediate variables have the simple form (cf. Beyer 1987)
The solutions satisfy Vièta's formulas
In standard form (55), ,,and , so eliminating q gives
for , and eliminating p gives
for .. In addition, the properties of the symmetric polynomials appearing in Vièta's formulas give
The equation for in Cardano's formula does not have an i appearing in it explicitly while and do, but this does not say anything about the number of real and complex roots (since S and T are themselves, in general, complex). However, determining which roots are real and which are complex can be accomplished by noting that if the polynomial discriminant D > 0, one root is real and two are complex conjugates; if D = 0, all roots are real and at least two are equal; and if D < 0, all roots are real and unequal. If D < 0, define
Then the real solutions are of the form
This procedure can be generalized to find the real roots for any equation in the standard form (55) by using the identity
(Dickson 1914) and setting
(Birkhoff and Mac Lane 1996, pp. 90-91), then
If p> 0,then use
to obtain
If p < 0 and , use
and if p < 0 and , use
to obtain
The solutions to the original equation are then
An alternate approach to solving the cubic equation is to use Lagrange resolvents (Faucette 1996). Let , define
where are the roots of
and consider the equation
where and are complex numbers. The roots are then
for j = 0, 1, 2. Multiplying through gives
which can be written in the form (86), where
Some curious identities involving the roots of a cubic equation due to Ramanujan are given by Berndt (1994).
(1)
(the coefficient of may be taken as 1 without loss of generality by dividing the entire equation through by ). Mathematica can solve cubic equations exactly using the built-in command Solve[a3 x^3 + a2 x^2 + a1 x + a0 == 0, x]. The solution can also be expressed in terms of Mathematica algebraic root objects by first issuing SetOptions[Roots, Cubics->False].
The solution to the cubic (as well as the quartic) was published by Gerolamo Cardano(1501-1576) in his treatise Ars Magna. However, Cardano was not the original discoverer of either of these results. The hint for the cubic had been provided by Niccolò Tartaglia , while the quartic had been solved by Ludovico Ferrari. However, Tartaglia himself had probably caught wind of the solution from another source. The solution was apparently first arrived at by a little-remembered professor of mathematics at the University of Bologna by the name of Scipione del Ferro (ca. 1465-1526). While del Ferro did not publish his solution, he disclosed it to his student Antonio Maria Fior (Boyer and Merzbach 1991, p. 283). This is apparently where Tartaglia learned of the solution around 1541.
To solve the general cubic (1), it is reasonable to begin by attempting to eliminate the term by making a substitution of the form
(2)
Then
(3)
(4)
(5)
The is eliminated by letting , so
(6)
Then
(7)
(8)
(9)
so equation (1) becomes
(10)
(11)
(12)
Defining
(13)
(14)
then allows (12) to be written in the standard form
(15)
The simplest way to proceed is to make Vièta's substitution
(16)
which reduces the cubic to the equation
(17)
which is easily turned into a quadratic equation in by multiplying through by to obtain
(18)
(Birkhoff and Mac Lane 1996, p. 106). The result from the quadratic formula is
(19)
where Q and R[i/] are sometimes more useful to deal with than are [i]p and q. There are therefore six solutions for w (two corresponding to each sign for each root of ).Plugging w back in to (17) gives three pairs of solutions, but each pair is equal, so there are three solutions to the cubic equation.
Equation (12) may also be explicitly factored by attempting to pull out a term of the form from the cubic equation, leaving behind a quadratic equation which can then be factored using the quadratic formula. This process is equivalent to making Vièta's substitution, but does a slightly better job of motivating Vièta's "magic" substitution, and also at producing the explicit formulas for the solutions. First, define the intermediate variables
(20)
(21)
(which are identical to p and q up to a constant factor). The general cubic equation (12) then becomes
(22)
Let B and C be, for the moment, arbitrary constants. An identity satisfied by perfect cubic polynomial equations is that
(23)
The general cubic would therefore be directly factorable if it did not have an x term (i.e., if Q = 0). However, since in general , add a multiple of --say--to both sides of (23) to give the slightly messy identity
(24)
which, after regrouping terms, is
(25)
We would now like to match the coefficients C and with those of equation (22), so we must have
(26)
(27)
Plugging the former into the latter then gives
(28)
Therefore, if we can find a value of B satisfying the above identity, we have factored a linear term from the cubic, thus reducing it to a quadratic equation. The trial solution accomplishing this miracle turns out to be the symmetrical expression
(29)
Taking the second and third powers of B gives
(30)
(31)
(32)
(33)
(34)
(35)
(36)
Plugging and B into the left side of (28) gives
(37)
so we have indeed found the factor of (22), and we need now only factor the quadratic part. Plugging into the quadratic part of (25) and solving the resulting
(38)
then gives the solutions
(39)
(40)
(41)
These can be simplified by defining
(42)
(43)
(44)
(45)
so that the solutions to the quadratic part can be written
(46)
Defining
(47)
(48)
(49)
where D is the polynomial discriminant (which is defined slightly differently, including the opposite sign, by Birkhoff and Mac Lane 1996) then gives very simple expressions for A and B, namely
(50)
(51)
Therefore, at last, the roots of the original equation in z are then given by
(52)
(53)
(54)
with the coefficient of in the original equation, and S and T as defined above.
These three equations giving the three roots of the cubic equation are sometimes known as Cardano's formula. Note that if the equation is in the standard form of Vièta
(55)
in the variable x, then, and , and the intermediate variables have the simple form (cf. Beyer 1987)
(56)
(57)
(58)
The solutions satisfy Vièta's formulas
(59)
(60)
(61)
In standard form (55), ,,and , so eliminating q gives
(62)
for , and eliminating p gives
(63)
for .. In addition, the properties of the symmetric polynomials appearing in Vièta's formulas give
(64)
(65)
(66)
(67)
The equation for in Cardano's formula does not have an i appearing in it explicitly while and do, but this does not say anything about the number of real and complex roots (since S and T are themselves, in general, complex). However, determining which roots are real and which are complex can be accomplished by noting that if the polynomial discriminant D > 0, one root is real and two are complex conjugates; if D = 0, all roots are real and at least two are equal; and if D < 0, all roots are real and unequal. If D < 0, define
(68)
Then the real solutions are of the form
(69)
(70)
(71)
This procedure can be generalized to find the real roots for any equation in the standard form (55) by using the identity
(72)
(Dickson 1914) and setting
(73)
(Birkhoff and Mac Lane 1996, pp. 90-91), then
(74)
(75)
(76)
If p> 0,then use
(77)
to obtain
(78)
If p < 0 and , use
(79)
and if p < 0 and , use
(80)
to obtain
(81)
The solutions to the original equation are then
(82)
An alternate approach to solving the cubic equation is to use Lagrange resolvents (Faucette 1996). Let , define
(83)
(84)
(85)
where are the roots of
(86)
and consider the equation
(87)
where and are complex numbers. The roots are then
(88)
for j = 0, 1, 2. Multiplying through gives
(89)
which can be written in the form (86), where
(90)
(91)
Some curious identities involving the roots of a cubic equation due to Ramanujan are given by Berndt (1994).
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}