Newton's Divided Difference Interpolation Method
Newton's Divided Difference formula is used for polynomial interpolation. It provides a way to construct a polynomial that passes through a given set of points. The formula is particularly useful when the points are not equally spaced.
f(x)=y0+(x−x0)f[x0,x1]+(x−x0)(x−x1)f[x0,x1,x2]+(x−x0)(x−x1)(x−x2)f[x0,x1,x2,x3] Where:
- f(x) is the interpolating polynomial ,which gives the value at x
- y0 is the initial value corresponding to x0 given.
- f[x0,x1,....,xn] are the divided differences. f[x0,x1...xn]=\racf[x1...xn]−f[x0,x1...xn−1]xn−x0
- The terms (x−x0)(x−x1)… are Basis Polynomials,Here, 𝑥 is the point at which you want to evaluate the interpolating polynomial. xn is one of the known data points
Example of Newton's Divided Difference Interpolation
Given the following data points:
x | y=f(x0) |
---|
0 | 1 |
1 | 3 |
3 | 49 |
4 | 129 |
7 | 813 |
We are tasked with finding f(x) where x=0.3.
Step 1: Calculate the divided differences for the y values.
x | y=f(x0) | 1storder | 2storder | 3storder | 4storder |
---|
0 | 1 | \rac3−11−0=2 | \rac23−23−0=7 | \rac19−74−0=3 | \rac3−37−0=0 |
1 | 3 | \rac49−33−1=23 | \rac80−234−1=19 | \rac37−197−1=3 | |
3 | 49 | \rac129−494−3=80 | \rac228−807−3=37 | | |
4 | 129 | \rac813−1297−4=228 | | | |
7 | 813 | | | | |
Step 2: Apply the Newtons Divided Interpolation formula:
f(x)=y0+(x−x0)f[x0,x1]+(x−x0)(x−x1)f[x0,x1,x2]+(x−x0)(x−x1)(x−x2)f[x0,x1,x2,x3]⋯ Step 3: Substituting the values into the interpolation formula:
f(0.3)=1+(0.3−0)2+(0.3)(0.3−1)7+(0.3)(0.3−1)(0.3−3)3+0 Step 4: After solving the equation, the interpolated value of f(x) at x=0.3 is approximately:
P(0.3)≈1.831 This is the final result of the Newtons Divided Interpolation method.