Professional Documents
Culture Documents
Lectures On Numerical Analysis
Lectures On Numerical Analysis
Lectures On Numerical Analysis
2022
2
CONTENTS
The underlying theory of numerical analysis is based on the principles of …nite di¤erences
which in itself requires a detailed study. If f is a function from x into y in the domain
(a; b) such that y = f (x) ; for each value of x in (a; b) the value of the function f (x) can
be determined. However, if the function f is not known speci…cally, even then the values
of f (x) can be found with the help of calculus of …nite di¤erences provided some of the
values of f (x) are known. Thus the calculus of …nite di¤erences deals with the changes
8 Finite Di¤erence Operators
The polynomial an xn + an 1 xn 1
+ ::::+ a1 x+ a0 is a rational integral function of x where
an ; an 1 ; :::; a0 are constants and the indices are positive integers in which n is the greatest.
are given as
x: 0 1 2 3 4 5 6
f (x) : 2 4 8 14 22 32 44
If from each value of f (x), the previous functional value is subtracted, the di¤erences
Forward Di¤erence table 9
are :
2; 4; 6; 8; 10; 12 (a)
If the process of subtraction is related in ( a) in the same way, the new di¤erences are:
2; 2; 2; 2; 2
De…nition 2 The di¤erence between consecutive values of arguments is called the interval
of di¤erencing.
0 2
1 4 2
2 8 2
3 14 2
4 22 2
10
5 32 2
12
6 44
Table 1.1
Forward Di¤erence table 11
In table 1.1, the numbers in columns (i) 0,1,2,3,4,5,6 are the arguments. Here, the
De…nition 4 If the interval of di¤erencing be h and the …rst argument be a; then subse-
Let f (x) be denoted by yx for the sake of convenience. The entries corresponding to
yx = yx+h yx
2
ya = ya+h ya ;
2
ya+h = ya+2h ya+h ; :::
2
T hen ya+nh = ya+(n+1)h ya+nh
3 3 3 3
ya ; ya+h ; ya+2h ; ya+3h ; :::
4 4 4 4
ya ; ya+h ; ya+2h ; ya+3h ; :::
and so on.
n n n n
ya ; ya+h ; ya+2h ; ya+3h ; :::
14 Finite Di¤erence Operators
In Table 1.1, column (iii) and (iv) indicate …rst and second di¤erences.
2 3
De…nition 5 The di¤erences ya ; ya ; ya ; ::: are known as leading di¤erences.
De…nition 6 A table showing the diagonal forward di¤erences is called the diagonal for-
y0 ; y1 ; y2 ; :::
0; 1; 2; ::::
of a function f; the diagonal forward di¤erences table may be obtained as table 1.2:
Forward Di¤erence table 15
2 3 4
x y y y y y
0 y0
y0 =
y1 y0
2
y0 =
1 y1
y1 y0
3
y1 = y0 =
2 2
y2 y1 y1 y0
2 4
y1 = y0 =
2 y2
3 3
y2 y1 y1 y0
3
y2 = y1 =
2 2
y3 y2 y2 y1
2
y2 =
3 y3
y3 y2
y3 =
y4 y3
16 Finite Di¤erence Operators
For dealing the numerical problems on interpolation, di¤erentiation, etc., the di¤er-
ence table is needed. In most of the cases diagonal forward di¤erence table is used but in
some cases more compact form of table called horizontal forward di¤erence table is prefer-
1 yi = yi yi 1
n yi = n 1 yi n 1 yi 1
Example 7 Construct diagonal forward di¤erence and horizontal forward di¤erence ta-
Forward Di¤erence table 17
x y 1y 2y 3y 4 y
0 y0
1 y1 =
1 y1
y1 y0
1 y2 = 2 y2 =
2 y2
y2 y1 1 y2 1 y1
1 y3 = 2 y3 = 3 y3 =
3 y3
y3 y2 1 y3 1 y2 2 y3 2 y2
1 y4 = 2 y4 = 3 y4 = 4 y4 =
4 y4
y4 y3 1 y4 1 y3 2 y4 2 y3 3 y4 3 y3
bles for
y = x4 + 5x + 2; when x = 1; 2; ::::; 7
Solution:
Diagonal forward di¤erence table and horizontal di¤erence table are as follows
To …nd the value of y8 consider the last diagonal row of diagonal di¤erence table or last
horizontal of horizontal di¤erence table. Fourth di¤erences are constant and each is 24
i:e 4 y7 = 24
then 4 y8 is also 24
Forward Di¤erence table 19
2 3 4
x y y y y y
1 8
y1 = 20
2
2 28 y1 = 50
3
y2 = 70 y1 = 60
2 4
3 98 y2 = 110 y1 = 24
3
y3 = 180 y2 = 84
2 4
4 278 y3 = 194 y2 = 24
3
y4 = 374 y3 = 108
2 4
5 652 y5 = 302 y3 = 24
3
y5 = 676 y4 = 132
2
6 1328 y6 = 434
y6 = 1110
7 2438
x y 1y 2 y 3 y 4 y
1 8
2 28 1 y2 = 20
3 98 1 y3 = 70 2 y2 = 50
y8 = 1 y8 = 2 y8 = 3 y8 =
3 y8 is obtained by adding 24 to 3 y7
3 y8 = 132 + 24 = 156
2 y8 is obtained by adding 24 to 2 y7
i:e 2 y8 = 2 y7 + 156
= 434 + 156
= 590
Similarly,
1 y8 = 1 y7 + 590
= 1110 + 590
= 1700
22 Finite Di¤erence Operators
y8 = y7 + 1700
= 2438 + 1700
= 4138
In order to …nd the relation between diagonal and horizontal di¤erences, we compare
the di¤erences in table (1.2) and (1.3) or table in Example (7), and observe that :
1 y1 = y1 y0 = y0
then,
1 y1 = y0
1 y2 = y2 y1 = y1
Forward Di¤erence table 23
then,
1 y2 = y1
::::::::
1 yi = yi 1 (1.1)
2 y2 = 1 y2 1 y1
= (y2 y1 ) (y1 y0 )
= y2 2y1 + y0
24 Finite Di¤erence Operators
2
y0 = y1 y0
= (y2 y1 ) (y1 y0 )
= y2 2y1 + y0
then,
2
2 y2 = y0 (1.2)
Similarly
2
2 y3 = y1
::::...
2
2 yi = yi 2
Backward Di¤erences 25
3
3 yi = yi 3 (1.3)
::::::
n
n yi = yi n:
In section (1.1), we have seen that the forward di¤erences are de…ned by the points
f (x) = f (x + h) f (x) :
26 Finite Di¤erence Operators
But the backward di¤erence (the nabla) operator r is de…ned by a point to the left of x
i.e.
rf (x) = f (x) f (x h) :
Thus if
ya h; ya ; ya+h ; :::
a h; a; a + h; :::
respectively for the function y = f (x), then …rst backward di¤erences are
rya = ya ya h;
rya+h = ya+h ya
::::::::::
Backward Di¤erences 27
then,
::::::::::
then,
Let y0 ; y1 ; y2 ; ::: be the functional values of the function f such that y = f (x) for
ference table, here also the exponents are being replaced by subscripts. Thus, the table
a)
r1 yi = ryi+1
Backward Di¤erences 29
x y ry r2 y r3 y r4 y
0 y0
ry1 = y1 y0
r2 y2 =
1 y1
ry2 ry1
r3 y3 =
ry2 = y2 y1
r2 y3 r2 y2
r2 y3 = r4 y4 =
2 y2
ry3 ry2 r3 y4 r3 y3
r3 y4 =
ry3 = y3 y2
2
y4 r2 y3
r2 y4 =
3 y3
ry4 ry3
ry4 = y4 y3
4 y4
x y r1 y r2 y r3 y r4 y
r1 y0 = r2 y0 = r3 y0 = r4 y0 =
0 y0 y1 y0 ry2 ry1 r2 y3 r2 y2 r3 y4 r3 y3
= ry1 = r2 y2 = r3 y3 = r4 y4
r1 y1 = r2 y1 = r3 y1 =
1 y1 y2 y1 ry3 ry2 r2 y4 r2 y3
= ry2 = r2 y3 = r3 y4
r1 y2 = r2 y2 =
2 y2 y3 y2 ry4 ry3
= ry3 = r2 y4
r1 y3 =
3 y3 y4 y3
= ry4
Backward Di¤erences 31
b)
r2 y0 = r2 y2 ; r3 y1 = r3 y4 ; :::
r2 yi = r2 yi+2
Similarly
r3 yi = r3 yi+3
::::::::
In general
rn yi = rn yi+n :
15 ; 20 ; 25 ; 30 and …nd the value of sin 10 from the table. It is being assumed that
x y r1 y r2 y r3 y
25 0.4226 0:0774
30 0:5000
Backward Di¤erences 33
r3 y10 = 0:0006
= 0:0026 ( 0006)
= 0:0020
= 0:0832 ( 0:0020)
= 0:0852
34 Finite Di¤erence Operators
= 0:2588 ( 0:0852)
= 0:1736
then,
sin 10 = 0:1736
c = 0:
Proof:
c=c c=0
Properties of Operator 35
then,
c=0
c=c :
Proof:
= c [f (x + h) f (x)]
= c f (x)
Then,
c=c :
36 Finite Di¤erence Operators
(f + g) = f+ g:
Proof:
= [f (x + h) f (x)] + [g (x + h) g (x)]
= f (x) + g (x) :
(f + g + h + :::) = f+ g+ h + :::
4. If a; b are constants,
(af + bg) = a f + b g:
Properties of Operator 37
Proof:
2
5. = :
2
Here f (x) indicate that f (x) is operated upon by twice but it does not
mean :
In general
m n m+n
( )= :
Proof:
= f (x + h) g (x + h) f (x + h) g (x)
= f (x + h) [g (x + h) g (x)]
+g (x) [f (x + h) f (x)]
Proof.
f (x) f (x + h) f (x)
=
g (x) g (x + h) g (x)
f (x + h) g (x) f (x) g (x + h)
=
g (x + h) g (x)
n cx+d n
b) a = acx+d ach 1 :
2 cx+d
a = acx+d ach 1
= ach 1 acx+d
2
= ach 1 acx+d
:::::::::
n cx+d n
a = ach 1 acx+d
Solution:
x2 + sin x = x2 + sin x
h h+
= (x + h)2 x2 + 2 sin sin x +
2 2
h h+
= 2xh + h2 + 2 sin sin x +
2 2
Example 10 Evaluate n
sin2 x:
Solution:
1
sin2 x = (1 cos 2x)
2
1 1
= cos 2x
2 2
42 Finite Di¤erence Operators
Then,
n 1 1
sin2 x = n
cos 2x
2 2
n 1 1 n
= cos 2x
2 2
" #
2
1 2h 2h +
= 0 2 sin cos 2x + n
2 2 2
n
= 2n 1
sinn h cos 2x + nh + :
2
Ef (x) = f (x + h) or
Eya = ya+h:
The Operator E 43
We know
f (x) = f (x + h) f (x)
f (x + h) = f (x) + f (x)
Ef (x) = f (x + h)
= (1 + ) f (x)
So
E (1 + ) or E 1
44 Finite Di¤erence Operators
Further
:::::::::::::
Further
ya+nh = E n ya = (1 + )n ya
n n 2 n r n
= 1+ + + ::: + + ::: + ya
1 2 r
Thus
n n 2 n r n
ya+nh = ya + ya + ya + ::: + ya + ::: + ya :
1 2 r
The Operator E 45
1 f (x) = f (x)
Notation 12
E.G.
E 2 x2 = E Ex2
= E (x + h)2 = (x + 2h)2
Thus
Proof:
E [f (x) + g (x)] = f (x + h) + g (x + h)
= Ef (x) + Eg (x)
E [f + g] Ef + Eg
In general
E [f + g + k + :::] Ef + Eg + Ek + ::::
The Operator E 47
Proof:
Ec cE:
Proof:
E m [E n f (x)] = E m f (x + nh)
= f [x + (m + n) h] = E m+n f (x)
E mE n E m+n :
4.
Proof:
E E
Proof:
E [ f (x)] = E [f (x + h) f (x)]
= f (x + 2h) f (x + h)
= (x + 2h) f (x + h)
a)
1
r 1 E
rf (x) = f (x) f (x h)
1
= f (x) E f (x)
1
= 1 E f (x)
b)
1
r E :
Relations of operators r with and E 51
Proof:
rf (x) = f (x) f (x h)
= f (x h)
1
= E f (x) :
2
Eex
ex = ex 2 ex
;
E
Solution:
2
Eex Eex
ex : 2 ex
= 2
E 1
(ex ) 2 ex
E
2 x 1 ex+1
= e
ex (e 1)2
ex+1
= ex 1
(e 1)2
ex (e 1)2
= ex :
Let
y = a0 x n + a1 x n 1
+ :::::: + an
Di¤erences of a Polynomial 53
y = a0 x n + a1 x n 1
+ :::::: + an
= a0 x n + a1 x n 1
+ :::::: + an
+:::: + an 1 [(x + h) x] + 0
n n 1 2
= a0 nxn 1 h + x h + :::
2
n 1 n 1
+a1 xn 2 h + xn 2 h2 + :::
1 2
+::::: + han 1
54 Finite Di¤erence Operators
n 2 n 1
= a0 nhxn 1
+ a0 h + a1 h xn 2
2 1
+::: + han 1
0 0
= a0 nhxn 1
+ a1 x n 2
+ :::: + an 1
0 0
where a1 ; a2 ; :::; are the coe¢ cients of xn 2 ; xn 3 ; ::: in terms of a0 ; a1 ; ::::; h:
0
2
y = a0 nh (x + h)n 1
xn 1
+ a1 (x + h)n 1
xn 1
0
+::: + a2 [(x + h) x]
00 00
= a0 n (n 1) h2 xn 2
+ a1 x n 3
+ :::: + an 2
00 00
where a1 ; a1 ; ::: are the coe¢ cients of xn 3 ; xn 3 ; :::::
n 1
y = a0 n (n 1) (n 2) :::::3 2 1 hn 1 x + k
Di¤erences of a Polynomial 55
n
y = a0 n!hn :
Thus the degree of polynomial diminishes each time when di¤erence is taken. The
n
y = a0 n!hn :
n+1 n+1
and hence higher di¤erences y; y; :::all are zero.
Example 14 Evaluate
(2 + 1)2 (x + 2)2 :
56 Finite Di¤erence Operators
Solution:
(2 + 1)2 (x + 2)2 = 4 2
+4 + 1 (x + 2)2
= 4 2
(x + 2)2 + 4 (x + 2)2 + (x + 2)2
= 4 2
x2 + 4x + 4 + 4 (x + 3)2 (x + 2)2
+ x2 + 4x + 4
= 8 + 4 (2x + 2) + x2 + 4x + 4
= x2 + 12x + 32
= 4E 2 4E + 1 (x + 2)2
Di¤erences of a Polynomial 57
= 4 x2 + 8x + 16 4 x2 + 6x + 9 + x2 + 4x + 4
= x2 + 12x + 32:
= (x + h) x (x h) :::::: (x (m 2) h)
x (x h) (x 2h) :::: (x (m 1) h)
= x (x h) (x 2h) :::::: (x (m 2) h)
f(x + h) (x (m 1) h)g
= mhx(m 1)
Then,
x(m) = mhx(m 1)
Di¤erences of a Polynomial 59
2 (m)
x = mhx(m 1)
= mh x(m 1)
= mh (m 1) hx(m 2)
= m (m 1) h2 x(m 2)
:::::::::::::::::
n (m)
x = m (m 1) ::::: (m n + 1) hn x(m n)
When n = m;
n (n)
x = n!:hn
when n > m;
60 Finite Di¤erence Operators
n (m)
x being constant, higher order di¤erences are zero. Then,
n (m)
x = 0:
1
x( m)
=
(x + h) (x + 2h) ::::: (x + mh)
Di¤erences of x( m)
are found as follows:
x( m)
= (x + h)( m)
x( m)
1
=
(x + 2h) ::::: (x + (m + 1) h)
1
(x + h) (x + 2h) ::::: (x + mh)
(x + h) (x + (m + 1) h)
=
(x + h) (x + 2h) ::::: (x + (m + 1) h)
mh
=
(x + h) (x + 2h) ::::: (x + (m + 1) h)
Then,
x( m)
= mhx( (m+1))
62 Finite Di¤erence Operators
2 ( m)
x = mhx( (m+1))
= mh x( (m+1))
= ( mh) ( (m + 1) h) x( (m+2))
Obtained by replacing m by (m + 1) in x( m)
= mhx(m 1)
::::::::::::::::
n ( m)
x = ( 1)n (m) (m + 1) :::::: (m + n 1) hn x( (m+n))
If the polynomial a0 xn + a1 xn 1
+ :::::: + an is to be converted into A0 x(n) + A1 x(n 1)
+
Let
a0 x n + a1 x n 1
+ :::::: + an
= A0 x(n) + A1 x(n 1)
+ A1 x(n 2)
:::::: + An
= A0 x (x h) ::: (x (n 1) h)
+A1 x (x h) ::: (x (n 2) h)
A0 (x h) (x 2h) ::: (x (n 1) h)
The quotient when divided by x h; the remainder is An 1 and the next quotient
is
The process is continued like this and, we get all the coe¢ cients An ; An 1 ; :::::A0
as desired, e.g.
Dividing this by x; we get the remainder 10 and the quotient 3x2 + 5x + 2: This quotient
Di¤erences of a Polynomial 65
h) 3 5 2
is divided by x h: 3h 3h2 + 5h
3 3h + 5 3h2 + 5h + 2 = Remainder A2
Here the remainder is 3h2 + 5h + 2 and the quotient is 3x + (3h + 5) : Further it
is divided by x 2h:
2h) 3 3h + 5
6h
3 9h + 5 = Remainder A1 :
Thus
3x3 + 5x2 + 2x + 10
h) 3 5 2 10 = A3
3h 3h2 + 5h
6h
3 9h + 5 = A1
3 = A0
Then,
3x3 + 5x2 + 2x + 10
1
; h = 1:
(2x + 3) (2x + 5)
Di¤erences of a Polynomial 67
Solution:
1 1
= 3 5
(2x + 3) (2x + 5) 4 x+ 2 x+ 2
( 2)
1 1
= x+
4 2
We know
n ( m)
x = ( 1)n (m) (m + 1) (m + 2) ::: (m + n 1) hn x( (m+n))
Putting n = 3 and m = 2
( 2) ( 2)
31 1 1 3 1
x+ = x+
4 2 4 2
( 5)
1 1
= ( 1)3 2 3 4 x+
4 2
68 Finite Di¤erence Operators
6
= 3 5
x+ 2
x+ 2
x + 27 x+ 9
2
x+ 11
2
192
= :
(2x + 3) (2x + 5) (2x + 7) (2x + 7) (2x + 11)
n m
x = (E 1)n xm
n n
= [E n En 1
+ En 2
+ :::
1 2
n
+ ( 1)r En r
+ ::: ( 1)n 1]xm
r
Di¤erences of Zero 69
n n
= (x + n)m (x + n 1)m + (x + n 2)m
1 2
n
::::: + ( 1)r (x + n r)m + :::: + ( 1)n xm :
r
Putting x = 0; we get
n n
[ n m
x ]x=0 = nm (n 1)m + (n 2)m
1 2
n
::::: + ( 1)r (n r)m
r
n
+ :::: + ( 1)n 1
1m :
n 1
n m n m
The expression [ x ]x=0 is generally written as 0 which is known as nth
70 Finite Di¤erence Operators
n n
n m
0 = nm (n 1)m + (n 2)m
1 2
n
::::: + ( 1)r (n r)m
r
n
+ :::: + ( 1)n 1
1m :
n 1
n m n 1 m 1 n m 1
0 =n 0 + 0
Proof: Since
Di¤erences of Zero 71
n n
n m
0 = nm (n 1)m + (n 2)m :::
1 2
n
:::::: + ( 1)n 1
1m
n 1
n n (n 1)
= nm (n 1)m + (n 2)m + :::
1 1 2
n 1
= n[E n 1 xm 1
E n 2 xm 1
1
n 1
+ E n 3 xm 1
+ ::: + ( 1)n 1
xm 1 ]x=1
2
then
72 Finite Di¤erence Operators
n 1
n m
0 = n[nm 1
(n 1)m 1
1
(n 1) (n 2)
+ (n 2)m 1
+ ::: + ( 1)n 1 ]
1 2
n 1
= n[(1 + n 1)m 1
(1 + n 2)m 1
1
(n 1) (n 2)
+ (1 + n 3)m 1
+ ::: + ( 1)n 1
1m 1 ]
1 2
That is,
Di¤erences of Zero 73
n 1
n m
0 = n[(1 + n 1)m 1
(1 + n 2)m 1
1
(n 1) (n 2)
+ (1 + n 3)m 1
1 2
+::: + ( 1)n 1
1m 1 ]
n 1
= n[(x + n 1)m 1
(x + n 2)m 1
1
(n 1) (n 2)
+ (x + n 3)m 1
1 2
+::: + ( 1)n 1
xm 1 ]x=1
74 Finite Di¤erence Operators
Therefore,
n m
0 = n (E 1)n 1
xm 1
x=1
= n (E 1)n 1
E (x 1)m 1
x=1
n 1
= n (1 + ) 0m 1
n 1 m 1 n m 1
= n 0 + 0 :
4 5
Example 19 Calculate the value of 0:
Solution: We know
n n
n m
0 = nm (n 1)m + (n 2)m :::
1 2
n
:::::: + ( 1)n 1
1m
n 1
Di¤erences of Zero 75
Putting n = 4; m = 5
4 5 4 5 4 5 4 5
0 = 45 3 + 2 1
1 2 3
and
E n f (x) = (1 + )n f (x)
Then,
E (1 + ) (1.5)
76 Finite Di¤erence Operators
and
En (1 + )n (1.6)
Symbolic relations (1.6) have been obtained from (1.4) and (1.5) by omitting f (x)
from both sides. This method is known as separation of symbols. Method of separation
must also be kept in mind operators without operand have no meaning. Dealing with
n n n
yx n = yx yx 1 + yx 2
1 2
n
yx 3 + ::::
3
Di¤erences of Zero 77
Solution:
n n 1 n
L:H:S = yx n Eyx = E yx
1 n 1 n
= (E 1) E yx = 1 E yx
n 1 n 2 n 3
= 1 E + E E + :::: yx
1 2 3
n n n
= yx yx 1 + yx 2 yx 3 + ::::
1 2 3
Exercise
1. Find third leading di¤erences of the following functions, taking the interval of dif-
ferencing to be unity.
(a) x2 + 5:
(b) x3 + x:
78 Finite Di¤erence Operators
x 5 10 15 20 25 30
2 3
and point out the values of y10 and y15 :
x 10 20 30 40 50
2
(a) cos 2x
ex
(c)
ex + e x
h=1
(a) E n = (1 + )n
1
(b) r = 1+E
(c) 1 = (1 + ) (1 r)
80 Finite Di¤erence Operators
2
1
(a) E x: (b) x2 :
E
2 3
x r2 x2
(c) : (d) :
Ex3 E [x + log x]
2
(e) E 3 x2 (f ) (E + 2) (E 1) (ex + x) :
1
(i)
(3x + 1) (3x + 4) (3x + 7) h=1
1
(ii)
x (x + 3) (x + 6) h=1
3 6
(i) 0
(ii) 0n :
Chapter 2
Interpolation has been de…ned as the art of reading between of a table. The term denotes
the process of computing intermediate values of a function when a set of functional values
are known, i.e. If y0 ; y1 ; :::; yn is the set of values of the function y = f (x) for x =
0; 1; ::::; n; computation of unknown yi ; where 0 < i < n; and i may be either a whole
number or a fraction, is called interpolation. If the form of the function is known or can be
obtained from the given set of values, the ordinary algebraic substitution method can be
82 Interpolation with Equal Interval
used to …nd the desired value of the function. In actual practice, the form of the function
is hardly known, and hence we have to depend on …nite di¤erence methods. All …nite
2. function should be either increasing or decreasing i.e., there should not be sudden
jumps or falls in the values of the function in the interval under consideration.
The values of the function may be either are regular interval or at unequal intervals.
being assumed that f (x) is a polynomial of nth degree which may be written in the form
For
x = a; f (a) = A0
For
x = a + h; f (a + h) = A0 + A1 h
or
hA1 = f (a + h) A0
= f (a + h) f (a)
= f (a)
Then,
f (a)
A1 = :
h
Newton-Gregory Formula for Forward Interpolation 85
For
Then,
f (a + h) f (a)
= f (a + 2h) f (a) + 2h
h
= f (a + 2h) 2 f (a + h) + f (a)
2
= f (a)
Then,
2
f (a)
A2 =
2!h2
86 Interpolation with Equal Interval
Similarly, we get
3
f (a)
A3 =
3!h3
::::::::
n
f (a)
An =
n!hn
2
f (a) f (a)
f (x) = f (a) + (x a) + (x a) (x (a + h))
h 2!h2
3
f (a)
+ (x a) (x (a + h)) (x (a + 2h)) + ::::
3!h3
n
f (a)
+ (x a) (x (a + h)) ::::: (x (a + (n 1) h))
n!hn
Newton-Gregory Formula for Forward Interpolation 87
x a = hv; x (a + h) = (v 1) h;
x (a + 2h) = (v 2) h ; ::::;
x (a + (n 1) h) = (v (n 1)) h
88 Interpolation with Equal Interval
We get,
2
f (a) f (a)
f (a + hv) = f (a) + (vh) + (vh) (v 1) h
h 2!h2
3
f (a)
+ (vh) (v 1) h (v 2) h + ::::
3!h3
n
f (a)
+ (vh) (v 1) h:::::::: (v (n 1)) h
n!hn
v (v 1) 2
= f (a) + v f (a) + f (a)
2!
v (v 1) (v 2) 3
+ f (a) + :::::::
3!
v (v 1) :::::::: (v n + 1) n
+ f (a)
n!
Now
v (r) = v (v 1) h:::::::: (v n + 1)
Newton-Gregory Formula for Forward Interpolation 89
Then
v (1) v (2) 2
f (a + hv) = f (a) + f (a) + f (a) + :::::
1! 2!
v (n) n
+ f (a) :
n!
Notation 21 Newton’s forward formula is useful particularly for interpolating the value
As in section (2.1), let y = f (x) be a function which take the values f (a + nh) ; f (a + (n 1) h) ; :::; f (a
[x (a + (n 2) h)]g + :::::
::::::: [x (a + h)]
For
x = a + nh; f (a + nh) = A0
For
x = a + (n 1) h; f (a + (n 1) h) = A0 + A1 ( h)
then
hA1 = f (a + (n 1) h) A0
hA1 = A0 f (a + (n 1) h)
= f (a + nh) f (a + (n 1) h)
= rf (a + nh)
Then,
rf (a + nh)
A1 = :
h
92 Interpolation with Equal Interval
For
x = a + (n 2) h;
f (a + (n 2) h) = A0 + A1 ( 2h)
+A2 ( 2h) ( h)
Then,
2h2 A2 = f (a + (n 2) h) A0 + 2hA1
= f (a + (n 2) h) f (a + nh)
rf (a + nh)
+2h
h
Newton-Gregory Formula for Backward Interpolation 93
That is,
2h2 A2 = f (a + (n 2) h) f (a + nh)
+2 [f (a + nh) f (a + (n 1) h)]
= f (a + nh) 2 f (a + (n 1) h) + f (a + (n 2) h)
= r2 f (a + nh)
Then,
r2 f (a + nh)
A2 =
2!h2
Similarly, we get
r3 f (a + nh)
A3 =
3!h3
::::::::
rn f (a + nh)
An =
n!hn
94 Interpolation with Equal Interval
rf (a + nh)
f (x) = f (a + nh) + (x (a + nh))
h
r2 f (a + nh)
+ (x (a + nh)) (x (a + (n 1) h))
2!h2
+ (x (a + nh)) (x (a + (n 1) h))
r3 f (a + nh)
(x (a + (n 2) h)) + ::::
3!h3
rn f (a + nh)
(x (a + h))
n!hn
Newton-Gregory Formula for Backward Interpolation 95
x (a + nh) = hv;
x (a + (n 1) h) = (v + 1) h;
x (a + (n 2) h) = (v + 2) h ; ::::;
x (a + h) = (v + n 1) h
96 Interpolation with Equal Interval
We get,
rf (a + nh)
f (x) = f (a + nh + hv) = f (a + nh) + (vh)
h
r2 f (a + nh)
+ (vh) (v + 1) h
2!h2
r3 f (a + nh)
+ (vh) (v + 1) h (v + 2) h + ::::
3!h3
rn f (a + nh)
+ (vh) (v + 1) h:::::::: (v + n 1) h
n!hn
v (v + 1) 2
= f (a + nh) + vrf (a + nh) + r f (a + nh)
2!
v (v + 1) (v + 2) 3
+ r f (a + nh) + :::::::
3!
v (v + 1) :::::::: (v + n 1)
+ rn f (a + nh)
n!
interpolating the value of f (x) near the end of the set of tabular values.
Newton-Gregory Formula for Backward Interpolation 97
x 0 1 2 3 4 5 6
Solution: Newton’s formula for forward interpolation is useful for …nding the value of
f (x) in the beginning of the table. Here f (2:3) is required, we use the values of f (x) at
x = 2; ::::; 6:
Now,
a = 2; h = 1;
x = 2:3 = a + hv
98 Interpolation with Equal Interval
Then,
x a
v =
h
= 2:3 2 = 0:3:
2 3
x f (x) f (x) f (x) f (x)
2 17
29
3 46 22
51 6
4 97 28
79 6
5 176 34
113
6 289
100 Interpolation with Equal Interval
= 23:747
Example 23 From the following table …nd the number of student who obtained less than
45 marks:
Newton-Gregory Formula for Backward Interpolation 101
30— 40 31
40— 50 42
50— 60 51
60— 70 35
70— 80 31
40 31
50 73
60 124
70 159
80 190
Newton-Gregory formula is
v (v 1) 2
f (a + hv) = f (a) + v f (a) + f (a)
2!
v (v 1) (v 2) 3
+ f (a) + :::::::
3!
v (v 1) :::::::: (v n + 1) n
+ f (a)
n!
Newton-Gregory Formula for Backward Interpolation 103
v = 0:5
Then,
0:5 (0:5 1) 2
f (45) = f (a) + 0:5 f (a) + f (a)
2!
2
= f (a) + 0:5 f (a) (0125) f (a)
3 4
+ (0:0625) f (a) (0:0391) f (a)
4
f (a) and higher di¤erences are zero.
2 3 4
x f (x) f (x) f (x) f (x) f (x)
40 31
42
50 73 9
51 25
60 124 16 37
35 12
70 159 4
31
80 190
Newton-Gregory Formula for Backward Interpolation 105
4
Substituting the values of f (a) ; f (a) ; ::::::; f (a) ;
= 48
4 17:29203
4 12 16:28889
5 15:37245
5 12 14:53375
6 13:76483
v (v + 1) 2
+ r f (a + nh)
2!
v (v + 1) (v + 2) 3
+ r f (a + nh)
3!
v (v + 1) (v + 2) 3
+ r f (a + nh) + :::::
3!
Newton-Gregory Formula for Backward Interpolation 107
Here
1
a + nh = 6; h= ;
2
3 5
a + nh + hv = 5 ) v=
8 4
x 105 f (x) 105 rf (x) 105 r2 f (x) 105 r3 f (x) 105 r4 f (x)
4 1729203
100314
4 21 1628889 8670
91644 896
83870 796
5 21 1453375 6978
76892
6 1376483
Newton-Gregory Formula for Backward Interpolation 109
3 5
105 f 5 = 1376483 + ( 76892)
8 4
5 1 5 1 3
4 4 4 4 4
+ (6978) + ( 796)
1 2 1 2 3
5 1 3 7
4 4 4 4
+ (100)
1 2 3 4
1473658:7
Then,
3
f 5 = 14:73659
8
Exercise
3. Given:
x 1 2 3 4 5 6
f (x) 0 1 8 27 64 125
4. Given:
x 45 50 55 60
Newton’s formulae discussed so far in previous chapter are suitable for interpolation near
the beginning and end of the functional values given. For interpolating near the middle,
the central di¤erence formulae are more useful as compared to Newton’s formulae since
central di¤erence formulae have smaller coe¢ cients and a more rapidly converging series
of terms. Such formulae involve di¤erence being near the horizontal line through x = 0
in a diagonal di¤erence table and these di¤erences are based on the functional values
112 Central Di¤erence Interpolation Formulae
polated lies near the origin. Before we derive Central Di¤erence formulae, we introduce
h h
Nf (x) = f x+ f x
2 2
Or
1 1
Nf (x) = E 2 f (x) E 2 f (x)
1 1
= E2 E 2 f (x) )
1 1
N E2 E 2
Central Di¤erence Operator N 113
1.
1 1
N E2 E 2
Proof:
h h
Nf (x) = f x+ f x
2 2
h
= f x
2
1
= E 2 f (x)
1
= E 2 f (x)
1 1
) N E2 E 2 :
2.
1 1
N rE 2 E2r
114 Central Di¤erence Interpolation Formulae
Proof:
h h
Nf (x) = f x+ f x
2 2
h
= rf x+
2
1 1
= rE 2 f (x) = E 2 rf (x) )
1 1
N rE 2 E 2 r:
3.
nh nh
Nn f (x) = n
f x = rn f x+
2 2
Central Di¤erence Operator N 115
Proof:
1
Nf (x) = E 2 f (x) {From property (1)} )
1 n
Nn f (x) = E 2 f (x)
n
n
= E 2 f (x)
n nh
= f x
2
Also
1
Nf (x) = rE 2 f (x) {From property (2)} )
1 n
Nn f (x) = rE 2 f (x)
n
= rn E 2 f (x)
nh
= rn f x+
2
116 Central Di¤erence Interpolation Formulae
1 h h
Hf (x) = f x+ +f x
2 2 2
or
1h 1 1
i
Hf (x) = E 2 f (x) + E 2 f (x)
2
1h 1 1
i
= E2 + E 2 f (x) )
2
1h 1 1
i
H E2 + E 2
2
1
H2 1 + N2
4
Central Di¤erence Operator N 117
Proof:
1h 1 1
i
Hf (x) = E2 + E 2 f (x) )
2
1h 1 1
i2
H2 f (x) = E2 + E 2 f (x)
4
1 1
= E+2+E +2 2 f (x)
4
1 1
= E 2+E + 4 f (x)
4
1 1 1 2
= E2 E 2 + 4 f (x)
4
1 2
= N + 4 f (x)
4
1
= 1 + N2 f (x) )
4
1
H2 1 + N2
4
=H N
1
1
1. E 2
2
p
2. 1 + N2 H2 = 1 + 12 N2 :
Solution:
1.
1 1 1
Hf (x) = E2 + E 2 f (x) ) (3.1)
2
1 1
2Hf (x) = E2 + E 2 f (x)
Also
1 1
Nf (x) = E 2 E 2 f (x) (3.2)
Central Di¤erence Operator N 119
1
(2H N) f (x) = 2E 2 f (x)
1 1
H N f (x) = E 2 f (x) )
2
1 1
E 2 H N
2
2. Since,
1 1 1 1 1
H E2 E 2 and N E2 + E 2
2
Then,
120 Central Di¤erence Interpolation Formulae
1 1 1 2 1 1 2
1 + N2 H2 f (x) = 1+ E2 E 2 E2 + E 2 f (x)
4
1n 1 1 1 1
o2
= 1+ E2 E 2 E2 + E 2 f (x)
4
1 1 2
= 1+ E E f (x)
4
4 + E2 E 2
2
= f (x)
4
2 + E2 E 2
= f (x)
4
1 2
E+E
= f (x)
2
Gauss Forward Interpolation Formula 121
Then,
p E+E 1
(1 + N2 H2 )f (x) = f (x)
2
1
2 + (E + E 2)
= f (x)
2
1 1 1 2
= 1+ E2 E 2 f (x)
2
1
= 1 + N2 f (x)
2
Then
p 1
(1 + N2 H2 ) = 1 + N2 :
2
2 3 4
yx = y0 + x(1) y0 + x(2) y0 + x(3) y0 + x(4) y0 + ::: (3.3)
122 Central Di¤erence Interpolation Formulae
Where
x (x 1) :::: (x r + 1)
x(r) = ; r = 1; 2; 3; :::::
r!
Except the …rst two terms, the su¢ x of y in each term is diminished by 1, using
the formula,
n+1 n n
y 1 = y0 y 1 ) (3.4)
n n n+1
y0 = y 1 + y 1
Putting n = 2; 3; 4; ::::
2 2 3
y0 = y 1 + y 1;
3 3 4
y0 = y 1 + y 1;
4 4 5
y0 = y 1 + y 1 ; :::::
Gauss Forward Interpolation Formula 123
2 3 4
Substituting the values of y0 ; y0 ; y0 ; :::: in (3.3)
2 3
yx = y0 + x(1) y0 + x(2) y 1 + y 1
3 4 4 5
+x(3) y 1 + y 1 + x(4) y 1 + y 1 + :::
3 4
Collecting the terms of y 1; y 1 ; etc:
2 3
yx = y0 + x(1) y0 + x(2) y 1 + x(2) + x(3) y 1 (3.5)
4
+ x(3) + x(4) y 1 + :::
Since,
n n n+1
+ =
r 1 r r
then,
Putting r = 3; 4; ::::
2 3
yx = y0 + x(1) y0 + x(2) y 1 + (x + 1)(3) y 1 (3.6)
4
+ (x + 1)(4) y 1 + :::
Also,
n+1 n n
y 2 = y 1 y 2 )
n n n+1
y 1 = y 2 + y 2
Gauss Forward Interpolation Formula 125
For n = 4; 5; ::::
4 4 5
y 1 = y 2 + y 2 ; :::::etc:
4
Putting the value of y 1 etc. in (3.6)
2 3
yx = y0 + x(1) y0 + x(2) y 1 + (x + 1)(3) y 1
4 5
+ (x + 1)(4) y 2 + y 2 + :::
2 3
yx = y0 + x(1) y0 + x(2) y 1 + (x + 1)(3) y 1
4
+ (x + 1)(4) y 2 + :::::
2 3 4
yx = y0 + x(1) y0 + x(2) y0 + x(3) y0 + x(4) y0 + ::: (3.7)
As in section (3.2) starting from second term here also the su¢ xations of y are reduced
n n n+1
y0 = y 1 + y 1
Putting n = 1; 2; 3; ::::
2 2 2 3
y0 = y 1 + y 1; y0 = y 1 + y 1
3 3 4 4 4 5
y0 = y 1 + y 1; y0 = y 1 + y 1
and so on.
Gauss Backward Interpolation Formula 127
2 2 3
yx = y0 + x(1) y 1 + y 1 + x(2) y 1 + y 1
3 4 4 5
+x(3) y 1 + y 1 + x(4) y 1 + y 1 + :::
2
= y0 + x(1) y 1 + x(1) + x(2) y 1
3 4
+ x(2) + x(3) y 1 + x(3) + x(4) y 1 + :::: (3.8)
Putting r = 2; 3; 4; ::: in
2 3
yx = y0 + x(1) y 1 + (x + 1)(2) y 1 + (x + 1)(3) y 1
4
+ (x + 1)(4) y 1 + :::::
Su¢ xes of y from the third term onward are again reduced by 1, by using the formulae
3 3 4
y 1 = y 2 + y 2;
4 4 5
y 1 = y 2 + y 2 ; ::::etc
Gauss Backward Interpolation Formula 129
2
yx = y0 + x(1) y 1 + (x + 1)(2) y 1
3 4
+ (x + 1)(3) y 2 + y 2
4 5
+ (x + 1)(4) y 2 + y 2 + :::::
2
= y0 + x(1) y 1 + (x + 1)(2) y 1
h i
4
+ (x + 1)(3) + (x + 1)(4) y 2
But
2
yx = y0 + x(1) y 1 + (x + 1)(2) y 1
3 4
+ (x + 1)(3) y 1 + (x + 2)(4) y 2 + ::::
130 Central Di¤erence Interpolation Formulae
1
Notation 28 This formula is used when x lies between 2
and 0:
The following table is very helpful in writing down the Gauss forward and backward
formulae.
3
y 1 y 2
% & % &
2 4 0
A y0 y 1 y 1 A
& % & %
3
y0 y 1
0
To write Gauss forward formula y0 ; di¤erences along AA and below it are
multiplied by the corresponding coe¢ cients given at the bottom and the products are
2 3
yx = y0 + x(1) y0 + x(2) y 1 + (x + 1)(3) y 1
4
+ (x + 1)(4) y 2 + :::::
0
Similarly, y0 di¤erences along AA and above it are multiplied by the corresponding
coe¢ cients given at the top and the products so obtained are added and equated to yx :
2
yx = y0 + x(1) y 1 + (x + 1)(2) y 1
3 4
+ (x + 1)(3) y 2 + (x + 2)(4) y 2 + ::::
132 Central Di¤erence Interpolation Formulae
For interpolating in the middle of the table, …rst of all origin is shifted at one of the
given values of argument in the middle. Let the given values of argument be denoted by
X a
X and let the origin be shifted to a; the value x is given by X = a + xh or x = h
:
2 3
yv = y0 + v(1) y0 + v(2) y 1 + (v + 1)(3) y 1
4
+ (v + 1)(4) y 2 + :::::
Application of Gauss Forward and Backward Interpolation Formulae 133
2
yv = y0 + v(1) y 1 + (v + 1)(2) y 1
3 4
+ (v + 1)(3) y 2 + (v + 2)(4) y 2 + ::::
where
x a
v=
h
Further y0 and di¤erence to be used are underlined and the corresponding coe¢ -
cients are calculated and values obtained are substituted in the formula under considera-
tion.
Example 29 Find by Gauss’s forward formula the value of sin 32 ; 30 from the table.
x: 30 31 32 33 34
Solution:
32:5 32
v= = 0:5
1
Application of Gauss Forward and Backward Interpolation Formulae 135
2 3 4
v yv yv yv yv yv
2 0:5000
0:0150
1 0:5150 0:0001
0:0149 0:0001
0
A :::0::: 0:5299 & :::::::: 0:0002 & :::::::: 0:0002 A
0:0147 % 0:0001 %
1 0:5446 0:0001
0:0146
2 0:5592
136 Central Di¤erence Interpolation Formulae
2 3
yv = y0 + v(1) y0 + v(2) y 1 + (v + 1)(3) y 1
4
+ (v + 1)(4) y 2 + :::::
Then,
(0:5) ( 0:5)
y0:5 = 0:5299 + (0:5) (0:0147) + ( 0:0002)
2!
' 0:53727
' 0:5373
p p p p
12500 12510 12520 12530
p
Show by Gauss backward formula that 12516 = 111:874930
138 Central Di¤erence Interpolation Formulae
12516 12520
v= = 0:4
10
2 3
v yv yv yv yv
2 111:803399
0:044712
1 111:848111 0:000017
0
A :::0::: 111:892806 % :::::::: 0:000018 % :::::::: A
0:044677
1 111:937483
Application of Gauss Forward and Backward Interpolation Formulae 139
2
yv = y0 + v(1) y 1 + (v + 1)(2) y 1
3 4
+ (v + 1)(3) y 2 + (v + 2)(4) y 2 + ::::
Putting v = 0:4 and substituting the values of y0 and its di¤erences, we get
(0:6) ( 0:4)
+ ( 0:000018)
2
= 111:874930 )
p
12516 = 111:874930
140 Central Di¤erence Interpolation Formulae
2 3
yx = y0 + x(1) y0 + x(2) y 1 + (x + 1)(3) y 1
4
+ (x + 1)(4) y 2 + ::::: (3.9)
2
yx = y0 + x(1) y 1 + (x + 1)(2) y 1
3 4
+ (x + 1)(3) y 2 + (x + 2)(4) y 2 + :::: (3.10)
Sterling Formula 141
( y0 + y 1 ) x(2) + (x + 1)(2)
2
yx = y0 + x(1) + y 1
2 2
3 3
( y 1 + y 2)
+ (x + 1)(3)
2
h i
(x + 1)(4) + (x + 2)(4)
4
+ y 2 + :::::
2
1 (x + 1) x (x 1) (x 2) (x + 2) (x + 1) x (x 1) 4
+ + y 2 + :::::
2 4! 4!
142 Central Di¤erence Interpolation Formulae
( y0 + y 1 ) x 2
= y0 + x + [(x 1) + (x + 1)] y 1
2 4
x (x2 1) ( 3
y 1 + 3
y 2)
+
3! 2
(x + 1) x (x 1) 4
+ [(x 2) + (x + 2)] y 2 + :::::
2 (4!)
( y0 + y 1 ) x 2 2
= y0 + x + y 1
2 2
x (x2 1) ( 3
y 1 + 3
y 2) x2 (x2 1) 4
+ + y 2 + :::::
3! 2 4!
( y0 + y 1 ) x2 2
yx = y0 + x + y 1
2 2
x (x2 1) ( 3
y 1 + 3
y 2) x2 (x2 1) 4
+ + y 2 + :::::
3! 2 4!
With the help of the following table, the Sterling formula can easily be
written.
Sterling Formula 143
x2 x(x2 1) x2 (x2 1)
Coef f icients 1 x 2! 3! 4!
3
y 1 y 2
% & % &
2 4 0
A y0 y 1 y 2 A
& % & %
3
y0 y 1
Arithmetic means of …rst and third di¤erences in second and fourth columns are taken
x(x2 1) 2 4
and are multiplied by x and 3!
respectively, y0 and other di¤erences y 1 and y 2
2 x2 (x2 1)
are multiplied by 1, x2! ; 4!
respectively, These products are added and equated to yx :
y0 + y 1 x2 2
yx = y0 + x + y 1
2 2!
x (x2 1) 3
y 1 + 3
y 2 x2 (x2 1) 4
+ + y 2 + :::::
3! 2 4!
144 Central Di¤erence Interpolation Formulae
Bessel’s formula can be obtained by taking the mean of Gauss backward formula after
2
yx = y0 + x(1) y 1 + (x + 1)(2) y 1
3 4
+ (x + 1)(3) y 2 + (x + 2)(4) y 2 + ::::
2
yx = y1 + (x 1)(1) y0 + x(2) y0
3 4
+x(3) y 1 + (x + 1)(4) y 1 + :::: (3.11)
Bessel’s Formula 145
2
yx = y0 + x(1) y0 + x(2) y 1
3 4
+ (x + 1)(3) y 1 + (x + 1)(4) y 2 + :::: (3.12)
1 1h i
yx = (y1 + y0 ) + (x 1)(1) + x(1) y0
2 2
h i
( 2
y0 + 2
y 1) x(3) + (x + 1)(3)
3
+x(2) + y 1
2 2
4 4
( y 1 + y 2)
+ (x + 1)(4) + ::::: (3.13)
2
3
Now consider the coe¢ cients of y0 and y 1
146 Central Di¤erence Interpolation Formulae
x+x 1
Coef f: of y0 =
2
2x 1 1
= = x
2 2
h i
x(3) + (x + 1)(3)
3
Coef f: of y 1 =
2
1 x (x 1) (x 2) (x + 1) x (x 1)
= +
2 3! 3!
x (x 1)
= [(x 2) + (x + 1)]
2 (3!)
x (x 1) (2x 1)
=
3! 2
1
x 2
x (x 1)
=
3!
Bessel’s Formula 147
Also
x (x 1)
x(2) =
2!
and
(x + 1) x (x 1) (x 2)
(x + 1)(4) =
4!
1 1
yx = (y1 + y0 ) + x y0
2 2
" #
2 2 1
x (x 1) ( y0 + y 1) x 2
x (x 1) 3
+ + y 1
2! 2 3!
4 4
(x + 1) x (x 1) (x 2) y 1 + y 2
+ + :::::
4! 2
1
Bessel’s formula should be used when x lies between 2
and 12 : However, for
x = 21 ; terms containing odd di¤erences vanish and therefore this formula is most suitable
148 Central Di¤erence Interpolation Formulae
when x = 12 :
1
yz+ 1 = (y1 + y0 ) + z y0
2 2
" #
1 1
z2 4 ( 2
y0 + 2
y 1) z z2 4 3
+ + y 1
2! 2 3!
!
1 7
z2 4
z2 + 4
4
y 1 + 4
y 2
+ + :::::
4! 2
Bessel’s formula can be easily be written the help of the following table:
Bessel’s Formula 149
1
1 x(x 1) (x 2 )x(x 1) (x+1)x(x 1)(x 2)
Coef f: 1 x 2 2! 3! 4!
2 4
A y0 y 1 y 2
& % & %
3
... y0 ... y 1 ...
% & % &
2 4
y1 y0 y 1
Arithmetic means of y0 ; y1 ; second di¤erences and fourth di¤erences are taken and
1
1 (x 2 )x(x 1)
multiplied by x 2
; 3!
respectively.
1 1
yx = (y1 + y0 ) + x y0
2 2
x (x 1) ( 2 y0 + 2 y 1 )
+
2! 2
" #
x 12 x (x 1) 3
+ y 1
3!
4 4
(x + 1) x (x 1) (x 2) y 1 + y 2
+ + :::::
4! 2
p
Example 31 Use Sterling’s formula to …nd the value of 22:2; given that :
p p p p p
x 20 21 22 23 24
22:2 22:0
x= = 0:2
1
2 3 4
x yx yx yx yx yx
2 4:472
0:111
1 4:583 0:004
0:107 0:003
% & % &
0
A 0 4:690 ::::: 0:001 :::::: 0:005 A
& % & %
0:106 0:002 %
1 4:796 0:003
0:103
2 4:899
152 Central Di¤erence Interpolation Formulae
Sterling’s formula is
y0 + y 1 x2 2
yx = y0 + x + y 1
2 2!
x (x2 1) 3
y 1 + 3
y 2
+
3! 2
x2 (x2 1) 4
+ y 2 + :::::
4!
Then,
(0:04) (0:04 1)
+ ( 0:005) + ::::
24
Bessel’s Formula 153
' 4:71128
' 4:711
Example 32 Apply Bessel’s formula to …nd the value of y2:73 ; given that
then
2:73 2:70
v= = 0:3
0:1
Bessel’s formula is
154 Central Di¤erence Interpolation Formulae
1 1
yv = (y1 + y0 ) + v y0
2 2
v (v 1) ( 2 y0 + 2 y 1 )
+
2! 2
" #
v 12 v (v 1) 3
+ y 1
3!
(v + 1) v (v 1) (v 2)
+
4!
4 4
y 1 + y 2
+ :::::
2
Now we put v = 0:3 and the values of di¤erences are obtained from the following
table:
Bessel’s Formula 155
2 4938
15
1 4953 3
12 0
:::0::: 4965 3 1
& % & %
::::::: :::::: ::9:: :::::::: ::1:: :::::
% & % &
1 4974 2 0
7 1
2 4981 1
3 4987
156 Central Di¤erence Interpolation Formulae
1
104 y0:3 = ((4974 + 4965)) + (0:3 0:5) 9
2
(0:3) (0:3 1) 1
+ ; ( 2 3)
2! 2
= 4967:98 )
Let f (x) be the polynomial of degree n, and f (x0 ) ; f (x1 ) ; ::::; f (xn ) be its (n + 1)
f (x) = A0 (x x1 ) (x x2 ) :::: (x xn )
+A1 (x x0 ) (x x2 ) :::: (x xn )
+A2 (x x0 ) (x x1 ) :::: (x xn ) +
::::::::::: +
An (x x0 ) (x x1 ) :::: (x xn 1 ) (3.14)
158 Central Di¤erence Interpolation Formulae
f (x0 )
) A0 =
(x0 x1 ) (x0 x2 ) :::: (x0 xn )
When x = x1 ;
f (x1 )
) A1 =
(x1 x0 ) (x1 x2 ) :::: (x1 xn )
f (x2 )
A2 =
(x2 x0 ) (x2 x1 ) :::: (x2 xn )
f (xn )
An =
(xn x0 ) (xn x1 ) :::: (xn xn 1 )
Lagrange’s Interpolation Formula 159
(x x1 ) (x x2 ) :::: (x xn )
f (x) = f (x0 )
(x0 x1 ) (x0 x2 ) :::: (x0 xn )
(x x0 ) (x x2 ) :::: (x xn )
+ f (x1 )
(x1 x0 ) (x1 x2 ) :::: (x1 xn )
+::::::: +
(x x0 ) (x x1 ) :::: (x xn 1 )
f (xn )
(xn x0 ) (xn x1 ) :::: (xn xn 1 )
may be written as
f (x)
(x x0 ) (x x1 ) :::: (x xn )
f (x0 )
=
(x0 x1 ) (x0 x2 ) :::: (x0 xn ) (x x0 )
f (x1 )
+
(x1 x0 ) (x1 x2 ) :::: (x1 xn ) (x x1 )
+:::::::::
f (xn )
+
(xn x0 ) (xn x1 ) :::: (xn xn 1 ) (x xn )
Example 33 Use Lagrange’s formula to …nd f (6) from the following table:
x 2 5 7 10 12
f (x)
(x x0 ) (x x1 ) (x x2 ) (x x3 ) (x x4 )
f (x0 )
=
(x0 x1 ) (x0 x2 ) (x0 x3 ) (x0 x4 ) (x x0 )
f (x1 )
+
(x1 x0 ) (x1 x2 ) (x1 x3 ) (x1 x4 ) (x x1 )
f (x2 )
+
(x2 x0 ) (x2 x1 ) (x2 x3 ) (x2 x4 ) (x x2 )
f (x3 )
+
(x3 x0 ) (x3 x1 ) (x3 x2 ) (x3 x4 ) (x x3 )
f (x4 )
+
(x4 x0 ) (x4 x1 ) (x4 x2 ) (x4 x3 ) (x x4 )
162 Central Di¤erence Interpolation Formulae
at x = 6
f (6)
(6 2) (6 5) (6 7) (6 10) (6 12)
18
=
(2 5) (2 7) (2 10) (2 12) (6 2)
180
+
(5 2) (5 7) (5 10) (5 12) (6 5)
448
+
(7 2) (7 5) (7 10) (7 12) (6 7)
1210
+
(10 2) (10 5) (10 7) (10 12) (6 10)
2028
+
(12 2) (12 5) (12 7) (12 10) (6 12)
Lagrange’s Interpolation Formula 163
That is
f (6) 18
=
4 (1) ( 1) ( 6) ( 3) ( 5) ( 8) ( 10) 4
180
+
3 ( 2) ( 5) ( 7) (1)
448
+
5 (2) ( 3) ( 5) ( 1)
1210
+
8 (5) (3) ( 2) ( 4)
2028
+
10 (7) (5) (2) ( 6)
Or
= 224:00
y (y 2 1) 2 x (x2 1) 2
vx = yv0 + xv1 + v 1+ v0
3! 3!
where x + y = 1:
Solution:
y (y 2 1) 2 x (x2 1) 2
R:H:S: = yv0 + xv1 + v 1 + v0
3! 3!
Putting
y = 1 x= (x 1) ;
2
v 1 = v1 2v0 + v 1
2
and v0 = v2 2v1 + v0 ;
Lagrange’s Interpolation Formula 165
we get
R:H:S: = (x 1) v0 + xv1
x (x 1) (x 2)
(v1 2v0 + v 1 )
6
x (x2 1)
+ (v2 2v1 + v0 )
6
166 Central Di¤erence Interpolation Formulae
that is,
x (x 1) (x 2)
R:H:S: = v 1
6
x (x 1) (x 2) x (x 1) (x + 1)
+ 1 x+ + v0
3 6
x (x 1) (x 2) x (x2 1)
+ x v1
6 3
x (x 1) (x + 1)
+ v2
6
x (x 1) (x 2) (x + 1) (x 1) (x 2)
= v 1 + v0
6 2
(x + 1) x (x 2) (x + 1) x (x + 2)
v1 + v2 (3.15)
2 6
Lagrange’s Interpolation Formula 167
vx v 1
=
(x + 1) x (x 1) (x 2) ( 1) ( 2) ( 3) (x + 1)
v0
+
1 ( 1) ( 2) x
v1
+
2 (1) ( 1) (x 1)
v2
+
3 (2) (1) (x 2)
Then,
x (x 1) (x 2) (x + 1) (x 1) (x 2)
vx = v 1 + v0 (3.16)
6 2
(x + 1) x (x 2) (x + 1) x (x 1)
v1 + v2
2 6
Thus, equations (3.15) and (3.16) being the same proves that the result required.
168 Central Di¤erence Interpolation Formulae
Exercise
1. Given that:
x 1 2 3 4 5
y 2 5 10 17 26
x 25 30 35 40
x 4 6 8 10 12 14
x 0 5 10 15 20 25 30
4. Apply Lagrange’s formula to …nd the value of f (15) ; using the following functional
values:
x 10 12 14 16 18 20