Session 3
Session 3
Assume that we have a set of values (xi , yi ), i = 1, 2, 3, . . . , n of functions y = f (x), the value
of x being equally spaced i.e
xi = x0 + ih, i = 1, 2, 3, . . . , n.
1. Forward differences;
2. Backward differences;
3. Central differences.
We have:
Where 4 is called the forward difference operator, and 4y0 , 4y1 , 4y2 , 4y3 , . . . 4yn
are called the first forward differences. In general, the first forward differences are given by
4yi = yi+1 − yi , i = 0, 1, 2, 3, . . . , n.
The differences of the first forward differences are called the second forward differences and are
denotes by
42 y0 , 42 y1 , 42 y2 , 42 y3 , . . . 42 yn .
Now, the second forward differences are defines as the differences of the first differences, that
is:
42 y0 = 4(y1 − y0 ) = 4y1 − 4y0 = (y2 − y1 ) − (y1 − y0 ) = y2 − 2y1 + y0 .
42 y1 = 4(y2 − y1 ) = 4y2 − 4y1 = (y3 − y2 ) − (y2 − y2 ) = y3 − 2y2 + y1 .
In general
42 yn = 4yn+1 − 4yn = yn+2 − 2yn+1 + yn .
15
Here, 42 is called the second forward difference operator. Similarly, one can define third
forward differences are:
44 y 0 = 43 y 1 − 4 3 y 0
= (y4 − 3y3 + 3y2 − y1 ) − (y3 − 3y2 + 3y1 − y0 )
= y4 − 4y3 + 6y2 − 4y1 + y0
Hence,
It is therefore, clear that any higher order forward differences can easly be expressed in terms
of the ordinated, since the coefficients occuring on the right side are the binomial coefficients.
In general, the nth differences are difined as:
4f (x) = f (x + h) − f (x),
42 f (x) = f (x + 2h) − 2f (x + h) + f (x),
43 f (x) = f (x + 3h) − 3f (x + 2h) + 3f (x + h) − f (x),
The following table shows how the forward differences of all orders can be formed:
x y = f (x) 4 42 43 44 45
x0 y0
x1 y1 4y0
x2 y2 4y1 42 y 0
x3 y3 4y2 42 y 1 43 y0
x4 y4 4y3 42 y 2 43 y1 44 y 0
x5 y5 4y4 42 y 3 43 y2 44 y 1 45 y 0
The first term in the table y0 is called the leading term and the differences 4y0 , 42 y0 , 43 y0 , . . .
are called the leading differences. The above differences table is known as forward difference
table or Diagonal difference table.
16
• 4m 4n f (x) = 4m+n f (x), where m and n are positive integers.
• 4 [f (x).g(x)] 6= f (x).4g(x).
Observation 1: We can express any higher order forward difference of y0 in terms of the entire
y0 , y1 , y2 , . . . , yn . From
4y0 = y1 − yo ,
42 y0 = y2 − 2y1 + y0 ,
43 y 0 = y3 − 3y2 + 3y1 − y0 ,
44 y 0 = y4 − 4y3 + 6y2 − 4y1 + y0 , and so on.
We can see that the coefficients of the entries on the RHS are binomial coefficients. Therefore,
in general
n n n n
4 yn = yn + yn−1 + yn−2 + yn−3 + . . . + (−1)n y0 (10)
1 2 3
Observation 2: We can express any value of y in terms of leading entry y0 . We know that
y1 − y0 = 4y0 ⇒ y1 = y0 + 4y0
⇒ y1 = (1 + 4)y0 .
Now,
y2 − y1 = 4y1 ⇒ y2 = y1 + 4y1
⇒ y2 = (1 + 4)y1
y2 = (1 + 4)2 y0 .
Similarly, y3 = (1 + 4)3 y0 and so on. In general,
n n n 2 n
yn = (1 + 4) y0 = y0 + 4y0 + 4 y0 + 43 y 0 + . . . + 4n y 0 . (11)
1 2 3
17
x y = f (x) ∇ ∇2 ∇3 ∇4 ∇5
x0 y0
x1 y1 ∇y1
x2 y2 ∇y2 ∇2 y2
x3 y3 ∇y3 ∇2 y3 ∇3 y3
x4 y4 ∇y4 ∇2 y4 ∇3 y4 ∇4 y4
x5 y5 ∇y5 ∇2 y5 ∇3 y5 ∇4 y5 ∇5 y5
In function notation, these are written as
y1 − y0 = δy 1 ,
2
y2 − y1 = δy 3 ,
2
y3 − y2 = δy 5 , . . .
2
yn − yn−1 = δyn− 1 .
2
δy 3 − δy 1 = δ 2 y1 ,
2 2
δy 5 − δy 3 = δ 2 y2 , . . .
2 2
δ 2 y2 − δ 2 y1 = δ 3 y 3 , and so on.
2
18
We can see from the table that central differences on the same horizontal line have the same
suffix. Also, all odd differences have a fractional suffix, and the even differences have an integer
suffix.
Note 1: From the three tables, we can see that only the notation changes, not the differences.
For example,
y1 − y0 = 4y0 = ∇y1 = δy 1 .
2
Similarly,
∇yx = yx − yx−h ,
δyx = yx+ h − yx− h , and so on.
2 2
Evaluate 43 y1 , yx , and y5 .
Solution: The forward difference table is given below.
x y 4 42 43 44
x0 = 0 y0 = 1
x1 = 1 y1 = 1.5 4y0 = 0.5
x2 = 2 y2 = 2.2 4y1 = 0.7 42 y0 = 0.2
x3 = 3 y3 = 3.1 4y2 = 0.9 42 y1 = 0.2 43 y0 = 0
x4 = 4 y4 = 4.6 4y3 = 1.5 42 y2 = 0.6 43 y1 = 0.4 44 y0 = 0.4
19
Example 8. : (Forward differences)
Find the polynomial of degree three which has the values equal to 1, 15, 85 and 259 corresponding
to the values 0, 2, 4 and 6 of the argument.
Solution: Let the variables be x and y. Then we have the following forward difference
table.
x y 4 42 43
0 1
2 15 14
4 85 70 56
6 259 174 104 48
x−x0
Here, h = 2. To use the formulae, we take x0 = 0. Then x = x0 + ph i.e (p = h
) gives
p = x2 , 4y0 = 14, 42 y0 = 56, 43 y0 = 48.
x x x 1 x x x 1
y(x) = 1 + (14) + ( − 1) (56) + ( − 1)( − 2) (48) = x3 + x2 + x + 1
2 2 2 2 2 2 2 6
EXERCISE II.1:
1. Prove the following results:
• 4∇ = ∇4 = 4 − ∇δ 2
4 ∇
• 4+∇= ∇
− 4
4. Show that
• y3 = y2 + 4y1 + 42 y0 + 43 y0 .
• 42 y8 = y8 − 2y7 + y6 .
20