28

From Zero to Engineer

Horner's method and the remainder theorem

Writing a polynomial in nested form, evaluating it without computing any powers, and the remainder theorem: the remainder on division by x − a equals f(a).

Evaluating a polynomial directly means raising the argument to successive powers, and every one of those multiplications is a chance to slip. The nested form rearranges the computation so that only multiplications by x and additions are left - it is faster and safer, on a calculator and in a program alike. The second half of the lesson shows what it is good for: since the remainder on dividing f(x) by x − a equals f(a), a single evaluation replaces a whole long division.

Nested form of a polynomial

We rewrite the polynomial so that each step is a multiplication by x followed by adding the next coefficient. It is built up starting from the highest power.

f(x)=5x3+2x23x+6f(x) = 5x^{3} + 2x^{2} - 3x + 6
15x+21^{\circ}\quad 5x + 2
4[(5x+2)x3]x4^{\circ}\quad [(5x + 2)x - 3]x
2(5x+2)x2^{\circ}\quad (5x + 2)x
5[(5x+2)x3]x+65^{\circ}\quad [(5x + 2)x - 3]x + 6
3(5x+2)x33^{\circ}\quad (5x + 2)x - 3
f(x)=[(5x+2)x3]x+6f(x) = [(5x + 2)x - 3]x + 6
f(4)=[(54+2)43]4+6=[2243]4+6=854+6=340+6=346f(4) = [(5\cdot 4 + 2)\cdot 4 - 3]\cdot 4 + 6 = [22\cdot 4 - 3]\cdot 4 + 6 = 85\cdot 4 + 6 = 340 + 6 = 346
f(2)=[(52+2)23]2+6=[1223]2+6=212+6=42+6=48f(2) = [(5\cdot 2 + 2)\cdot 2 - 3]\cdot 2 + 6 = [12\cdot 2 - 3]\cdot 2 + 6 = 21\cdot 2 + 6 = 42 + 6 = 48
f(1)=[(5(1)+2)(1)3](1)+6=[33](1)+6=6f(-1) = [(5\cdot(-1) + 2)\cdot(-1) - 3]\cdot(-1) + 6 = [3 - 3]\cdot(-1) + 6 = 6

When a power is missing, write it in with a zero coefficient - otherwise the nesting comes out wrong.

f(x)=3x4+2x24x+5=3x4+0x3+2x24x+5f(x) = 3x^{4} + 2x^{2} - 4x + 5 = 3x^{4} + 0x^{3} + 2x^{2} - 4x + 5
13x+01^{\circ}\quad 3x + 0
5[(3x+0)x+2]x45^{\circ}\quad [(3x + 0)x + 2]x - 4
2(3x+0)x2^{\circ}\quad (3x + 0)x
6{[(3x+0)x+2]x4}x6^{\circ}\quad \{[(3x + 0)x + 2]x - 4\}x
3(3x+0)x+23^{\circ}\quad (3x + 0)x + 2
7{[(3x+0)x+2]x4}x+57^{\circ}\quad \{[(3x + 0)x + 2]x - 4\}x + 5
4[(3x+0)x+2]x4^{\circ}\quad [(3x + 0)x + 2]x
f(x)={[(3x+0)x+2]x4}x+5f(x) = \{[(3x + 0)x + 2]x - 4\}x + 5
f(2)={[(32+0)2+2]24}2+5={1424}2+5=242+5=53f(2) = \{[(3\cdot 2 + 0)\cdot 2 + 2]\cdot 2 - 4\}\cdot 2 + 5 = \{14\cdot 2 - 4\}\cdot 2 + 5 = 24\cdot 2 + 5 = 53

Write the polynomial in nested form and evaluate it for the given value of x.

a)f(x)=4x3+3x2+2x4\text{a)}\quad f(x) = 4x^{3} + 3x^{2} + 2x - 4
x=2x = 2
f(x)=[(4x+3)x+2]x4f(x) = [(4x + 3)x + 2]x - 4
f(2)=[(42+3)2+2]24=[22+2]24=484=44f(2) = [(4\cdot 2 + 3)\cdot 2 + 2]\cdot 2 - 4 = [22 + 2]\cdot 2 - 4 = 48 - 4 = 44
423+322+224=444\cdot 2^{3} + 3\cdot 2^{2} + 2\cdot 2 - 4 = 44
b)f(x)=2x4+x33x2+5x6\text{b)}\quad f(x) = 2x^{4} + x^{3} - 3x^{2} + 5x - 6
x=3x = 3
f(x)={[(2x+1)x3]x+5}x6f(x) = \{[(2x + 1)x - 3]x + 5\}x - 6
f(3)={[(23+1)33]3+5}36={[213]3+5}36=={54+5}36=1776=171\begin{aligned}f(3) &= \{[(2\cdot 3 + 1)\cdot 3 - 3]\cdot 3 + 5\}\cdot 3 - 6 = \{[21 - 3]\cdot 3 + 5\}\cdot 3 - 6 = \\&= \{54 + 5\}\cdot 3 - 6 = 177 - 6 = 171\end{aligned}
234+33332+536=1712\cdot 3^{4} + 3^{3} - 3\cdot 3^{2} + 5\cdot 3 - 6 = 171
c)f(x)=x43x3+2x3\text{c)}\quad f(x) = x^{4} - 3x^{3} + 2x - 3
x=5x = 5
f(x)=x43x3+0x2+2x3={[(x3)x+0]x+2}x3f(x) = x^{4} - 3x^{3} + 0x^{2} + 2x - 3 = \{[(x - 3)x + 0]x + 2\}x - 3
f(5)={[(53)5+0]5+2}53=5253=2603=257f(5) = \{[(5 - 3)\cdot 5 + 0]\cdot 5 + 2\}\cdot 5 - 3 = 52\cdot 5 - 3 = 260 - 3 = 257
54353+253=2575^{4} - 3\cdot 5^{3} + 2\cdot 5 - 3 = 257
d)f(x)=2x45x33x2+4\text{d)}\quad f(x) = 2x^{4} - 5x^{3} - 3x^{2} + 4
x=4x = 4
f(x)=2x45x33x2+0x+4={[(2x5)x3]x+0}x+4f(x) = 2x^{4} - 5x^{3} - 3x^{2} + 0x + 4 = \{[(2x - 5)x - 3]x + 0\}x + 4
f(4)={[(245)43]4+0}4+4=364+4=148f(4) = \{[(2\cdot 4 - 5)\cdot 4 - 3]\cdot 4 + 0\}\cdot 4 + 4 = 36\cdot 4 + 4 = 148
244543342+4=1482\cdot 4^{4} - 5\cdot 4^{3} - 3\cdot 4^{2} + 4 = 148

The remainder theorem

f(x)xa=q(x)+Rxa  /(xa)f(x)=(xa)q(x)+R\begin{aligned}\frac{f(x)}{x - a} &= q(x) + \frac{R}{x - a} \;\Big/ \cdot (x - a) \\f(x) &= (x - a)\cdot q(x) + R\end{aligned}
f(a)=0q(a)+Rf(a)=Rf(a) = 0\cdot q(a) + R \quad\Rightarrow\quad f(a) = R

If the polynomial f(x) is divided by x − a, the remainder is f(a).

Determine the remainder.

(x3+3x213x10):(x3)(x^{3} + 3x^{2} - 13x - 10) : (x - 3)
[(x+3)x13]x10[(x + 3)x - 13]x - 10
f(3)=[(3+3)313]310=1510=5f(3) = [(3 + 3)\cdot 3 - 13]\cdot 3 - 10 = 15 - 10 = 5

Long division gives the same result, only the long way round.

(x3+3x213x10):(x3)=x2+6x+5 r. 5(x^{3} + 3x^{2} - 13x - 10) : (x - 3) = x^{2} + 6x + 5\ \text{r.}\ 5
(x3+3x213x10)=(x3)(x2+6x+5)+5(x^{3} + 3x^{2} - 13x - 10) = (x - 3)(x^{2} + 6x + 5) + 5

Determine the remainder in each of the following cases.

a)(5x34x23x+6):(x2)\text{a)}\quad (5x^{3} - 4x^{2} - 3x + 6) : (x - 2)
[(5x4)x3]x+6[(5x - 4)x - 3]x + 6
f(2)=[(524)23]2+6=18+6=24f(2) = [(5\cdot 2 - 4)\cdot 2 - 3]\cdot 2 + 6 = 18 + 6 = 24
b)(4x33x2+5x3):(x4)\text{b)}\quad (4x^{3} - 3x^{2} + 5x - 3) : (x - 4)
[(4x3)x+5]x3[(4x - 3)x + 5]x - 3
f(4)=[(443)4+5]43=5743=2283=225f(4) = [(4\cdot 4 - 3)\cdot 4 + 5]\cdot 4 - 3 = 57\cdot 4 - 3 = 228 - 3 = 225
c)(x32x23x+5):(x5)\text{c)}\quad (x^{3} - 2x^{2} - 3x + 5) : (x - 5)
[(x2)x3]x+5[(x - 2)x - 3]x + 5
f(5)=[(52)53]5+5=60+5=65f(5) = [(5 - 2)\cdot 5 - 3]\cdot 5 + 5 = 60 + 5 = 65
d)(2x3+3x2x+4):(x+2)\text{d)}\quad (2x^{3} + 3x^{2} - x + 4) : (x + 2)
[(2x+3)x1]x+4[(2x + 3)x - 1]x + 4
f(2)=[(2(2)+3)(2)1](2)+4=2+4=2f(-2) = [(2\cdot(-2) + 3)\cdot(-2) - 1]\cdot(-2) + 4 = -2 + 4 = 2
e)(3x311x2+10x12):(x3)\text{e)}\quad (3x^{3} - 11x^{2} + 10x - 12) : (x - 3)
[(3x11)x+10]x12[(3x - 11)x + 10]x - 12
f(3)=[(3311)3+10]312=1212=0f(3) = [(3\cdot 3 - 11)\cdot 3 + 10]\cdot 3 - 12 = 12 - 12 = 0

A remainder of zero means that x − 3 divides this polynomial exactly.

Frequently asked questions

What is Horner's method?

On writing the polynomial in nested form, e.g. 5x³ + 2x² − 3x + 6 = [(5x + 2)x − 3]x + 6. Only multiplications by x and additions are left, with no powers to compute.

What if a power is missing from the polynomial?

Write it in with a coefficient of zero. In 3x⁴ + 2x² − 4x + 5 the x³ term is missing, so write 3x⁴ + 0x³ + 2x² − 4x + 5 and nest that. Skip this step and the nested form comes out wrong.

What does the remainder theorem say?

That the remainder on dividing f(x) by x − a equals f(a). It follows from f(x) = (x − a)·q(x) + R: substituting x = a kills the first term and leaves f(a) = R.

How do you check whether x − a divides a polynomial exactly?

Evaluate f(a). If it comes out zero, the division is exact. For 3x³ − 11x² + 10x − 12 and the binomial x − 3 we have f(3) = 0, so x − 3 is a factor.

PhiBoard

A modern, interactive board for study and work. Create, teach and collaborate - completely free.

Coming soon to

Google Play

Download on the

App Store

PhiBoard

Tools

Capabilities

Knowledge base

Support

FAQ

Our mission

Contact

More

Our goalFor schoolsNews

Documents

TermsPrivacy policy

office@phiboard.com

Support the project

© 2026 PhiBoard. All rights reserved.

We Use Cookies

To improve the quality of our services, we use cookies. Cookies help us tailor our website to your preferences, analyze how you use the site, and provide a better user experience. By accepting cookies, you consent to their use for optimizing functionality and content on the site.

Horner's method and the remainder theorem | PhiBoard