emblem
Cubic equation
Finds the roots of a cubic equation
2024.May.17 13:17:08
Coefficients Coefficients (ai, i = 0..3). •
Extremes Extremes for graph. •
Roots (new problem) R x1, x2, x3  or  C x1, Re(z2), Im(z2) (with z3 = z2)
Show values ? Shows the graph coordinates.

Solves a cubic equation, a0 x³ + a1 x² + a2 x + a3 = 0, analytically, for real coefficients. The coefficients will, however, be called a, b, c, and d, respectively. It must, of course, be a ≠ 0. (For the method, see below, [Tuma].)

Supplementarily ("new problem"), the coefficients are computed from given roots. The roots of a cubic are: one, always real; the other two, real or complex conjugate. So, giving "Complex", 3 4 5 means 3, 4+5i and 4−5i.

A plot of the cubic is shown for x between the given extremes.

References: Plate: cubic

• Method, in J. Tuma (Tuma, Jan J. and Ronald A. Walsh, "Engineering Mathematics Handbook").

• Wikipedia: Cubic equation (old page)

• 1777-04-30: Gauss, Johann Carl Friedrich (1855-02-23)

 
 
Valid HTML 4.01! IST http://web.ist.utl.pt/~mcasquilho/compute/com/Fx-cubicRoots.php
Created: 2016-04-30 — Last modified: 2017-01-18