Source codeVideos

Command Palette

Search for a command to run...

Polynomial

Horner's Method

Understanding Horner's Method

Horner's method is a more efficient and simpler way to perform polynomial division, especially when the divisor is linear, like (xc)(x-c). This method can be considered a simplification of long division because it only involves writing coefficients and more concise multiplication and addition operations.

Comparison with Long Division

To see how Horner's method simplifies the process, let's compare the division of P(x)=x37x+8P(x) = x^3 - 7x + 8 (or x3+0x27x+8x^3 + 0x^2 - 7x + 8) by x2x-2 using both methods:

Long Division:

  x2+2x3x2)x3+0x27x+8  (x32x2)2x27x(2x24x)3x+8(3x+6)2 \begin{array}{l} \qquad\quad\space\space x^2 + 2x - 3 \\ x-2\overline{\big)x^3 + 0x^2 - 7x + 8} \\ \quad\space\space \underline{-(x^3 - 2x^2)} \\ \qquad\qquad 2x^2 - 7x \\ \qquad\quad \underline{-(2x^2 - 4x)} \\ \qquad\qquad\qquad -3x + 8 \\ \qquad\qquad\quad \underline{-(-3x + 6)} \\ \qquad\qquad\qquad\qquad\quad 2 \\ \end{array}

Horner's Method:

210782461232 \begin{array}{c|cccc} 2 & 1 & 0 & -7 & 8 \\ & & 2 & 4 & -6 \\ \hline & 1 & 2 & -3 & \boxed{2} \\ \end{array}

Notice how Horner's method only focuses on the coefficients (1,0,7,8)(1, 0, -7, 8) and the value c=2c=2. The bottom row in Horner's method (1,2,3)(1, 2, -3) directly gives the coefficients of the quotient 1x2+2x31x^2 + 2x - 3, and the last number 2\boxed{2} is the remainder.

This is much more concise than writing out all the variables and powers as in long division.

This method can only be directly used if the divisor is a linear polynomial of degree one, i.e., in the form (xc)(x-c) or (axb)(ax-b) (which can be transformed).

Preparing to Use Horner's Method

Before performing division with Horner's method, there are several preparation steps:

  1. Identify Coefficients of the Dividend (P(x)P(x)):

    Write down all coefficients of the polynomial to be divided in order, starting from the term with the highest power down to the constant. Ensure no power is skipped. If a term with a certain power is missing, its coefficient is written as 0.

    Example:

    For P(x)=2x3+5x2+6P(x) = 2x^3 + 5x^2 + 6, the coefficient of the xx term is 0. So, the coefficients we write in order are: 2,5,0,62, 5, 0, 6.

  2. Identify the Value cc from the Divisor (xcx-c):

    Determine the value of cc from the divisor polynomial. Remember, if the divisor is xcx-c, the value used is cc. If the divisor is x+cx+c, it is equivalent to x(c)x - (-c), so the value used is c-c.

    Example:

    If the divisor is x+3x+3, then x(3)x - (-3), so c=3c = -3.

  3. Set Up the Horner Scheme:

    Draw the Horner scheme or diagram. Place the value cc on the left and write the coefficients of P(x)P(x) in the top row.

Division Process with Horner's Method

Here are the steps to perform division using the Horner scheme:

  1. Bring Down the First Coefficient: Bring down the first coefficient (ana_n) directly to the result row (the bottom row).
  2. Multiply and Place: Multiply the coefficient just brought down by the value cc. Place the result under the second coefficient (an1a_{n-1}).
  3. Add: Add the second coefficient (an1a_{n-1}) to the result from the previous step. Write the sum in the result row, directly below it.
  4. Repeat: Repeat step 2 (multiply by cc) and step 3 (add to the coefficient above it) for all remaining coefficients.
  5. Final Result: The last number in the result row is the remainder (SS). The other numbers in the result row, from left to right, are the coefficients of the quotient polynomial (H(x)H(x)), starting from the power n1n-1.

Using Horner's Method

Let's divide P(x)=2x3+5x2+6P(x) = 2x^3 + 5x^2 + 6 by x+3x+3 using both methods.

Long Division:

 2x2x+3x+3)2x3+5x2+0x+6 (2x3+6x2)x2+0x(x23x)3x+6(3x+9)3 \begin{array}{l} \qquad\quad\space 2x^2 - x + 3 \\ x+3\overline{\big)2x^3 + 5x^2 + 0x + 6} \\ \quad\space \underline{-(2x^3 + 6x^2)} \\ \qquad\qquad -x^2 + 0x \\ \qquad\quad \underline{-(-x^2 - 3x)} \\ \qquad\qquad\qquad 3x + 6 \\ \qquad\qquad\quad \underline{-(3x + 9)} \\ \qquad\qquad\qquad\qquad -3 \\ \end{array}

Horner's Method:

  1. Preparation:

    • Coefficients of P(x)P(x): 2,5,02, 5, 0 (for x1x^1), 66 (constant).
    • The divisor is x+3x+3, so x(3)x - (-3), thus c=3c = -3.
  2. Horner Process:

    325066392133 \begin{array}{c|cccc} -3 & 2 & 5 & 0 & 6 \\ & & -6 & 3 & -9 \\ \hline & 2 & -1 & 3 & \boxed{-3} \\ \end{array}
  3. Scheme Explanation:

    • Bring down the number 2 (coefficient of x3x^3).
    • 2×(3)=62 \times (-3) = -6. Place -6 under 5.
    • 5+(6)=15 + (-6) = -1. Write -1 in the result row.
    • 1×(3)=3-1 \times (-3) = 3. Place 3 under 0.
    • 0+3=30 + 3 = 3. Write 3 in the result row.
    • 3×(3)=93 \times (-3) = -9. Place -9 under 6.
    • 6+(9)=36 + (-9) = -3. Write -3 (remainder) in the result row on the far right.
  4. Result:

    • The last number in the result row is 3\boxed{-3}. This is the Remainder (SS).
    • The other numbers are 2, -1, 3. These are the coefficients of the Quotient (H(x)H(x)). Since P(x)P(x) is degree 3, H(x)H(x) is degree 2.
    • Thus, H(x)=2x21x+3=2x2x+3H(x) = 2x^2 - 1x + 3 = 2x^2 - x + 3.
  5. Writing in Division Algorithm Form:

    P(x)=(xc)H(x)+SP(x) = (x-c) H(x) + S
    2x3+5x2+6=(x+3)(2x2x+3)32x^3 + 5x^2 + 6 = (x+3)(2x^2 - x + 3) - 3

Exercise

Find the quotient and remainder from the division of x4+4x^4 + 4 by x1x - 1 using Horner's method and long division.

State the result in the form P(x)=Q(x)H(x)+S(x)P(x) = Q(x) \cdot H(x) + S(x).

Answer Key

  • Dividend: P(x)=x4+4=x4+0x3+0x2+0x+4P(x) = x^4 + 4 = x^4 + 0x^3 + 0x^2 + 0x + 4.
  • Divisor: Q(x)=x1Q(x) = x - 1, so c=1c = 1.

Long Division:

  x3+x2+x+1x1)x4+0x3+0x2+0x+4  (x4x3)x3+0x2(x3x2)x2+0x(x2x)x+4(x1)5 \begin{array}{l} \qquad\quad\space\space x^3 + x^2 + x + 1 \\ x-1\overline{\big)x^4 + 0x^3 + 0x^2 + 0x + 4} \\ \quad\space\space \underline{-(x^4 - x^3)} \\ \qquad\qquad x^3 + 0x^2 \\ \qquad\quad \underline{-(x^3 - x^2)} \\ \qquad\qquad\qquad x^2 + 0x \\ \qquad\qquad\quad \underline{-(x^2 - x)} \\ \qquad\qquad\qquad\qquad x + 4 \\ \qquad\qquad\qquad\quad \underline{-(x - 1)} \\ \qquad\qquad\qquad\qquad\qquad 5 \\ \end{array}

Horner's Method:

110004111111115 \begin{array}{c|ccccc} 1 & 1 & 0 & 0 & 0 & 4 \\ & & 1 & 1 & 1 & 1 \\ \hline & 1 & 1 & 1 & 1 & \boxed{5} \\ \end{array}

Result:

  • Quotient: H(x)=x3+x2+x+1H(x) = x^3 + x^2 + x + 1.
  • Remainder: S=5S = \boxed{5}.

Writing in Division Algorithm Form:

x4+4=(x1)(x3+x2+x+1)+5x^4 + 4 = (x-1)(x^3 + x^2 + x + 1) + 5