Beruflich Dokumente
Kultur Dokumente
FINITE
DIFFERENCES
Prepared By Reji P R
Assistant Professor
SNGCE , Kadayiruppu
Finite differences : Suppose that the function y = f(x) is tabulated for the equally
spaced values x = x0,x0+h ,x 0+2h .......x 0+ nh giving y = y0,y1,y2,......,yn . To
determine the values of f(x) or f '(x) for some intermediate values of x,the
following 3 types of differences are very useful.
Forward differences : The differences y1 y0, y2-y1 ,....yn-yn-1 are called the
first forward differences and is denoted by y0, y1, y2............... yn-1 where
is the forward difference operator. In general yn = yn+1 yn
Second forward differences are 2 yn = yn+1 - yn
In general p yn = p-1yn+1 - p-1yn is the pth forward differences.
Forward difference table
Value of x
Value of y
X0
y0
x0+h
y1
y2
x0+2h
x0+3h
y3
y4
y5
y
y0
y1
y2
y3
y4
2y
2 y0
2 y1
2y2
2y3
3y
3y0
3 y1
3 y2
4y
4 y0
4 y1
5 y
5 y0
x0+4h
x0+5h
In a difference table , x is called the argument and y the function or the entry.y0 ,
the first entry is called the leading term and element y0, 2 y0, 3 y0........... are
called the leading differences.
2) Backward differences : The differences y1 y0, y2-y1 ,....yn-yn-1 are called
the first backward differences and is denoted byy1, y2 , y3..yn
where y is the backward difference operator. In general ? yn = yn yn-1
Second forward differences are 2 yn = yn - yn-1
X0
x0+h
Value of y
y0
y1
y2
x0+2h
x0+3h
y3
y4
y5
y
y1
y2
y3
y4
y5
2y
2 y2
2 y3
2y4
2 y5
3 y
3 y3
3 y4
3 y5
4y
4 y4
4 y5
5 y
5 y5
x0+4h
x0+5h
X0
x0+h
Value of y
y0
y1
y2
x0+2h
1 st
difference
2 nd
difference
3rd difference
y1/2
y3/2
y5/2
2 y1
2 y2
3 y3/2
y3
x0+3h
Shift Operator( E)
The Shift operator is defined as
E y k = y k +1
E f(x) = f( x+h)
E2 f(x) = f( x+2h)..................E n f(x) = f( x + nh)
Averaging Operator ()
The averaging operator is denoted by and is defined as
f(x) = f(x +h/2) + f(x-h/2) = E + E -1/2 f(x)
2
2
Relation between the operators
1) Show that = E 1
f(x) = f(x+h) -f(x)
= E f(x) - f(x)
= (E-1)f(x)
ie, = E 1
Additional questions
1)S.T = 1- E-1
2)S.T = E E -1/2
3)S.T = E + E -1/2
2
4)S.T = E=E = E1/2
5)S.T E1/2 =
Problems
1)P.T a) hD = log ( 1 + ) = -log(1-)= sinh-1()
b) (E E -1/2) (1+)1/2 = 2+
c) 3 y2 = 3y5
DIFFERENCES OF A POLYNOMIAL
The nth difference of a polynomial of the nth degree are constant and all the higher
order differences are zero.
Factorial Notation : A product of the form x(x-1)(x-2)......(x-r+1)is denoted by [x]
r
and is called a factorial.
Eg: [x] = x
[x]2 = x(x-1)
......................
[x]n =x(x-1)(x-2)........(x-n+1)
Interpolation
Interpolation is the technique of estimating the value of a function for
any intermediate value of the independent variable.
NEWTON'S FORWARD INTERPOLATION FORMULA
y
5
2y
21
20
26
0
21
30
47
0
21
40
68
0
21
50
89
0
21
60
110
Here x0 =10, p = x - x0 = 0.1
h
y11 = y0+ p y0 + p(p-1) 2 y0 +p(p-1)(p-2) 3y0+....... + p(p-1)(p-2)......(p-n+1) n y0
2!
3!
n!
=5+0.121+0=7.1
y55 = yn+ p yn + p(p-1) 2 yn +p(p-1)(p-2) 3yn+....... + p(p-1)(p-2)......(p-n+1) n yn
2!
3!
n!
= 110 + -0.521 = 99.5
Additional Questions
1)Find the cubic polynomial which takes the following values
x: 0
1
2
3
f: 1
2
1
10 .Hence or otherwise evaluate f(4)
y
21.857
2y
3y
4y
-0.832
6
21.025
-0.001
-0.833
10
20.132
-0.153
-0.987
14
0.206
-0.154
19.145
-0.053
-0.101
-1.088
18
18.057
By stirling's formula,
yp = y0 +p { y0 + y-1 } + p2 2 y-1 + p(p2 -1 )
2
2!
3!
{ 3 y-1+ 3 y -2 } +................
2
p = x x 0 = 1/4
h
y11 = 20.132+1/4{ -0.833+-0.987} +1/16-0.154 +1/4(1/16-1)(-0.153+0.053)+
2
2!
3!
2
{1/16(1/16-1)} 0.206+....= 19.9011377
4!
Additional problems
1 Find y(35) by using the Stirling's formula from the following data
x : 20 30
40
50
y : 512 439 346 243
2 Use Stirling's formula to evaluate f(1.23) from the following data
x : 1
1.1
1.2
1.3
1.4
f(x) : 0.841 0.891 0.932 0.963 0.985
y0 = a0(x0-x1)(x0-x2)...(x0-xn)
a0 =
y0
(x0-x1)(x0-x2)...(x0-xn)
Putting x =x1 , y = y1 in (1) we get
y1 = a1(x1-x2)(x1-x3)...(x1-xn)
a1 =
y1
(x1-x2)(x1-x3)...(x1-xn)
Proceeding the same way , we find a2,a3 ...an substituting the values of a0,a1,a2...an
in (1) we get
y = (x-x1)(x-x2).... (x-xn) y0 + (x-x0)(x-x2).... (x-xn) y1 + ......+ (x-x0)(x-x1).... (x-xn-1) yn
(x0-x1)(x0-x2)...(x0-xn)
(x1-x0)(x1-x2)...(x1-xn)
(xn-x0)(xn-x1)...(xn-xn-1)
= A0y0 + A1y1+.....+Anyn
Problem
1 Using Lagrange's interpolation formula to find f(8) from the following table
x:1
4
7
9
15
y:8
11 13 14
16
By Lagrange's interpolation formula
=(x-x1)(x-x2).... (x-xn) y0 + (x-x0)(x-x2).... (x-xn) y1 + ......+ (x-x0)(x-x1).... (x-xn-1) yn
(x0-x1)(x0-x2)...(x0-xn)
(x1-x0)(x1-x2)...(x1-xn)
(xn-x0)(xn-x1)...(xn-xn-1)
here x = 8, x0 = 1,x1 = 4 , x2=7, x3 =9,x4 = 15
y0= 8,y1=11,y2= 13,y3=14,y4=16
y = 2.092171832
Additional problems
1 Given the following table, find the value of the polynomial at x = 0.9
x :0 1
2
4
f(x) : 5 14
41
98
2 Using Lagrange's formula , find the interpolating polynomial , given that
y(1) = -3
y(3) = 9,y(4)=30 & y(6) = 132
NEWTONS DIVIDED DIFFERENCE FORMULA FOR UNEQUAL
INTERVALS
or
150
1st
2nd difference
3rd
difference
difference
4th
difference
121
7
392
24
265
11
1452
1
32
457
13
2366
0
1
42
709
17 5202
Taking x = 9 in the Newtons divided difference formula,
f(9) = 810
Home work
1) Find f(8), f(2),f(15) by using Newtons divided difference formula from
the following table.
x: 4
5
7
10
11
13
y: 48
100 294
900 1210 2028
2)Estimate the values of f(22) & f(44) from
x: 20
25 30
35 40
45
y: 354 332 291 260 231 204
**************************************************