This section regroups several methods for deriving
Cardano's formula.
Cardano's method 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 such that u+v=t and to substitute this in the depressed cubic, giving u^3 + v^3 + (3uv + p)(u+v)+ q= 0. At this point Cardano imposed the condition 3uv+p=0. This removes the third term in the previous equality, leading to the system of equations \begin{align}u^3 + v^3&=-q \\ uv&=-\frac p3.\end{align} Knowing the sum and the product of and v^3, one deduces that they are the two solutions of the
quadratic equation \begin{align} 0 &= (x - u^3)(x - v^3) \\ &= x^2 - (u^3 + v^3)x + u^3v^3 \\ &= x^2 - (u^3 + v^3)x + (uv)^3 \end{align} so x^2 + qx -\frac {p^3}{27}=0. The discriminant of this equation is \Delta = q^2 + \frac{4p^3}{27}, and assuming it is positive, real solutions to this equation are (after folding division by 4 under the square root): -\frac q2 \pm \sqrt {\frac {q^2}{4} +\frac {p^3}{27}}. So (
without loss of generality in choosing or v): u = \sqrt[3]{-\frac q2 + \sqrt {\frac {q^2}{4} +\frac {p^3}{27}}}. v = \sqrt[3]{-\frac q2 - \sqrt {\frac {q^2}{4} +\frac {p^3}{27}}}. As u+v=t, the sum of the cube roots of these solutions is a root of the equation. That is t=\sqrt[3]{-{q\over 2}+\sqrt{{q^{2}\over 4}+{p^{3}\over 27}}} +\sqrt[3]{-{q\over 2}-\sqrt{{q^{2}\over 4}+{p^{3}\over 27}}} is a root of the equation; this is Cardano's formula. This works well when 4p^3+27q^2 > 0, but, if 4p^3+27q^2 the square root appearing in the formula is not real. As a
complex number has three cube roots, using Cardano's formula without care would provide nine roots, while a cubic equation cannot have more than three roots. This was clarified first by
Rafael Bombelli in his book ''L'Algebra'' (1572). The solution is to use the fact that uv=-\frac p3, that is, v=\frac{-p}{3u}. This means that only one cube root needs to be computed, and leads to the second formula given in . 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 \frac {-1\pm \sqrt{-3}}2. When only one root is real, and will be the complex conjugates of one another, implying that the one real root must be t=2\mathrm{Re}(u).
Vieta's substitution 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 w^3+q-\frac{p^3}{27w^3}=0. This is a quadratic equation in w^3, so there are six solutions for w. In the substitution, for each value of t there are two possible values for w. Each root of the cubic equation is found twice. Multiplying by , one gets a quadratic equation in : (w^3)^2+q(w^3)-\frac{p^3}{27}=0. Let W=-\frac q 2\pm\sqrt{\frac{p^3}{27} + \frac {q^2} 4} 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 \textstyle -\frac {p^3}{27W}. This implies that changing the sign of the square root exchanges and for , and therefore does not change the roots. This method only fails when both roots of the quadratic equation are zero, that is when , in which case the only root of the depressed cubic is .
Lagrange's method 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. 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 \textstyle \xi=\frac{-1\pm i\sqrt 3}2=e^{2i\pi/3}, but this complex interpretation is not used here). Denoting , and the three roots of the cubic equation to be solved, let \begin{align} s_0 &= x_0 + x_1 + x_2,\\ s_1 &= x_0 + \xi x_1 + \xi^2 x_2,\\ s_2 &= x_0 + \xi^2 x_1 + \xi x_2, \end{align} be the discrete Fourier transform of the roots. If , and are known, the roots may be recovered from them with the inverse Fourier transform consisting of inverting this linear transformation; that is, \begin{align} x_0 &= \tfrac13(s_0 + s_1 + s_2),\\ x_1 &= \tfrac13(s_0 + \xi^2 s_1 + \xi s_2),\\ x_2 &= \tfrac13(s_0 + \xi s_1 + \xi ^2 s_2). \end{align} 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=s_1s_2, and S=s_1^3+s_2^3 are such symmetric polynomials (see below). It follows that s_1^3 and s_2^3 are the two roots of the quadratic equation z^2-Sz+P^3=0. Thus the resolution of the equation may be finished exactly as with Cardano's method, with s_1 and s_2 in place of and v. In the case of the depressed cubic, one has x_0=\tfrac 13 (s_1+s_2) and s_1s_2=-3p, while in Cardano's method we have set x_0=u+v and uv=-\tfrac 13 p. Thus, up to the exchange of and v, we have s_1=3u and s_2=3v. In other words, in this case, Cardano's method and Lagrange's method compute exactly the same things, up to a factor of three in the auxiliary variables, the main difference being that Lagrange's method explains why these auxiliary variables appear in the problem.
Computation of and A straightforward computation using the relations and gives \begin{align} P&=s_1s_2=x_0^2+x_1^2+x_2^2-(x_0x_1+x_1x_2+x_2x_0),\\ S&=s_1^3+s_2^3=2(x_0^3+x_1^3+x_2^3)-3(x_0^2x_1+x_1^2x_2+x_2^2x_0+x_0x_1^2+x_1x_2^2+x_2x_0^2)+12x_0x_1x_2. \end{align} 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, giving \begin{align} P&=e_1^2-3e_2,\\ S&=2e_1^3-9e_1e_2+27e_3, \end{align} with , and in the case of a depressed cubic, and , and , in the general case. ==Applications==