Quartic Equation Solver
Find all roots of a quartic numerically with Durand-Kerner, printing real roots and complex conjugate pairs.
Quartic Equation Solver
Find all roots of a quartic numerically with Durand-Kerner, printing real roots and complex conjugate pairs.
How this page computes
The page runs Durand-Kerner on the normalized quartic and sorts the four roots. It returns numeric roots only, states the tolerance and warns that repeated roots can cluster.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page finds all four roots of a quartic numerically and prints them. Worked example: x^4 - 5x^2 + 4 has roots -2, -1, 1 and 2.
The solver is Durand-Kerner on the complex plane, so complex conjugate pairs are reported with their imaginary parts. No quartic radical formula is printed, and the tolerance is stated.
How to use the Quartic Equation Solver
Enter the five coefficients a, b, c, d and e of a*x^4 + b*x^3 + c*x^2 + d*x + e, then press Run. The output restates the polynomial and lists four roots.
A biquadratic such as x^4 - 5x^2 + 4 is a good check: the page should print two positive and two negative real roots, all at whole values.
What the numeric root set means
Durand-Kerner iterates four complex estimates simultaneously, each divided by the product of its distances to the other three. The iteration stops when the largest update is below the tolerance.
The four roots are a complete numeric root set for a quartic, counting multiplicity. A repeated root may appear as a tight cluster rather than a single repeated line, which the page warns about.
What to Expect
Best for
- Finding all four roots of a quartic
- Seeing two complex conjugate pairs
- Checking a biquadratic factorization
Not ideal for
- A symbolic radical expression
- A proof of exactness
- A quintic or higher degree
What this tool keeps
- The five coefficients and all four roots
What may need cleanup
- Roots are numeric to the stated tolerance; repeated roots can cluster
Common errors
- A zero leading coefficient is refused as not a quartic
- A non-numeric coefficient is refused by name
Example use cases
- Solve x^4 - 5x^2 + 4
- Solve a quartic with two complex pairs
Sample input
1 0 -5 0 4
Sample output
quartic x^4 - 5x^2 + 4 = 0 roots (numeric, tolerance 1e-7; repeated roots may form a cluster): x1 = -2 x2 = -1 x3 = 1 x4 = 2
Who this is for
- Students checking quartic roots
- Readers exploring complex solutions
Frequently asked questions
Does the page factor the quartic?
No. It returns the root set, not a product of linear factors. A root list determines the factorization over the complex numbers, but the page keeps the answer to the question asked.
Why are roots sometimes not whole numbers?
The solver is numeric, so a root that is mathematically an integer can be printed with a tiny decimal residue. The tolerance line tells you how far the iteration was allowed to drift.
What if all four roots are real?
They are all listed, sorted by their real part. A biquadratic with four real roots is a common case, and the page prints the negative ones first because the sort is ascending.
Is anything uploaded?
Nothing is uploaded. The complex iteration runs in this browser tab with JavaScript, and reloading the page discards the coefficients and the roots.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.