Calculators/Mathematics/Horner's Scheme

Horner's Scheme

p(x₀) · division by (x − x₀) · quotient and remainder

Horner's Scheme — illustration
Polynomial value (= remainder of division by x−x₀)
p(2) = 1
Horner table (x₀ = 2)
1031
Quotient of p(x) ÷ (x − 2) = x² + 3 remainder 1

Horner's scheme quickly evaluates p(x₀): multiply each running number by x₀ and add the next coefficient. The last value is the remainder = p(x₀) (Bézout's theorem); if it is 0, then x₀ is a root. The earlier numbers are the coefficients of the quotient.

Horner's scheme is a fast way to evaluate a polynomial p(x0)p(x_0) and divide it by the binomial (x−x0)(x-x_0). Instead of computing powers, the polynomial is written as nested multiplication:

anxn+⋯+a0=(…((anx+an−1)x+an−2)x+… )+a0a_nx^n+\dots+a_0=(\dots((a_n x+a_{n-1})x+a_{n-2})x+\dots)+a_0

The running intermediate values are the coefficients of the quotient, and the last one is the remainder, which by Bézout's theorem equals p(x0)p(x_0). If the remainder is 0, then x0x_0 is a root of the polynomial (and (x−x0)(x-x_0) is a factor of it).

The calculator shows the Horner table, the value p(x0)p(x_0) and the quotient. The method is handy for checking roots and lowering the degree of a polynomial.

Examples

p(x)=x³−2x²+3x−5 at x₀=2
→ p(2)=1; quotient x²+3, remainder 1
p(x)=x²−4 at x₀=2
→ p(2)=0 → 2 is a root, quotient x+2

Frequently asked questions

What is Horner's scheme used for?+

For quickly evaluating a polynomial and dividing it by (x−x₀). It is useful for checking whether a given number is a root, and for factoring a polynomial.

What does Bézout's theorem say?+

The remainder of dividing a polynomial p(x) by (x−x₀) equals p(x₀). That is why a remainder of 0 means x₀ is a root, and (x−x₀) divides the polynomial exactly.

Found this calculator useful? Share it.

It's free — send it to a friend who's revising.

Teaching? Embed this calculator on your site.

Free widget — paste it on your school site, blog or notes. It links to the full version.

Teaching a class or tutoring? Guide students in NexTutor →