10.4 KB · commit a9602da
In the preceding section, we derived and discussed Newton's forward and backward interpolation formulae, which are applicable for interpolation near the beginning and end respectively, of tabulated values. We shall, in the present section, discuss the central difference formulae which are most suited for interpolation near the middle of a tabulated set. The central difference operator δ was already introduced in Section 3.3.3.
The most important central difference formulae are those due to Stirling, Bessel and Everett. These will be discussed in Sections 3.7.2, 3.7.3 and 3.7.4, respectively. Gauss's formulae, introduced in Section 3.7.1 below, are of interest from a theoretical stand-point only.
In this section, we will discuss Gauss' forward and backward formulae.
We consider the following difference table in which the central ordinate is taken for convenience as y0 corresponding to x=x0.
The differences used in this formula lie on the line shown in Table 3.6. The formula is, therefore, of the form yp=y0+G1Δy0+G2Δ2y−1+G3Δ3y−1+G4Δ4y−2+⋯(3.16) where G1,G2,… have to be determined. The yp on the left side can be expressed in terms of y0, Δy0 and higher-order differences of y0, as follows:
Table 3.6 — Gauss' Forward Formula.
Clearly,
yp=Epy0=(1+Δ)py0,using relation (3.8a)=y0+pΔy0+2!p(p−1)Δ2y0+3!p(p−1)(p−2)Δ3y0+⋯Similarly, the right side of Eq. (3.16) can also be expressed in terms of y0, Δy0 and higher-order differences. We have
Δ2y−1=Δ2E−1y0=Δ2(1+Δ)−1y0=Δ2(1−Δ+Δ2−Δ3+⋯)y0=Δ2(y0−Δy0+Δ2y0−Δ3y0+⋯)=Δ2y0−Δ3y0+Δ4y0−Δ5y0+⋯Δ3y−1=Δ3y0−Δ4y0+Δ5y0−Δ6y0+⋯
Δ4y−2=Δ4E−2y0=Δ4(1+Δ)−2y0=Δ4(y0−2Δy0+3Δ2y0−4Δ3y0+⋯)=Δ4y0−2Δ5y0+3Δ6y0−4Δ7y0+⋯Hence Eq. (3.16) gives the identity
y0+pΔy0+2!p(p−1)Δ2y0+3!p(p−1)(p−2)Δ3y0+4!p(p−1)(p−2)(p−3)Δ4y0+⋯=y0+G1Δy0+G2(Δ2y0−Δ3y0+Δ4y0−Δ5y0+⋯)+G3(Δ3y0−Δ4y0+Δ5y0−Δ6y0+⋯)+G4(Δ4y0−2Δ5y0+3Δ6y0−4Δ7y0+⋯)+⋯(3.17)Equating the coefficients of Δy0,Δ2y0,Δ3y0, etc., on both sides of Eq. (3.17), we obtain
G1G2G3G4=p,=2!p(p−1),=3!(p+1)p(p−1),=4!(p+1)p(p−1)(p−2).⎭⎬⎫(3.18)This formula uses the differences which lie on the line shown in Table 3.7.
Table 3.7 — Gauss' Backward Formula.
Gauss' backward formula can therefore be assumed to be of the form yp=y0+G1′Δy−1+G2′Δ2y−1+G3′Δ3y−2+G4′Δ4y−2+⋯(3.19) where G1′,G2′,… have to be determined. Following the same procedure as in Gauss' forward formula, we obtain
G1′G2′G3′G4′=p,=2!p(p+1),=3!(p+1)p(p−1),=4!(p+2)(p+1)p(p−1)⋮⎭⎬⎫(3.20)which gives p=0.050.02=41. The difference table is given below.
Difference table for Example 3.9.
Using formulae (3.16) and (3.18), we obtain
e1.17=3.1582+52(0.1619)+2(2/5)(2/5−1)(0.0079)+6(2/5+1)(2/5)(2/5−1)(0.0004)=3.1582+0.0648−0.0009=3.2221.◀
Taking the mean of Gauss' forward and backward formulae, we obtain
Formula given in Eq. (3.21) is called Stirling's formula.
This is a very useful formula for practical interpolation, and it uses the differences as shown in the following table, where the brackets mean that the average of the values has to be taken.
| x | y | Δ | Δ2 | Δ3 | Δ4 | Δ5 | Δ6 |
|---|---|---|---|---|---|---|---|
| ⋮ | ⋮ | ||||||
| x−1 | y−1 | ||||||
| x0 | (y0y1) | Δy0 | (Δ2y−1Δ2y0) | Δ3y−1 | (Δ4y−2Δ4y−1) | Δ5y−2 | (Δ6y−3Δ6y−2) |
| x1 | |||||||
| ⋮ | ⋮ |
Hence, Bessel's formula can be assumed in the form
yp=2y0+y1+B1Δy0+B22Δ2y−1+Δ2y0+B3Δ3y−1+B42Δ4y−2+Δ4y−1+⋯=y0+(B1+21)Δy0+B22Δ2y−1+Δ2y0+B3Δ3y−1+B42Δ4y−2+Δ4y−1+⋯(3.22)Using the method outlined in Section 3.7.1, i.e., Gauss' forward formula, we obtain
B1+21B2B3B4=p,=2!p(p−1),=3!p(p−1)(p−1/2),=4!(p+1)p(p−1)(p−1),⋮⎭⎬⎫(3.23)Hence, Bessel's interpolation formula may be written as
This is an extensively used interpolation formula and uses only even order differences, as shown in the following table:
| x0 | y0 | Δ2y−1 | Δ4y−2 | Δ6y−3 | |||
|---|---|---|---|---|---|---|---|
| — | — | — | |||||
| x1 | y1 | Δ2y0 | Δ4y−1 | Δ6y−2 |
Hence the formula has the form yp=E0y0+E2Δ2y−1+E4Δ4y−2+⋯+F0y1+F2Δ2y0+F4Δ4y−1+⋯(3.25) The coefficients E0,F0,E2,F2,E4,F4,… can be determined by the same method as in the preceding cases, and we obtain
E0E2E4=1−p=q,=3!q(q2−12),=5!q(q2−12)(q2−22),⋮F0F2F4=p,=3!p(p2−12),=5!p(p2−12)(p2−22),⋮⎭⎬⎫(3.26)Hence Everett's formula is given by
where q=1−p.
These formulae are very closely related, and it is possible to deduce one from the other by a suitable rearrangement. To see this we start with Bessel's formula
yp=y0+pΔy0+2!p(p−1)2Δ2y−1+Δ2y0+3!p(p−1)(p−1/2)Δ3y−1+4!(p+1)p(p−1)(p−2)2Δ4y−2+Δ4y−1+⋯ =y0+p(y1−y0)+2!p(p−1)2Δ2y−1+Δ2y0+3!p(p−1)(p−1/2)(Δ2y0−Δ2y−1)+4!(p+1)p(p−1)(p−2)2Δ4y−2+Δ4y−1+⋯expressing the odd order differences in terms of low even order differences. This gives on simplification
yp=(1−p)y0+[4p(p−1)−6(p−1)p(p−1/2)]Δ2y−1+⋯+py1+[4p(p−1)+6p(p−1)(p−1/2)]Δ2y0+⋯=qy0+3!q(q2−12)Δ2y−1+⋯+py1+3!p(p2−12)Δ2y0+⋯which is Everett's formula truncated after second differences. Hence we have a result of practical importance that Everett's formula truncated after second differences is equivalent to Bessel's formula truncated after third differences. In a similar way, Bessel's formula may be deduced from Everett's.