Cubic equation should not be confused with Cubic function.
In algebra, a cubic equation in one variable is an equation of the formin which is not zero.
The solutions of this equation are called roots of the cubic function defined by the left-hand side of the equation. If all of the coefficients,,, and of the cubic equation are real numbers, then it has at least one real root (this is true for all odd-degree polynomial functions). All of the roots of the cubic equation can be found by the following means:
The coefficients do not need to be real numbers. Much of what is covered below is valid for coefficients in any field with characteristic other than 2 and 3. The solutions of the cubic equation do not necessarily belong to the same field as the coefficients. For example, some cubic equations with rational coefficients have roots that are irrational (and even non-real) complex numbers.
Cubic equations were known to the ancient Babylonians, Greeks, Chinese, Indians, and Egyptians. Babylonian (20th to 16th centuries BC) cuneiform tablets have been found with tables for calculating cubes and cube roots.[1] [2] The Babylonians could have used the tables to solve cubic equations, but no evidence exists to confirm that they did.[3] The problem of doubling the cube involves the simplest and oldest studied cubic equation, and one for which the ancient Egyptians did not believe a solution existed.[4] In the 5th century BC, Hippocrates reduced this problem to that of finding two mean proportionals between one line and another of twice its length, but could not solve this with a compass and straightedge construction, a task which is now known to be impossible. Methods for solving cubic equations appear in The Nine Chapters on the Mathematical Art, a Chinese mathematical text compiled around the 2nd century BC and commented on by Liu Hui in the 3rd century.[5]
In the 3rd century AD, the Greek mathematician Diophantus found integer or rational solutions for some bivariate cubic equations (Diophantine equations).[6] [7] Hippocrates, Menaechmus and Archimedes are believed to have come close to solving the problem of doubling the cube using intersecting conic sections, though historians such as Reviel Netz dispute whether the Greeks were thinking about cubic equations or just problems that can lead to cubic equations. Some others like T. L. Heath, who translated all of Archimedes's works, disagree, putting forward evidence that Archimedes really solved cubic equations using intersections of two conics, but also discussed the conditions where the roots are 0, 1 or 2.[8]
In the 7th century, the Tang dynasty astronomer mathematician Wang Xiaotong in his mathematical treatise titled Jigu Suanjing systematically established and solved numerically 25 cubic equations of the form, 23 of them with, and two of them with .
In the 11th century, the Persian poet-mathematician, Omar Khayyam (1048–1131), made significant progress in the theory of cubic equations. In an early paper, he discovered that a cubic equation can have more than one solution and stated that it cannot be solved using compass and straightedge constructions. He also found a geometric solution.[9] In his later work, the Treatise on Demonstration of Problems of Algebra, he wrote a complete classification of cubic equations with general geometric solutions found by means of intersecting conic sections.[10] [11] Khayyam made an attempt to come up with an algebraic formula for extracting cubic roots. He wrote:
“We have tried to express these roots by algebra but have failed. It may be, however, that men who come after us will succeed.”[12]
In the 12th century, the Indian mathematician Bhaskara II attempted the solution of cubic equations without general success. However, he gave one example of a cubic equation: . In the 12th century, another Persian mathematician, Sharaf al-Dīn al-Tūsī (1135–1213), wrote the Al-Muʿādalāt (Treatise on Equations), which dealt with eight types of cubic equations with positive solutions and five types of cubic equations which may not have positive solutions. He used what would later be known as the "Ruffini-Horner method" to numerically approximate the root of a cubic equation. He also used the concepts of maxima and minima of curves in order to solve cubic equations which may not have positive solutions. He understood the importance of the discriminant of the cubic equation to find algebraic solutions to certain types of cubic equations.
In his book Flos, Leonardo de Pisa, also known as Fibonacci (1170–1250), was able to closely approximate the positive solution to the cubic equation . Writing in Babylonian numerals he gave the result as 1,22,7,42,33,4,40 (equivalent to 1 + 22/60 + 7/602 + 42/603 + 33/604 + 4/605 + 40/606), which has a relative error of about 10−9.
In the early 16th century, the Italian mathematician Scipione del Ferro (1465–1526) found a method for solving a class of cubic equations, namely those of the form . In fact, all cubic equations can be reduced to this form if one allows and to be negative, but negative numbers were not known to him at that time. Del Ferro kept his achievement secret until just before his death, when he told his student Antonio Fior about it.In 1535, Niccolò Tartaglia (1500–1557) received two problems in cubic equations from Zuanne da Coi and announced that he could solve them. He was soon challenged by Fior, which led to a famous contest between the two. Each contestant had to put up a certain amount of money and to propose a number of problems for his rival to solve. Whoever solved more problems within 30 days would get all the money. Tartaglia received questions in the form, for which he had worked out a general method. Fior received questions in the form, which proved to be too difficult for him to solve, and Tartaglia won the contest.
Later, Tartaglia was persuaded by Gerolamo Cardano (1501–1576) to reveal his secret for solving cubic equations. In 1539, Tartaglia did so only on the condition that Cardano would never reveal it and that if he did write a book about cubics, he would give Tartaglia time to publish. Some years later, Cardano learned about del Ferro's prior work and published del Ferro's method in his book Ars Magna in 1545, meaning Cardano gave Tartaglia six years to publish his results (with credit given to Tartaglia for an independent solution).
Cardano's promise to Tartaglia said that he would not publish Tartaglia's work, and Cardano felt he was publishing del Ferro's, so as to get around the promise. Nevertheless, this led to a challenge to Cardano from Tartaglia, which Cardano denied. The challenge was eventually accepted by Cardano's student Lodovico Ferrari (1522–1565). Ferrari did better than Tartaglia in the competition, and Tartaglia lost both his prestige and his income.[13]
Cardano noticed that Tartaglia's method sometimes required him to extract the square root of a negative number. He even included a calculation with these complex numbers in Ars Magna, but he did not really understand it. Rafael Bombelli studied this issue in detail and is therefore often considered as the discoverer of complex numbers.
François Viète (1540–1603) independently derived the trigonometric solution for the cubic with three real roots, and René Descartes (1596–1650) extended the work of Viète.
If the coefficients of a cubic equation are rational numbers, one can obtain an equivalent equation with integer coefficients, by multiplying all coefficients by a common multiple of their denominators. Such an equation with integer coefficients, is said to be reducible if the polynomial on the left-hand side is the product of polynomials of lower degrees. By Gauss's lemma, if the equation is reducible, one can suppose that the factors have integer coefficients.
Finding the roots of a reducible cubic equation is easier than solving the general case. In fact, if the equation is reducible, one of the factors must have degree one, and thus have the formwith and being coprime integers. The rational root test allows finding and by examining a finite number of cases (because must be a divisor of, and must be a divisor of).
Thus, one root is
stylex1=
pq, | |
Then, the other roots are the roots of this quadratic polynomial and can be found by using the quadratic formula.
Cubics of the form are said to be depressed. They are much simpler than general cubics, but are fundamental, because the study of any cubic may be reduced by a simple change of variable to that of a depressed cubic.
Let be a cubic equation. The change of variablegives a cubic (in) that has no term in .
After dividing by one gets the depressed cubic equation with
x1,x2,x3
t1,t2,t3
i=1,2,3
The nature (real or not, distinct or not) of the roots of a cubic can be determined without computing them explicitly, by using the discriminant.
The discriminant of a polynomial is a function of its coefficients that is zero if and only if the polynomial has a multiple root, or, if it is divisible by the square of a non-constant polynomial. In other words, the discriminant is nonzero if and only if the polynomial is square-free.
If are the three roots (not necessarily distinct nor real) of the cubic
ax3+bx2+cx+d,
The discriminant of the depressed cubic
t3+pt+q
The discriminant of the general cubic
ax3+bx2+cx+d
a4
It follows that one of these two discriminants is zero if and only if the other is also zero, and, if the coefficients are real, the two discriminants have the same sign. In summary, the same information can be deduced from either one of these two discriminants.
To prove the preceding formulas, one can use Vieta's formulas to express everything as polynomials in, and . The proof then results in the verification of the equality of two polynomials.
If the coefficients of a polynomial are real numbers, and its discriminant
\Delta
\Delta>0,
\Delta<0,
This can be proved as follows. First, if is a root of a polynomial with real coefficients, then its complex conjugate is also a root. So the non-real roots, if any, occur as pairs of complex conjugate roots. As a cubic polynomial has three roots (not necessarily distinct) by the fundamental theorem of algebra, at least one root must be real.
As stated above, if are the three roots of the cubic
ax3+bx2+cx+d
If the three roots are real and distinct, the discriminant is a product of positive reals, that is
\Delta>0.
If only one root, say, is real, then and are complex conjugates, which implies that is a purely imaginary number, and thus that is real and negative. On the other hand, and are complex conjugates, and their product is real and positive.[14] Thus the discriminant is the product of a single negative number and several positive ones. That is
\Delta<0.
If the discriminant of a cubic is zero, the cubic has a multiple root. If furthermore its coefficients are real, then all of its roots are real.
The discriminant of the depressed cubic
t3+pt+q
4p3+27q2=0.
4p3+27q2=0,
and a double root
In other words,
This result can be proved by expanding the latter product or retrieved by solving the rather simple system of equations resulting from Vieta's formulas.
By using the reduction of a depressed cubic, these results can be extended to the general cubic. This gives: If the discriminant of the cubic
ax3+bx2+cx+d
b2=3ac,
b2\ne3ac,
The above results are valid when the coefficients belong to a field of characteristic other than 2 or 3, but must be modified for characteristic 2 or 3, because of the involved divisions by 2 and 3.
The reduction to a depressed cubic works for characteristic 2, but not for characteristic 3. However, in both cases, it is simpler to establish and state the results for the general cubic. The main tool for that is the fact that a multiple root is a common root of the polynomial and its formal derivative. In these characteristics, if the derivative is not a constant, it is a linear polynomial in characteristic 3, and is the square of a linear polynomial in characteristic 2. Therefore, for either characteristic 2 or 3, the derivative has only one root. This allows computing the multiple root, and the third root can be deduced from the sum of the roots, which is provided by Vieta's formulas.
A difference with other characteristics is that, in characteristic 2, the formula for a double root involves a square root, and, in characteristic 3, the formula for a triple root involves a cube root.
Gerolamo Cardano is credited with publishing the first formula for solving cubic equations, attributing it to Scipione del Ferro and Niccolo Fontana Tartaglia. The formula applies to depressed cubics, but, as shown in, it allows solving all cubic equations.
Cardano's result is that if is a cubic equation such that and are real numbers such that
q2 | |||
|
u1
u2
- | q2 | \sqrt{ |
+ |
q2 | |||
|
- | q2 | \sqrt{ |
- |
q2 | |||
|
See, below, for several methods for getting this result.
\varepsilon | ||||
|
\varepsilon2=\varepsilon
| ||||
1 |
\varepsilon1\sqrt[3]{u1}+\varepsilon2\sqrt[3]{u2}
\varepsilon2\sqrt[3]{u1}+\varepsilon1\sqrt[3]{u2}.
If
4p3+27q2<0,
In casus irreducibilis, Cardano's formula can still be used, but some care is needed in the use of cube roots. A first method is to define the symbols
\sqrt{{~}~
\sqrt[3]{{~}~
The second way for making Cardano's formula always correct, is to remark that the product of the two cube roots must be . It results that a root of the equation is In this formula, the symbols
\sqrt{{~}~
\sqrt[3]{{~}~
style | -1\pm\sqrt{-3 |
This formula for the roots is always correct except when, with the proviso that if, the square root is chosen so that . However, Cardano's formula is useless if
p=0,
-q.
4p3+27q2=0.
This formula is also correct when and belong to any field of characteristic other than 2 or 3.
A cubic formula for the roots of the general cubic equation (with)can be deduced from every variant of Cardano's formula by reduction to a depressed cubic. The variant that is presented here is valid not only for real coefficients, but also for coefficients belonging to any field of characteristic other than 2 or 3. If the coefficients are real numbers, the formula covers all complex solutions, not just real ones.
The formula being rather complicated, it is worth splitting it in smaller formulas.
Let
(Both
\Delta0
\Delta1
\Delta1
\Delta0
Then letwhere the symbols
\sqrt{{~}~
\sqrt[3]{{~}~
\Delta0=0
\Delta0=\Delta1=0,
The other two roots can be obtained by changing the choice of the cube root in the definition of, or, equivalently by multiplying by a primitive cube root of unity, that is . In other words, the three roots are where .
As for the special case of a depressed cubic, this formula applies but is useless when the roots can be expressed without cube roots. In particular, if
\Delta0=\Delta1=0,
-b | |
3a |
,
stylea(x+ | b{3a}) |
3. |
\Delta0=\Delta1=0.
When a cubic equation with real coefficients has three real roots, the formulas expressing these roots in terms of radicals involve complex numbers. Galois theory allows proving that when the three roots are real, and none is rational (casus irreducibilis), one cannot express the roots in terms of real radicals. Nevertheless, purely real expressions of the solutions may be obtained using trigonometric functions, specifically in terms of cosines and arccosines.[16] More precisely, the roots of the depressed cubicare[17]
This formula is due to François Viète.[18] It is purely real when the equation has three real roots (that is
4p3+27q2<0
This formula can be straightforwardly transformed into a formula for the roots of a general cubic equation, using the back-substitution described in .
The formula can be proved as follows: Starting from the equation, let us set The idea is to choose to make the equation coincide with the identityFor this, choose
u=2\sqrt{-
p | |
3 |
u3 | |
4 |
.
When there is only one real root (and), this root can be similarly represented using hyperbolic functions, as[19] [20]
When, the above values of are sometimes called the Chebyshev cube root.[21] More precisely, the values involving cosines and hyperbolic cosines define, when, the same analytic function denoted, which is the proper Chebyshev cube root. The value involving hyperbolic sines is similarly denoted, when .
For solving the cubic equation where, Omar Khayyám constructed the parabola, the circle that has as a diameter the line segment on the positive -axis, and a vertical line through the point where the circle and the parabola intersect above the -axis. The solution is given by the length of the horizontal line segment from the origin to the intersection of the vertical line and the -axis (see the figure).
A simple modern proof is as follows. Multiplying the equation by and regrouping the terms gives The left-hand side is the value of on the parabola. The equation of the circle being, the right hand side is the value of on the circle.
A cubic equation with real coefficients can be solved geometrically using compass, straightedge, and an angle trisector if and only if it has three real roots.[22]
A cubic equation can be solved by compass-and-straightedge construction (without trisector) if and only if it has a rational root. This implies that the old problems of angle trisection and doubling the cube, set by ancient Greek mathematicians, cannot be solved by compass-and-straightedge construction.
Viète's trigonometric expression of the roots in the three-real-roots case lends itself to a geometric interpretation in terms of a circle.[18] [23] When the cubic is written in depressed form ,, as shown above, the solution can be expressed as
Here
\arccos\left( | 3q | \sqrt{ |
2p |
-3 | |
p |
2\sqrt{- | p |
3 |
For the non-depressed case (shown in the accompanying graph), the depressed case as indicated previously is obtained by defining such that so . Graphically this corresponds to simply shifting the graph horizontally when changing between the variables and, without changing the angle relationships. This shift moves the point of inflection and the centre of the circle onto the -axis. Consequently, the roots of the equation in sum to zero.
When the graph of a cubic function is plotted in the Cartesian plane, if there is only one real root, it is the abscissa (-coordinate) of the horizontal intercept of the curve (point R on the figure). Further, if the complex conjugate roots are written as, then the real part is the abscissa of the tangency point H of the tangent line to cubic that passes through -intercept R of the cubic (that is the signed length OM, negative on the figure). The imaginary parts are the square roots of the tangent of the angle between this tangent line and the horizontal axis.
With one real and two complex roots, the three roots can be represented as points in the complex plane, as can the two roots of the cubic's derivative. There is an interesting geometrical relationship among all these roots.
The points in the complex plane representing the three roots serve as the vertices of an isosceles triangle. (The triangle is isosceles because one root is on the horizontal (real) axis and the other two roots, being complex conjugates, appear symmetrically above and below the real axis.) Marden's theorem says that the points representing the roots of the derivative of the cubic are the foci of the Steiner inellipse of the triangle—the unique ellipse that is tangent to the triangle at the midpoints of its sides. If the angle at the vertex on the real axis is less than then the major axis of the ellipse lies on the real axis, as do its foci and hence the roots of the derivative. If that angle is greater than, the major axis is vertical and its foci, the roots of the derivative, are complex conjugates. And if that angle is, the triangle is equilateral, the Steiner inellipse is simply the triangle's incircle, its foci coincide with each other at the incenter, which lies on the real axis, and hence the derivative has duplicate real roots.
Given a cubic irreducible polynomial over a field of characteristic different from 2 and 3, the Galois group over is the group of the field automorphisms that fix of the smallest extension of (splitting field). As these automorphisms must permute the roots of the polynomials, this group is either the group of all six permutations of the three roots, or the group of the three circular permutations.
The discriminant of the cubic is the square of where is the leading coefficient of the cubic, and, and are the three roots of the cubic. As
\sqrt\Delta
\sqrt\Delta
As most integers are not squares, when working over the field of the rational numbers, the Galois group of most irreducible cubic polynomials is the group with six elements. An example of a Galois group with three elements is given by, whose discriminant is .
This section regroups several methods for deriving Cardano's formula.
This method is due to Scipione del Ferro and Tartaglia, but is named after Gerolamo Cardano who first published it in his book Ars Magna (1545).
This method applies to a depressed cubic . The idea is to introduce two variables and
v
u+v=t
At this point Cardano imposed the condition
3uv+p=0.
Knowing the sum and the product of and
v3,
\Delta=q2+
4p3 | |
27 |
v
u+v=t,
This works well when
4p3+27q2>0,
4p3+27q2<0,
uv=- | p3, |
v= | -p |
3u |
.
The other roots of the equation can be obtained by changing of cube root, or, equivalently, by multiplying the cube root by each of the two primitive cube roots of unity, which are
-1\pm\sqrt{-3 | |
Vieta's substitution is a method introduced by François Viète (Vieta is his Latin name) in a text published posthumously in 1615, which provides directly the second formula of, and avoids the problem of computing two different cube roots.
Starting from the depressed cubic, Vieta's substitution is .
The substitution transforms the depressed cubic into
Multiplying by, one gets a quadratic equation in :
Let be any nonzero root of this quadratic equation. If, and are the three cube roots of, then the roots of the original depressed cubic are,, and . The other root of the quadratic equation is
style- | p3 |
27W |
.
In his paper Réflexions sur la résolution algébrique des équations ("Thoughts on the algebraic solving of equations"), Joseph Louis Lagrange introduced a new method to solve equations of low degree in a uniform way, with the hope that he could generalize it for higher degrees. This method works well for cubic and quartic equations, but Lagrange did not succeed in applying it to a quintic equation, because it requires solving a resolvent polynomial of degree at least six.[24] [25] [26] Apart from the fact that nobody had previously succeeded, this was the first indication of the non-existence of an algebraic formula for degrees 5 and higher; as was later proved by the Abel–Ruffini theorem. Nevertheless, modern methods for solving solvable quintic equations are mainly based on Lagrange's method.
In the case of cubic equations, Lagrange's method gives the same solution as Cardano's. Lagrange's method can be applied directly to the general cubic equation, but the computation is simpler with the depressed cubic equation, .
Lagrange's main idea was to work with the discrete Fourier transform of the roots instead of with the roots themselves. More precisely, let be a primitive third root of unity, that is a number such that and (when working in the space of complex numbers, one has
style\xi= | -1\pmi\sqrt3 |
2=e |
2i\pi/3,
By Vieta's formulas, is known to be zero in the case of a depressed cubic, and for the general cubic. So, only and need to be computed. They are not symmetric functions of the roots (exchanging and exchanges also and), but some simple symmetric functions of and are also symmetric in the roots of the cubic equation to be solved. Thus these symmetric functions can be expressed in terms of the (known) coefficients of the original cubic, and this allows eventually expressing the as roots of a polynomial with known coefficients. This works well for every degree, but, in degrees higher than four, the resulting polynomial that has the as roots has a degree higher than that of the initial polynomial, and is therefore unhelpful for solving. This is the reason for which Lagrange's method fails in degrees five and higher.
In the case of a cubic equation,
P=s1s2,
3 | |
S=s | |
2 |
3 | |
s | |
1 |
3 | |
s | |
2 |
z2-Sz+P3=0.
s1
s2
v.
In the case of the depressed cubic, one has
x0=\tfrac13(s1+s2)
s1s2=-3p,
x0=u+v
uv=\tfrac13p.
v,
s1=3u
s2=3v.
A straightforward computation using the relations and gives This shows that and are symmetric functions of the roots. Using Newton's identities, it is straightforward to express them in terms of the elementary symmetric functions of the roots, givingwith, and in the case of a depressed cubic, and, and, in the general case.
Cubic equations arise in various other contexts.
2\pi/7