Categories
Applied Mathematics

Forward Differences 01

In this article, we shall study to prepare the forward difference table from the given data.

Example – 1:

If f(x) = x2 + x + 1, construct a forward difference table by taking x = 0, 1, 2, 3, 4, 5 i.e. 0(1)5. Hence find Df(o), D2f(1) and D3f(2).

Solution:

Given f(x) = x2 + x + 1 and x = 0, 1, 2, 3, 4, 5 i.e. 0(1)5.

f(0) = 02 + 0 + 1  = 0 + 0 + 1 = 1

f(1) = 12 + 1 + 1  = 1 + 1 + 1 = 3

f(2) = 22 + 2 + 1  = 4 + 2 + 1 = 7

f(3) = 32 + 3 + 1  = 9 + 3 + 1 = 13

f(4) = 42 + 4 + 1  = 16 + 4 + 1 = 21

f(5) = 52 + 5 + 1  = 25 + 5 + 1 = 31

The forward difference table is constructed as follows.

xf(x)Δf(x)Δ2f(x)Δ3f(x)
01
3 – 1 = 2
134 – 2 = 2
7 – 3 = 42 – 2 = 0
276 – 4 = 2
13 – 7 = 62 – 2 = 0
3138 – 6 = 2
21 – 13 = 82 – 2 = 0
42110 – 8 = 2
31 – 21 = 10
531

From table we can see that Δ2f(x) = 2 = constant and Δ3f(x) = 0

Note:

  • Given function is f(x) = x2 + x + 1. The highest power is 2, which obviously means Δ2f(x) = constant and Δ3f(x) = 0.
  • No need to show steps of calculations as shown in Δf(x),  Δ2f(x) and Δ3f(x) columns. You can write the values directly. To explain the concept for some problems steps are shown.

Example – 2:

If f(x) = x2 – 3x + 1, construct a forward difference table by taking x = 0, 1, 2, 3, 4, 5 i.e. 0(1)5. Verify that the second differences are constant.

Solution:

Given f(x) = x2 – 3x + 1 and x = 0, 1, 2, 3, 4, 5 i.e. 0(1)5.

f(0) = 02 – 3(0) + 1 = 0 – 0 + 1 = 1

f(1) = 12 – 3(1) + 1 = 1 – 3 + 1 = -1

f(2) = 22 – 3(2) + 1 = 4 – 6 + 1 = -1

f(3) = 32 – 3(3) + 1 = 9 – 9 + 1 = 1

f(4) = 42 – 3(4) + 1 =16 – 12 + 1 = 5

f(5) = 52 – 3(5) + 1 = 25 – 15 + 1 = 11

The forward difference table is constructed as follows.

xf(x)Δf(x)Δ2f(x)
01
-1 -1 = -2
1-10 – (-2) = 2
-1 – (-1) = 0
2-12 – 0 = 2
1 – (-1) = 2
314 – 2 = 2
5 – 1 = 4
456 – 4 = 2
11 – 5 = 6
511

From table we can see that second order differences i.e. Δ2f(x) = 2 = constant

Example – 3:

If f(x) = 2x2 + 5, construct a forward difference table by taking x = 0, 2, 4, 6, 8 i.e. 0(2)8. Verify that the third differences are zero.

Solution:

Given f(x) = 2x2 + 5 and x = 0, 2, 4, 6, 8 i.e. 0(2)8.

f(0) = 2(0)2 + 5 = 0 + 5 = 5

f(2) = 2(2)2 + 5 = 8 + 5 = 13

f(4) = 2(4)2 + 5 = 32 + 5 = 37

f(6) = 2(6)2 + 5 = 72 + 5 = 77

f(8) = 2(8)2 + 5 = 128 + 5 = 133

The forward difference table is constructed as follows.

xf(x)Δf(x)Δ2f(x)Δ3f(x)
05
8
21318
240
43716
400
67716
56
8133

From table we can see that third order differences i.e.  Δ3f(x) = 0

Example – 4:

If f(x) = 2x3 – x2 + 3x + 1, construct a forward difference table by taking x = 0, 1, 2, 3, 4, 5 i.e. 0(1)5. Verify that the third differences are constant.

Solution:

Given f(x) = 2x3 – x2 + 3x + 1 and x = 0, 1, 2, 3, 4, 5 i.e. 0(1)5.

f(0) = 2(0)3 – (0)2 + 3(0) + 1 = 0 – 0 + 0 + 1 = 1

f(1) = 2(1)3 – (1)2 + 3(1) + 1 = 2 – 1 + 3 + 1 = 5

f(2) = 2(2)3 – (2)2 + 3(2) + 1 = 16 – 4 + 6 + 1 = 19

f(3) = 2(3)3 – (3)2 + 3(3) + 1 = 54 – 9 + 9 + 1 = 55

f(4) = 2(4)3 – (4)2 + 3(4) + 1 = 128 – 16 + 12 + 1 = 125

f(5) = 2(5)3 – (5)2 + 3(5) + 1 = 250 – 25 + 15 + 1 = 241

The forward difference table is constructed as follows.

xf(x)Δf(x)Δ2f(x)Δ3f(x)
01
4
1510
1412
21922
3612
35534
7012
412546
116
5241

From table we can see that third order differences i.e.  Δ3f(x) = 12 = constant

Example – 5:

If f(x) = x3 – 2x2 + 1, construct a forward difference table by taking x = 0, 1, 2, 3, 4 i.e. 0(1)4. Verify that the fourth differences are zero.

Solution:

Given f(x) = x3 – 2x2 + 1 and x = 0, 1, 2, 3, 4 i.e. 0(1)4.

f(0) = 03 – 2(0)2 + 1 = 0 – 0 + 1 = 1

f(1) = 13 – 2(1)2 + 1 = 1 – 2 + 1 = 0

f(2) = 23 – 2(2)2 + 1 = 8 – 8 + 1 = 1

f(3) = 33 – 2(3)2 + 1 = 27 – 18 + 1 = 10

f(4) = 43 – 2(4)2 + 1 = 64 – 32 + 1 = 33

The forward difference table is constructed as follows.

xf(x)Δf(x)Δ2f(x)Δ3f(x)Δ4f(x)
01
-1
102
16
2180
96
31014
23
433

From the table, we can see that fourth-order differences i.e. Δ4f(x) are zero.

Example – 6:

By constructing a forward difference table find the 7th and 8th terms of a sequence 8, 14, 22, 32, 44, 58,….

Solution:

Let f(1) = 8, f(2) = 14, f(3) = 22, f(4) = 32, f(5) = 44, f(6) = 58

We have to find f(7) and f(8)

We prepare following forward difference table.

xf(x)Δf(x)Δ2f(x)
18
6
2142
8
3222
10
4322
12
5442
14
6582
16
7742
18
892

We can see that the second differences i.e. Δ2f(x) are constant.

  • To find f(7), extra 2 (shown in red colour) is written in D2f(x) column. The entry in Df(x) is 2 + 14 = 16 (shown in red colour) is added. The entry in f(x) is 16 + 58 = 74 (shown in red colour) is added. Thus f(7) = 74.
  • To find f(8), extra 2 (shown in green colour) is written in D2f(x) column. The entry in Df(x) is 2 + 16 = 18 (shown in green colour) is added. The entry in f(x) is 18 + 74 = 92 (shown in green colour) is added. Thus f(8) = 92.

Thus 7 th and 8 th terms of series are 74 and 92 respectively.

Example – 7:

By constructing a forward difference table find the 6th and 7th terms of a sequence 6, 11, 18, 27, 38,….

Solution:

Let f(1) = 6, f(2) = 11, f(3) = 18, f(4) = 27, f(5) = 38

We have to find f(6) and f(7)

We prepare following forward difference table.

xf(x)Δf(x)Δ2f(x)
16
5
2112
7
3182
9
4272
11
5382
13
6512
15
766

We can see that the second differences are 2 i.e. constant

2 replies on “Forward Differences 01”

Leave a Reply

Your email address will not be published. Required fields are marked *