Lecture 3 - Interpolation
Lecture 3 - Interpolation
Lecture 3 - Interpolation
Interpolation
technique of estimating the value of a function for any intermediate
Interpolating Function
if the function () is not known, then it is very hard to find the exact
values as for 0 , 1 , 2 , ,
() is called the interpolating or smoothing function and any other
Polynomial Interpolation
If () is a polynomial, then () is called the interpolating polynomial
under consideration
the rate of change of figures from one period to another is uniform.
In this course, interpolation will be based on the calculus of finite differences (forward, backward and central).
Central Differences
Forward Differences
or simply difference operator is denoted by
defined as = + ()
where = interval of differencing
or, at =
= + ( )
= +1
hence,
for = 0,1,2, , 1
Second Difference
difference of the first differences
denoted by 2 0 , 2 1 , , 2
hence,
generalizing,
+1 = +1 = 0,1,2,
Backward Differences
denoted by
defined as = ( )
or, at =
= 1
for = , 1, , 1
1 = 1 0 , 2 = 2 1 , , = 1
Second difference
Central Differences
denoted by
defined by = +
first central differences
values
formula:
where:
0 , 1 , , + 1
0 , 1 , , + 1
= = = 0,1,2, ,
Ex:
Find the value of sin42.
40
45
50
55
60
0.6428
0.7071
0.7660
0.8192
0.8660
i
0
1
2
3
4
xi
40
45
50
55
60
yi
0.6428
0.7071
0.766
0.8192
0.866
yi
0.0643
0.0589
0.0531
0.0469
2yi
-0.0054
-0.0058
-0.0062
3yi
-0.0004
-0.0004
4yi
0
Seatwork
formula:
( + 1) 2
+1
= + +
+ + + 1
2!
!
where:
Ex:
Calculate the value of (84) for the data given in the table below:
xi
yi
yi
2yi
3yi
4yi
5yi
0
1
2
3
4
5
40
50
60
70
80
90
204
224
246
270
296
324
20
22
24
26
28
2
2
2
2
0
0
0
0
0
= 84
5 = 90
= 10
=
8490
10
= 0.6
xi
yi
yi
2yi
3yi
4yi
5yi
0
1
2
3
4
5
40
50
60
70
80
90
204
224
246
270
296
324
20
22
24
26
28
2
2
2
2
0
0
0
0
0
From
( + 1) 2
+1
= + +
+ + + 1
2!
!
84 = 324 + 0.6 28 +
0.6 0.6+1
2!
2 = .
Error
NFIF
NBIF
( + 1) distinct points which are not necessarily equally spaced and the corresponding values of the
function are 0 , 1 , , .
Since ( + 1) values of the function are given corresponding to the ( + 1) values of the
the points (0, 20), (1, 12), (3, 20) and (4, 24).
Seatwork
Using Lagranges interpolation formula find a polynomial which passes the points
follows:
The following table gives the values of y corresponding to certain values of . Find
Bessels Formula
Apply Bessels interpolation formula to obtain y25, given that y20 = 2860, y24 = 3167,
We get
Stirlings Formula
1 + 0
2 2
(2 1) 3 2 + 3 1
2 (2 1) 4
0 +
+ 2 +
+
2
2
2
3!
2
4!
(2 1)(2 22 ) 5 3 + 5 2
2 (2 1)(2 22 ) 6
+
+
3 +
5!
2
6!
2 1 2 22 2 32 [2 1 2 ) 21 + 21 (1)
+
(2 1)!
2
2 2 1 2 22 2 32 [2 1 2 )] 2
+
(2)!
1 + 0
2 2
(2 1) 3 2 + 3 1
2 (2 1) 4
0 +
+ 2 +
+
2
2
2
3!
2
4!
(2 1)(2 22 ) 5 3 + 5 2
2 (2 1)(2 22 ) 6
+
+
3 +
5!
2
6!
2 1 2 22 2 32 [2 1 2 ) 21 + 21 (1)
+
(2 1)!
2
2 2 1 2 22 2 32 [2 1 2 )] 2
+
(2)!
Apply Stirlings interpolation formula to obtain y25, given that y20 = 2860, y24 = 3167,
xi
yi
yi
2yi
3yi
-1
20
2860
307
81
88
24
3167
388
169
28
3555
557
32
4112
i
-1
0
1
2
From Stirlings Formula
We get
xi
20
24
28
32
yi
2860
3167
3555
4112
yi
307
388
557
2yi
81
169
3yi
88
Assignment
Use Stirlings Formula to find the value of y when x = 1.63 from the following table
Exercises
Use Stirlings interpolation formula to find y28, given that y20 = 48234, y25 = 47354, y30
= + +
( + 1) 2
+1
+ + + 1
2!
!