An algorithm for solving cubic equations
An algorithm for finding the roots of a cubic equation is proposed. It uses the dichotomy and the method of undetermined coefficients. It takes into account the relative position of the parabola and the hyperbola in the plane and the location of roots of algebraic equations in the complex plane. A modification of the algorithm is proposed. Using the algorithm, three examples are solved. One of them is looking for roots of the Jacobi polynomial. The well-known numerical method for solving cubic equations is estimated (from the viewpoint of the scientific and technical personnel). Its following stages are estimated. a) Searching for an interval that contains one root. P) Calculation of the initial approximation of the root. y) Calculation of next approximations. 5) Dividing the left side of the cubic equation by a binomial. s) Calculation of roots of a quadratic polynomial. The author reported the aim of researches presented in this article. The aim was to build such a numerical method of solving the equation x +k1x +k2x+k3=0, (1) that is available to technologists and does not use the method of tangents. The author reported the problem of the research: to construct such an algorithm that computes roots of equation (1) without performing actions a, в, у, and 5 and uses the dichotomy. The problem of the research was solved under the assumption that k 3 Ф 0. The used methods are as follows: studying and analyzing the literature, mathematical calculations, mathematical modeling, and computer experiment. The following algorithm is presented. 1. Calculating values of the quantities b 3, c 0, n b, and n c by formulas b 3 = max {1, | - 2k 1 |, | k 1 + k 2 |}, c 0 = max {| - 2k 1 |, | k 1 + k 2 |, | - k 1k 2 + k 3 |}, n b = | - k 1k 2 + k 3 | / (b 3 + | - k 1k 2 + k 3 |), and n c = 1 + c 0. 2. Checking quantities n b for being a root of the equation q(z) = z - 2k 1z + (k 1 + k 2) z - k 1k 2 + k 3 = 0. In the case of a positive test result, assigning the value n b to the quantity t* and going to step 4. 3. Determination of the sign of the product q(n b)-q(n c). In the case of a negative sign, the dichotomy is applied to the interval [n b, n c] and the quantity t* is assigned the value of the found root. In the case of a positive sign, the dichotomy is applied to the interval [ - n c, - n b] and the quantity t* is assigned the value of the found root. 4. Calculating the real root x 1 of equation (1) by the formula x 1 = t* - k 1. 5. Evaluation of the quantities a* and b* by the formulas a* = t* and b* = a*(a* - k 1) + k 2. 6. Calculation of roots of the equation x + a*x + b* = 0 and assigning their values to the roots x2 and x3 of equation (1). In two examples, the author used a specially designed computer programs written in Turbo Pascal. Arithmetic operations on numbers and square rooting generation for non-negative numbers were performed by arithmetic expressions and sqrt function, respectively, from the programming language standard. In one example, operations on numbers were replaced by operations on strings.
Keywords
дихотомия, комплексная плоскость, корень, уравнение, dichotomy, complex plane, root of an equationAuthors
Name | Organization | |
Nesmeev Yurii Alekseevieh | Magnitogorsk State Technical University | nes_ya@list.ru |
References

An algorithm for solving cubic equations | Vestnik Tomskogo gosudarstvennogo universiteta. Matematika i mekhanika – Tomsk State University Journal of Mathematics and Mechanics. 2014. № 5(31).