3 Interpolation With Unequal Intervals
3 Interpolation With Unequal Intervals
f ( x 1 )−f ( x 0)
and is denoted by f ( x 0 , x 1 ) , that is, f (x 0 , x1 )=
x1 −x0
Similarly the other first divided differences of f (x) for the arguments
x 1 , x 2 ; x 2 , x 3 ; … … … … ; xn −1 , x n are
f ( x 2 )−f (x 1)
f (x 1, x 2 )=
x2 −x1
f ( x 3 )−f (x 2)
f (x 2 , x 3 )=
x3 −x2
………………………………..
f ( x n )−f (x n−1)
f (x n−1, x n )=
xn −x n−1
The second divided difference of f (x) for the three arguments x 0 , x 1∧x 2 is defined as
f ( x 1 , x 2 )−f (x 0 , x 1)
f (x 0 , x1 , x2 )=
x2 −x0
The nth divided difference is given by
f (x ¿ ¿ 1 , x2 , … . x n )−f ( x 0 , x 1 , … .. x n−1 )
f ( x 0 , x1 , x2 , … … x n )= ¿
x n−x 0
Note: If two of the arguments coincide the divided difference can be given a meaning
assigned by taking the limit. Thus
f (x ¿ ¿ 0 , x 0 )=lim (x 0 , x 0 +ϵ )¿
ϵ→ 0
f ( x0 + ϵ )−f ( x 0 )
=lim
ϵ→ 0 ( x 0 +ϵ ) −x 0
f ( x0 + ϵ )−f ( x 0 )
=lim
ϵ→ 0 ϵ
'
= f (x ¿¿ 0) ¿
1 (r )
Similarly f ( x 0 , x 0 , … .. x 0 ) = r ! f ( x0 )
(r+1) arguments
Theorem: The divided difference are symmetrical in all its arguments, That is
independent of the order of the arguments.
Proof: We have
(x ¿¿ 1)−f ( x0 ) ( x ¿¿ 0)−f (x 1)
f ( x 0 , x1 ) =f ¿ =f ¿= f (x 1 , x 0)
x 1−x 0 x 0−x 1
Interpolation with unequal Intervals 17
f ( x 0) f ( x 1)
= x −x + x − x
0 1 1 0
f ( x 0)
=∑ x −x , Showing that f ( x 0 , x1 ) is symmetrical in x 0 , x 1 ,
0 1
f ( x 1 , x 2 )−f (x 0 , x 1)
Again f ( x 0 , x1 x 2) =
x2 −x0
1 f ( x 2) −f ( x 1 ) f ( x 1 )−f ( x 0 )
= [ − ]
x2 −x0 x 2−x 1 x 1−x 0
1 f ( x2 ) f ( x1 ) f ( x 1) f ( x0 )
= [ − − + ]
x2 −x0 x 2−x 1 x 1−x 0 x1 −x0 x 1−x 0
1 f ( x2 ) 1 1 f ( x0 )
¿ [ −f ( x 1 ) ( − )+ ]
x 2−x 0 x 2−x 1 x2 −x1 x 1−x 0 x 1−x 0
1 f ( x2 ) x − x + x −x f ( x0 )
= [ −f ( x 1 ) 1 0 2 1 + ]
x2 −x0 x 2−x 1 (x 2−x1 )( x 1−x 0) x 1−x 0
1 f ( x2 ) f ( x1 ) ( x 2−x 0 ) f ( x0 )
= x −x [ x −x − + ]
2 0 2 1 ( x2− x1 ) ( x 1−x 0 ) x 1−x 0
( x ¿¿ 2) f ( x1 ) f ( x0 )
= f ( x −x )(x −x ) + ¿¿ +
2 0 2 1 ( x 1−x2 ) ( x 1−x 0 ) ( x 0 −x1 ) ( x 0−x 2 )
f ( x0 ) f ( x1 ) (x¿¿ 2)
= + +f ¿
( x 0−x 1 )( x 0− x2 ) ( x1 −x0 ) ( x 1−x 2 ) ( x 2−x 0)( x 2−x 1 )
f ( x0 )
=∑ ,Showing that f (x 0 , x1 , x2 ) is symmetrical in x 0 , x 1 , x 2
( x 0−x 1 ) ( x 0−x 2 )
Let us assume similar symmetrical expressions for the (n-1)th divided differences. That is,
let us assume that
f ( x0 )
f ( x 0 , x1 , … … x n−1 ) =
( x0 −x 1) ( x 0−x 2 ) … … … … .. ( x0 −x n−1)
+ f ( x 1)
+… … … … …
( x 1−x 0 )( x 1−x 2 ) … … … … .. ( x1−x n−1 )
+ f (x n−1)
( x n−1−x 0 )( x n−1−x 1 ) … … … … ..(x n−1−x n−2)
f ( x0 )
¿∑
( x 0−x 1 )( x 0 −x2 ) … … … … ..(x 0−x n−1)
And similar expressions for the other (n-1)th divided difference.
f ( x 0 , x 1 , … … x n−1 )−f ( x 1 , x 2 , … … x n )
Then f ( x 0 , x1 , … … x n )=
x −x 0 n
1
= x −x ¿
0 n
f ( x0 )
f ( x1 )
= (x ¿ ¿ 0−x 1 )… … ..(x 0−x n )+ ¿
f ( xn )
( x ¿ ¿1−x 0) … … ..( x 1−x n)+ ¿
( x ¿ ¿ n−x0 )… …..( xn −x n−1 )¿
Interpolation with unequal Intervals 18
f ( x0)
=∑ ¿
( x ¿ ¿ 0−x 1) … … ..( x 0−x n)
showing that the nth divided difference f ( x 0 , x1 , … … x n )is also symmetrical in x 0 , x 1 ,… … x n
and thus completing the proof of the theorem by mathematical induction.
Theorem: The nth divided differences of a polynomial of the nth degree are constant.
Proof: First consider the function f ( x )=x n .The first divided differences of this function are
given by
f ( x ) −f ( x r )
f ( x r , x r +1)= r +1
xr +1−x r
xnr +1−x nr
=
x r+ 1−x r
= x n−1 n−2 n−2 n−1
r +1 + xr x r +1 +… … … .+ x r+1 x r + x r
f ( x r +1 , x r+2 ) −f (x r , x r +1)
=
r r +2−x r
1
= (x ¿ ¿ r +2−x ) ¿ [ f ( x r +1 , x r +2 )−f ( x r , xr +1 )¿
r
1 f ( x r+2 ) −f ( x r +1 ) f ( x r+1 ) −f ( x r )
= [ − ]
xr +2−x r x r +2−x r+1 x r +1−x r
n n n n
1 x −x r +2 x −x
r +1 r +1 r
= [ − ]
xr +2−x r x r +2−x r +1 x r +1−x r
1 n−1 n−2 n−2 n−1 n−1 n−2 n−2 n−1
= x −x [ ( x r +2 + x r+1 . x r +2 +… … … …+ x r +1 xr +2 + x r +2 )−(x r+1 + x r . x r+1 + … … … …+ x r x r+ 1+ x r )]
r +2 r
Ex 1. Fit a polynomial which passes through the points (1,4), (3,7), (4,8) and (6,11) by
using Newton’s divided difference formula. Also find the value of y at x=2.
Soln. The difference table is as follows.
1
Ex 2. If f ( x )= 2 , find f ( a ,b ) , f ( a , b , c ) ∧f (a , b , c , d )
x
Soln : We have
1 1 a2−b2
−
f ( b )−f ( a ) b2 a2 a2 .b 2 ( a+b )( a−b ) −a+b …………. (1)
f ( a ,b )= = = = 2 2 =
b−a b−a b−a a . b ( b−a ) a2 . b2
f ( b , c )−f ( a , b)
Again f ( a ,b ,c ) = c−a
−b +c a+b
+
= b 2 . c 2 a2. b 2
c−a
2 2
1 c ( a+b ) −a (b+ c)
= c−a . a2 b 2 c 2
1 ( c 2−a2 ) b+c 2 a−a2 c
= c−a .
a2 b2 c 2
1 ( c−a ) {( c +a ) b+ ca } ab+bc +ca
= c−a . a2 b2 c 2
= a2 b2c2
−abc +bcd +acd +abd
Similarly f ( a ,b ,c , d )=
a2 b2 c 2 d 2
2
∆ 3
Ex 3. Show that yz x =x+ y+ z
Soln: f ( x )=x 3
∆
f ( y )−f (x)
Now f ( x ) =f ( x , y ) =
y y−x
Interpolation with unequal Intervals 21
3 3
y −x
=
y−x
= y 2 + xy + x 2
Similarly ∆y f ( z ) =z 2+ yz + y 2
2 2
∆
Now yz f ( x )= ∆yz x3
= f (x , y , z)
f ( y , z )−f ( x , y)
=
z−x
y + yz+ z 2−x 2−xy − y 2
2
=
z−x
2 2
z −x + yz−xy
=
z−x
( z−x )( z + x+ y )
=
z−x
=x + y + z proof.
+ y0
(x ¿¿ 0−x )(x 0−x 1)( x 0−x 2 )… … ( x 0−x n)¿
+ y1
+… … … … …
( x 1−x )( x 1−x 0 ) ( x 1−x 2 ) … … … ( x1 −xn )
+ yn
( x n−x )( xn −x 0 ) … … ….( xn −x n−1 )
∴ using (1) , we get
y y0 y1
⇒ + +
( x−x 0 ) ( x−x 1 ) … … … … ( x−x n ) ( x 0−x ) ( x 0−x 1 )( x 0 −x2 ) … … … … ( x 0−x n ) ( x1 −x ) ( x 1−x 0 ) ( x 1−x 2 ) … … … ( x 1−x
+ yn
=0
( x n−x )( xn −x 0 )( x n −x1 ) … … … …( xn −x n−1 )
y y0
⇒ x−x x−x … … … … . x−x = x−x x −x x −x … … … . x −x
( 0 )( 1) ( n) ( 0) ( 0 1) ( 0 2) ( 0 n)
+ y1 yn
+… … … … … … … . .+
( x−x 1 )( x 1−x 0 ) ( x 1−x 2 ) … … … . ( x 1−x n ) ( x−x n )( xn −x 0 )( x n −x1 ) … … … …( xn −x n−1 )
Interpolation with unequal Intervals 22
( x −x0 ) ( x−x 1 ) ( x−x 2 ) … … … … ( x−x n ) ( x−x 0 ) ( x−x 1 )( x −x2 ) … … … … ( x−x n )
⇒ y= y0 + y 1+
( x−x 0 ) ( x 0−x 1 ) ( x 0−x 2) … … ….. ( x 0−x n ) ( x−x 1 ) ( x1 −x0 ) ( x 1−x 2 ) … … … .. ( x 1−x n )
……………..
( x −x0 ) ( x−x 1 ) ( x−x 2 ) … … … …( x−x n )
+ yn
( x−x n )( xn −x 0 )( x n −x2 ) … … … ..( x n−x n−1)
( x−x 1 ) ( x−x 2) … … … …(x−x n) ( x− x0 ) ( x−x 2 ) … … … … ( x−x n )
∴ y= y0 + y 1+……………..
( x 0−x 1) ( x 0−x 2 ) … … … ..(x 0−x n ) ( x 1−x 0 ) ( x 1−x 2 ) … … ….. ( x 1−x n )
( x−x 0 ) ( x−x 1 ) … … … …( x−x n−1)
+ yn
( x n−x 0 )( xn −x1 ) … … … ..( x n−x n−1 )
Which is Lagranges formula .