Logo

MonoCalc

/

Quartic Equation Solver

Math

x⁴ − 3x³ − 4x² + 12x − 8 = 0

Coefficients

Must be ≠ 0

Try an example

Two Real Roots + Two Complex Conjugates

Roots

x₁

-2.17087

x₂

3.336275

x₃

0.917298 − 0.51297i

complex

x₄

0.917298 + 0.51297i

complex

Analysis

Discriminant Δ

-114624

Depressed p

-7.375

Depressed q

2.625

Depressed r

-2.199219

Resolvent root y

-7.263046

Y-intercept

-8

Forms & Critical Points

Factored Form

(x + 2.1709)(x − 3.3363)(x² − 1.8346x + 1.1046)

Critical Points (f′(x) = 0)

Local Min(-1.253749, -20.949453)
Local Max(0.929535, -1.964617)
Local Min(2.574214, -10.878898)

Graph

Real roots

Y-intercept

Local max

Local min

About This Tool

🔢 Quartic Equation Solver – Find All Roots of ax⁴+bx³+cx²+dx+e=0

A quartic equation is a polynomial equation of degree four, written in the standard form ax⁴ + bx³ + cx² + dx + e = 0 where a ≠ 0. Every quartic with real coefficients has exactly four roots (counting multiplicity), though some may be complex numbers. Quartics show up in beam-deflection and lens-design problems, orbital mechanics, ray-surface intersection tests in computer graphics, and advanced algebra coursework. This tool solves any quartic instantly — returning all four roots, a discriminant, a factored form, and an optional step-by-step derivation.

📐 How Quartic Equations Are Solved

The classical approach follows three stages: normalization, depression, and Ferrari's factorization.

Stage 1 — Normalize and Depress

Divide every term by the leading coefficient a, then substitute x = t − b/4a to eliminate the cubic term. This yields the depressed quartic:

t⁴ + pt² + qt + r = 0
p = C − 3B²/8,  q = D − BC/2 + B³/8,  r = E − BD/4 + B²C/16 − 3B⁴/256

where B, C, D, E are the coefficients after dividing by a. The depressed form has only three parameters and is the foundation of every classical quartic method.

Stage 2 — Biquadratic Fast Path

When b = 0 and d = 0 in the original equation (equivalently, when the depressed q ≈ 0), the quartic reduces to ax⁴ + cx² + e = 0. Substituting u = x² turns this into an ordinary quadratic in u, solved with the quadratic formula, then x = ±√u for each solution — no resolvent cubic required.

Stage 3 — Ferrari's Method

For the general case, Ferrari's method introduces an auxiliary parameter y and forms the resolvent cubic:

y³ − p·y² − 4r·y + (4pr − q²) = 0

This tool solves the resolvent cubic by reusing the same trigonometric and Cardano-formula logic that powers the Cubic Equation Solver, then picks a real root y that keeps the arithmetic well-conditioned. With s = √(y − p), the depressed quartic factors into two quadratics:

t² − s·t + (y/2 + q/2s) = 0
t² + s·t + (y/2 − q/2s) = 0

Each quadratic is solved with the standard quadratic formula (allowing complex coefficients), giving four values of t, which are then shifted back via x = t − b/4a to recover the roots of the original quartic.

Root NatureDescription
Four distinct real rootsThe curve crosses the x-axis four times
Two real + two complexThe curve crosses the x-axis twice, plus one complex conjugate pair
Four complex rootsNo real crossings — two distinct conjugate pairs
Repeated / multiple rootTwo or more roots coincide (double, triple, or quadruple)

📊 What the Graph Shows

The interactive graph plots y = ax⁴ + bx³ + cx² + dx + e over an auto-scaled range. Green dots mark real roots, the orange dot marks the y-intercept (x = 0, equal to e), and red/blue dots mark local maxima and minima, found by solving the derivative cubic f′(x) = 4ax³ + 3bx² + 2cx + d = 0 — again reusing the cubic solver rather than duplicating the logic.

Verification built in

Every computed root is substituted back into the original equation, and the residual is checked against a tolerance scaled to the size of the coefficients. If the residual is unexpectedly large, the tool flags the result so you know to treat it as approximate rather than exact.

📋 Worked Example

x⁴ − 10x² + 9 = 0  (a=1, b=0, c=−10, d=0, e=9)
Biquadratic (b = d = 0): let u = x², then u² − 10u + 9 = 0 → u = 1 or 9
Roots: x = −3, −1, 1, 3
Factored: (x+3)(x+1)(x−1)(x−3)

🎓 Applications of Quartic Equations

  • Engineering: beam deflection under load and lens curvature calculations in optics
  • Physics: orbital mechanics problems and certain wave equation solutions
  • Computer graphics: ray-surface intersection tests and Bézier/parametric curve analysis
  • Algebra coursework: factoring, the rational root theorem, and polynomial division practice

⚠️ Accuracy and Limitations

This solver uses 64-bit floating-point arithmetic and is accurate to roughly 10–12 significant digits for well-conditioned coefficients. Very large coefficient magnitudes (beyond about 10¹⁵) or nearly repeated roots can introduce rounding error, which is why every root is re-verified by substitution before being displayed. The repeated-root detector compares roots pairwise with a small numeric tolerance, so near-but-not-exact repeated roots are reported as distinct.

Frequently Asked Questions

Is the Quartic Equation Solver free?

Yes, Quartic Equation Solver is totally free :)

Can I use the Quartic Equation Solver offline?

Yes, you can install the webapp as PWA.

Is it safe to use Quartic Equation Solver?

Yes, any data related to Quartic Equation Solver only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is a quartic equation?

A quartic equation is a polynomial equation of degree four written in the form ax⁴ + bx³ + cx² + dx + e = 0, where a, b, c, d, and e are real numbers and a ≠ 0. Every quartic with real coefficients has exactly four roots (counting multiplicity), which may be real, complex, or a mix of both.

How does the Quartic Equation Solver work?

Enter coefficients a through e. The tool normalizes the equation and depresses it (substituting x = t − b/4a) to remove the cubic term, producing t⁴ + pt² + qt + r = 0. It then solves this either directly (when q ≈ 0, the biquadratic fast path) or via Ferrari's method — forming a resolvent cubic, solving it, and factoring the quartic into two real or complex quadratics that are each solved with the quadratic formula.

What is a biquadratic equation?

A biquadratic equation is a quartic where the odd-degree terms vanish (b = 0 and d = 0), reducing it to ax⁴ + cx² + e = 0. Substituting u = x² turns it into an ordinary quadratic in u, which is then solved directly — no resolvent cubic is needed.

Can this tool return complex roots?

Yes. A quartic can have zero, two, or four non-real roots, always occurring in complex conjugate pairs when the coefficients are real. Complex roots are displayed in a + bi form, and the tool classifies the overall root nature (four real, two real plus two complex, or two complex conjugate pairs).

What is the resolvent cubic used for?

Ferrari's method reduces the depressed quartic to a cubic equation (the resolvent cubic) whose real root lets the quartic be factored into two quadratics. This tool reuses the same cubic-solving logic as the Cubic Equation Solver to find that real root before completing the factorization.

How accurate are the computed roots?

The solver uses 64-bit floating-point arithmetic and automatically re-substitutes every computed root into the original equation to verify the residual is near zero. Results are accurate to roughly 10-12 significant digits for well-conditioned coefficients; very large coefficient magnitudes or near-repeated roots can reduce precision slightly, in which case the tool flags the result as potentially imprecise.