Polynomial Calculator

P(x) — polynomial value—
P′(x) — first derivative (slope)—
P′′(x) — second derivative (curvature)—

How Polynomial Calculator is calculated: P(x) = ax³ + bx² + cx + d. First derivative P′(x) = 3ax² + 2bx + c. Second derivative P′′(x) = 6ax + 2b.

What is a polynomial?

A polynomial is a sum of powers of x, each multiplied by a number called a coefficient. The cubic polynomial x³ − 6x² + 11x − 6 has four terms: x³ with coefficient 1, −6x² with coefficient −6, 11x with coefficient 11, and the constant −6. Polynomials are the simplest functions in mathematics, and almost every curve in science and engineering is either a polynomial or is approximated by one.

The degree of a polynomial is its highest power. A cubic has degree 3, a quadratic has degree 2, and a straight line has degree 1. The degree decides the shape: a cubic can rise, fall and rise again, with up to two turning points and up to three places where it crosses the x-axis. This calculator works with cubic polynomials, which cover most of the cases students and engineers meet.

Evaluating a polynomial means putting a number in for x and working out the answer. At x = 2, the polynomial x³ − 6x² + 11x − 6 gives 8 − 24 + 22 − 6, which is 0, so x = 2 is a root. This calculator evaluates the polynomial and its two derivatives at any x you choose.

How polynomial evaluation works

The value is found by substituting x into each term and adding. For x³ − 6x² + 11x − 6 at x = 2, the terms are 8, −24, 22 and −6, which add to 0. The same substitution at x = 0 gives −6, which is the constant term, and at x = 1 gives 1 − 6 + 11 − 6, which is 0 again, so x = 1 is also a root.

The first derivative measures the slope of the curve at x. For this polynomial the derivative is 3x² − 12x + 11, which at x = 2 is 12 − 24 + 11, or −1, so the curve is falling gently through the root at x = 2. The second derivative measures how the slope itself is changing: 6x − 12, which at x = 2 is 0, so x = 2 is a point of inflection where the curve changes from bending one way to bending the other.

Derivatives are the heart of calculus, and a derivative calculator works out the derivative function itself. This calculator gives the numbers: the value, the slope and the curvature, all at the x you choose.

The coefficients: what each one does

The leading coefficient, a, sets the overall shape and direction. If a is positive, the cubic rises to the right and falls to the left; if a is negative, it does the opposite. Making a larger stretches the curve vertically, so the peaks and troughs become more extreme, while making it smaller flattens the curve towards the x-axis.

The middle coefficients, b and c, shift the turning points and the roots. Changing b moves the curve sideways and changes where it turns, while changing c tilts the curve and changes its slope at the origin. The constant term, d, is the simplest: it moves the whole curve up or down, and it is the value of the polynomial at x = 0.

Try it in the calculator: keep a, b and c fixed and change d from −6 to 0, and the value at x = 2 rises from 0 to 6, while the derivatives do not change at all, because d disappears when you differentiate. A quadratic equation calculator shows the same ideas on the simpler quadratic case.

A worked example: x³ − 6x² + 11x − 6 at x = 2

Take the polynomial x³ − 6x² + 11x − 6 and evaluate it at x = 2. The terms are 2³ = 8, −6 times 2² = −24, 11 times 2 = 22, and the constant −6. Adding them gives 8 − 24 + 22 − 6 = 0, so the polynomial is zero at x = 2, which means (x − 2) is a factor and 2 is a root.

The first derivative is 3x² − 12x + 11, and at x = 2 it is 12 − 24 + 11 = −1. The slope is −1, so the curve passes through the root heading downwards at 45 degrees. The second derivative is 6x − 12, and at x = 2 it is 0, so the curve is neither bending up nor down at that exact point; it is an inflection point.

The same polynomial at x = 0 gives −6, at x = 1 gives 0, and at x = 3 gives 0, so its three roots are 1, 2 and 3. That is no accident: x³ − 6x² + 11x − 6 factors as (x − 1)(x − 2)(x − 3), and each factor gives one root.

Who uses polynomial calculators

Students use them to check homework in algebra and calculus, where evaluating a polynomial and its derivatives by hand is slow and error-prone. A single sign error in the substitution can change the answer completely, so a quick check against the calculator saves a lot of frustration.

Engineers use polynomials to model curves: the bending of a beam, the path of a projectile, the response of a control system. A cubic is often the simplest curve that fits the data, and its derivatives give the slope and the curvature, which are the quantities the engineer actually needs to design against.

Computer graphics and animation use polynomials to draw smooth curves through points, and data analysts use them to fit trends to measurements. A exponent calculator helps with the powers when you work the substitution by hand.

Interpolation is one of the most practical uses of polynomials: given a few measured points, a polynomial is fitted through them so that values between the measurements can be estimated. A cubic through four points can reproduce a smooth curve closely, which is how weather models fill in the gaps between weather stations and how animators make a character move smoothly between key frames.

Polynomial vs other functions

Polynomials are the simplest functions that can bend, which is why they come first in every maths course. A straight line can only rise or fall steadily, while a cubic can rise, fall and rise again, which is enough to model most real curves over a short range. More complicated functions such as sine, exponential and logarithm can all be approximated by polynomials, which is how calculators compute them internally.

The price of that simplicity is that polynomials grow without bound: a cubic with a positive leading coefficient goes to infinity as x grows, while a sine wave just oscillates. A polynomial fitted to data is reliable only near the data it was fitted to, and it can be wildly wrong outside that range, which is a classic trap in forecasting.

For exact work with roots, factor the polynomial by hand: test x = 1, −1, 2 and −2 first, since a whole-number root of a polynomial with whole-number coefficients must divide the constant term. For checking a single value and its slope, this calculator is the faster tool, because it gives the value and both derivatives in one step.

Common polynomial mistakes

The most common mistake is a sign error in the substitution, especially with negative coefficients and negative values of x. At x = −2, the term −6x² is −24, not +24, because the square removes the sign of x before the coefficient is applied. Write each term out separately and add them at the end, rather than trying to do the whole sum in your head.

Second: forgetting that x² means x times x, not 2 times x. At x = 3, x² is 9, not 6, and x³ is 27, not 9. Third: differentiating term by term incorrectly. The derivative of −6x² is −12x, not −6x, because the power comes down as a multiplier. Fourth: confusing the value with the derivative. P(2) = 0 means the curve crosses the axis at x = 2, while P′(2) = −1 means it crosses heading downwards.

Fifth: assuming a zero value means a root of the same multiplicity. A polynomial can touch the axis without crossing it, which happens when a root repeats, and the derivative is also zero there. Check the derivative: if P(x) = 0 and P′(x) = 0 at the same x, the root is repeated.

A sixth mistake is evaluating a polynomial the slow way, term by term with large powers, when Horner's method is faster and more accurate. Horner's method rewrites x³ − 6x² + 11x − 6 as ((x − 6)x + 11)x − 6, which needs only three multiplications and three additions at x = 2, instead of computing 8, 24 and 22 separately. It also reduces rounding error, which matters when the coefficients are not whole numbers.

How to use this polynomial calculator

Type the four coefficients a, b, c and d for your cubic polynomial, then type the value of x. The polynomial value, the first derivative and the second derivative update instantly. To find a root, try values of x until the value reads zero, then check the derivative to see how the curve behaves there.

To work with a quadratic instead of a cubic, set a to 0 and use b, c and d as the quadratic coefficients. The value and the derivatives are still correct, because the cubic term simply disappears. To work with a straight line, set a and b to 0 as well.

Everything runs in your browser. No sign-up, no account, no data sent anywhere. The calculator rounds results to two decimal places; if you need exact fractions, keep the coefficients as whole numbers and work the substitution by hand, checking each term against the calculator as you go.

Frequently Asked Questions

Substitute the value into every term and add the results. For x³ − 6x² + 11x − 6 at x = 2, the terms are 8, −24, 22 and −6, which add to 0. Work term by term and add at the end, rather than trying to do the whole sum in your head, to avoid sign errors.

The derivative of ax³ + bx² + cx + d is 3ax² + 2bx + c. Each term is differentiated by bringing the power down as a multiplier and reducing the power by one. The derivative gives the slope of the curve at any x, and it is zero at the turning points.

It means x is a root, and the curve crosses or touches the x-axis there. For x³ − 6x² + 11x − 6, the value is zero at x = 1, 2 and 3, which are its three roots, and the polynomial factors as (x − 1)(x − 2)(x − 3).

Yes. Set the x³ coefficient a to 0, and the remaining coefficients b, c and d form the quadratic bx² + cx + d. The value and both derivatives are still correct, because the cubic term disappears. Set a and b to 0 for a straight line.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.