Polynomial Roots Calculator

  • Free
  • No sign-up
  • Works on phones
  • Shows the working
Algebra & Trig#38

Polynomial Roots & Behavior

Degree, leading coefficient, real roots, turning points and end behavior of any polynomial.

This polynomial roots calculator finds the real zeros of any polynomial, from quadratics and cubics to higher degrees. Also, along with the roots it reports the degree, the leading coefficient, the y-intercept, how many turning points the graph has, and its end behavior (what happens as \( x \to \pm\infty \)). Exact integer and simple fractional roots are shown exactly; others are given to about eight digits.

Use it as a zeros of a polynomial calculator to check factoring, sketch graphs, or find where a function crosses the x-axis. Also, it’s free and needs no sign-up.

Polynomial Roots Calculator: The cubic x³ − 6x² + 11x − 6 = (x − 1)(x − 2)(x − 3) crosses the x-axis at its three real…
The cubic x³ − 6x² + 11x − 6 = (x − 1)(x − 2)(x − 3) crosses the x-axis at its three real roots 1, 2 and 3.

How to use the polynomial roots calculator

  1. Type the polynomial in x, for example x^3 - 6x^2 + 11x - 6. Use ^ for powers. Implied multiplication such as 2x works.
  2. Press Analyze.
  3. Read the real roots. If there are fewer real roots than the degree, the rest are repeated or complex, and the note says so.
  4. Use the end behavior and turning points to sketch the graph.

Key facts the calculator uses

A polynomial of degree n, \( p(x) = a_nx^n + \dots + a_1x + a_0 \), has:

People working at a table with laptops and notebooks
  • At most n real roots. Counting complex roots and multiplicity, it has exactly n (the fundamental theorem of algebra).
  • At most \( n - 1 \) turning points, because the derivative has degree \( n - 1 \).
  • End behavior set by the leading term \( a_nx^n \):
Degree\( a_n > 0 \)\( a_n < 0 \)
Evenup on both endsdown on both ends
Odddown on the left, up on the rightup on the left, down on the right

Worked example: a cubic with three integer roots

\( p(x) = x^3 - 6x^2 + 11x - 6 \), as loaded above.

A calculator, papers with numbers, a pen, and paper clips on a desk.

Rational root test. Possible rational roots divide the constant term 6: \( \pm1, \pm2, \pm3, \pm6 \). Trying \( x = 1 \): \( 1 - 6 + 11 - 6 = 0 \). So \( (x - 1) \) is a factor.

Divide. \( x^3 - 6x^2 + 11x - 6 = (x - 1)(x^2 - 5x + 6) = (x - 1)(x - 2)(x - 3) \).

Roots. \( x = 1, 2, 3 \). Degree 3 with a positive leading coefficient: falls to \( -\infty \) on the left, rises to \( +\infty \) on the right, with 2 turning points.

Worked example: factor by grouping

\( x^3 - x^2 - 4x + 4 = x^2(x - 1) - 4(x - 1) = (x - 1)(x^2 - 4) = (x - 1)(x - 2)(x + 2) \). The roots are \( -2, 1, 2 \), and the y-intercept is \( (0, 4) \).

Worked example: a quartic with negative leading coefficient

\( p(x) = -2x^4 + 8x^2 = -2x^2(x^2 - 4) \). The roots are \( -2, 0, 2 \). For example, \( x = 0 \) is a double root. The graph touches the axis there. It does not cross. Even degree and \( a_n = -2 < 0 \) mean both ends point down. You can use a polynomial roots calculator to find these.

When roots aren’t nice numbers

\( x^3 - 2x - 5 \) has one real root, \( x \approx 2.0946 \), and two complex roots. A polynomial roots calculator finds it numerically. The idea is like Newton’s method. You can watch steps in the Newton’s method calculator.

Students collaborating around a table with markers and paper.

Tips and common mistakes

  • Missing powers. In \( x^3 - 2x - 5 \) the \( x^2 \) coefficient is 0. Keep a 0 placeholder when you do synthetic division.
  • Counting double roots once. \( (x - 1)^2 \) contributes two roots at \( x = 1 \), even though the graph touches the axis at only one point.
  • Mixing up roots and factors. A root at \( x = -2 \) means the factor is \( (x + 2) \).
  • Odd-degree polynomials always have a real root, because the two ends point in opposite directions.

The rational root theorem in action

For a polynomial with whole-number coefficients, any rational root \( p/q \) has \( p \) dividing the constant term and \( q \) dividing the leading coefficient.

Example: \( 2x^3 - 3x^2 - 8x - 3 \). The candidates are \( \pm 1, \pm 3, \pm \frac{1}{2}, \pm \frac{3}{2} \). Testing \( x = 3 \): \( 54 - 27 - 24 - 3 = 0 \), so \( (x - 3) \) is a factor. Dividing leaves \( 2x^2 + 3x + 1 = (2x + 1)(x + 1) \), so the roots are \( 3, -\frac{1}{2} \) and \( -1 \). See the polynomial long division calculator.

Vieta’s formulas: checking roots fast

For \( ax^3 + bx^2 + cx + d \) with roots \( r_1, r_2, r_3 \):

  • sum of roots \( = -\frac{b}{a} \)
  • sum of products of pairs \( = \frac{c}{a} \)
  • product of roots \( = -\frac{d}{a} \)

Check the example: \( 3 - \frac{1}{2} - 1 = \frac{3}{2} = -\frac{-3}{2} \), and \( 3 \times \left(-\frac{1}{2}\right) \times (-1) = \frac{3}{2} = -\frac{-3}{2} \).

Descartes’ rule of signs

Count sign changes in coefficients. This is the maximum positive real roots (or fewer by an even number). For \( 2x^3 - 3x^2 - 8x - 3 \), signs are + − − −. So, one change means one positive root. A polynomial roots calculator confirms this matches \( x = 3 \).

Complex roots come in pairs

Next, a polynomial with real coefficients has complex roots in conjugate pairs. \( x^3 - 1 = (x - 1)(x^2 + x + 1) \) has the real root 1 and the pair \( \frac{-1 \pm i\sqrt{3}}{2} \). A polynomial of degree \( n \) has exactly \( n \) roots, counted with multiplicity; a cubic always has at least one real root. You can find these with a polynomial roots calculator.

Practice problems

  1. Find the roots of \( x^3 - 7x + 6 \).
  2. How many positive real roots can \( x^4 - x^3 + 2x - 5 \) have?

Answers: 1. \( x = 1 \) works, leaving \( x^2 + x - 6 = (x + 3)(x - 2) \): roots 1, 2, −3. 2. Signs + − + −: three changes, so 3 or 1 positive roots.

Step-by-Step Calculator Use

First, identify your polynomial expression. Make sure it is in standard form. For example, use x^3 + 2x^2 – 5x + 10. The calculator accepts various formats. However, standard form helps avoid input errors.

Next, type your polynomial into the input field. Use the caret symbol (^) for exponents. For instance, x squared is x^2. You can omit multiplication signs between numbers and variables, like 2x. Ensure all coefficients are correctly entered.

Then, click the "Analyze" button. The polynomial roots calculator will process your input. It quickly computes the real roots. It also provides other key polynomial characteristics. These details help in understanding the function's behavior.

Finally, review the displayed results. The calculator lists all real roots found. It also notes if there are fewer real roots than the polynomial's degree. This indicates the presence of complex or repeated roots.

Understanding the Output

The calculator provides several pieces of information. The 'Degree' tells you the highest power of x. This number equals the total count of roots, including complex and repeated ones. Also, the 'Leading Coefficient' is the number multiplying the highest power term.

The 'Y-intercept' is where the graph crosses the y-axis. It is always the constant term of the polynomial. 'Turning Points' indicate how many times the graph changes direction. This count is at most one less than the degree.

The 'End Behavior' describes the graph's direction at its far left and right. It depends on the degree and the leading coefficient. For example, an even degree with a positive leading coefficient means both ends point up.

Most importantly, the 'Real Roots' are listed. These are the x-values where the graph crosses or touches the x-axis. A note confirms if any roots are complex or repeated. As a result, this output summary helps visualize the polynomial's graph.

Related guides

Further reading

FAQ

How do you find the roots of a polynomial?

Try the rational root test, factor out each root you find, and finish the remaining quadratic with the quadratic formula. For roots that aren’t rational, also use a numerical method like this calculator does.

How many roots can a polynomial have?

A degree-n polynomial has at most n real roots, and exactly n roots when complex and repeated roots are counted.

What is end behavior?

What \( p(x) \) does as x goes to \( \pm\infty \). It depends only on the degree (even or odd) and the sign of the leading coefficient.

Does it find complex roots?

It reports real roots and tells you how many are repeated or complex. For quadratics, the quadratic formula calculator gives complex roots exactly.

Embed this calculator on your website

Teachers, tutors and bloggers are welcome to use this calculator for free. Copy the code below and paste it into any page (in WordPress, use a "Custom HTML" block). The small script makes the calculator grow to fit its answer; if your site removes scripts, it still works at a fixed height. Please keep the credit link.

More calculators

See all calculators