1
2
1
1
1
0
1.5
-0.25
1
2
1
1
1
0
1.5
-0.25
The Polynomial Equation Solver finds the roots of quadratic and cubic polynomial equations using classical algebraic methods. For quadratic equations (ax² + bx + c = 0), it applies the quadratic formula to compute both roots — real or complex — along with the discriminant and vertex coordinates. For cubic equations (ax³ + bx² + cx + d = 0), it employs Cardano's formula to find at least one real root.
Polynomial equations are among the oldest and most important objects in mathematics. The ancient Babylonians (circa 2000 BCE) solved quadratic equations using geometric methods equivalent to completing the square. The general quadratic formula, as we know it today, was systematically developed by Indian mathematicians including Brahmagupta (628 CE) and later transmitted to Europe via Arabic scholars like al-Khwarizmi, whose treatise Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala gave us the word 'algebra.'
The cubic equation resisted solution for centuries until the Italian mathematicians Scipione del Ferro, Niccolò Tartaglia, and Gerolamo Cardano cracked it in the 16th century. Cardano published the general solution in his 1545 masterwork Ars Magna, one of the most important algebra texts ever written. The solution of the cubic led to the discovery of complex numbers, since Cardano's formula sometimes requires taking square roots of negative numbers even when all roots are real (the casus irreducibilis).
The discriminant plays a central role in understanding the nature of roots. For a quadratic ax² + bx + c = 0, the discriminant Δ = b² − 4ac determines whether the roots are: real and distinct (Δ > 0), real and equal (Δ = 0), or complex conjugates (Δ < 0). For cubics, the discriminant has a more complex formula but serves the same purpose: it tells you whether the equation has three distinct real roots, a repeated root, or one real root and two complex conjugate roots.
Polynomial root-finding has profound applications across science and engineering. In control theory, the roots of the characteristic polynomial determine system stability. In signal processing, polynomial roots define filter frequencies. In structural engineering, eigenvalue equations (which are polynomials) determine natural vibration frequencies of bridges, buildings, and aircraft wings. In quantum mechanics, the energy eigenvalues of simple systems are roots of polynomial equations.
The vertex of a quadratic parabola — located at x = −b/(2a) — represents the maximum or minimum value of the function. This is crucial in optimization problems: maximizing revenue, minimizing cost, finding the optimal angle for projectile range, or determining the peak of a drug concentration curve in pharmacokinetics.
This calculator handles both real and complex roots gracefully. When the discriminant is negative for a quadratic, the complex roots are displayed with their real and imaginary parts. For cubic equations with one real root (when the discriminant is negative), Cardano's formula directly yields that root. The calculator provides a fast, accurate way to solve polynomial equations without manual computation, making it ideal for students, engineers, and scientists who need quick root-finding capabilities.
The history of polynomial equations is intimately connected with the development of abstract algebra. After the cubic solution, Ferrari solved the quartic (degree 4) in 1540. However, in 1824, Niels Henrik Abel proved that no general algebraic formula exists for degree 5 or higher — the Abel-Ruffini theorem. Évariste Galois then developed group theory to explain precisely which polynomial equations can be solved by radicals, creating an entirely new branch of mathematics from the study of polynomial roots.
Beyond the roots themselves, understanding how roots relate to coefficients through Vieta's formulas (the sum of roots equals −b/a, the product equals c/a for quadratics) provides deep insight into the structure of polynomial equations and is a cornerstone of abstract algebra. Numerical methods such as Newton-Raphson iteration and Laguerre's method extend root-finding to polynomials of any degree, but this calculator focuses on exact closed-form solutions for quadratics and cubics, providing both pedagogical clarity and computational speed.
For a quadratic equation \(ax^2 + bx + c = 0\), the calculator uses the quadratic formula:
$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$
The discriminant \(\Delta = b^2 - 4ac\) determines root type: real (\(\Delta \geq 0\)) or complex (\(\Delta < 0\)). The vertex is at:
$$x_v = -\frac{b}{2a}, \quad y_v = f(x_v)$$
For a cubic equation \(ax^3 + bx^2 + cx + d = 0\), the calculator first transforms it into a depressed cubic \(t^3 + pt + q = 0\) via the substitution \(x = t - b/(3a)\), where:
$$p = \frac{3ac - b^2}{3a^2}, \quad q = \frac{2b^3 - 9abc + 27a^2d}{27a^3}$$
Then Cardano's formula gives:
$$t = \sqrt[3]{-\frac{q}{2} + \sqrt{\frac{q^2}{4} + \frac{p^3}{27}}} + \sqrt[3]{-\frac{q}{2} - \sqrt{\frac{q^2}{4} + \frac{p^3}{27}}}$$
The discriminant tells you the nature of the roots. For quadratics: Δ > 0 means two distinct real roots, Δ = 0 means one repeated root, and Δ < 0 means two complex conjugate roots. Root 1 and Root 2 are the solutions displayed with real and imaginary parts. For cubic equations, Root 1 shows the primary real root found by Cardano's method. The vertex coordinates (quadratic only) indicate the parabola's turning point — a minimum if a > 0 or a maximum if a < 0.
Inputs
Results
Discriminant=1>0 → two distinct real roots x=2 and x=1
Inputs
Results
Factors as (x−1)(x−2)(x−3), Cardano finds root x=1
The quadratic formula x = (−b ± √(b²−4ac))/(2a) gives both roots of any quadratic equation ax² + bx + c = 0. It was derived by completing the square and works for all values of a, b, c (provided a ≠ 0).
The discriminant Δ = b² − 4ac reveals the nature of the roots. If Δ > 0, there are two distinct real roots. If Δ = 0, there is one repeated real root (the parabola touches the x-axis). If Δ < 0, the roots are complex conjugates with no real solutions.
Cardano's formula first converts the cubic ax³ + bx² + cx + d = 0 into a 'depressed' cubic t³ + pt + q = 0 by substituting x = t − b/(3a). Then it uses cube roots of expressions involving p and q to find t, and converts back to x.
This calculator handles quadratic (degree 2) and cubic (degree 3) equations. The quartic (degree 4) has an algebraic solution (Ferrari's method), but degree 5 and above generally cannot be solved by radicals, as proven by Abel and Galois.
Complex roots arise when the discriminant is negative. They come in conjugate pairs: a + bi and a − bi, where i = √(−1). Geometrically, this means the parabola does not cross the x-axis. Complex roots are essential in electrical engineering, quantum mechanics, and signal processing.
The vertex is the highest or lowest point of the parabola y = ax² + bx + c. Located at x = −b/(2a), it represents the minimum value when a > 0 and the maximum when a < 0. The vertex form of a quadratic is y = a(x − h)² + k.
When all three roots of a cubic are real (casus irreducibilis), Cardano's formula involves taking cube roots of complex numbers. Numerical evaluation can introduce floating-point errors. For this case, the trigonometric method (using cosine) is more stable, which this calculator uses as a fallback.
Vieta's formulas connect roots to coefficients. For a quadratic with roots r₁, r₂: r₁+r₂ = −b/a and r₁·r₂ = c/a. For a cubic with roots r₁, r₂, r₃: r₁+r₂+r₃ = −b/a, r₁r₂+r₁r₃+r₂r₃ = c/a, and r₁r₂r₃ = −d/a.
Completing the square transforms ax² + bx + c into a(x − h)² + k form by adding and subtracting (b/2a)². This technique derives the quadratic formula, reveals the vertex, and is used in calculus to evaluate integrals involving quadratics.
For a quadratic equation (ax² + bx + c = 0), leave the coefficient d as 0. For a cubic equation (ax³ + bx² + cx + d = 0), enter a nonzero value for d. The calculator automatically detects which formula to apply.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Symbolic Algebra Calculator
Scientific & Engineering Programming Calculators
Matrix Calculator
Scientific & Engineering Programming Calculators
Complex Numbers Calculator
Scientific & Engineering Programming Calculators
Graphing Calculator (Advanced)
Scientific & Engineering Programming Calculators
Physical Constants Database Calculator
Scientific & Engineering Programming Calculators