The Central Idea
A polynomial
\[ p(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0 \]can be evaluated without separately computing every power of \(x\).
By rewriting the polynomial in nested form,
\[ \boxed{ p(x) = (\cdots((a_nx+a_{n-1})x+a_{n-2})x+\cdots)x+a_0 }, \]we obtain a simple multiply-add algorithm known as Horner's method.
Ordinary Polynomial Evaluation
Consider
\[ p(x)=2x^4-3x^3+5x-7. \]To evaluate at
\[ x=2, \]direct substitution gives
\[ p(2) = 2(2^4)-3(2^3)+5(2)-7. \] \[ = 32-24+10-7. \] \[ \boxed{p(2)=11}. \]Why an Algorithmic Form Helps
Direct substitution is mathematically correct, but repeatedly computing powers can be unnecessary.
Polynomial evaluation appears inside:
- root-finding algorithms;
- graphing software;
- interpolation;
- simulation;
- optimization;
- computer algebra systems;
- large numerical loops.
A compact evaluation rule becomes valuable when the same operation must be performed many times.
Nested Polynomial Form
Start with
\[ p(x)=2x^4-3x^3+0x^2+5x-7. \]Factor out \(x\) repeatedly:
\[ p(x) = x(2x^3-3x^2+0x+5)-7. \]Continue:
\[ = x\left[x(2x^2-3x+0)+5\right]-7. \]Continue again:
\[ \boxed{ p(x) = (((2x-3)x+0)x+5)x-7 }. \]Horner's Method
Horner's method evaluates the nested form one stage at a time.
For coefficients
\[ 2,\quad -3,\quad 0,\quad 5,\quad -7 \]at \(x=2\):
- start with \(2\);
- multiply by \(2\), then add \(-3\);
- multiply by \(2\), then add \(0\);
- multiply by \(2\), then add \(5\);
- multiply by \(2\), then add \(-7\).
Horner Evaluation Step by Step
Begin:
\[ b_0=2. \]Then
\[ b_1=2(2)+(-3)=1, \] \[ b_2=1(2)+0=2, \] \[ b_3=2(2)+5=9, \] \[ b_4=9(2)-7=11. \]Therefore,
\[ \boxed{p(2)=11}. \]The General Horner Recurrence
For
\[ p(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_0, \]evaluated at \(x=c\), define
\[ b_n=a_n \]and then work downward:
\[ \boxed{ b_k=a_k+c\,b_{k+1} }. \]After the constant term is processed,
\[ \boxed{p(c)=b_0}. \]Horner's Method as a Table
For
\[ 2x^4-3x^3+0x^2+5x-7 \]at \(x=2\), the arithmetic can be displayed compactly:
| Coefficient | Running value |
|---|---|
| \(2\) | \(2\) |
| \(-3\) | \(2(2)-3=1\) |
| \(0\) | \(1(2)+0=2\) |
| \(5\) | \(2(2)+5=9\) |
| \(-7\) | \(9(2)-7=11\) |
Missing Powers Still Need Coefficients
Consider
\[ p(x)=x^4-5x^2+4. \]The complete coefficient list is
\[ \boxed{ 1,\quad0,\quad-5,\quad0,\quad4 }. \]The zeros correspond to the missing \(x^3\) and \(x\) terms.
Omitting those placeholders shifts the entire algorithm and produces an incorrect result.
Example with Missing Terms
Evaluate
\[ p(x)=x^4-5x^2+4 \]at \(x=2\).
Using coefficients
\[ 1,\quad0,\quad-5,\quad0,\quad4: \] \[ 1 \to 2 \to -1 \to -2 \to 0. \]Therefore,
\[ \boxed{p(2)=0}. \]Computational Efficiency
A degree-\(n\) polynomial in Horner form requires approximately
\[ n \]multiplications and
\[ n \]additions.
It also avoids explicitly storing or recomputing
\[ x^2,\quad x^3,\quad\ldots,\quad x^n. \]This makes Horner's method especially natural for repeated numerical evaluation.
Direct Evaluation Can Also Be Organized Efficiently
Horner's method is not the only way to evaluate a polynomial in linear computational time.
Powers can also be built incrementally and reused.
Horner's method remains attractive because it uses a particularly compact sequence of multiply-add operations and does not require explicit power values.
What Is Synthetic Division?
Synthetic division is a compact algorithm for dividing a polynomial by a linear divisor of the form
\[ \boxed{x-c}. \]It operates directly on the coefficients rather than writing every power of \(x\) during the arithmetic.
The Structure of Polynomial Division
Dividing \(p(x)\) by \(x-c\) gives
\[ \boxed{ p(x) = (x-c)q(x)+r }, \]where
\[ q(x) \]is the quotient and \(r\) is a constant remainder because the divisor has degree \(1\).
Example: Divide by \(x-2\)
Divide
\[ p(x)=2x^4-3x^3+5x-7 \]by
\[ x-2. \]Include the missing \(x^2\) coefficient:
\[ 2,\quad-3,\quad0,\quad5,\quad-7. \]Since the divisor is \(x-2\), use
\[ \boxed{c=2}. \]Synthetic Division Step by Step
Bring down the leading coefficient:
\[ 2. \]Multiply by \(2\) and add:
\[ -3+2(2)=1. \]Continue:
\[ 0+2(1)=2, \] \[ 5+2(2)=9, \] \[ -7+2(9)=11. \]Interpreting the Synthetic Row
The resulting numbers are
\[ \boxed{ 2,\quad1,\quad2,\quad9,\quad11 }. \]The first four numbers are quotient coefficients:
\[ q(x)=2x^3+x^2+2x+9. \]The final number is the remainder:
\[ r=11. \]The Division Identity
Therefore,
\[ \boxed{ 2x^4-3x^3+5x-7 = (x-2)(2x^3+x^2+2x+9)+11 }. \]Expanding the right side recovers the original polynomial.
Horner's Method and Synthetic Division Use the Same Arithmetic
Notice that the synthetic division row
\[ 2,\quad1,\quad2,\quad9,\quad11 \]is exactly the same sequence generated by Horner evaluation at
\[ x=2. \]The last value is
\[ \boxed{p(2)=11}, \]which is also the remainder after division by \(x-2\).
The Remainder Theorem
If a polynomial \(p(x)\) is divided by
\[ x-c, \]then the remainder is
\[ \boxed{p(c)}. \]Synthetic division therefore performs two jobs at once:
- it computes the quotient coefficients;
- it evaluates the polynomial at \(c\).
The Factor Theorem
If
\[ p(c)=0, \]then the remainder from division by \(x-c\) is zero.
Therefore,
\[ \boxed{ p(c)=0 \iff x-c\text{ is a factor of }p(x) }. \]Example: Testing a Factor
Consider
\[ p(x)=x^3+2x^2-5x-6. \]Test whether
\[ x+3 \]is a factor.
Since
\[ x+3=x-(-3), \]use
\[ \boxed{c=-3}. \]Synthetic Division by \(x+3\)
Coefficients:
\[ 1,\quad2,\quad-5,\quad-6. \]Synthetic steps with \(c=-3\) give
\[ 1,\quad-1,\quad-2,\quad0. \]Therefore,
\[ \boxed{ p(x) = (x+3)(x^2-x-2) }. \]The zero remainder confirms that \(x+3\) is a factor.
Sign Convention Matters
Synthetic division uses the number \(c\) from
\[ x-c. \]Therefore:
\[ x-4 \quad\Rightarrow\quad c=4, \]while
\[ x+4 = x-(-4) \quad\Rightarrow\quad c=-4. \]Using the wrong sign is one of the most common synthetic-division errors.
Synthetic Division with Missing Terms
Divide
\[ p(x)=x^4-5x^2+4 \]by
\[ x-1. \]Use the complete coefficient list:
\[ 1,\quad0,\quad-5,\quad0,\quad4. \]With \(c=1\), the synthetic row becomes
\[ \boxed{ 1,\quad1,\quad-4,\quad-4,\quad0 }. \]Interpreting the Missing-Term Example
The quotient is
\[ x^3+x^2-4x-4 \]and the remainder is \(0\).
Therefore,
\[ \boxed{ x^4-5x^2+4 = (x-1)(x^3+x^2-4x-4) }. \]Repeated Synthetic Division
Synthetic division can be repeated when a factor appears more than once.
Consider
\[ p(x)=x^3-3x^2+3x-1. \]Dividing by
\[ x-1 \]produces a zero remainder and quotient
\[ x^2-2x+1. \]Testing Multiplicity
Divide the quotient again by
\[ x-1. \]The new quotient is
\[ x-1 \]with remainder \(0\).
Divide once more:
\[ 1 \]with remainder \(0\).
Therefore,
\[ \boxed{ p(x)=(x-1)^3 }. \]Synthetic Division as Deflation
Once a root \(c\) is known, dividing by
\[ x-c \]reduces the degree of the polynomial by one.
This process is often called deflation.
Deflation can simplify the search for additional roots.
Example: Deflating after Finding a Root
Suppose
\[ p(x)=x^3-6x^2+11x-6 \]and we know
\[ p(1)=0. \]Synthetic division by
\[ x-1 \]gives
\[ x^2-5x+6. \]Therefore,
\[ p(x) = (x-1)(x^2-5x+6). \]Continue the Deflation
Factor the quadratic:
\[ x^2-5x+6 = (x-2)(x-3). \]Thus,
\[ \boxed{ p(x) = (x-1)(x-2)(x-3) }. \]One known root reduced the remaining problem to a lower-degree polynomial.
Approximate Roots and Deflation
Deflation requires more care when the root is only approximate.
If
\[ c\approx r \]rather than \(c=r\) exactly, then synthetic division may leave a small nonzero remainder and slightly perturb the quotient coefficients.
Repeated numerical deflation can accumulate error.
Polynomial Evaluation inside Newton's Method
Newton's method for a polynomial requires repeated evaluation of
\[ p(x_n) \]and
\[ p'(x_n). \]Horner-style algorithms can make these repeated evaluations efficient.
This is an important example of one numerical algorithm being embedded inside another.
Evaluating a Polynomial and Its Derivative
Extended Horner schemes can compute
\[ p(c) \]and
\[ p'(c) \]using related nested recurrences.
The main lesson here is conceptual: polynomial structure can be exploited to avoid unnecessary repeated work.
Evaluation at Many Points
If the same polynomial must be evaluated at many inputs,
\[ x_1,\quad x_2,\quad\ldots,\quad x_m, \]Horner's method can be applied independently at each point.
This is common when constructing:
- numerical tables;
- graphs;
- root searches;
- interpolation checks;
- simulation outputs.
Coefficient Representation
Computationally, a polynomial can be stored as a coefficient list:
\[ \boxed{ [a_n,a_{n-1},\ldots,a_1,a_0] }. \]For example,
\[ 2x^4-3x^3+5x-7 \]becomes
\[ \boxed{ [2,-3,0,5,-7] }. \]Why Coefficient Lists Are Useful
Coefficient lists make it easy for software to:
- evaluate polynomials;
- perform synthetic division;
- differentiate symbolically;
- add and subtract polynomials;
- compare degrees;
- store missing terms explicitly as zeros.
Horner's Method in Pseudocode
value = leading_coefficient
for each remaining coefficient a
value = value * x + a
return value
The loop directly mirrors the nested polynomial form.
Example of Horner Pseudocode
For coefficients
\[ [2,-3,0,5,-7] \]and
\[ x=2, \]the running value becomes
\[ 2\to1\to2\to9\to11. \]The returned value is
\[ \boxed{11}. \]Synthetic Division in Pseudocode
bring down the leading coefficient
for each remaining coefficient a
multiply the previous result by c
add a
record the new result
last result = remainder
all earlier results = quotient coefficients
A Programmatic View of Synthetic Division
If the coefficient list is
\[ [a_n,a_{n-1},\ldots,a_0], \]then the synthetic algorithm generates
\[ [b_{n-1},b_{n-2},\ldots,b_0,r]. \]The quotient is
\[ b_{n-1}x^{n-1}+\cdots+b_1x+b_0, \]and the final value \(r\) is the remainder.
Verification by Reconstruction
After synthetic division, verify the identity
\[ \boxed{ p(x)=(x-c)q(x)+r }. \]Expanding the right side should reproduce the original polynomial.
This is the strongest direct algebraic check on the quotient and remainder.
Verification by Evaluation
A second check is the Remainder Theorem:
\[ \boxed{r=p(c)}. \]If synthetic division gives remainder \(r\), independently evaluate the polynomial at \(c\).
The two values should match.
Example: Double Verification
For
\[ p(x)=2x^4-3x^3+5x-7 \]divided by
\[ x-2, \]synthetic division gives remainder
\[ 11. \]Direct evaluation also gives
\[ p(2)=11. \]The two methods agree.
Synthetic Division versus Polynomial Long Division
Polynomial long division is general and can divide by higher-degree polynomials.
Standard synthetic division is specialized to divisors of the form
\[ x-c. \]Synthetic division is shorter because the predictable powers and repeated subtraction structure have been compressed into coefficient arithmetic.
When Long Division Is Still Needed
Standard synthetic division does not directly replace long division for a divisor such as
\[ x^2+1 \]or
\[ 2x^2-3x+4. \]More generalized synthetic schemes exist, but ordinary polynomial long division remains the universal elementary method.
Exact Arithmetic versus Floating-Point Arithmetic
With integer or rational coefficients and exact \(c\), synthetic division can often be carried out exactly.
With decimal or floating-point inputs, the running values may contain roundoff error.
This distinction matters when a remainder is expected to be very close to zero.
A Tiny Remainder Is Not Automatically Zero
Suppose numerical synthetic division gives
\[ r=2.4\times10^{-12}. \]In floating-point computation, this may represent accumulated roundoff.
Whether it should be treated as effectively zero depends on the scale, precision, and tolerance of the problem.
Scaling and Large Coefficients
Very large or very small coefficients can increase numerical sensitivity.
For example, evaluating
\[ 10^{20}x^5-10^{-15}x+1 \]involves quantities on dramatically different scales.
Numerical implementations may need careful scaling and precision control.
Common Error: Forgetting Zero Coefficients
For
\[ x^4-5x^2+4, \]do not use
\[ 1,-5,4. \]Use
\[ \boxed{1,0,-5,0,4}. \]Every power from the highest degree down to the constant term needs a coefficient position.
Common Error: Using the Wrong Synthetic Number
Dividing by
\[ x+5 \]means using
\[ \boxed{c=-5}, \]because
\[ x+5=x-(-5). \]Common Error: Treating Every Synthetic Entry as a Quotient Coefficient
The final synthetic value is the remainder.
If a degree-\(4\) polynomial is divided by a linear factor, the quotient has degree \(3\).
Therefore, only the first four synthetic results are quotient coefficients; the fifth is the remainder.
Common Error: Losing the Degree Shift
Dividing a degree-\(n\) polynomial by a nonzero linear factor produces a quotient of degree
\[ \boxed{n-1}. \]The first synthetic result therefore becomes the coefficient of
\[ x^{n-1}, \]not \(x^n\).
Common Error: Assuming a Small Remainder Proves an Exact Factor
In exact arithmetic,
\[ r=0 \]proves that \(x-c\) divides the polynomial.
In approximate arithmetic, a small nonzero remainder may indicate a nearby root rather than an exact one.
Interpret the result according to the numerical context.
Common Error: Recomputing Powers Unnecessarily
In repeated numerical evaluation, computing
\[ x^2,\quad x^3,\quad x^4,\ldots \]independently at every step can duplicate work.
Horner's method avoids this by using one running value.
Common Error: Skipping Verification
Synthetic division is compact, which makes transcription mistakes easy to overlook.
Verify using at least one of:
- reconstruction \(p(x)=(x-c)q(x)+r\);
- the Remainder Theorem \(r=p(c)\);
- independent polynomial evaluation.
A Reliable Horner Workflow
- Write the polynomial in descending powers.
- Insert zero coefficients for missing powers.
- Record the coefficient list.
- Bring down the leading coefficient.
- Multiply the running value by the input \(c\).
- Add the next coefficient.
- Repeat through the constant term.
- Interpret the final running value as \(p(c)\).
A Reliable Synthetic-Division Workflow
- Write the divisor as \(x-c\).
- Use \(c\), including its correct sign.
- Write the polynomial in descending powers.
- Insert zero coefficients for missing powers.
- Bring down the leading coefficient.
- Multiply by \(c\) and add the next coefficient.
- Repeat through the constant term.
- Use all but the final result as quotient coefficients.
- Interpret the final result as the remainder.
- Verify with reconstruction or the Remainder Theorem.
Example: Full Horner Workflow
Evaluate
\[ p(x)=3x^4-2x^3+5x-1 \]at
\[ x=-2. \]Use coefficients
\[ 3,\quad-2,\quad0,\quad5,\quad-1. \]Horner steps:
\[ 3 \to -8 \to 16 \to -27 \to 53. \]Therefore,
\[ \boxed{p(-2)=53}. \]Verify the Horner Example
Direct substitution gives
\[ 3(-2)^4-2(-2)^3+5(-2)-1. \] \[ = 48+16-10-1. \] \[ = 53. \]This confirms
\[ \boxed{p(-2)=53}. \]Example: Full Synthetic-Division Workflow
Divide
\[ p(x)=x^4+2x^3-7x^2-8x+12 \]by
\[ x-2. \]Use
\[ c=2 \]and coefficients
\[ 1,\quad2,\quad-7,\quad-8,\quad12. \]Complete the Synthetic Division
The synthetic steps produce
\[ 1,\quad4,\quad1,\quad-6,\quad0. \]Therefore,
\[ q(x)=x^3+4x^2+x-6 \]and
\[ r=0. \]Thus,
\[ \boxed{ x^4+2x^3-7x^2-8x+12 = (x-2)(x^3+4x^2+x-6) }. \]Practice 1: Horner Evaluation
Use Horner's method to evaluate
\[ p(x)=x^3-4x^2+2x+5 \]at
\[ x=3. \]Practice 2: Missing Coefficients
Write the coefficient list for
\[ p(x)=2x^5-7x^2+4. \]Practice 3: Synthetic Number
What number should be used in synthetic division for the divisor
\[ x+6? \]Practice 4: Synthetic Division
Divide
\[ x^3-6x^2+11x-6 \]by
\[ x-1. \]Practice 5: Remainder Theorem
If synthetic division of \(p(x)\) by
\[ x-4 \]gives remainder \(7\), what is \(p(4)\)?
Practice 6: Factor Test
Suppose
\[ p(-2)=0. \]What linear factor is guaranteed by the Factor Theorem?
Practice 7: Quotient Degree
A degree-\(7\) polynomial is divided by a nonzero linear factor.
What is the degree of the quotient?
Practice 8: Repeated Factor
A polynomial divides evenly by \(x-3\), and the quotient also divides evenly by \(x-3\).
What can you conclude about the multiplicity of the root \(x=3\)?
Practice 9: Verify a Remainder
For
\[ p(x)=2x^3-x+4, \]find the remainder when dividing by
\[ x-2 \]by evaluating \(p(2)\).
Practice 10: Algorithmic Advantage
State one computational advantage of Horner's method over evaluating every power separately.
Practice Answers
Practice 1
Coefficients:
\[ 1,\quad-4,\quad2,\quad5. \]At \(x=3\):
\[ 1 \to -1 \to -1 \to 2. \]Therefore,
\[ \boxed{p(3)=2}. \]Practice 2
Include zeros for the missing powers:
\[ \boxed{ [2,0,0,-7,0,4] }. \]Practice 3
Since
\[ x+6=x-(-6), \]use
\[ \boxed{-6}. \]Practice 4
Use coefficients
\[ 1,\quad-6,\quad11,\quad-6 \]with \(c=1\).
The synthetic row is
\[ 1,\quad-5,\quad6,\quad0. \]Therefore,
\[ \boxed{ x^3-6x^2+11x-6 = (x-1)(x^2-5x+6) }. \]Practice 5
By the Remainder Theorem,
\[ \boxed{p(4)=7}. \]Practice 6
If
\[ p(-2)=0, \]then
\[ \boxed{x+2} \]is a factor.
Practice 7
Dividing degree \(7\) by degree \(1\) gives quotient degree
\[ \boxed{6}. \]Practice 8
The factor \(x-3\) occurs at least twice.
Therefore, \(x=3\) has multiplicity at least
\[ \boxed{2}. \]Practice 9
\[ p(2) = 2(2^3)-2+4. \] \[ = 16-2+4. \] \[ \boxed{18}. \]Therefore, the remainder is \(18\).
Practice 10
Horner's method uses a compact sequence of multiply-add steps and avoids separately computing or storing each power of the input.
What to Remember
- Horner's method evaluates a polynomial through nested multiplication and addition.
- Missing powers require zero coefficients.
- A degree-\(n\) Horner evaluation uses approximately \(n\) multiplications and \(n\) additions.
- Standard synthetic division applies to divisors of the form \(x-c\).
- The final synthetic value is the remainder; earlier values are quotient coefficients.
- Horner evaluation and synthetic division use the same underlying multiply-add recurrence.
- The remainder from division by \(x-c\) equals \(p(c)\).
- A zero remainder means \(x-c\) is a factor.
- Repeated synthetic division can expose multiplicity and reduce polynomial degree.
- Verification should use reconstruction, evaluation, or both.
Where We Go Next
Horner's method and synthetic division show how mathematical structure can be translated into efficient computational procedures. The same principle applies when calculations are delegated to calculators, spreadsheets, and computer-algebra systems.
The next lesson, Calculator, Spreadsheet, and Computer-Algebra Methods, examines how numerical and symbolic technologies carry out repeated computation, how results should be interpreted, and how technology can be used without surrendering mathematical verification.