ArticleslgStudy

mathematics

Horner's method

Horner's method is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Horner's method rather than just read about it. In short: In mathematics and computer science, Horner's method (or Horner's scheme) is an algorithm for polynomial evaluation. It is named after William George Horner, although it is much older, attributed by Horner to Joseph-Louis Lagrange, and was discovered hundreds of years earlier by Chinese and Persian mathematicians.

Horner's method — main illustration
Horner's method — illustration

Key takeaways

  • Horner's method belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Horner's method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Horner's method from memory before moving on to harder problems.

Reference excerpt

In mathematics and computer science, Horner's method (or Horner's scheme) is an algorithm for polynomial evaluation. It is named after William George Horner, although it is much older, attributed by Horner to Joseph-Louis Lagrange, and was discovered hundreds of years earlier by Chinese and Persian mathematicians. After the introduction of computers, this algorithm became fundamental for computing efficiently with polynomials. The algorithm is based on Horner's rule, in which a polynomial is written in nested form: a0+a1x+a2x2+a3x3+⋯+anxn=a0+x(a1+x(a2+x(a3+⋯+x(an−1+xan)⋯))). This allows the evaluation of a polynomial of degree n with only n multiplications and n additions. This is optimal, as it is impossible to evaluate polynomials of degree n with fewer arithmetic operations when both x and the coefficients a0, ..., an are given as input. The name Horner's method (or Horner–Ruffini method) also refers to a method for approximating the roots of polynomials, described by Horner in 1819. It finds a root digit by digit, by repeatedly transforming the equation so that its roots are diminished by the part of the root already found; Horner's rule gives a convenient tabular scheme for each transformation, and each next digit is estimated by a step of the Newton–Raphson method. It was widely used until computers came into general use around 1970.

Polynomial evaluation and long division Given the polynomialp(x)=∑i=0naixi=a0+a1x+a2x2+a3x3+⋯+anxn,where a0,…,an are constant coefficients, the problem is to evaluate the polynomial at a specific value x0 of x. For this, a new sequence of constants is defined recursively as follows:

Then b0 is the value of p(x0). To see why this works, the polynomial can be written in the form p(x)=a0+x(a1+x(a2+x(a3+⋯+x(an−1+xan)⋯))) . Thus, by iteratively substituting the bi into the expression, p(x0)=a0+x0(a1+x0(a2+⋯+x0(an−1+bnx0)⋯))=a0+x0(a1+x0(a2+⋯+x0bn−1))⋮=a0+x0b1=b0. Similarly, it can be shown that:

This gives a convenient procedure for the polynomial division p(x)/(x−x0): the quotient has coefficients b1,…,bn, and the remainder is b0=p(x0). If x0 is a root of p(x), then b0=0 and x−x0 is a factor of p(x).

Examples Evaluate f(x)=2x3−6x2+2x−1 for x=3. We use synthetic division as follows:

3 2−62−16062025 The entries in the third row are the sum of those in the first two. Each entry in the second row is the product of the x-value (3 in this example) with the third-row entry immediately to the left. The entries in the first row are the coefficients of the polynomial to be evaluated. Then the remainder of f(x) on division by x−3 is 5. But by the polynomial remainder theorem, we know that the remainder is f(3). Thus, f(3)=5. In the notation of the previous section, a3=2,a2=−6,a1=2,a0=−1, and the entries in the third row are b3=2,b2=0,b1=2,b0=5. Synthetic division, which Ruffini published before Horner's paper, is thus the same computation as Horner's method, arranged as a table. By equation 2, the first three entries of the third row are the coefficients of the quotient of f(x) on division by x−3, namely 2x2+2, and the last entry, 5, is the remainder. This makes Horner's method useful for polynomial long division. Divide x3−6x2+11x−6 by x−2:

2 1−611−62−861−430 The quotient is x2−4x+3. Let f1(x)=4x4−6x3+3x−5 and f2(x)=2x−1. Since f2(x)=2(x−0.5), one can divide f1(x) by x−0.5 using Horner's method and then divide the quotient by 2:

0.5 4−603−52−2−114−4−22−4 The quotient on division by x−0.5 is 4x3−4x2−2x+2 and the remainder is −4. Dividing the quotient by 2 gives f1(x)f2(x)=2x3−2x2−x+1−42x−1.

Efficiency Evaluation using the monomial form of a degree n polynomial requires at most n additions and (n2+n)/2 multiplications, if powers are calculated by repeated multiplication and each monomial is evaluated individually. The cost can be reduced to n additions and 2n−1 multiplications by evaluating the powers of x by iteration. If numerical data are represented in terms of digits (or bits), then the naive algorithm also entails storing approximately 2n times the number of bits of x: the evaluated polynomial has approximate magnitude xn, and one must also store xn itself. By contrast, Horner's method requires only n additions and n multiplications, and its storage requirements are only n times the number of bits of x. Alternatively, Horner's method can be computed with n fused multiply–adds. Horner's method can also be extended to evaluate the first k derivatives of the polynomial with kn additions and multiplications. Horner's method is optimal, in the sense that any algorithm to evaluate an arbitrary polynomial must use at least as many operations. Alexander Ostrowski proved in 1954 that the number of additions required is minimal. Victor Pan proved in 1966 that the number of multiplications is minimal. These optimality results assume that the polynomial is evaluated in monomial form and that no preconditioning of the representation is allowed, which makes sense if the polynomial is evaluated only once. However, if preconditioning is allowed and the polynomial is to be evaluated many times, then faster algorithms are possible. They involve a transformation of the representation of the polynomial. In general, a degree-n polynomial can be evaluated using only ⌊n/2⌋+2 multiplications and n additions. Horner's method is also not optimal for the evaluation of matrix polynomials (where x is a matrix but the coefficients are scalars) when scalar multiplications and matrix multiplications are counted separately, as the former are cheaper than the latter.

Parallel evaluation

… excerpt ends here. Continue reading the full article.

Illustrations

Horner's method: Qin Jiushao's algorithm for solving the quartic polynomial equation−x4+763200x2−40642560000=0result: x=840[17]
Qin Jiushao's algorithm for solving the quartic polynomial equation−x4+763200x2−40642560000=0result: x=840[17]

Worked examples

Example 1 — a first encounter with Horner's method

Start with the simplest possible case. Write down what Horner's method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Horner's method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Horner's method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Horner's method

In research
Horner's method appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Horner's method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Horner's method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer algebra, Numerical analysis, Polynomials, so understanding it makes those chapters shorter.
In everyday life
Look for Horner's method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Horner's method” →

How to study Horner's method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Horner's method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Horner's method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Horner's method in simple terms?

In mathematics and computer science, Horner's method (or Horner's scheme) is an algorithm for polynomial evaluation. It is named after William George Horner, although it is much older, attributed by Horner to Joseph-Louis Lagrange, and was discovered hundreds of years earlier by Chinese and Persian…

Why does Horner's method matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Horner's method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Horner's method.

Tags

  • Computer algebra
  • Numerical analysis
  • Polynomials
  • Science and technology of the Song dynasty

Keep exploring