CHAPTER IV
INTERPOLATION FOR UNEQUAL
INTERVALS
- In the previous chapter formulae have been developed on the assumption that the argument proceeded by equal intervals. Although in actuarial problems the data are generally given at equidistant intervals of the independent variable, it sometimes happens that we are required to interpolate when values of the function are known for unequal intervals. In other words, instead of values of ux for arguments x + h, x + zh, x + 3h, ... being given, the known values are x + a, x + b, x + c, ..., where a b, b c, ... are not necessarily equal.
Divided differences.Since we cannot take out the differences as hitherto defined, we adopt a process of differencing involving the argument as well as the entry. The differences obtained by this process are called " divided " differences, and are found in the following manner.Let 11x be given for the values x = a, x = b, x = c, x = d, ..., where the intervals need not be equal. Then we have
- First divided differences :
lib ua. uc Zlb. 11d uc .ba ' cb ' dc ' which may be denoted by11a;0'11,;0'21; ....
- Second divided differences :
O'Zlb 0'ua0'uc O'11bL,'11d ca'db 'ecA/2ua;A'211b;A'211~; ....
- Third divided differences :
D,2ub-01211a3d aorua ; ...orand so on.
58 FINITE DIFFERENCES A numerical example will make this clear.
Example 1.
Take out the divided differences of ux given the following table:
x I 2 4 7 12
ux 22 30 82 1o6 206
The table is
x ux 0'1[x O'2ux A'3ux a'Qux
I 22
30-22=8 2 - I
z 30
26-8=6 4-I
82-30=26 4-2
-3.6-6=-16 7-1
4 82
8-26
=-36 7 -2
51 - (- I'6)
I2-I
I.5-(-3.6)
=51
I2-2
Io6-82_8 7-4
7
Io6
20-8 I2-4
206 - Io6 =20 I2-7
12 2o6
It is essential to arrange the work systematically if error is to be avoided. The numerators and denominators must be set out, either in parallel columns or in the form of fractions. Where there is ample space the columnar arrangement is better, especially where the divisors are cumbrous. It should be noted that while the numerators are the first differences of the preceding divided differences, the denominators are all formed directly from the arguments, differencing first in the ordinary way, then in pairs, then in triplets, ... and so on. It will also be seen that the divisor is always the difference between the values of x for the last and first ux involved in the difference.
3. Newton's divided difference formula.
An alternative notation for divided differences is as follows. Let the function be f (x) and the arguments x0, xi, x2, ... xT. Then the successive divided differences are
NEWTON'S DIVIDED DIFFERENCE FORMULA
f(xo,xl)=f(xo)-f(x1) xox1 '
f(xo,x1,x2)=f (4,x1)f(x1,x2) -
Xi) x2
...............
where the arguments are all different.
If we replace xo, x1, ... x, by x, ao, a1, ... an, we obtain a system that may be written
(x ao) f (x, ao) = f (x) f (ao),
(x a1)f (x, ao, a1) = f (x, ao) .f (ao, a1),
(xan)f(x,ao,...an)=f(x,a0,...an_1)f(a°,a1, ... an). From this we obtain in succession
f (x) = f (ao) + (x ao) f (x, ao)
= f (ao) + (x ao) f (ao , a1) + (x ao) (x a1) f (x, ao, a1)
and generally .f(x)=f(ao)+(xao)f(ao,a1)+(xao)(xa1)f(ao,a1,a2)+...
+ (x a0) (x a1) ... (x an_1) f (ao, a1, ... an) + R,
where
R= (x ao) (xa1)... (xan)f (x,ao,a1, ... an).
This is Newton's formula with divided differences.
It should be noted that the term preceding R in the expansion is (x ao) (x a1) ... (x an_1) f (ao, a1, ... an), there being n factors in the coefficient. In R, however, the coefficient has n + 1 factors, the new factor (x an) being introduced.
Reverting to the notation
~~n11! ~~n1Zf
,gnu = arrl ar
dr
an+r a,.
6o FINITE DIFFERENCES
For a further investigation of the remainder term R see the article "On certain Formulae of Approximate Summation, etc." in j.I.A. vol. LIII, by Prof. Steffensen, to whom the above proof is due.
- Theorems similar to those proved for the ordinary advancing difference formula can be shown to be true for divided differences. The following important proposition holds equally for divided differences as for differences at equal intervals.
If ux be a rational integral function of the nth degree in x, then the nth divided difference is constant.It will be sufficient to consider the function y = xn.Then, if the values of the argument x be a, b, c, ..., the first divided difference is(bn an)/(b a) = bn-1 + bn-2a + bn-3a2 + ... + an-1,a homogeneous function of a and b of degree (n 1). Again, the second divided difference is(cn1 +cn2b +cn3b2 +... + bn1) (bn1+ bn2a +bn3 a2 + ... + an1) ca'
or(01 + cn2b + 03b2 +... + bn1) (an1 + an2b + an3b2 +... + bn1)ca01 an102 an2C a- +b+...+bn_2cacac a'and since c a is a factor of all the numerators, this is a homofunction of a, b, c of the (n z)th degree.Generally, the pth divided difference is a homogeneous function of (p + r) values of the argument of the (n p)th degree.Therefore the nth divided difference will be of the (n n)th degree, i.e. will be constant.If nth divided differences are constant, higher divided differences will be zero. In that event the expansion for ux in para. 3 will stop at the term just preceding R, and we shall have identicallyux = 11ao + (x a0) uao + (x a0) (x a1) O'21Lao + ...+ (x a0) (x a1) ... (x an_1)uao
- Newton's divided difference formula can be applied quite easily in practice, as the following example will show.
NEWTON'S ADVANCING DIFFERENCE FORMULA 61 Example 2.
From the data in Ex. I, find u8.
Assuming fourth divided differences constant, the formula gives u8=u1+(8I)A'u1+(8I)(82)ZS.2u1
+(8 I)(82)(84)A'3u1+(8 I)(82)(84)(87)A4uj = 111 + 7A'u1 + 42A'2u1 + 168A'3u1 + 168A'4u1
= 22 + 56 + 252 268.8 + 32'3
= 93 to the nearest integer.
6. Development of Newton's advancing difference formula. If the interval b a = h, we have
,'Zla = (ub ua)/(b a) = (ua±h ua)/h = Iua/h; also if the interval c b = the interval b a = h,
0'211. _ /(1 (1'u, A'ua)/(C a)
(ua+2h ua+h)/h (ua+h Ua)lh
2h
(na+2h 2ua+h + ua)/2h2 = A2z1a/2h2. Similarly, if the interval d c is also h,
A'3ua = (z'2ub A'2ua)/(d a)
(ua+3h 2ua+2h + ua+h)/2h2 (ua42h 2ua+h + ua)12h2
3h
= (ua+3h 311a+2h + 3t1a+h ua)/3.2h3 = A3ua/3 h3, and so on.
The formula for us in terms of ua and its leading divided differences is
ux=ua+ (xa)+ (x a) (x b)I'2ua
+ (xa) (xb) (xc)A'3ua+ .
+(xa) (xb) (.xc)... (xk)A'fdua. This becomes, on putting x a = nh,
ua+nh = ua + tlhA'ua + nh [nh (b a)] ,'2110
+ nh [nh (b a)] [nh (c a)]A'3ua+.... If now we have equal intervals, so that
b a = h, c a= 2h,..., and so on,
62 FINITE DIFFERENCES nh0ua nh (nh h) 02ua
ua+nh=ua+ h + 2! h2
from the relations proved above,
i.e. ua+nh = ua + niAua + n2L2ua + n3L 3ua + ...,
which is Newton's formula for advancing differences. 7. Lagrange's interpolation formula.
On the same assumption as has been made hitherto, namely that the function concerned is a rational integral function of x, an interpolation formula can be evolved which is equivalent to the process of splitting up an algebraic fraction into its partial fractions.
Let n values of the function y = ux be given, so that u, is sup-posed to be a rational integral function of the (n I)th degree in x, and let the given values of x be a, b, c, ... k.
Then we may write
ux=A(xb)(xc)...(xk)+B(xa)(xc)...(xk)+... +K(xa) (xb)... (x
where there are n terms each of degree n i in x.
This is true for all values of x involved. Put therefore x = a.
Then ua = A (a b) (a c) ... (a k),
ua
`q (ab) (a-c) ... (ak)'
Similarly, by putting x = b,
ub B _
(ba)(bc)...(bk)'
In like manner all the coefficients can be found.
(x b) (x c) (x k) (x a) (x c) (x k)
.'. ux=ua(ab) (ac)... (ak)+ub (b a) (bc)... (bk) +.
(xa)(xb)(xc)... +uk(ka)(kb)(kc)...'
+nh(nhh)(nh2h)43ua+...
3!h3
LAGRANGE'S FORMULA 63
or otherwise
ux _ ua I
(xa)(xb)... (xk) (a b) (a c) ... (a k)x a
ub
+(ba) (bc)... (bk)xb+
It is evident that this is exactly the same as splitting the fraction
ux
(xa)(xb)... (x k) into partial fractions.
This alternative expression is due to Euler and was given earlier than Lagrange's formula.
It is interesting to note that Euler's form, when written as
f (x) - f (a) + .f (b) + ...
(xa)(xb) ... (a x) (ab)... (b x) (b a) ...
is an expression for the divided difference f (x, a, b, c, ... k). It follows therefore that Euler's formula (and consequently Lagrange's) can be evolved from the divided difference formula by equating the nth divided difference to zero.
8. Lagrange's formula is usually laborious to apply in practice and requires close attention to sign; it is generally simpler to employ other finite difference methods. Where the intervals are equal an advancing difference formula may be used, and for unequal intervals it is preferable to use divided differences.
The principles on which this formula has been developed are the same as those assumed for the difference formulae, namely that n values of the function being given, nth differences are assumed zero. The following examples show the application of the formula.
Example 3.
Given the data in Ex. I, obtain u8 by the use of Lagrange's formula.
+(4 I)(42)(4 7)(4 12) 0 1 4)+...,
64
FINITE DIFFERENCES
22 30
7.6.4.1.(4) (1)(3)(6)(11).7+ I.(2)(5)(Io).6
82 1o6
+ 3.2.( 3) ( 8).4 + 6.5.3.( 5).1
206
+ II.I0.8.5.( 4)'
.', u8 = io666 ... + 33.6 95.666 ... + 158.293 ... + 7.865 = 93 (to the nearest integer) as in Ex. 2.
Example 4.
Find the form of the function y = us given that
uo = 8, ul = II, u4 = 68, u5 = 123. By Lagrange's formula :
4x(x5) 4(x1)(x4)'
... ux = [(23x + 8) (x2 5x + 4) (19x 8) (x2 5x)]
=x3x2+3x+8.
It is instructive to work out this example by divided differences, using two different orders for the values of x, thus illustrating the important principle that the order is indifferent.
(a) x us O'ux A'2ux O'3ux
0 8
3 + I = 3
I I1 16-4=4
4 68 57±3=19 364_9 5=5=1
55=1=55
5 123
uR
x(x 1) (x
us
8 I II I
-4)(x5) (1)(4)(5) x+1(3)(4) x1
68 I 123 I
+ 4.3( 1).x4 + 5.4.1.x5
2 I 11 I 68 1 123
5 XT 12x- I 12X4+ 20 x5
1 1 1 5 X + 4 0 1 57X 24
20 x(x5) I2(X 1)(x4)
23X+8 19x'8
ux=8+3x+4x(xI)+Ix(xI)(x4)=x3-x2+3x+8.
EXAMPLES 65
(b) x ux A'ux A'3ux A'3ux 5 123
9. Newton's formula for divided differences may be considered as the basic formula in finite differences. It has been shown that, by making the intervals equal, the ordinary advancing difference formula follows, and that Lagrange's formula can be evolved from the divided difference formula by equating the nth divided difference to zero. Moreover, by taking the limiting values when the intervals tend to zero, an important theorem known as Taylor's theorem follows. (See Chapter xi.)
EXAMPLES 4
- Given terms at unequal intervals, explain how to apply the method of divided differences to find an interpolated value : illustrate your answer by finding u5 given
u4.50 = 1345, u4.55 = 1470, u4.70 = 2010, u4.90 = 3815, U5.15= 10965.
- u40 = 43833, U42 = 46568, u44 = 49431, U45 = 50912. Use divided differences to find u43.
3. Given the following table, find log 656.No.654658659, 661Log 2.81562'81822.81892.8202
- u50 = 1'6990, U52 = P7160, u54 = P7324, u55 = P7404. Find u53 by
divided differences.
- u35.0 = I175, u35.5 = 1280, U39.5 = 2180, U40.5 = 2420. Obtain a value for u40 (i) by advancing differences, (ii) by divided differences.
u7 0 = 235, u7.1 = 256, u7.9 = 436, U3.1 = 484. Find u8.0.
66 FINITE DIFFERENCES
7. Find the first three divided differences of the function y = x-2 for the arguments x = 1, m, n, p.
Find by Lagrange's formula the value of
- 8.u48 given u4o = 15'22, U45 = 13'99, U50 = 12.62, U55 = I I' 13.
u$ given uo = 17'378, U5 = 15'894, ulo = 14'270, 1215 = 12'412. 1o. u22 given u10 = 22.40, u15 = 21.66, u20 = 20.82, u25 = 19.85. II. ul given uo =400, u2 =128, u3 = 224, u4 = 376.12. Use Lagrange's formula to find the form of the function y = f (x) givenx0236120 I)a_l ~
the above
formula.
- 14.By means of Lagrange's formula, prove that, approximately,
(I) ul = U3'3 (u5 U_3) + '2 (12_3 24_5),(2) u0 = 2 ~ul + u_11 13- [1 (123 ul) (u1 U_3)].
- Four equidistant values u_l, uo, ul, and u2 being given, a value is interpolated by Lagrange's formula. Show that it may be written in the form
ux = yu0 + xul + y (.~''? _ I ). Q2u_l + x (x2 , 1 il222o , 3.3where x+y=1.16. If f (al , ao) = f (al) f (ao_) , f (a2, al) = f (a2) f (a1) etc. be al aoa2aldivided differences of the first order; f (a2, al, ao) =f (a2, al) f (al, ao)' a2a0etc. divided differences of the second order and so on, find f (2, 4, 9, Io), where f (x) = (i) x3 2x, (ii) x4 + x2 + 1.
- Prove that if ux be a rational integral function of x of the nth degree, and if values ua , ub , u~ , ... of ux be given, then the expression for ux in terms of its divided differences is the same whatever the order of arrangement of the u's.
f(x)65970572980413. Values of ux are given for all integral values of x from o to n Show that ux is capable of expression in the formxun_1un-2(x72)~(nI)![xn+I(n 1) _ _
lxn+2F(nI)2xn+3...f(n
Find u4 given uo = 4, ul = 7, u2 = 12, U3 = 20, by using- 1.
EXAMPLES 67
- 18.Apply Lagrange's formula to find f (5) and f (6), given that
f(I)=2,f(2)=4,f(3)=8,f(4)= 16 andf(7)= 128;
and explain why the results differ from those obtained by completing the series of powers of 2.
- 19.U_30=30;u-13=34;u3=38;u18=42. Find u0.
u70 = 7'69; u72 = 7'07; u73 = 6.78 ; u75 = 6.18. Interpolate to find u71 by divided differences, using the following orders of the argument:(i) 70, 73, 75, 72 ;(ii) 72, 75, 70, 73.
- By means of divided differences, find the value of u19 from the following table :
xII17212331ux 14,64683,526194,486279,846923,526