Polynomial Calculator
Solve quadratic and cubic polynomial equations or evaluate a polynomial at any x. Instant roots with step-by-step working shown.
📊 What is a Polynomial Calculator?
A polynomial calculator is a mathematical tool that solves polynomial equations and evaluates polynomial expressions. Polynomials are algebraic expressions consisting of variables raised to non-negative integer powers with real coefficients - the building blocks of algebra and calculus. This calculator handles the two most important cases in secondary and undergraduate mathematics: quadratic equations (degree 2) and cubic equations (degree 3), plus the ability to evaluate any polynomial at a given point.
Polynomial equations arise in virtually every quantitative field. Quadratic equations model projectile motion (the path of a ball thrown upward), optimisation problems (maximising profit or minimising cost), and circuit analysis in electrical engineering. Cubic equations appear in structural engineering (beam deflection), economics (supply-demand equilibria), and physics (potential energy curves). Understanding polynomial roots - the values where the polynomial equals zero - is fundamental to all these applications.
A common misconception is that all polynomial equations have "nice" integer roots. In reality, most quadratics produce irrational roots involving surds (e.g., x = 1 + √3), and cubic equations frequently yield complex numerical roots. This calculator handles all cases: two real roots, one repeated root, and complex conjugate roots for quadratics; and one or three real roots for cubics.
The Evaluate mode lets you compute P(x) for any polynomial of any degree you define. This is useful for checking function values, building tables of values for graphing, and verifying whether a suspected root actually satisfies the equation. The calculation uses Horner's method - an efficient algorithm that requires only n multiplications and n additions for a degree-n polynomial.
📐 Formula
📖 How to Use This Calculator
Steps
3, -2, 1).💡 Example Calculations
Example 1 — Two Distinct Real Roots
Solve x² − 5x + 6 = 0
Example 2 — Complex Roots (Negative Discriminant)
Solve x² + 2x + 5 = 0
Example 3 — Cubic with Three Real Roots
Solve x³ − 6x² + 11x − 6 = 0
❓ Frequently Asked Questions
1, -6, 11, -6), then enter the suspected root as x. If P(x) = 0, the number is indeed a root. This mode uses Horner’s method for efficiency: for degree n, it performs exactly n multiplications and n additions.🔗 Related Calculators
What is a polynomial equation?
A polynomial equation is an equation of the form aₙxⁿ + aₙ₋₁xⁿ⁻¹ + … + a₁x + a₀ = 0, where n is the degree. Quadratic (degree 2) and cubic (degree 3) are the most common. The Fundamental Theorem of Algebra states every degree-n polynomial has exactly n roots (counting complex roots and multiplicity).
How does the quadratic formula work?
The quadratic formula x = (−b ± √(b²−4ac)) / (2a) gives the roots of ax² + bx + c = 0. It is derived by completing the square. The discriminant D = b²−4ac determines the nature: D > 0 gives two real roots, D = 0 gives one repeated root, D < 0 gives two complex conjugate roots.
What is the discriminant of a quadratic equation?
The discriminant D = b² − 4ac of a quadratic ax² + bx + c = 0 determines the number and type of roots. D > 0: two distinct real roots. D = 0: one repeated real root (the parabola touches the x-axis). D < 0: two complex conjugate roots (no real x-intercepts). The discriminant appears under the square root in the quadratic formula.
How many real roots can a cubic equation have?
A cubic equation ax³ + bx² + cx + d = 0 can have either one real root and two complex conjugate roots, or three real roots (which may include repeated roots). Unlike quadratics, a cubic always has at least one real root because its graph (a continuous curve going from −∞ to +∞) must cross the x-axis at least once.
What are complex roots and when do they occur?
Complex roots occur when the discriminant of a quadratic is negative (D < 0). They take the form a ± bi, where i = √−1. Complex roots always come in conjugate pairs for polynomials with real coefficients. For example, if 2 + 3i is a root, then 2 − 3i is also a root. Complex roots have no real x-intercepts - the parabola does not cross the x-axis.
What are Vieta's formulas for a quadratic?
For ax² + bx + c = 0 with roots x₁ and x₂: sum of roots x₁ + x₂ = −b/a, and product of roots x₁ × x₂ = c/a. For example, x² − 5x + 6 = 0 has roots 2 and 3: sum = 5 = −(−5)/1 ✓, product = 6 = 6/1 ✓. Vieta's formulas let you verify roots and construct polynomials from known roots.
What is polynomial evaluation (Horner's method)?
Evaluating P(x) at a specific x means computing the numerical value. Horner's method does this efficiently: instead of computing each power separately, rewrite as ((aₙx + aₙ₋₁)x + aₙ₋₂)x + … This requires only n multiplications and n additions for a degree-n polynomial, versus up to n(n+1)/2 multiplications with the naive approach.
How do you factor a quadratic polynomial?
To factor ax² + bx + c: find roots r₁ and r₂ using the quadratic formula, then write a(x − r₁)(x − r₂). For example, 2x² − 8x + 6 = 0: divide by 2 → x² − 4x + 3, roots are x = 1 and x = 3, so factors are 2(x − 1)(x − 3). If roots are irrational (e.g., √5), the factored form contains surds; if complex, factored form over reals is left as-is.
What is the difference between roots, zeros, and solutions of a polynomial?
These three terms mean the same thing: values of x where the polynomial equals zero. 'Roots' is the algebraic term (roots of an equation), 'zeros' is the function term (zeros of the function f(x) = polynomial), and 'solutions' is the equation-solving term. All three refer to x values satisfying aₙxⁿ + … + a₀ = 0.
Can all cubic equations be solved analytically?
Yes - Cardano's formula (1545) provides an exact closed-form solution for all cubic equations, analogous to the quadratic formula. However, the formula is complex and often produces nested cube roots of complex numbers even when all roots are real. In practice, numerical methods like Newton–Raphson are preferred for cubic and higher-degree polynomials due to simplicity and speed.