1.newtons Forward Difference
1.newtons Forward Difference
EXAMPLES
Example 1. Find the value of sin 52° from the given table:
Sol. a = 45°, h = 5, x = 52
x−a 7
∴ u= = = 1.4
h 5
Difference table is:
Differences
45° 7071
589
50° 7660 – 57
532 –7
55° 8192 – 64
468
60° 8660
(1.4)(1.4 − 1)
⇒ 104 f(52) = 104 f(45) + (1.4) 104 ∆ f(45) + 104 ∆2 f(45)
2!
(1.4)(1.4 − 1)(1.4 − 2)
+ 104 ∆3 f(45)
3!
(1.4)(.4) (1.4)(.4)(− .6)
= 7071 + (1.4)(589) + (− 57) + (– 7)
2 6
= 7880
∴ f(52) = .7880. Hence, sin 52° = 0.7880.
Example 2. The population of a town in the decimal census was as given below.
Estimate the population for the year 1895.
x y ∆y ∆2 y ∆3 y ∆4 y
1891 46
20
1901 66 –5
15 2
1911 81 –3 –3
12 –1
1921 93 –4
8
1931 101
(.4)(.4 − 1)
⇒ y(1895) = 46 + (.4)(20) + (– 5)
2
3 16
4
4 20 0
4 10
5 24 10
14
6 38
0.1 110517
11623
0.2 122140 1223
12846 127
0.3 134986 1350 17
14196 144
0.4 149182 1494
15690
0.5 164872
Age 45 50 55 60 65
Age Premium ∆y ∆2 y ∆ 3y ∆4 y
(x) (in dollars)
(y)
45 114.84
– 18.68
50 96.16 5.84
– 12.84 – 1.84
55 83.32 4 .68
– 8.84 – 1.16
60 74.48 2.84
–6
65 68.48
Here h = 5, a = 45, a + hu = 46
∴ 45 + 5u = 46 ⇒ u = .2
By Newton’s forward difference formula,
u(u − 1) 2 u(u − 1)(u − 2) 3
y46 = y45 + u ∆y45 + ∆ y45 + ∆ y45
2! 3!
u(u − 1)(u − 2)(u − 3) 4
+ ∆ y45
4!
(.2)(.2 − 1)
= 114.84 + (.2)(– 18.68) + (5.84)
2!
(.2)(.2 − 1)(.2 − 2) (.2)(.2 − 1)(.2 − 2)(.2 − 3)
+ (– 1.84) + (.68)
3! 4!
= 110.525632
Hence the premium for policies maturing at the age of 46 is $ 110.52.
Example 6. From the table, estimate the number of students who obtained scores
between 40 and 45.
Scores: 30—40 40—50 50—60 60—70 70—80
Number of students: 31 42 51 35 31.
INTERPOLATION 255
40 31
42
50 73 9
51 – 25
60 124 – 16 37
35 12
70 159 –4
31
80 190
We shall find y45, number of students with scores less than 45.
a = 40, h = 10, a + hu = 45.
∴ 40 + 10u = 45 ⇒ u = .5
By Newton’s forward difference formula,
u(u − 1) 2
y(45) = y(40) + u ∆ y(40) + ∆ y(40)
2!
x y ∆y ∆2 y ∆3 y
0 1
1
1 2 –2
–1 12
2 1 10
9
3 10
x( x − 1) x( x − 1) ( x − 2)
= 1 + x(1) + (– 2) + (12)
2! 3!
= 2x3 – 7x2 + 6x + 1
Hence, the required cubic polynomial is
y = f(x) = 2x3 – 7x2 + 6x + 1.
Example 8. The following table gives the scores secured by100 students in
the Numerical Analysis subject:
Range of scores: 30—40 40—50 50—60 60—70 70—80
Number of students: 25 35 22 11 7
Use Newton’s forward difference interpolation formula to find.
(i) the number of students who got scores more than 55.
(ii) the number of students who secured scores in the range between 36 and 45.
Sol. The given table is re-arranged as follows:
Scores obtained Number of students
Less than 40 25
Less than 50 60
Less than 60 82
Less than 70 93
Less than 80 100
INTERPOLATION 257
40 25
35
50 60 – 13
22 2
60 82 – 11 5
11 7
70 93 –4
7
80 100
35 13229
18139
45 31368 6086
24225 1185
55 55593 7271
31496
65 87089
INTERPOLATION 259
and r is A +
FG B IJ , where A is the arithmetic mean of q and r and B is arithmetic
H 24 K
mean of 3q – 2p – s and 3r – 2s – p.
q+r
Sol. A= ⇒ q + r = 2A
2
(3q − 2 p − s) + (3r − 2 s − p) 3q + 3r − 3 p − 3s
B= =
2 2
3(q + r) 3( p + s)
= −
2 2
Let the entries p, q, r, and s correspond to x = a, a + h, a + 2h, and a + 3h,
respectively. Then the value of the argument lying half way between a + h and
FG h IJ 3h
a + 2h will be a + h + i.e., a + .
H 2K 2
3 3
Hence a + mh = a + h ⇒ m=
2 2
Let us now construct the difference table:
a p
q–p
a+h q r – 2q + p
r–q s – 3r + 3q – p
a + 2h r s – 2r + q
s–r
a + 3h s
260 COMPUTER-BASED NUMERICAL AND STATISTICAL TECHNIQUES
3 3 3 3 3 FG IJ FG IJ FG IJ
−1 −1 −2
FG 3 IJ3 2 2 2 2 2 H K H KH K
f a + h = f(a) + ∆ f (a) + ∆2 f (a) + ∆3 f (a)
H 2 K2 2 6
3 3 1
=p+ (q – p) + (r – 2q + p) – (s – 3r + 3q – p)
2 8 16
(16 p − 24 q − 24 p + 6 r − 12q + 6 p − s + 3r − 3q + p)
=
16
=
1
(– p + 9q + 9r – s) =
9
(q + r) –
FG p + s IJ
16 16 H 16 K
9 2 3A − B FG IJ
= (2A) –
16 3 16 H K
9 1 B B
= A– A+ =A+ .
8 8 24 24
ASSIGNMENT 4.4
1. The following table gives the distance in nautical miles of the visible horizon for the
given heights in feet above the earth’s surface.
x: 100 150 200 250 300 350 400
y: 10.63 13.03 15.04 16.81 18.42 19.9 21.27
Use Newton’s forward formula to find y when x = 218 ft.
2. If lx represents the number of persons living at age x in a life table, find, as accurately as
the data will permit, lx for values of x = 35, 42 and 47. Given
l20 = 512, l30 = 390, l40 = 360, l50 = 243.
3. The values of f(x) for x = 0, 1, 2, ......, 6 are given by
x: 0 1 2 3 4 5 6
f(x): 1 3 11 31 69 131 223
Estimate the value of f(3.4), using only four of the given values.
4. Given that:
x: 1 2 3 4 5 6
y(x): 0 1 8 27 64 125
Find the value of f(2.5).
INTERPOLATION 261
11. The table below gives value of tan x for .10 ≤ x ≤ .30.
x: .10 .15 .20 .25 .30
tan x: .1003 .1511 .2027 .2553 .3093
Evaluate tan 0.12 using Newton’s forward difference formula
12. (i) Estimate the value of f(22) from the following available data:
x: 20 25 30 35 40 45
f(x): 354 332 291 260 231 204
(ii) Find the cubic polynomial which takes the following values:
y(0) = 1, y(1) = 0, y(2) = 1 and y(3) = 10
Hence or otherwise obtain y(4).
(iii) Use Newton’s method to find a polynomial p(x) of lowest possible degree such that
p(n) = 2n for n = 0, 1, 2, 3, 4.
Let y = f(x) be a function of x which assumes the values f(a), f(a + h),
f (a + 2h), ......, f(a + nh) for (n + 1) equidistant values a, a + h, a + 2h, ......, a + nh
of the independent variable x.
Let f(x) be a polynomial of the nth degree.
+ An (x – a – nh) (x – a – n − 1 h) ...... (x – a – h)
where A0, A1, A2, A3, ......, An are to be determined. (23)
∇ f (a + nh)
⇒ A1 = (25)
h
Put x = a + (n – 2)h, then
f (a + n − 2 h) = A0 – 2hA1 + (– 2h) (– h) A2