Polynomial Equation Solver

Solve higher-degree polynomial equations with AI-powered step-by-step solutions

Drag & drop or click to add images or PDF

Math Input
x^3 - 6x^2 + 11x - 6 = 0
x^4 - 5x^2 + 4 = 0
2x^3 + 3x^2 - 8x + 3 = 0
x^3 + 1 = 0

What is a Polynomial Equation?

A polynomial equation is an equation of the form:

anxn+an1xn1++a1x+a0=0a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0 = 0

where nn is a positive integer called the degree, an0a_n \neq 0, and a0,a1,,ana_0, a_1, \ldots, a_n are constants (coefficients).

Polynomials are classified by degree:

  • Degree 1: Linear (ax+b=0ax + b = 0)
  • Degree 2: Quadratic (ax2+bx+c=0ax^2 + bx + c = 0)
  • Degree 3: Cubic (ax3+bx2+cx+d=0ax^3 + bx^2 + cx + d = 0)
  • Degree 4: Quartic (ax4+=0ax^4 + \cdots = 0)
  • Degree 5+: Quintic and higher

The Fundamental Theorem of Algebra states that a polynomial of degree nn has exactly nn roots (counting multiplicity) in the complex numbers. For example, a cubic equation always has 3 roots, which may be real or complex.

Higher-degree polynomial equations arise in physics (projectile motion, oscillations), engineering (control systems), economics (optimization), and computer graphics (curve intersections).

How to Solve Polynomial Equations

Unlike quadratics, there is no single formula that works for all higher-degree polynomials. Here are the main strategies:

1. Rational Root Theorem

For anxn++a0=0a_n x^n + \cdots + a_0 = 0 with integer coefficients, any rational root pq\frac{p}{q} must satisfy:

  • pp divides a0a_0 (the constant term)
  • qq divides ana_n (the leading coefficient)

Test candidates and use synthetic division to reduce the degree.

Example: x36x2+11x6=0x^3 - 6x^2 + 11x - 6 = 0

  • Possible rational roots: ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6
  • Test x=1x = 1: 16+116=01 - 6 + 11 - 6 = 0
  • Divide out (x1)(x - 1) to get x25x+6=(x2)(x3)x^2 - 5x + 6 = (x-2)(x-3)

2. Factoring by Grouping

Rearrange terms into groups that share common factors.

Example: x3+x24x4=x2(x+1)4(x+1)=(x24)(x+1)=(x+2)(x2)(x+1)x^3 + x^2 - 4x - 4 = x^2(x+1) - 4(x+1) = (x^2-4)(x+1) = (x+2)(x-2)(x+1)

3. Substitution (Disguised Quadratics)

If only even powers appear, let u=x2u = x^2:

Example: x45x2+4=0x^4 - 5x^2 + 4 = 0 → let u=x2u = x^2: u25u+4=0u^2 - 5u + 4 = 0(u1)(u4)=0(u-1)(u-4) = 0

So x2=1x^2 = 1 or x2=4x^2 = 4, giving x=±1,±2x = \pm 1, \pm 2.

4. Synthetic Division

Once a root rr is found, divide by (xr)(x - r) to reduce the polynomial's degree, then repeat.

5. Descartes' Rule of Signs

Count sign changes in f(x)f(x) and f(x)f(-x) to determine the maximum number of positive and negative real roots.

MethodBest When
Rational Root TheoremInteger coefficients, small constant term
GroupingFour terms with natural pairs
SubstitutionOnly even-degree terms (biquadratic)
Synthetic DivisionOne root already known
Numerical MethodsNo rational roots exist

Common Mistakes to Avoid

  • Forgetting complex roots: A degree-nn polynomial always has nn roots over C\mathbb{C}. If you only find real roots, complex roots come in conjugate pairs.
  • Missing repeated roots: x33x+2=(x1)2(x+2)x^3 - 3x + 2 = (x-1)^2(x+2) has x=1x = 1 as a double root.
  • Incomplete list of rational root candidates: Check all combinations of factors of a0a_0 over factors of ana_n.
  • Arithmetic errors in synthetic division: Double-check each step — one wrong number propagates through the entire calculation.
  • Assuming all roots are rational: Many polynomials have irrational or complex roots that cannot be found by the Rational Root Theorem alone.

Examples

Step 1: By the Rational Root Theorem, possible roots are ±1,±2,±3,±6\pm 1, \pm 2, \pm 3, \pm 6. Test x=1x = 1: 16+116=01 - 6 + 11 - 6 = 0
Step 2: Divide by (x1)(x - 1) using synthetic division: x36x2+11x6=(x1)(x25x+6)x^3 - 6x^2 + 11x - 6 = (x - 1)(x^2 - 5x + 6)
Step 3: Factor the quadratic: x25x+6=(x2)(x3)x^2 - 5x + 6 = (x - 2)(x - 3)
Answer: x=1,  x=2,  x=3x = 1,\; x = 2,\; x = 3

Step 1: Let u=x2u = x^2, so the equation becomes u25u+4=0u^2 - 5u + 4 = 0
Step 2: Factor: (u1)(u4)=0(u - 1)(u - 4) = 0, so u=1u = 1 or u=4u = 4
Step 3: Back-substitute: x2=1x=±1x^2 = 1 \Rightarrow x = \pm 1; x2=4x=±2x^2 = 4 \Rightarrow x = \pm 2
Answer: x=2,  1,  1,  2x = -2,\; -1,\; 1,\; 2

Step 1: Possible rational roots: ±1,±3,±12,±32\pm 1, \pm 3, \pm \frac{1}{2}, \pm \frac{3}{2}. Test x=1x = 1: 2+38+3=02 + 3 - 8 + 3 = 0
Step 2: Divide by (x1)(x - 1): 2x3+3x28x+3=(x1)(2x2+5x3)2x^3 + 3x^2 - 8x + 3 = (x - 1)(2x^2 + 5x - 3)
Step 3: Factor 2x2+5x3=(2x1)(x+3)2x^2 + 5x - 3 = (2x - 1)(x + 3)
Answer: x=1,  x=12,  x=3x = 1,\; x = \frac{1}{2},\; x = -3

Frequently Asked Questions

Polynomials of degree 4 or less always have exact formulas for their roots. For degree 5 and above, the Abel-Ruffini theorem proves that no general formula using radicals exists. However, specific polynomials of any degree may still be solvable by factoring or other techniques.

The Rational Root Theorem states that for a polynomial with integer coefficients, any rational root p/q (in lowest terms) must have p as a factor of the constant term and q as a factor of the leading coefficient.

A polynomial of degree n has exactly n roots when counted with multiplicity over the complex numbers. Some of these roots may be repeated, and some may be complex (non-real) numbers.

Synthetic division is a shorthand method for dividing a polynomial by a linear factor (x - r). It uses only the coefficients and is faster than long division. It is commonly used to test potential roots and to reduce the degree of a polynomial after finding a root.

Related Solvers

QuadraticFactoringLinearDerivative
Try AI-Math for Free

Get step-by-step solutions to any math problem. Upload a photo or type your question.

Start Solving