Find the value of a polynomial
Enter up to 31 real coefficients, highest power first. Include zero for every missing power. Use commas between coefficients and a decimal point for fractions.
Polynomial value
2 × 2 − 3 = 1. Then 1 × 2 + 3 = 5.
Why multiply and add?
A polynomial adds powers of x weighted by coefficients. For degree n, P(x) = anxn + … + a1x + a0. Factoring out x repeatedly gives Horner’s rule. Start with the leading coefficient. Multiply by x and add the next coefficient until you reach the constant term.
For P(x) = 2x2 − 3x + 3 at x = 2, the nested form gives (2 × 2 − 3) × 2 + 3 = 5. Direct substitution gives the same result: 2 × 4 − 6 + 3 = 5. The example is dimensionless. For measured quantities each term must have the same output unit.
Compare values on the same curve
Keep the coefficients fixed at 2, −3 and 3. Changing x changes both the square term and the linear term. At a negative input the linear term becomes positive, so substituting −2 gives a larger result than substituting +2.
| Input x | Output P(x) | Direct substitution |
|---|---|---|
| -3 | 30 | 2(-3)² - 3(-3) + 3 |
| -2 | 17 | 2(-2)² - 3(-2) + 3 |
| -1 | 8 | 2(-1)² - 3(-1) + 3 |
| 0 | 3 | 2(0)² - 3(0) + 3 |
| 1 | 2 | 2(1)² - 3(1) + 3 |
| 2 | 5 | 2(2)² - 3(2) + 3 |
| 3 | 12 | 2(3)² - 3(3) + 3 |
| 4 | 23 | 2(4)² - 3(4) + 3 |
Download the Polynomial values table (PDF)
Use a fitted calibration curve
Suppose a calibration gives displacement in millimeters as a function of sensor voltage: d = 0.2V2 + 3V − 1. At 2.5 volts, enter 0.2, 3, −1 with x = 2.5. The first multiply-and-add produces 3.5; the second gives 3.5 × 2.5 − 1 = 7.75 mm. The quadratic coefficient carries mm/V², the linear coefficient mm/V and the offset mm. Use the voltage units and calibration interval specified for the fit.
Questions about polynomial evaluation
Where do I put a missing power?
Give that power a zero coefficient. To enter x³ − 4x + 1, use 1, 0, −4, 1. At x = −3 the result is −27 + 12 + 1 = −14. Leaving out the zero would change the degree and the value.
What does the last coefficient tell me?
It is the value at x = 0. Every term containing a positive power of x vanishes there. This gives a quick independent check of both coefficient order and the vertical intercept.
How do I enter a constant or a zero polynomial?
A single number is enough. For P(x) = 4.2, enter 4.2. Enter 0 for the zero polynomial. Leading zeros leave the value unchanged and do not raise the mathematical degree.
Can I use negative or fractional inputs?
Yes. For x² − 1 at −0.5, enter 1, 0, −1. The square is 0.25 and the result is −0.75. Scientific notation such as 2.5e-3 is also accepted.
How can I check a proposed root?
Evaluate the polynomial at that input. A root gives zero in exact arithmetic. With rounded coefficients or a rounded root, a small residual may remain. Compare its size with the terms you added before interpreting it.
Why can nearby large terms reduce precision?
Rounded intermediate values may lose significant digits when they nearly cancel. The calculator uses floating-point arithmetic. For example, near x = 1, evaluating (x − 1)² in factored form can retain detail that is lost in the expanded form x² − 2x + 1.
Does the plotted curve show all turning points?
The plot samples a window around your input. It shows local behavior. A narrow peak can fall between samples, and turning points farther away lie outside the window. Change x to inspect another neighborhood.
For the definition and notation of a polynomial, see the NIST Digital Library of Mathematical Functions, §1.11.
Related Engineering Calculators
Continue exploring engineering
Find another tool, explore an animated mechanism, or browse resources by subject.