Numeric Forest logo
Roots of Polynomial Calculator

To find the roots of a polynomial like x3-6x2+11x-6, enter the coefficients below. For subtraction, enter a negative number.

x3
+
x2
+
x
+
Decimal Places:
+ Add Higher Degree Clear Reset

Introduction

This calculator determines the numerical roots of a polynomial equation, facilitating the exploration of algebraic structures. By identifying the values of x where the function fx=0, researchers can analyse the intersections and behaviours of equations of degree n. It is essential for studying the fundamental theorem of algebra and complex number distributions in mathematical models.

What this calculator does

Uses iteration to find both real and complex roots of a polynomial. Users input the coefficients for each term from the constant to the highest power. The calculator outputs a list of roots, numerical verification using Vieta's formulas, a real-domain function plot, and a complex plane distribution showing the spatial relationship of all calculated roots.

Formula used

The Aberth-Ehrlich method is employed to iteratively converge upon roots. It utilises the polynomial evaluation and its relationship to the product of differences between root estimates. Vieta's formulas are used for verification, where the sum of roots relates to the ratio of the leading coefficients an-1 and an.

-an-1an=i=1nri
-1na0an=i=1nri

How to use this calculator

1. Enter the coefficients for the terms of the polynomial, ensuring the leading coefficient is non-zero.
2. Adjust the degree of the polynomial using the provided controls if higher powers are required.
3. Select the preferred decimal precision for the output display.
4. Execute the calculation to view the roots, verification tables, and interactive visualisations.

Example calculation

Scenario: Analysing a cubic relationship in a controlled environment to determine the equilibrium points where the total change in a variable reaches zero.

Inputs: Coefficients x2=1, x=0, and constant -4.

Working:

Step 1: fx=a2x2+a1x+a0

Step 2: 1x2+0x-4=0

Step 3: x2=4

Step 4: x=±4

Result: 2.00, -2.00

Interpretation: The roots represent the two real values where the quadratic function crosses the horizontal axis.

Summary: The calculation successfully identifies all points of intersection for the given degree.

Understanding the result

The result provides the specific coordinates on the complex plane where the polynomial evaluates to zero. Real roots appear without an imaginary component, while complex roots are displayed in the form a±bi. The distribution reveals the symmetry and magnitude of the solutions relative to the origin.

Assumptions and limitations

The calculator assumes the polynomial is a continuous function with real-valued coefficients. The numerical method is limited to degrees up to 20 to maintain stability and avoid excessive computational divergence during the iterative correction process.

Common mistakes to avoid

A common error is entering a zero for the leading coefficient, which reduces the effective degree of the polynomial. Additionally, misplacing signs for coefficients can lead to entirely different root distributions, particularly when distinguishing between subtraction and negative values in academic notation.

Sensitivity and robustness

The calculation is generally robust for well-spaced roots but can be highly sensitive to small variations in coefficients for polynomials with high degrees or clusters of near-identical roots. Small perturbations in the input can lead to significant shifts in the imaginary components of the output.

Troubleshooting

If the results do not appear, ensure all coefficients are numeric and within the range of -1e12 to 1e12. If the "Invalid session" message appears, refresh the page to regenerate the security token. Excessive decimal lengths may also trigger input validation errors to preserve calculation stability.

Frequently asked questions

Why are some roots shown with "i"?

These are complex roots that exist outside the real number line, occurring when the polynomial does not cross the x-axis at all expected points.

What is the maximum polynomial degree allowed?

The calculator supports up to degree 20 to ensure the numerical Aberth-Ehrlich method remains accurate and converges within a reasonable timeframe.

How is the accuracy of the roots verified?

The tool uses Vieta's formulas to compare the sum and product of the calculated roots against the theoretical values derived directly from the coefficients.

Where this calculation is used

This mathematical process is used extensively in algebra for factoring expressions and in calculus for finding critical points and horizontal intercepts. In mathematical modelling, identifying roots is vital for determining the stability of systems and the equilibrium states of differential equations. It is also applied in signal processing for analysing filters and in geometry for calculating the intersections of complex curves and surfaces within a multi-dimensional coordinate system.

Results are based on standard mathematical and statistical methods and may involve rounding or approximation. If precise accuracy is required, please verify results independently. See full disclaimer.