1

I was reading about Horner's method and then I saw the following statement:

If $f(x)$ is a polynomial such that: $p(x)=\sum_{i=0}^{n}a_{i}x^{i}$,and if we want to >compute the value of this polynomial for $x=x_0$ then defining a sequence of constants : $$b_n=a_n$$ $$b_{n-1}=a_{n-1}+b_{n}x_0$$ implies $$p(x_0)=b_0$$

well I understand this but the problem is here:

Also it can be proven that; $$p\left(x\right)=\left(b_{1}+b_{2}x+...+b_{n}x^{n- 1}\right)\left(x-x_{0}\right)+b_{0}$$ I tried to figure it out, but still I don't know how to prove that.

Absurd
  • 369
  • 1
  • 14

1 Answers1

0

This is just algebra. Expand the RHS and collect the like powers of $x$: $$ \begin{align} &b_0 + (b_1+b_2x+\cdots+b_nx^{n-1})(x-x_0)\\ &=b_0 + b_1x + b_2x^2 +\cdots+b_nx^n-(b_1x_0+b_2x_0x+\cdots+b_nx_0x^{n-1})\\ &=\underbrace{(b_0-b_1x_0)}_{a_0}+ \underbrace{(b_1-b_2x_0)}_{a_1}x+ \underbrace{(b_2-b_3x_0)}_{a_2}x^2+\cdots+ \underbrace{(b_{n-1}-b_nx_0)}_{a_{n-1}}x^{n-1}+\underbrace{b_n}_{a_n}x^n\\ \end{align} $$ In the final step we simply plug in the recursive definitions for $b_0,b_1,\ldots,b_n$, obtaining $p(x)$.

grand_chat
  • 38,951