Solve Polynomial Calculator: Step-by-Step
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A polynomial calculator solves equations of the form anxn + … + a1x + a0 = 0 by finding the values of x (roots) that make the polynomial equal zero. You enter the coefficients (the numbers multiplying each power of x), and the calculator returns the real and complex roots, along with the degree and sometimes the factored form.
Formula
For a quadratic polynomial ax² + bx + c = 0, the roots are given by the quadratic formula:
x = [−b ± √(b² − 4ac)] / (2a)
- a – coefficient of x² (must not be zero)
- b – coefficient of x
- c – constant term
- Discriminant = b² − 4ac – determines the nature of the roots
Worked Example
Using the default values a = 1, b = −3, c = 2:
- Discriminant: (−3)² − 4·1·2 = 9 − 8 = 1
- First root: [3 + √1] / (2·1) = (3 + 1)/2 = 2
- Second root: [3 − √1] / (2·1) = (3 − 1)/2 = 1
The calculator shows root1 = 2 and root2 = 1, matching the example.
Why Use a Polynomial Calculator?
Solving polynomials by hand is tedious for degrees higher than 2. A calculator handles the arithmetic instantly, avoids sign errors, and gives both real and complex roots. It is especially useful when you need to:
- Check homework or exam solutions
- Find x-intercepts of a parabola or cubic curve
- Factor polynomials for partial fraction decomposition
- Solve physics or engineering equations that reduce to polynomial form
How to Choose a Polynomial Calculator
Look for a tool that accepts coefficients as decimals or fractions, handles complex roots, and shows the steps. For degree 2, the quadratic formula is enough. For degree 3 and 4, you need a numeric method (like Newton’s method) or a symbolic solver. For degree 5 and above, no general algebraic formula exists (Abel–Ruffini theorem), so the calculator must use numerical approximation.
Common Mistakes and How to Avoid Them
- Sign errors: Enter negative coefficients correctly (e.g., −3 not 3).
- Missing zero coefficients: For x³ + 2x − 1, you must enter 0 for the x² term.
- Unit mix-ups: Polynomials are dimensionless; do not attach units to coefficients.
- Rounding too early: Keep full precision until the final answer.
Limits of the Polynomial Formula
The quadratic formula works only for degree 2. For higher degrees, the calculator uses iterative methods that may miss roots if the starting guess is poor or if roots are repeated. Also, for very large coefficients, numerical instability can produce inaccurate results. Always cross-check with a graph or substitution.
Frequently Asked Questions
What is the degree of a polynomial?
The degree is the highest power of x with a non-zero coefficient. For example, 4x³ + 2x − 1 has degree 3. The degree tells you the maximum number of roots.
How many roots does a polynomial have?
A polynomial of degree n has exactly n complex roots (counting multiplicities), by the Fundamental Theorem of Algebra. Real roots are a subset; some roots may be complex.
What does a discriminant of zero mean?
For a quadratic, a discriminant of zero means there is exactly one real root (a double root). The parabola touches the x-axis at one point.
Can a polynomial have no real roots?
Yes. For example, x² + 1 = 0 has no real roots because the discriminant is negative. The roots are i and −i.
How do I enter a polynomial with missing terms?
Use 0 for the missing coefficient. For instance, x³ − 2x + 5 has a zero coefficient for x², so enter 0 for that term.
Why does the calculator show complex roots?
When the discriminant is negative, the square root of a negative number is imaginary. The calculator uses the imaginary unit i, where i² = −1, to express the roots.
Related
Formula used
in a | Coefficient of x² | - | 1 | 0 in b | Coefficient of x | - | -3 | 0 in c | Constant term | - | 2 | 0 out root1 | First root | - | (-b + sqrt(b^2 - 4*a*c)) / (2*a) | 4 out root2 | Second root | - | (-b - sqrt(b^2 - 4*a*c)) / (2*a) | 4 out disc | Discriminant (b²−4ac) | - | b^2 - 4*a*c | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.