Gauss Forward Interpolation Method
Gauss Forward Interpolation is used to interpolate a value close to the beginning of the data set. The method uses forward differences to create an interpolation polynomial.
P(x)=yp=y0+p⋅Δy0+2!p(p−1)⋅Δ2y−1+3!(p+1)p(p−1)⋅Δ3y−1+4!(p+1)p(p−1)(p−2)⋅Δ4y−2+⋯ Where:
- yp is the interpolated value at xp
- y0is the initial value corresponding to x0
- Δnyare the forward differences of the function values.
- p=hx−x0,h is the uniform difference between the x values.
- The termsp,(p−1),(p+1)… are the factors involving the relative position of 𝑥 with respect to the data points.
Example of Gauss Forward Interpolation
Given the following data points:
x | y |
---|
2.5 | 24.145 |
3 | 22.043 |
3.5 | 20.225 |
4 | 18.644 |
4.5 | 17.262 |
5 | 16.047 |
We are tasked with finding yp where x=3.75.
Step 1: taking the closest to x as x0=3.5,h=x2−x1
Step 2: Use the formula p=hx−x0.
p=0.53.75−3.5=0.5 Step 3: Calculate the central differences for the y values.
x | p | y | Δy | Δ2y | Δ3y | Δ4y | Δ5y |
---|
2.5 | -1 | 24.145 | -2.102 | | | | |
3 | -0.5 | 22.043 | -1.818 | 0.284 | -0.047 | | |
3.5 | 0 | 20.225 | -1.581 | 0.237 | -0.038 | 0.009 | -0.003 |
4 | 0.5 | 18.644 | -1.382 | 0.199 | -0.032 | 0.006 | |
4.5 | 1 | 17.262 | -1.215 | 0.167 | | | |
5 | 1.5 | 16.047 | | | | | |
Step 4: Apply the Gauss Forward Interpolation formula:
P(x)=yp=y0+p⋅Δy0+2!p(p−1)⋅Δ2y−1+3!(p+1)p(p−1)⋅Δ3y−1+4!(p+1)p(p−1)(p−2)⋅Δ4y−2+⋯ Step 5: Substituting the values into the interpolation formula:
P(3.75)=20.225+(0.5)⋅−1.5810+2!(0.5∗(0.5−1))⋅0.2370+3!((0.5+1)∗0.5∗(0.5−1))⋅−0.0380+4!((0.5+1)∗0.5∗(0.5−1)∗(0.5−2))⋅0.0090+5!((0.5+1)∗(0.5+2)∗0.5∗(0.5−1)∗(0.5−2))⋅−0.0030 Step 6: After solving the equation, the interpolated value of y at x=3.75 is approximately:
P(3.75)≈19.4074 This is the final result of the Gauss Forward Interpolation method.