Numerical Analysis/Newton form example

From testwiki
Revision as of 03:22, 2 April 2016 by imported>Dave Braunschweig (Dave Braunschweig moved page Portal:Numerical analysis/Newton form example to Numerical Analysis/Newton form example: Making a resource)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

We'll find the interpolating polynomial passing through the points (1,6)=(x0,y0), (2,2)=(x1,y1), (4,12)=(x2,y2), using the Newton form of the interpolation polynomial.

The Newton form is given by the formula p(x)=j=0kajnj(x), where aj=[y0,,yj] and nj(x)=i=0j1(xxi), with n0(x)=1. We start by finding each nj(x).

n0(x)=1

n1(x)=x1

n2(x)=(x1)(x2)=x23x+2

Next, we find the necessary divided differences. First, [y0]=6, [y1]=2, and [y2]=12. For the next level, we have:

[y0,y1]=2+621=8

[y1,y2]=12242=5

Finally, we can find:

[y0,y1,y2]=5841=1.

Now, we can find the coefficients aj.

a0=[y0]=6

a1=[y0,y1]=8

a2=[y0,y1,y2]=1

Substituting and simplifying, we get our interpolating polynomial:

p(x)=6+8(x1)(x23x+2)=x2+11x16.

Adding a point

Now let's add the point (3,10)=(x3,y3) to our data set and find the new polynomial using the same method. Due to the formula for the Newton form, we only have to add the term a3n3(x) to our previous interpolating polynomial.

First, we have

n3(x)=(x1)(x2)(x4)=x37x2+14x8.

Now to find a3 we calculate some more divided differences.

[y3]=10

[y2,y3]=101234=22

[y1,y2,y3]=22532=17

a3=[y0,,y3]=17+131=9

So, our new interpolating polynomial is:

p(x)=x2+11x16+9(x37x2+14x8)=9x364x2+137x88.