4

Polynomial Interpolation

4.0 INTRODUCTION

Let Eqn1 be a function of x. Suppose we are given a set of value of y, say Eqn2 corresponding to given values of x, say x0, x1, x2, …, xi, …, xn. The values of x are called arguments and values of y are called entries.

Interpolation may be defined as the process of finding the values of a function f(x) for any intermediate value of the argument x between x0 and xn. This process has been described by Thiele as “the art of reading between the lines of a table”.

In the broader sense interpolation is the process of replacing the unknown function or complicated function f(x) by a simpler function ϕ(x) which assumes the same values of y for the given values of x. The function ϕ(x) is called the interpolating function or interpolating formula. In many engineering applications this function is called a smoothing function.

A desirable characteristic of interpolating function is that it must be simple. Since polynomials are the simplest of the functions, we usually choose ϕ(x) to be a polynomial and so it is called interpolating polynomial. Nearly all the standard formulae of interpolation are polynomials. In case the given values indicate that the function is periodic, we represent it by a finite trigonometric series. But we consider here only polynomial interpolation.

The process of representing by a polynomial is justified by the Weierstrass theorem: “Every function f(x), which is continuous in an interval (a,b) can be represented in that interval, to any desired degree of accuracy by a polynomial ϕ(x)”.

Some of the important interpolating polynomial formulae are

  1. Newton’s forward and backward formulae
  2. Newton’s divided difference formula
  3. Lagrange’s formula
  4. The central difference formulae
    1. Gauss forward and backward formulae
    2. Stirling’s formula
    3. Everrett’s formula
    4. Bessel’s formula etc

All these formulae are expressed interms of difference operators of various types. So we shall first introduce the different difference operators.

Extrapolation: The process of obtaining the value of a tabulated function outside the interval of the given values of the arguments is called extrapolation or prediction.

4.1 FINITE DIFFERENCE OPERATORS

When the changes in the independent variable or argument of a function is discrete, the infinitesimal calculus cannot be applied to study such functions. But the calculus of finite differences enable us to study such functions. The calculus of finite differences form the basis of many processes and is used in the derivation of many formulae in numerical analysis.

4.1.1 Forward Difference Operator Δ

Let y0, y1, y2,…, yn be the values of the function Eqn4 at equally spaced arguments x0, x1, x2,…, xn respectively.

Let the equal space or interval be h.

Then Eqn6 Eqn6a

Consider the differences Eqn7

We denote these as

Eqn8

and are called first order forward differences or first differences and Δ is called the forward difference operator.

The difference of first order differences are called second order differences.

They are

Eqn9

Similarly we can find 3rd, 4th, …, nth order differences.

Thus

Eqn10

If Eqn11, then Eqn12

Eqn13

Forward difference table

new1

The first entry y0 is called the leading term and the differences Eqn14 in the diagonal through y0 are called the leading differences.

4.1.2 Backward Difference Operator ∇ (Read as Del or Nebla)

The differences Eqn15 are denoted by Eqn16 and are called first order backward differences. The operator is called backward difference operator.

Eqn17

The differences

Eqn18

are called second order backward differences and so on.

Eqn19

The backward difference table is

new1

Prove that Eqn40

Prove:

We have

Eqn41

Eqn42

Eqn43

Similarly

Eqn44

4.1.3 Shift Operator or Displacement Operator E

The operator E is defined by Eqn45 where h is the interval of differencing. That is E shifts Eqn46 to next higher value Eqn47

In other words Eqn48, where Eqn49 and Eqn50

Eqn51

The operator Eqn52 is defined as Eqn53, where h is the interval of differencing.

That is Eqn54 shifts Eqn55 to preceeding lower value Eqn56.

In other words, Eqn57 where Eqn58 and Eqn59

Eqn60

Note: Eqn61 and Eqn62 where 1 is the identity operator

4.1.4 Relation Between the Operators E, Δ, ∇

  1. Prove that Eqn63 where 1 is the identity operator.

    Proof:

    We have

    Eqn64

    and

    Eqn65

    Eqn66

    Eqn67 for any Eqn68

    Eqn69

    Similarly

    Eqn70,

    Eqn71

    Note: The method of writing the operator equality is known as the method of separation of symbols. However it should be remembered that operators cannot really stand alone and the operand Eqn72 is always understood.

  2. Prove that Eqn73

    Proof:

    We have

    Eqn74

    and

    Eqn75

    Eqn76

    Eqn76a

    Eqn77 for any Eqn78

    Eqn79

4.1.5 Properties of Δ and E

  1. Δ is linear operator

    ie. Eqn80

    and Eqn81, where C is a constant.

  2. E is a linear operator

    ie. Eqn82

    and Eqn83

  3. Index laws

    If m and n are positive integers, then

    Eqn84

    Similarly

    Eqn85

    Eqn86 is the inverse operator ofEqn87

    Eqn88 is the inverse operator of Eqn89

  4. Prove that Δ∇ = ∇Δ

    Proof:

    We have

    Eqn91

    Eqn92

    Eqn93

    Eqn94

    Eqn94a

  5. Prove that Eqn95

    Proof:

    We have

    Eqn96

    and

    Eqn97

    Eqn98

    Eqn99

    Eqn100 for any Eqn101

    Eqn102

  6. Prove that Eqn103

    Proof:

    We have

    Eqn104

    Eqn105

    Eqn106

    Eqn107 for any Eqn108

    Eqn109

    Because of this property, we shall write each side Eqn110

    Theorem 4.1

    The nth differences of a polynomial of nth degree are constant.

    ie. If Eqn111 is an nth degree polynomial, then

    Eqn112 constant, where h is the interval of differencing.

    Note:

    1. Eqn113 More generally, Eqn114
    2. The converse of this theorem is also true.

    That is, if the nth differences of a function tabulated at equally spaced arguments are constants, then the function is a polynomial of nth degree.

    The Converse is of great use in practical situations. If in a difference table the nth differences are constant or nearly so (since rounding off errors may prevent them being exactly equal), then the function may be represented by a polynomial of nth degree by a suitable interpolation formula.

  7. The Central difference operator

    The Central difference operator δ is defined by Eqn115.

    Eqn116

  8. The averaging operator or the mean value operator μ is defined by

    Eqn117

    Eqn117a

  9. Prove that Eqn118

    Proof:

    Eqn119

    Eqn120

    Eqn121

  10. Prove that Eqn122

    Proof:

    We have

    Eqn123(1)

    and

    Eqn124

    Eqn125

  11. Relation between differentical operator and difference operator

    We know Eqn133,

    Eqn134

    We have Taylor’s series for Eqn135 as

    Eqn136

    But

    Eqn137

    Eqn138

WORKED EXAMPLES

Example 1

If Eqn139 then show that Eqn140 where k is a constant.

Solution

Given Eqn141

We have Eqn142

Eqn143

Eqn144

Eqn145

Eqn146

Eqn147

Example 2

Prove that Eqn148

Solution

Eqn149

Example 3

Test whether Eqn150 and Eqn151 are equal.

Solution

Eqn152

Eqn153(2)

∴ from (1) and (2), we get Eqn154

Example 4

Find the value of Eqn155 taking Eqn156.

Solution

Let

Eqn157a

Eqn157

Example 5

Prove that Eqn158.

Solution

Eqn159a

Eqn159a new (1)

Eqn159new

Eqn160 (2)

From (1) and (2),

Eqn161

Example 6

Evaluate Eqn162 if the interval of differencing is 2.

Solution

Let Eqn164

Given Eqn163

We know that for a polynomial of nth degree Eqn165, where h is the interval of differencing and Eqn166 is coefficient of Eqn167.

When Eqn168 is expanded as a polynomial in x, the leading term is

Eqn169

Eqn170

Example 7

Prove the following with usual notation.

  1. Eqn171
  2. Eqn172(1-—)
  3. Eqn173

Solution

  1. We know that

    Eqn174

  2. we have

    Eqn175

    Eqn176

  3. We have

    Eqn177 and Eqn178

    Eqn179

Example 8

Prove that Eqn180.

Solution

We know that

Eqn181 and Eqn1857

Eqn182

From (1) and (2), we get

Eqn183

Example 9

Using the method of separation of symbols, prove that

Eqn184

Solution

Eqn185

We know

Eqn186

Eqn187

Example 10

Using the method of separation of symbols, prove that

Eqn188

Solution

Eqn189a

Eqn189ab

Example 11

Using the method of separation of symbols prove that

Eqn190

Solution

Eqn191[ = ΔEr]

Eqn191-1

Example 12

Show that

Eqn192

Solution

Eqn193

Eqn193a

Example 13

If Eqn194 and Eqn195. Obtain the values of x, assuming the second differences are constant.

Solution

Given

Eqn196

and

Eqn197.

∴ the arguments are 1, 2, 3, 4. Since the second differences are constants, third differences are zero.

Eqn198

Example 14

If Eqn199 find the value of Eqn200 assuming the second differences are constant.

Solution

Given the arguments are 0, 1, 2, 3, 4, 5 and Eqn201and the second differences are constant.

We form the difference table.

new1

Since the second differences are constant, say k, we have

Eqn220(1)

Eqn221(2)

Eqn222(3)

Eqn223(4)

Eqn224(5)

Eqn225(6)

Substituting in (3), we get

Eqn226(7)

Eqn227(8)

Given

Eqn228

Example 15

Estimate the missing value in the table.

x 0 1 2 3 4
Eqn229 1 3 9 81

Solution

Since four values are given, the fourth differences are zero.

Eqn230

Let a be the missing value

We from the difference table

new4

Since Eqn236, we get

Eqn237

the missing value is 31

Aliter:

Since four values are given, the fourth differences are zero.

Eqn238

Put Eqn239

Eqn240

Example 16

Obtain the missing values in the table.

x 1 2 3 4 5 6 7 8
Eqn241 1 8 64 216 343 512

Solution

Since six values are given, the sixth differences are zero.

Eqn242(1)

Put Eqn243 in (1), we get

Eqn244(2)

Put Eqn245 in (1), we get

Eqn246(3)

Subtracting, we get

Eqn247

Exercises 4.1

  1. Evaluate (a) Eqn248 (b) Eqn249 (c) Eqn250 taking h as the interval of differencing.
  2. Taking interval of differencing as h, show that
    1. (a) Eqn251 (b) Eqn252
    2. (c) Eqn253 (d) Eqn254
  3. Show that Eqn255
  4. Prove the following with usual notation
    1. (a) Eqn256 (b) Eqn257
    2. (c) Eqn258 (d) Eqn259 and Eqn260
  5. Using method of separation of symbols, prove the following.
    1. (a) Eqn261
    2. (b) Eqn262

      Eqn263

    3. (c) Eqn264
    4. (d) Eqn265
  6. Find the missing values from the table.
    x 0 1 2 3 4
    yx 1 2 4 16
  7. Find the missing values from the table.
    x 0 1 2 3 4 5 6
    f(x) –4 –2 220 546 1148
  8. Assuming Eqn266 as a polynomial of degree 4, compute the missing values from the following table.
    x 0 1 2 3 4 5 6 7
    yx 0 1 2 1 0

Answers 4.1

(6) Eqn267 (7) Eqn268 (8) Eqn269

4.1.6 Factorial Polynomial

The product of the form Eqn270starting with x and the successive factors decrease by a constant is called factorial polynomial of degree r and it is denoted by Eqn271, where r is a positive integer

If Eqn272

we shall use this factorial polynomial in our discussions.

Differences of Eqn273

Eqn274

similarly

Eqn275

Note:

  1. Since Eqn277

    it is analogous to differentiation Eqn278

    When r = 0, [x]0 = 1

  2. Eqn278a

So inverse operator Eqn279 behaves like integration for factorial polynomial.

Thus

Eqn280

Because of this special property, it is convenient to represent a polynomial in terms of factorial polynomial.

Example 1

Represent Eqn281 as a factorial polynomial.

Solution

Let Eqn282

where a1, a2, a3 are constants.

Put x = 0, then a3 = 12.

Put x = 1, then a2 + a3 = 1 + 3 + 12 + 12

a2 + 12 = 16 + 1 Eqn284 a2 = 16

Put x = 2, then

a1 2 (2 - 1) + a2 2 + a3 = 8 + 12 + 24 + 12

⇒ 2a1 = 56 - 2a2 - a3

= 56 - 2 × 16 - 12 ⇒ a1 = 6

x3 + 3x2 + 12x + 12 = [x]3 + 6[x]2 + 16[x] + 12

Aliter:

By Synthetic division, we can find the coefficients a1, a2, a3.

C04U031

x3 + 3x2 + 12x + 12 = [x]3 + 6[x]2 + 16[x] + 12

Example 2

Represent Eqn287 and its successive differences in factorial notation.

Solution

Let Eqn288

We shall use synthetic division method to express f(x) in factorial notation.

C04U032

Eqn289

Eqn289a

Eqn290

and higher differences are zero

4.2 INTERPOLATION WITH EQUALLY SPACED ARGUMENTS OR INTERPOLATION WITH EQUAL INTERVALS

Let the function y = f(x) take values Eqn291 for equidistant values of the arguments Eqn292 Let the equal interval be h ie. Eqn293 Then Eqn294 We have to find the interpolating polynomial Eqn295 which represents f(x) in the interval Eqn296

Since (n + 1) values of the function are known, we can assume Eqn297 to be a polynomial of nth degree and it is determined uniquely. Eqn298 at Eqn299 and approximately equal in intermediate points. Hence we write f(x) itself in the place of Eqn300

4.2.1 Newton’s Forward Formula for Interpolation

Newton’s forward formula is

Eqn301

where Eqn302

Proof: Let y = f(x) be a function which takes values Eqn303 at equally spaced arguments Eqn304 Let h be the interval so that Eqn305 Let Eqn306 be the interpolating polynomial of the nth degree which may be written in the form

Eqn307(1)

where Eqn308 are constants to be determined such that

Eqn309a

Put Eqn310 successively in (1)

we get

Eqn311

Eqn312

Similarly, Eqn313 and Eqn314

∴ (1) becomes Eqn315

Eqn315a(2)

This is Newton’s forward formula interms of x.

Now

Eqn316

Now

Eqn317

Eqn318

Remark:

  1. Newton forward formula is also known as Newton-Gregory formula for forward interpolation.
  2. The formula involves y0 and its leading differences. ie. it involves y0 and the values of the function to the right of y0. Hence it is called forward interpolation formula.
  3. The formula is used for interpolating the values of y near the beginning of a set of tabular values.
  4. It can also be used for extrapolating values of y at a short distance on the left side of x0 (ie. x < x0 and x is close to x0).

4.2.2 Newton’s Backward Formula for Interpolation

Newton’s backward formula is

Eqn319

where Eqn320

Proof: Let y = f(x) be a function which takes values Eqn321 for equally spaced arguments Eqn322

where Eqn323

Eqn324

Let Eqn325 be the interpolating polynomial of nth degree which may be written as

Eqn326(1)

where Eqn327 are constants to be determined in such a way that

Eqn328

Substituting Eqn329 in succession in (1) we get

Eqn330

Similarly,

Eqn331

Substituting in (1), we get

Eqn332

Eqn333

Remark:

  1. This formula is also known as Newton-Gregory’s backward formula.
  2. Since the formula involves yn and the values of the function to the left of it, it is called backward formula.
  3. It is used for interpolating values of y near the end of a set of tabular values.
  4. It can also be used for extrapolating values of y at a short distance on the right of xn (ie.x > xn and x is close to xn).

Note: If the tabulated function is a polynomial then for any value of x, both the forward and backward formula of Newton will give the exact value of the function whether it is interpolation or extrapolation.

WORKED EXAMPLES

Example 1

Using Newton’s forward interpolation formula find the cubic polynomial which takes the following values.

x 0 1 2 3
f(x) 1 2 1 10

Evaluate f(4).

Solution

We use Newton’s forward formula to find the polynomial in x.

Newton’s forward formula is

Eqn334

where Eqn335

Here Eqn336Eqn337

Now we form the forward difference table.

new5

Eqn338

Eqn339

Eqn339b

When x = 4,

Eqn340

Example 2

A third degree polynomial passes through the points (0, −1), (1, 1), (2, 1) and (3, –2). Using Newton’s forward formula, find the polynomial. Hence find the value at 1.5.

Solution

We use Newton’s forward formula to find the polynomial passing through (0, –1) (1, 1), (2, 1) and (3, –2).

Newton’s forward formula is

Eqn341

where

Eqn342

Here

Eqn342a(1)

Now we form the forward difference table.

new5

Eqn357

Substituting in (1), we get

Eqn358

Since u = x, the polynomial is Eqn359

Eqn360

Example 3

The population of a city in Census taken once in 10 years is given below. Estimate the population in the year 1955.

Year 1951 1961 1971 1981
Population in thousands 35 42 58 84

Solution

Let us denote year as x, and population as y.

Let y = f(x)

x = 1955 is near the beginning of the table. So we use Newton’s forward difference formula to find y.

Newton’s forward formula is

Eqn381(1)

where Eqn382. Here Eqn383 Eqn383a

When Eqn384

Now we form the forward difference table.

new5

Eqn385

and when x = 1955, u = 0.4

Substituting in (1), we get

Eqn386

Example 4

From the data given below find the number of students whose weight is between 60 to 70.

Weight in lbs: 0–40 40–60 60–80 80–100 100–120
No. of students 250 120 100 70 50

Solution

Let weight be denoted by x and number of students be denoted by y

Let y = f(x)

We use Newton’s forward formula to find y when x lies between 60–70.

We rewrite the table as cumulative table showing the number of students less than x lbs.

Newton’s forward formula is

Eqn394(1)

where Eqn395.

Here Eqn396Eqn397

We shall find y when x = 70

Eqn398

Now we form the forward table.

new5

Hence Eqn399

Eqn400 and when Eqn401

Substituting in (1), we get

Eqn402

No. of students whose weight is below 70 is 424

∴ no. of students whose weight is between 60 – 70 is = 424 – 370 = 54

Example 5

If

x 0 1 2 3 4 5
y 27 32 25 36 32 41

then find approximately the value of y when x = −0.5.

Solution

Let y =f(x). To find y when x = –0.5.

x = –0.5 is outside the table value and is near the beginning of the table.

∴ It is extrapolation. So, we use Newton’s forward formula to find y when x = –0.5

Newton’s forward formula is

Eqn431(1)

where Eqn432. Here Eqn433

When Eqn434

Now we form the difference table.

new5

Hence Eqn435

and when Eqn436

Substituting in (1), we get

Eqn437

Example 6

The following table gives melting point of an alloy of zinc and lead, θ is the temperature and x is the percentage of lead. Using Newton’s interpolation formula find θ when x = 84.

x 40 50 60 70 80 90
θ 184 204 226 250 276 304

Solution

Let y = f(x), where y = θ,

x = 84 is near the end of the table.

∴ we use Newton’s backward formula to find θ when x = 84.

Newton’s backward formula is

Eqn403(1)

where Eqn404 Eqn405

When

Eqn406, Eqn407

Now we form the table.

new5

Hence Eqn408

and when Eqn409

Substituting in (1) we get

Eqn410

Example 7

If lx represents the number of people living at age x in a life table, find l47, given l20 = 512, l30 = 439, l40 = 346 and l50 = 243.

Solution

Let y = lx.

x = 47 is near the end of the table values. So, we use Newton’s backward formula to find l47.

Newton’s backward formula is

Eqn425(1)

where Eqn426. Here Eqn427Eqn427a

When Eqn428

Now we form the difference table.

new5

Eqn429

and when x = 47, v = –0.3

Substituting in (1), we get

Eqn430

Hence the number of people expected to live at the age of 47 is 274.

Example 8

A function y is given by the following table. Estimate the value of y when x = 5.

x 0 1 2 3 4
y 79 91 105 116 127

Solution

Let y = f(x).

We want to find y when x = 5, which is outside the end of the table and hence extrapolation. So, we use Newton’s backward formula to find y when x = 5.

Newton’s backward formula is

Eqn438(1)

where Eqn439. Here Eqn440Eqn440a

When Eqn441

Now we form the difference table.

new5

Here

Eqn442

Eqn443 and when Eqn444

Substituting in (1), we get

Eqn445

Example 9

The following are data from the steam table.

Temperature °C 140 150 160 170 180
Pressure kg/cm2 3.685 4.854 6.302 8.076 10.225

Find the pressure at temperature 142°C and 175°C.

Solution

Let temperature be x°C and pressure be y kg/cm2

Let y = f(x)

Since x = 142°C is near the beginning of the table, we use Newton’s forward formula to find y.

Newton’s forward formula is

Eqn446(1)

where Eqn447. Here Eqn448Eqn449

When Eqn450

We now form the forward difference table.

new5

Here

Eqn451

When temperature is x = 142°C, then pressure

Eqn452

(ii) Since x = 175°C is near the end of the table, we use Newton’s backward formula.

Newton’s backward formula is

Eqn453(1)

where Eqn454

When Eqn455

From the difference table, we have

Eqn456

Eqn457

Example 10

Estimate the value of f(22) and f(42) from the following data:

x 20 25 30 35 40 45
f (x) 354 332 291 260 231 204

Solution

We find f(22) using Newton’s forward formula.

Newton’s forward formula is

Eqn458(1)

where Eqn459. Here Eqn460Eqn460a

When Eqn461

From forward difference table

new5

Eqn462

Eqn463

To find y when Eqn463a

Given y = f(x)

x = 42 is near the end of the table. So, we use Newton’s backward formula to find f(42).

Newton’s backward formula is

Eqn464(1)

where Eqn465. Here Eqn466 Eqn1863

When Eqn467

Eqn468

and when x = 42, v = –0.6

Substituting in (1) we get

Eqn469

f(42) = 218.66 = 219 approximately

Exercises 4.2

  1. Use Newton’s backward formula to find a polynomial of degree 3 for the data f(–0.75) = –0.0781250, f(–0.5) = –0.024750, f(–0.25) = 0.33493750, f(0) = 1.10100. Hence find Eqn498
  2. From the following table, find the value of tan 45° 15′
    x0 45 46 47 48 49 50
    tan x0 1.0 1.03553 1.07237 1.11061 1.15037 1.19175
  3. Find f(2.5) using Newton’s forward difference formula for the given data.
    x 1 2 3 4 5
    Eqn501 0 1 8 27 64
  4. Using Newton’s backward difference formula find the area of a circle of diameter 98 from the given table of diameter and area of a circle.
    Diameter 80 85 90 95 100
    Area 5026 5674 6362 7088 7854
  5. Find Eqn502 given that Eqn503
  6. (6) A function f(x) is given by the following table. Estimate f(0.2) by any appropriate formula.
    x 0 1 2 3 4 5 6
    f(x) 176 185 194 203 212 220 229
  7. Find the value of f(x) when x = 32, given the following table:
    x 30 35 40 45 50
    f(x) 15.9 14.9 14.1 13.3 12.5
  8. Find the number of students from the following data who secured marks not more than 45.
    Marks 30–40 40–50 50–60 60–70 70–80
    No of students 35 48 70 40 22
  9. The following are the annual premiums charge by the L.I.C of India for a policy of Rs. 1000. Calculate the premium payable at the age of 22.
    Age in year 20 25 30 35 40
    Premium Rs. 23 26 30 35 42
  10. Calculate the value of sin 33° 13′ 30″ from the following table of sines.
    x° 30 31 32 33 34
    sin x° 0.5000 0.5150 0.5290 0.5446 0.5592
  11. The table gives the distance in nautical miles of the visible horizon for the given height in feet above the earths surface. Find the values of y when x = 218′ and x = 410′.
    x 100 150 200 250 300 350 400
    y 10.63 13.03 15.04 16.81 18.42 19.90 21.27
  12. Find u6 given that
    u0 u1 u2 u3 u4 u5
    25 25 22 18 15 5
  13. By appropriate formula estimate the population for the year 2006, given
    Year: 2001 2002 2003 2004 2005
    Population in thousands: 251 279 319 383 483
  14. A function y is given by the following table. Estimate the value of y when x = 5.
    x 0 1 2 3 4
    y 79 91 105 116 127
  15. Two variables x and y have the following related values
    x 0 10 20 30 40 50 60
    y 2501 2795 2838 3030 3050 3381 3888

    Find y when x = 54.

  16. Given
    x 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2
    y = f(x) 0.34375 0.87616 1.47697 2.17408 3.00139 4 5.21941 6.71872

    Find f(1.18).

Answers 4.2

  1. (1) Eqn499, Eqn500
  2. (2) 1.00876 (3) 3.4 (4) 7543 (5) –161
  3. (6) 177.67 (7) 15.45 (8) 51 (9) 24.04
  4. 0.54788 (11) 15.697, 21.53 (12) 20 (13) 631
  5. 149 (15) 3674.97 (16) 6.39328
4.3 CENTRAL DIFFERENCE INTERPOLATION FORMULAE

We have seen that Newton’s formward formula is suitable to interpolate near the beginning of a table of values and Newton’s backward formula is suitable to interpolate near the end of the table with equally spaced arguments.

For interpolating near the middle of the table the central difference formulae are better suited than others. The central difference formulae employ the difference lying as nearly as possible on a horizontal line through y0 near the centre.

We will discuss the following central difference formulae.

  1. Gauss’s forward formula
  2. Gauss’s backward formula
  3. Stirling’s formula
  4. Bessel’s formula
  5. Everett’s formula.

Of these Bessel’s and Stirlings are the most important ones.

Central difference table

Let Eqn504 be the function. Let Eqn505 be the values of y corresponding to Eqn506 and Eqn507 be the values corresponding to Eqn508

Then, the difference table with these values on either side of Eqn509 is given by the table below.

Put Eqn510, where Eqn511 is the origin.

The values of u corresponding to

Eqn512

are respectively

Eqn513

Eqn514

C04U001

4.3.1 Gauss’s Forward Formula for Interpolation

Gauss’s forward Interpolation formula is

Eqn518a

Proof: We derive Gauss’s forward difference interpolation formula from Newton’s forward formula and using even differences on the horizontal line through Eqn515 and odd differences on the horizontal line between Eqn516 and Eqn517 from the central difference table.

Newton’s forward formula is

Eqn518(1)

where Eqn519

From the Central difference table, we have

Eqn520

Eqn521

Similarly,

Eqn522

Eqn523

Similarly, Eqn524 and so on.

Substituting for Eqn525 in (1) we get

Eqn526

Eqn527

If the symbol Eqn528, then the formula can be written as

Eqn529

Note:

  1. Gauss’s forward formula involves even differences on the central line and odd differences below the central line as
    C04U002
  2. Gauss’s forward formula is mainly used to interpolate if

    Eqn530.

  3. Since it is measured from the origin forwardly, this formula is called forward formula.

WORKED EXAMPLES

Example 1

Use Gauss’s forward formula to find the value of y when Eqn531 from the following table.

x 1.5 2 2.5 3 3.5 4
y 37.9 246.2 409.3 537.2 636.3 715.9

Solution

We use Gauss’s forward formula to find y when Eqn532 since it is near the middle of the given table.

Gauss’s forward formula is

Eqn533

where Eqn534 and Eqn535 is the origin. Here Eqn536

We take Eqn537, since Eqn538 lies is between Eqn539 and Eqn540

Eqn541

When x = 2.7, Eqn542

We shall form the forward difference table.

C04U003

Eqn543

Substituting in (1), we get

Eqn544

When Eqn545

Eqn546

When x = 2.7, y = 464.31

Example 2

Using Gauss’s forward formula find Eqn549, given that

Eqn550

Solution

The given values of x are 21, 25, 29, 33, 37 and the corresponding y values are

Eqn551

Eqn552 is near the middle of the table.

So, we use Gauss’s forward formula to find y when Eqn553 and formula is

Eqn554(1)

where Eqn555 and Eqn556 is the origin.

Here Eqn557 and take Eqn558 since Eqn559 lies between Eqn560 and Eqn561.

Eqn562

When x = 30,

Eqn563

Now we shall form the central difference table.

C04U004

Eqn564

Substituting in (1), we get

Eqn565

When Eqn566

Eqn567

Eqn567a

Eqn568

Example 3

Use Gauss’s forward interpolation formula to find log sin 0°16′8.5″ from the given table.

x 0°16′7″ 0°16′8″ 0°16′9″ 0°16′10″
Eqn592 7.67100 7.67145 7.67190 7.67235

Solution

We use Gauss’s forward formula to find Eqn593, since Eqn594 is near the middle of the table.

Gauss’s forward formula is

Eqn595(1)

where Eqn596 and Eqn597 is the origin

Here Eqn598 and take Eqn599, since Eqn600 lies between Eqn601 and Eqn602.

Eqn603a

When Eqn603

We shall form the central difference table.

C04U006

Eqn604

Substituting in (1), we get

Eqn605

When Eqn606

Eqn607

loge sin 0° 16¢8.5′ = 7.671675

Example 4

Estimate the value of Eqn608 from the following data.

x 0 1 2 3 4 5 6
Eqn609 176 185 194 203 212 220 229

Solution

We use Gauss’s forward formula to find Eqn610 since Eqn611 is near the middle of the table.

Gauss’s forward formula is

Eqn612(2)

where Eqn613 and Eqn614 is the origin.

Here Eqn615 and take Eqn616, since Eqn617 lies between Eqn618 and Eqn619.

Eqn620.

When Eqn621, Eqn622

We shall form the central difference table.

C04U007

Eqn623

Substituting in (1), we get

Eqn624.png

When Eqn625

Eqn626

Example 5

Interpolate by means of Gauss’s forward formula the value of Eqn627 given that Eqn628

Solution

The given values of the arguments x are 25, 30, 35, 40 and the corresponding values of y are Eqn629 Eqn630 is near the middle of the table.

So, we use Gauss’s forward formula to find Eqn631.

Gauss’s forward formula is

Eqn632(1)

where Eqn633 and Eqn634 is the origin.

Here Eqn635 and take Eqn636, since Eqn637 lies between Eqn638 and Eqn639.

Eqn640

When

Eqn641, Eqn642

We shall form the central difference table.

C04U008

Eqn643

Substituting in (1), we get

Eqn644

When Eqn1837

Eqn644a

4.3.2 Gauss’s Backward Formula for Interpolation

Gauss’s Backward formula for Interpolation is

Eqn1858

Proof: We derive Gauss’s backward difference formula from Newton’s forward formula by using even differences along the central line and odd differences above the central line.

Newton’s forward formula is

Eqn1839new.png(1)

where Eqn1840 and x0 is the origin.

We have Δy0 – Δy–1 = Δ2y–1

⇒ Δy0 = Δy–1 + Δ2y–1

Similarly

Δ2y0 = Δ2y–1 + Δ3y–1

Δ3y0 = Δ3y–1 + Δ4y–1 and so on.

Also

Δ3y–13y–2 = Δ4y–2

⇒ Δ3y–1 = Δ3y–2 + Δ4y–2

Δ4y–1 = Δ4y–2 + Δ5y–2 and so on.

Substituting Eqn653 in (1) we get

Eqn654

Eqn655

Eqn656

Eqn657

Eqn658

Eqn659

Eqn660

where Eqn661

Note:

  1. Gauss’s backward formula uses the differences on the indicated path
    C04U009
  2. Gauss’s backward formula is used for interpolation if Eqn662.

    Because of this reason, Gauss’s backward formula is some times known as Gauss’s formula for negative interpolation.

WORKED EXAMPLES

Example 1

Given that Eqn663 Eqn664 Eqn665 Eqn666 Show by Gauss’s backward formula Eqn667

Solution

Given values of x are 12500, 12510, 12520, 12530.

Required the value of Eqn668 by Gauss’s backward formula.

Let Eqn669 Then to find Eqn670

Gauss’s backward formula is

Eqn671(1)

where Eqn672 and Eqn673 is the origin.

Here Eqn674 and take Eqn675, since Eqn676 lies between Eqn677 and Eqn678

Eqn680a

When Eqn679, Eqn680

We shall form the central difference table.

C04U010

Eqn681

Substituting in (1), we get

Eqn682

When Eqn683

Eqn684

Eqn684a

Example 2

Given the following data

x 1.72 1.73 1.74 1.75 1.76
Eqn685 0.17907 0.17728 0.17552 0.17377 0.17204

Find the value of Eqn686 using Gauss’s backward formula.

Solution

Required the value of Eqn687 when Eqn688 by Gauss’s backward formula

Eqn689(1)

Where Eqn690 and Eqn691 is the origin.

Here Eqn692 and take Eqn693 since Eqn694 lies between Eqn695 and Eqn696

Eqn698a

When Eqn697 Eqn698

We shall form the central difference table.

C04U011

Eqn699

Substituting in (1), we get

Eqn700

When Eqn701 we get

Eqn702

Eqn702a

Example 3

Using Gauss’s backward formula estimate the number of persons earnings wages between Rs. 60 and 70 from the following data.

Wages (Rs.) Below 40 40–60 60–80 80–100 100–120
No of person’s (in thousands) 250 120 100 70 50

Solution

We take the given intervals as 20–40, 40–60, 60–80, 80–100, 100–120.

Let the middle points of the intervals be the x-values and numbers of persons as the corrsponding y values.

Values of x 30 50 70 90 110
y 250 120 100 70 50

To find the number of persons earning wages between Rs. 60 and 70, we use Gauss’s backward formula.

Gauss’s backward formula is

Eqn703(1)

where Eqn704 and Eqn705 is the origin.

Here Eqn706

For the interval 60–70, middle value is Eqn707

∴ take Eqn708, since Eqn709 lies between Eqn710 and Eqn711

Eqn712

When Eqn713,

Eqn714

We shall form the central difference table.

C04U012

Eqn715

Substituting in (1), we get

Eqn716

When Eqn717, we get

Eqn1840new.png

∴ the number of persons in the wage range 60 to 70 is equal to 104.

Exercises 4.3

  1. Using Gauss’s forward formula find Eqn756 given that
    x 2 3 4 5
    Eqn757 2.426 3.454 4.784 6.986
  2. Given that
    Year 1930 1932 1934 1936 1938 1940
    Population (in thousand) 12 16 21 27 32 40

    Using Newton-Gauss’s forward formula find the population of the town in 1935.

  3. Using Gauss forward formula find the value of y28.3 given that y26 = 0.038462, Eqn759
  4. Given sin 25° 41′ 40″ = 0.433572, sin 25° 42′ 0′ = 0433659, sin 25° 42′ 20″ = 0.433746, sin 25° 42′ 40″ = 0.433834. Find the value of sin 25° 42′ 10″ by Gauss’s forward formula.
  5. If Eqn765 find Eqn766 approximately.
  6. Given Eqn767, find the value of Eqn768 by Gauss’s backward formula.
  7. The specific gravities of Zinc sulphate solutions of different concentrations at Eqn769 are given below
    Concentration (%): 10 12 14 16 18 20 22
    Specific gravity: 1.059 1.073 1.085 1.097 1.110 1.124 1.137

    Find the specific gravity of 15.8% solution at Eqn770, using Gauss’s Backward formula.

  8. Interpolate by means of Gauss’s backward formula the sales of a concern for the year 1997 given that
    Year: 1962 1972 1982 1992 2002 2012
    Sales (in cores of Rs.) 12 15 20 27 39 52
  9. Find the value of Eqn771 by Gauss’s backward formula, given that
    x: Eqn772 Eqn773 Eqn774 Eqn775 Eqn776
    cos x: 0.6428 0.6293 0.6152 0.6018 0.5878

Answers 4.3

  1. 4.034 (2) 24.046875 (3) 0.0353355
  2. 0.43 3703 (5) 7.6 (6) 3165.36
  3. 1.0958 (8) 32.625 crores of Rs. (9) 0.6198

4.3.3. Stirling’s Formula for Interpolation

Stirling’s formula is

Eqn777a

Proof: Stirling’s formula is derived by taking the average Gauss’s forward and backward formulae.

Gauss’s forward formula is

Eqn777(1)

Gauss’s backward formula is

Eqn778(2)

Adding (1) and (2), we get

Eqn779

Eqn780

Eqn781

This is called Stirling’s formula or Newton-Stirling’s formula.

Note:

  1. Stirling’s formula involves average of odd difference above and below the central line and even differences on the central line as shown.
    C04U015
  2. Stirling’s formula gives fairly accurate results when Eqn782, though this formula can be used if Eqn783.

WORKED EXAMPLES

Example 1

Given

Eqn784 Eqn785 Eqn786 Eqn787 Eqn788 Eqn789 Eqn790 Eqn791
Eqn792 0 0.0875 0.1763 0.2679 0.3640 0.4663 0.5774

Find the value of Eqn793 using Stirling’s formula.

Solution

Let Eqn794

Given Eqn795

To find the value of Eqn796.

We use Stirling’s formula to find y when x = 16

Stirling’s formula is

Eqn798

where Eqn799 and x0 is the origin.

Here Eqn800 and take Eqn801, since Eqn802 lies between Eqn803 and Eqn804

Eqn805

When Eqn806,

Eqn807

We shall form the central difference table.

C04U016

Eqn808

Substituting in (1), we get

Eqn809

When Eqn810, we get

Eqn811

Example 2

The following table gives the values of the probability integral Eqn832 Find the value o the integral when Eqn833.

x 0.51 0.52 0.53 0.54 0.55 0.56
Eqn834 0.52924 0.53789 0.54646 0.55494 0.56332 0.57162

Solution

Required to find Eqn835 when Eqn836 by using Stirling’s formula.

Stirling’s formula is

Eqn837(1)

where Eqn838 and Eqn839 is the origin.

Here Eqn840 and take Eqn841, since Eqn842 lies between Eqn843 and Eqn844

Eqn845

When Eqn846 Eqn847

We shall form the central difference table.

C04U018

Eqn848

Substituting in (1), we get

Eqn849

When Eqn850, we get

Eqn851

when Eqn851a

Example 3

Using Stirling’s formula find the annual net premium at the age of 25 from the table of annual net premium given below.

Age 20 24 28 32
Premium 0.01427 0.01581 0.01772 0.01996

Solution

Let us denote age by x and premium as y.

Required, the net premium at the age of 25 using Stirling’s formula.

That is to find y when x = 25.

Stirling’s formula is

Eqn852(1)

where Eqn853 and Eqn854 is the origin.

Here Eqn855 and take Eqn856 since Eqn857 lies between Eqn858 and Eqn859

Eqn861a

When Eqn860 Eqn861

We shall form the central difference table.

C04U019

Here h = 4 and take x0 = 24, since x = 25 lies between x = 24 and x = 28

Eqn862

Substituting in (1), we get

Eqn863

When Eqn864

Eqn865

∴ net Premium when Eqn866 is 0.01625

Example 4

Find the value of Eqn867 and Eqn868 from the following table using Stirling’s formula.

x 1.50 1.60 1.70 1.80 1.90
Eqn869 17.609 20.412 23.045 25.527 27.875

Solution

Let Eqn870

Required the values of y when Eqn871 and Eqn872 by using Stirling’s formula.

Stirling’s formula is

Eqn873(1)

where Eqn874 and Eqn875 is the origin.

Here Eqn877 and take the orgin as Eqn876 since x = 1.63 lies between 1.60 and 1.70

Eqn1864

When Eqn878

Eqn879

We shall form the central difference table when Eqn889

C04U020

Eqn890

Substituting in (1), we get

Eqn891

When Eqn880 Eqn881

We use Stirlings formula if Eqn882 only. So we cannot take the origin as x = 1.60 to find y when x = 1.67, since Eqn883

So, we change the origin to x = 1.70, to find y when x = 1.67

Eqn884

When Eqn885

Eqn886 [Eqn887 lies is the interval Eqn888]

When Eqn892 the difference table is

C04U021

Eqn893

Substituting in (1), we get

Eqn894

Eqn894a

4.3.4 Bessel’s Formula for Interpolation

Bessel’s formula is

Eqn901a

Proof: We derive the Bessel’s formula using Gauss’s forward and backward formula.

Gauss’s forward formula is

Eqn895(1)

Gauss’s backward formula is

Eqn896(2)

Shifting the origin of u from 0 to 1, that is replace u by Eqn897 in backward formula, we get

Eqn898

Eqn898a(3)

Adding (1) and (3) we get

Eqn899

Eqn900

Eqn901

This is Bessel’s formula.

If we put Eqn907 then Eqn908 and Bessel’s formula reduces to a more symmetrical form.

Eqn909

Note:

  1. Bessel’s formula employs odd differences below the central line and the means of even differences on and below the central line.
  2. If Eqn902 Bessel’s formula is preferable. However it will give more accurate result when interpolating near the middle of the interval Eqn903

    When Eqn904 Bessel’s formula gives best results with minimum number of terms.

  3. When Eqn905 we get the special case of Bessel’s formula.

    Eqn906

    This is called formula for interpolating to halves.

WORKED EXAMPLES

Example 1

Apply Bessel’s formula to find log103375, given log10310 = 2.49137, log10320 = 2.250515, log10330 = 2.51851, log10340 = 2.53148, log10350 = 2.54407, log10360 = 2.55630.

Solution

Required the value of Eqn917 using Bessel’s formula,

Bessel’s formula is

Eqn918(1)

where Eqn919 and Eqn920 is the origin.

The given function is Eqn921 and the x values are 310, 320, 330, 340, 350, 360.

Eqn922

Here Eqn927 and take the origin as Eqn926, since Eqn923 lies between Eqn924 and Eqn925

Eqn928

When Eqn929

Eqn930

We shall form the difference table.

C04U022

Eqn931

Substituting in (1), we get

Eqn932

Eqn932a

Example 2

The area A of a circle and diameter d is given by the following table.

d 80 85 90 95 100
Area A 5026 5674 6362 7088 7854

Find the area when the diameter is 91.

Solution

Let us denote the diameter d as x and area A as y.

Required, the area y when x = 91.

We use Bessel’s formula.

Bessel’s formula is

Eqn933(1)

where Eqn934 and Eqn935 is the origin.

Here Eqn940 and take the origin as Eqn936 since Eqn937 lies between Eqn938 and Eqn939

Eqn941

When Eqn942

Eqn943

We shall form the central difference table.

C04U023

Eqn944

Substituting in (1), we get

Eqn945

area = 6504.1248 sq. unit

Example 3

Given Eqn991 and fifth differences are constant.

Prove that Eqn992

Where Eqn993

Solution

Given the values Eqn994 are such that the fifth differences are constant.

∴ 6th, 7th … differences are zero.

Eqn995(1)

Bessel’s formula for Eqn996 is

Eqn997

Now shift the origin to 2, then Eqn998 and so on.

Eqn999

But

Eqn1000

Similarly,

Eqn1001

Eqn1002

Example 4

Using Bessel’s interpolation formula show that Eqn1003 assuming suitable level of approximation.

Solution

Bessels formula is

Eqn1004(1)

Replacing u by x in (1) we get

Eqn1005

Assuming the fourth order and higher differences are very small, neglecting them and putting Eqn1006 we get

Eqn1007

Now shifting the origin to x,

Eqn1008

4.3.5 Laplace-Everett Formula for Interpolation

Laplace-Everett’s formula for interpolation is

Eqn1014b

where v = 1−u.

Proof: Laplace-Everett’s formula is obtained from Gauss’s forward formula by replacing the odd differences interms of even differences

Gauss forward formula is

Eqn1009(1)

Now Eqn1010

Substituting in (1), we get

Eqn1011

Eqn1011aa

Eqn1011a

Eqn1011aaa

Eqn1012

This formula is usually written in a more convenient form by putting Eqn1013 in the terms with negative sign.

Eqn1014

Eqn1014a

Eqn1014aaa

where Eqn1015

Note:

  1. This formula involves the even differences on and below the central line.
  2. This formula is used when u lies between 0 and 1, but more accurate results will be obtained when Eqn1016 or when Eqn1017 or vice-versa.

WORKED EXAMPLES

Example 1

From the following table find Eqn1018 using Everett’s formula.

x 20 25 30 35 40
Eqn1019 11.4699 12.7834 13.7648 14.4982 15.0463

Solution

Everett’s formula is

Eqn1020(1)

where Eqn1021 and Eqn1022 and Eqn1023 is the origin.

Here Eqn1024 and take Eqn1025, since Eqn1026 lies between Eqn1027 and Eqn1028.

Eqn1029

When x = 34,

Eqn1030

We shall form the difference table.

C04U027

Eqn1031

Substituting in (1), we get

Eqn1032

∴ when Eqn1033

Example 2

Apply Everett’s formula to obtain Eqn1034 given Eqn1035 Eqn1035a

Solution

Everett’s formula is

Eqn1036

where Eqn1037, Eqn1038 and Eqn1039 is the origin.

The given values of x are 20, 24, 28, 32.

Required the value of y when x = 25

Here Eqn1040 and take Eqn1041 since Eqn1042 lies between Eqn1043 and Eqn1044

Eqn1046

We shall form the difference table.

C04U028

Eqn1047

Substituting in (1), we get

Eqn1048

∴ when Eqn1049

Example 3

If the third differences of Eqn1082 are constant, show that

Eqn1083

where Eqn1084

Solution

We shall prove the result using Everett’s formula.

Since the third differences are constants the fourth and higher differences are zero.

Everett’s formula is

Eqn1085

where Eqn1086, and Eqn1087a.

Here Eqn1087

∴ the formula becomes

Eqn1088

Exercises 4.4

  1. Using Stirlings formula find Eqn1089 given
    x 1 1.1 1.2 1.3 1.4
    Eqn1090 0.841 0.891 0.932 0.963 0.985
  2. Using Sitrling’s formula find Eqn1091 given
    x 1 6 11 16 21
    Eqn1092 831 723 592 430 392
  3. Using Stirling’s formula find Eqn1093 given Eqn1094, where Eqn1095 represents the number of persons at age x years in a life table.
  4. Using Stirling’s formula find the value Eqn1096 given that
    x 1.01 1.015 1.02 1.025 1.03
    Eqn1097 1.64463 2.10524 2.69159 3.43711 4.38391
  5. (5) Apply Stirling’s formula to find the value of Eqn1098 given that
    x 3.4 4.4 5.4 6.4 7.4 8.4
    Eqn1099 1156 1936 2916 4096 5476 7056
  6. (6) Using Bessel’s formula to find the value of y when x = 15, given that
    x 10 12 14 16 18 20
    y 51.21 60.24 75.32 96.02 119.78 151.45
  7. (7) Using Bessel’s formula find Eqn1101 given
    x 15 20 25 30 35 40
    Eqn1102 10.3797 12.4622 14.0939 15.3725 16.3742 17.1591
  8. (8) Use Bessel’s formula to obtain Eqn1103 given Eqn1104
  9. (9) Given
    x 20 24 28 32
    Eqn1105 24 32 35 40

    Find Eqn1106 using Bessel’s formula.

  10. If
    x 30 35 40 45 50 55 60
    Eqn1107 771 862 1001 1224 1572 2123 2983

    then find Eqn1108 by Everett’s method.

  11. Use Everett’s formula to obtain Eqn1109 given that Eqn1110 Eqn1110a

Answers 4.4

  1. 0.934 (2) 673.58 (3) 395 (4) 2.86155
  2. 2959.36 (6) 85.189 (7) 15.0818 (8) 3250.8715
  3. 32.945 (10) 1431.5 (11) 1.073
4.4 INTERPolatiON WITH UNEQUAL INTERVALS

Newton’s forward and backward formulae can be applied when the arguments are equally spaced. When the arguments are unequally spaced, we use Lagrange’s interpolation formula.

4.4.1 Lagrange’s Interpolation Formula

Theorem 4.2

Let Eqn1111 be the entries corresponding to the arguments Eqn1112 which are not necessarily equally spaced, then Lagrange’s interpolation formula is

Eqn1113

Proof: Let Eqn1114 be the entries corresponding to the arguments Eqn1115 not necessarily equally spaced, then the interpolating polynomial Eqn1116 for Eqn1117 is of degree n and let

Eqn1118

where Eqn1119 are constants to be determined such that

Eqn1120

When Eqn1121

Eqn1122

When Eqn1123

Eqn1124

Similarly, when Eqn1125 we get

Eqn1126

Eqn1127(1)

In the place of Eqn1128 we can write Eqn1129

Eqn1130

WORKED EXAMPLES

Example 1

Find f(x) as a polynomial in x from the given data and find f(8).

x 3 7 9 10
f(x) 168 120 172 63

Solution

Given the values of x and y are

Eqn1131 and Eqn1132

The values of x are not equally spaced. So we use Lagrange’s formula to find y = f(x)

Lagrange’s formula for a set of four pairs of values is

Eqn1133

Eqn133a

Note: Eqn1134

Example 2

Find the polynomial f(x) by using Lagrange’s formula and hence find f(3) for the following values of x and y.

x 0 1 2 5
y 2 3 12 147

and hence find f(3).

Solution

Eqn1135

The values of x are not equally spaced so we use Lagrange’s formula to find y = f(x)

Lagrange’s formula for a set of four pairs of values is

Eqn1136

Eqn136a

Example 3

Using Lagrange’s formula prove that

Eqn1141

Solution

From the given equation, the values of x involved are Eqn1142 and the corresponding y values are Eqn1143

The values of x are not equally spaced.

So, we use Lagrange’s formula to find y = f(x)

Lagrange’s formula for a set of four pairs of values is

Eqn1144

When x = 1, we get

Eqn1145

Example 4

Given the values

x 5 7 11 13 17
y = x f(x) 150 392 1452 2366 5202

Evaluate f(9) using Lagrange’s formula.

Solution

Given the values of x and y are

Eqn1155

The values of x are not equally spaced, so we use Lagrange’s formula to find y = f(x).

Lagrange’s formula for a set of five pairs of values is

Eqn1156

Eqn1156a

When x = 9,

Eqn1157

Eqn1157a

Exercises 4.5

  1. Using Lagrange’s formula fit a polynomial to the data and find f(5).
    x –1 1 2
    f(x) 7 5 15
  2. Using Lagrange’s formula find y (10) given that y (5) = 12, y (6) = 13, y (9) = 14, y (11) = 16.
  3. Using Lagrange’s interpolation formula calculate the profit in the year 2000 from the following data:
    Year 1997 1999 2001 2002
    Profit in Lakhs Rs. 43 65 159 248
  4. Apply Lagrange’s formula to find f(5) and f(6) given that f(l) = 2, f(2) = 4, f(3) = 8, f(4) = 16, and f(7) = 128
  5. Find the form of the function ux given that Eqn1159
  6. Use Lagrange’s formula to find f(5) from the following data:
    x 2 3 4 6 7
    f(x) 1 5 13 61 125
  7. Find the form of ux, give that Eqn1161 Eqn1161d Eqn1161e Eqn1161b Eqn1161a
  8. Find u5 given that u1 = 4, u2 = 7, u4 = 13 and u7 = 30
  9. The following table gives the premium payable at the ages in years completed. Interpolate the premium payable at the age of 35 completed.
    Age completed in years: 25 30 40 60
    Premium in Rs. 50 55 70 95
  10. From the following table find the value of y when x = 10
    x 5 6 9 11
    y 12 13 14 16

Answers 4.5

  1. Eqn1845 (2) Eqn1846
  2. Eqn1847 (4) Eqn1848
  3. Eqn1849 (6) Eqn1850
  4. Eqn1851 (8) Eqn1852
  5. Eqn1853 (10) Eqn1854

4.4.2 Divided Differences

In forward and backward differences for equally spaced arguments we considered only differences of the entries. But in divided differences, we divide this difference by difference of the corresponding arguments.

Let a function y = f(x) take values Eqn1162 corresponding to the arguments Eqn1163, not necessarily equally spaced.

The first divided difference for the arguments x0, x1 is defined as Eqn1164.

It is denoted by Eqn1165

We shall denote,

Eqn1166

Similarly,

Eqn1167

The second divided difference for the arguments Eqn1168 is defined as

Eqn1169

The second difference for Eqn1170 is

Eqn1171

The third divided difference for Eqn1172 is

Eqn1173

The third difference for Eqn1174 is

Eqn1175 and so on.

Properties of divided differences

  1. 1. The divided differences are symmetric functions of their arguments.

    For example

    Eqn1176

  2. 2. The nth divided differences of a polynomial of degree n are constants.
  3. 3. Eqn1177

    and Eqn1178 is constant.

    This shows that Δ is a linear operator.

  4. 4. The nth divided difference is a quotient of two determinants, each of order n + 1.

    We have

    Eqn1180

    Eqn1181 is a quotient of two determinant of same order 2.

    Similarly we can write the other divided differences as a quotient of determinants of the same order.

WORKED EXAMPLES

Example 1

For the function Eqn1182, prove that the third divided difference with arguments a, b, c, d is equal to Eqn1183

Solution

Given

Eqn1184

Similarly

Eqn1185

Now

Eqn1186

Similarly

Eqn1187

Example 2

Prove that Eqn1188

Solution

Given the function f(x) = x3 and the arguments are x, y, z

Eqn1189

Similarly,

Eqn1190

Now

Eqn1191

Divided difference table

A divided difference table can be constructed using same principle as for ordinary difference tables. It is a diagonal difference table as illustrated by the following example.

new15

4.4.3 Newton’s General Interpolation Formula or Newton’s Divided Difference Formula for Interpolation

Let Eqn1201 be the given values of the function f(x) corresponding to unequally spaced arguments Eqn1202.

Newton’s general interpolation formula is

Eqn1203

Proof: Corresponding to the given unequally arguments Eqn1204 the values of the function f(x) are Eqn1205

Let x be the argument for which the value is required.

Then for the arguments x0, x

Eqn1206(1)

Again for the arguments x0, x1, x

Eqn1207

Substituting in (1), we get

Eqn1208(2)

Now for the arguments x0, x1, x2, x

Eqn1209

Substituting in (2) we get,

Eqn1210(3)

Proceeding in this way we obtain

Eqn1211

where Eqn1212 is the remainder term.

Eqn1213

Let the interpolating polynomial be Eqn1214

If we put

Eqn1215

then Eqn1216

We see that Eqn1217 because Eqn1218

Hence the interpolation formula is Eqn1219 or

Eqn1220

Note: Using the relation between divided differences and ordinary differences from the general formula, we can deduce Newton’s forward and backward difference formulae for interpolation.

WORKED EXAMPLES

Example 1

Construct the divided difference table for the following data and find the value of f(2).

x 4 5 7 10 11 12
f(x) 50 102 296 800 1010 1224

Solution

Given value of x are Eqn1221

The values of x are unequally spaced, so we use Newton’s divided difference formula to find f(x) when x = 2.

Newton’s divided difference formula is

Eqn1222(1)

We form the divided difference table.

new15

(1) becomes

Eqn1243

when x = 2,

Eqn1244

Example 2

By using Newton’s divided difference formula find f(8), given

x 4 5 7 10 11 13
f(x) 48 100 294 900 1210 2028

Also find f(6), f(9), f(15).

Solution

Given the values of x are Eqn1245

The values of x are unequally spaced, so, we use Newton’s divided difference formula to find f(x) when x = 8.

Newton’s divided difference formula is

Eqn1246(1)

We form the divided difference table.

new15

(1) becomes

Eqn1265

Eqn1266

Eqn1267

Eqn1268

When x = 15

Eqn1269

Example 3

Given the data

x 0 1 2 5
f(x) 2 3 12 147

Find the cubic function of x, using Newton’s divided difference formula, and hence find f(2).

Solution

Given Eqn1324

The values of x are unequally spaced. We use Newton’s divided difference formula to find f(x)

Newton’s divided difference formula is

Eqn1325(1)

We form the divided difference table

new15

∴ (1) becomes

Eqn1335

When Eqn1336

Example 4

Find the third divided difference with arguments 2, 4, 9, 10 of the function f(x) = x3 – 2x.

Solution

Given the values of x are Eqn1337

and Eqn1338

Eqn1339

We form the divided difference table to find the divided differences.

new15

The third divided difference is Δ3f(x) = 1

Example 5

Given the following data, find f(x ) as a polynomial in x.

x 0 2 3 4 7 9
f (x) 4 26 58 112 466 922

Solution

Given Eqn1374

The values of x are unequally spaced. So, we find f(x) using Newton’s divided difference formula.

Eqn1375(1)

We form the divided difference table

new15

∴ (1) becomes

Eqn1392

[∴ all higher powers are zero ]

Eqn1856

Example 6

If f(0) = 0, f(l) = 0, f(2) = –12, f(4) = 0, f(5) = 600, f(7) = 7308, find a polynomial that satisfies this data using Newton’s divided difference formula. Hence find f(6).

Solution

Given the values of f(x) are

Eqn1270

The values of x are unequally spaced. We use Newton’s divided difference formula to find f(x).

We form the divided difference table

new15

∴ Newton’s divided difference formula is

Eqn1271(1)

Eqn1291 when

Eqn1292

Aliter:

Eqn1293

Since 6 values of f(x) are given, f(x) is polynomial of degree 5.

Since f(0) = 0, f(1) = 0, f(4) = 9,

f(x) = 0 when x = 1 and x = 4.

So, by factor theorem Eqn1294 are factors of f(x).

Eqn1295, where g(x) is a polynomial of degree 2.

We shall find this polynomial g(x) by using the other three values

Eqn1296.

When Eqn1297

When Eqn1298

When Eqn1299

We shall find g(x) by using Newton’s divided difference formula

new15

By Newton’s divided difference formula

Eqn1308

∴ the polynomial Eqn1309

Now

Eqn1310

Exercises 4.6

  1. Given the following data:
    x 3 7 9 10
    f(x ) 168 120 72 63

    Calculate f(6).

  2. Using Newton’s divided difference formula, find u(3) given Eqn1410a Eqn1410
  3. Find f(10) using Newton’s divided difference formula given that
    x 11 17 21 23
    f(x ) 14646 83526 194486 279845
  4. Find the function f(x) from the following table:
    x 0 1 4 5
    f (x ) 8 11 78 123
  5. Given Eqn1412 and log10 661 = 2.8202, find by divided difference the value of Eqn1414
  6. Find the equation of the curve passing through the points (–1, –21), (1, 15), (2, 12), (3, 3). Find also f(0).
  7. Find the cubic function from the following table:
    x 0 1 3 4
    f (x ) 1 4 40 85
  8. Given Eqn1417, find y2 using Newton’s divided difference formula.

Answers 4.6

  1. 147 (2) 100 (3) 130198
  2. Eqn1411 (5) 2.8168 (6) Eqn1415
  3. f(x) = x3 + x2 + x + 1 (8) y2 = 4
4.5 ERRORS IN INTERPOLATION FORMULAE

We state some results without proof

  1. 1. Rolle’s Theorem: If the real function f is (i) Continuous on the closed interval [a, b] (ii) differentiable in the open interval (a, b) and (iii) Eqn1418then there exists at least one point c in (a, b) such that fEqn1419

    Corollary: If Eqn1420 is a polynomial of degree n and if Eqn1421 then there is at least one Eqn1422 such that Eqn1423

    From this it follows that between two roots of Eqn1424 there is a root of Eqn1425

    In other words, the real roots of Eqn1426separate the real roots of the equation Eqn1427

    More generally, if Eqn1428 is a polynomial of degree n with a and b as the smallest and largest roots of Eqn1429 then

    Eqn1430has (n –1) roots in (a, b)

    Eqn1431has (n –2) roots in (a, b)

    Eqn1432

    Eqn1433has at least one root in (a, b).

4.5.1 Remainder Term in Interpolation Formulae

Let Eqn1434 be a function defined at Eqn1435 points Eqn1436 and let Eqn1437 be continuous and it has continuous derivatives of all orders.

Let Eqn1438 be a polynomial of degree not exceeding n such that Eqn1439 i = 0, 1, 2, … , n, be an approximation for Eqn1440

Let Eqn1441(1)

Since Eqn1442 for i = 0, 1, 2, … , n, we get

Eqn1443

g(xi) = 0, i = 0, 1, 2, …, n

Eqn1445 are roots of Eqn1446

Hence

Eqn1447

Eqn1448 where Eqn1449 is to be determined.

Eqn1450(2)

Now consider the function

Eqn1451(3)

Eqn1452 for Eqn1453

Since Eqn1454 and

Eqn1455 for i = 0, 1, 2, …,n and Eqn1456 for t = x by (2).

Hence we find Eqn1457 at n + 2 points Eqn1458

Also Eqn1459is continuous and differentiable n times in Eqn1460 where x0 is the least root and Eqn1462is the largest root.

So, by Rolle’s theorem,

Eqn1463 has at least (n + 1) roots in Eqn1464

Eqn1465has at least n roots in Eqn1466

Eqn1467

Eqn1468has at least one root, say Eqn1469 in Eqn1470

ie Eqn1471

But Eqn1472

Since Eqn1473 is a polynomial of degree n, Eqn1474

Since Eqn1475 we get Eqn1476

Eqn1477

Eqn1478

Eqn1479

Since Eqn1480 is difference between the given function and the polynomial at any point x, it represents the error comitted in approximating the given function Eqn1481 by the polynomial p(x)

Hence the error = Rn

Eqn1482 Eqn1483

This error Eqn1484 is called the truncation error for Eqn1485

Remainder term in Newton’s forward formula

Let Eqn1486 be equally spaced arguments with interval h.

Then

Eqn1487

Eqn1488

and

Eqn1489

Eqn1490 Eqn1491

Suppose the analytical form of Eqn1492 is not known, then we cannot find the derivative Eqn1493

∴ we replace Eqn1494 by difference,

we have the formula

Eqn1495

Eqn1497

Put Eqn1498

Eqn1499

Take Eqn1500 then

Eqn1501

Eqn1502

Eqn1503

Similarly we can find the error or remainder term in all the interpolation formulae.

We shall list them.

  1. Newton’s forward formula
    1. (a) Eqn1504
    2. (b) Eqn1505 where Eqn1861
  2. Newton’s backward formula
    1. (a) Eqn1506
    2. (b) Eqn1507 where Eqn1508
  3. Stirling’s formula
    1. (a) Eqn1509

      Eqn1510

  4. Bessells formula in terms of v
    1. (a) Eqn1511
    2. (b) Eqn1512
  5. Lagrange’s formula

    Eqn1513

WORKED EXAMPLES

Example 1

Find the error in the computation of sin 52° by using Newton’s forward formula, given that

x 45° 50° 55° 60°
y = sin x 0.7071 0.7660 0.8192 0.8660

Solution

The error in Newton’s forward formula is

Eqn1514

where

Eqn1515

We form the difference table.

new23

Here Eqn1520 (highest difference is third order)

Eqn1521

When x = 52,

Eqn1522

Eqn1523

Eqn1524

Example 2

The values of Eqn1526 for certain equidistant values of x are given below

x 1.72 1.73 1.74 1.75 1.76
Eqn1527 0.1791 0.1773 0.1755 0.1738 0.1720

Find the error in computing Eqn1528 by Stirling formula.

Solution

The error in Stirling’s formula is

Eqn1529

where Eqn1530 x0 is the origin. Here x0 = 1.73, h = 0.01

When x = 1.735,

Eqn1531

new23

Here Eqn1537

Eqn1538

Eqn1539

Example 3

The following table gives certain values of Eqn1540 Using Lagrange’s interpolation formula find the value of log 323.5. Also find the error.

x 321 322.8 324.2 325
Eqn1541 2.50651 2.50893 2.51081 2.51188

Solution

The given values of x are x0 = 321, x1 = 322.8, x2 = 324.2, x3 = 325

Using Lagrange’s formula, it can be seen that log 323.5 = 2.50987

We shall now compute the error.

Eqn1542

Here Eqn1544

Eqn1545

Eqn1546

But

Eqn1547

Eqn1549

Eqn1550 (Taking t0 = 321)

Eqn1551

Eqn1862

This shows that the error is less than 1 in the 11th place.

4.6 INTERPOLATION WITH A CUBIC SPLINE

4.6.0 Introduction

The interpolation formulae we have seen so far represent a single polynomial passing through the points (or nodes) in a given interval. If the number of points is more, then the interpolating polynomial for many functions will be of higher degree, which tend to oscillate more and more between nodes as the degree increases. Hence the values computed using these interpolating polynomials will be very rough, except the case where the given set of points is for a polynomial function. This drawback is overcome by the method of splines which was introduced by I.J. Schoenberg in 1946.

Instead of using a single high-degree interpolating polynomial in an interval Eqn1552 we subdivide the interval into a number of subintervals and in each subinterval we use a lower degree polynomial and join them together to get an interpolating function, called spline. Thus spline interpolation is a piece wise polynomial interpolation. Though splines can be of any degree, cubic splines are the most popular ones. The name ‘spline is borrowed from the draftman’s spline, a device which is an elastic rod used for drawing a smooth curve through a set of points.

4.6.1 Cubic Spline Interpolation

Let y = f(x) be the given function on the interval Eqn1553

Divide [a, b] into n subintervals by the points Eqn1554

where Eqn1555

Let S (x) be the cubic spline that approximates f(x) such that

  1. (i) Eqn1556 for Eqn1557
  2. Eqn1558 is a third degree polynomial in each subinterval Eqn1559
  3. Eqn1560 and Eqn1561 are continuous on (a, b)

ie. Eqn1562

ie. at the joining point xi, the successive cubics have the same slope and same curvature.

C04U030

In each interval Eqn1563 is a cubic polynomial, and so Eqn1564 is linear. By Lagrange’s formula, for the arguments Eqn1565 we have

Eqn1566

Since

Eqn1567 and Eqn1568 and Eqn1569

Eqn1570

Let

Eqn1571 and Eqn1572

Eqn1573

Integrating twice w.r.to x, we get

Eqn1574(2)

where c1 and c2 are arbitrary constants.

To find c1 and c2 use the hypothesis Eqn1575 and Eqn1576

Put Eqn1577 in (2)

Eqn1578(3)

Put Eqn1579 in (2)

Eqn1580(4)

Eqn1581

Subtracting, we get

Eqn1582

Eqn1582a

where Eqn1583 and Eqn1584 are unknown quantities to be determined by using the continuity of Eqn1585 at the point Eqn1586

Eqn1587

ie. the left and right limits at Eqn1588 are equal.

Now differentiating (5) w.r.to x, we get

Eqn1589(6)

Replacing i by i + 1, we get

Eqn1590(7)

From (6),

Eqn1591(8)

From (7),

Eqn1592(9)

Since Eqn1593

we get from (8) and (9), (putting Eqn1594 in the RHS)

Eqn1595(10)

This is true for all Eqn1596

Equations (10) give a system of (n – 1) linear equations in n + 1 unknowns Eqn1597

To solve for these unknowns we need two more equations. These two conditions may be taken in different ways.

We usually assume that outside the interval Eqn1598 is flat or a straight line, then Eqn1599

Eqn1600

Thus we can solve for Eqn1601 and these values are substituted in (5) to get the cubic spline Eqn1602

Note:

  1. The end conditions Eqn1603 are called natural conditions because they yield a natural spline. It is called a natural spline because the draftman’s spline behaves like this.
  2. Functions with abrupt local changes can be better approximated by cubic splines.

Working Rule: Given the table of values for y = f(x)

x x0 x1 xn
y y0 y1 yn

The cubic spline approximation S(x) for these points is Eqn1604 in the interval Eqn1605 is

Eqn1606

where Eqn1607 and Eqn1608

WORKED EXAMPLES

Example 1

Obtain the cubic spline approximation for the function y = f(x) from the following data, given that Eqn1609

x –1 0 1 2
y –1 1 3 35

Solution

The given values of x and y are

x0 = -1, x1 = 0, x2 = 1, x3 = 2

and

y0 = -1, y1 = 1, y2 = 3, y3 = 35

The values of x are equally spaced with h = 1. Here n = 3.

The cubic spline for the interval Eqn1610

Eqn1611(1)

where Eqn1612 Eqn1613(2)

Given Eqn1614 and Eqn1615

Put i = 1 in (2), we get,

Eqn1616

Put i = 2 in (2), we get,

Eqn1617

The cubic spline for Eqn1618 is

Eqn1619(3)

Put i = 1 in (1), then the interval Eqn1620 is Eqn1621

Then the cubic spline for Eqn1622 is

Eqn1623

Put i = 2 in (1), then the interval Eqn1624 is Eqn1625

Then the cubic spline for Eqn1626 is

Eqn1627

Eqn1627a

Put i = 3 in (1), then the interval Eqn1628 is Eqn1629

Then the cubic spline for Eqn1630 is

Eqn1631

∴ the cubic spline approximation for the given function is

Eqn1632

Example 2

Find the cubic spline approximation for the function f(x) given by the data:

x 0 1 2 3
f(x) 1 2 33 244

With Eqn1633. Hence estimate the value of f(2.5), f(1.5).

Solution

Let y = f(x)

The given the values of x and y are

x0 = 0 , x1 = 1 , x2 = 2 , x3 = 3

y0 = 1 , y1 = 2 , y2 = 33 , y3 = 244

The values of x are equally spaced with h = 1, Here n = 3.

The cubic spline for the interval Eqn1634 is

Eqn1635

Eqn1635a(1)

where Eqn1636(2)

and Eqn1637

Put i = 1 in (2),

Eqn1638

Put i = 2 in (2),

Eqn1639

Solving we get Eqn1640

Put i = 1 in (1), then the interval Eqn1641 is Eqn1642

Then the cubic spline for the interval Eqn1643 is

Eqn1644

Put i = 2 in (1), then the interval Eqn1645 is Eqn1646

Then the cubic spline for the interval Eqn1647 is

Eqn1648

Eqn1648a

Put i = 3 in (1), then the interval Eqn1649 is Eqn1650

Then the cubic spline for Eqn1651 is

Eqn1652

∴ the cubic spline is

Eqn1653

When x = 2.5,

Eqn1654

When x = 1.5,

Eqn1655

Example 3

The following values of x an y are given

x 1 2 3 4
y 1 2 5 11

Find the cubic splines and evaluate y(1.5) and y′(3).

Solution

Given the values of x and y are

x0 = 1, x1 = 2, x2 = 3, x3 = 4

y0 = 1, y1 = 2, y3 = 5, y3 = 11

The values of x are equally spaced with h = 1. Here n = 3

The cubic spline for the interval Eqn1656 is

Eqn1657(1)

where

Eqn1658(2)

We assume the conditions of natural spline Eqn1659

Putting i = 1 in (2) we get,

Eqn1660(3)

Putting i = 2 in (2) we get,

Eqn1661(4)

Solving (3) and (4), we get Eqn1662

Now Putting i = 1 in (1), then the interval Eqn1664 is Eqn1665.

Then the cubic spline for the interval Eqn1666 is

Eqn1667

Eqn1667a

Putting i = 2 in (1), then the interval Eqn1668 is Eqn1669

Then the cubic spline for the interval Eqn1670 is

Eqn1671

Putting i = 3 in (1), then the interval Eqn1672 is Eqn1673

Then the cubic spline for Eqn1674 is

Eqn1675

∴ the cubic spline is

Eqn1676

When x = 1.5,

Eqn1677

Differentiating S(x) w.r.to x, we get

Eqn1678

The derivates at the joining points should exist for the spline.

Eqn1679 can be obtained from [2, 3] or [3, 4] and they should be equal.

So we can find from [2, 3], Eqn1680

Note:

If we find from [3, 4], Eqn1681

Exercises 4.7

  1. Given the following table, find f(2.5) using cubic spline functions.
    i 0 1 2 3
    xi 1 2 3 4
    f(xi) Eqn1722 Eqn1723 Eqn1724 Eqn1725
  2. Find a natural cubic spline to the data, given
    x: 1 2 3 4
    y: 1 5 11 8

    Hence find y(1.5) and y′(2).

  3. Find the natural cubic spline valid for the interval [3, 4] for the data
    x: 1 2 3 4
    y: 3 10 29 65

    and hence find the value of y(3.2).

  4. Find the natural cubic spline for the data
    x 0 2 4 6
    f(x) 4 0 4 80
  5. Find the cubic spline interpolation for the data
    x: 0 2 4 6
    f(x): 1 9 41 41

    Given Eqn1730

Answers 4.7

  1. Eqn1726
  2. Eqn1727
  3. Eqn1728
  4. Eqn1729
  5. Eqn1731
Short Answer Questions
  1. When Newton’s forward interpolation formula is used ?
  2. When Newton’s backward formula for interpolation is used ?
  3. State Newton’s backward formula for interpolation.
  4. State Newton’s forward formula for interpolation.
  5. What do you mean by interpolation?
  6. Given Eqn1739, find the value of u2.
  7. A third degree polynomial passes through (0, –1), (1, 1), (2, 1) and (3, –2). Find its value at x = 4.
  8. Given f(0) = –1, f(1) = 1 and f(2) = 4, find the root of the Newton’s interpolating polynomial equation f(x) = 0.
  9. Form the divided difference table for the following data:
    x 2 5 10
    y 5 29 109
  10. Find the second degree polynomial through the points (0, 2), (2, 1), (1, 0).
  11. What is the Lagrange’s formula to find y, if Eqn1746 are given?
  12. What are the advantages of Lagrange’s formula over Newton’s formula ?
  13. Write down the Lagrange’s interpolating polynomial for the data (xi, f(xi)), i = 0,1,2,3.
  14. Find the second degree polynomial fitting the data:
    x 1 2 4
    y 4 5 13
  15. Show that the second divided difference [x0, x1, x2] is independent of the arguments.
  16. Find the second divided differences with arguments a, b, c of the function Eqn1760.
  17. Form the divided difference table for the data (0, 1), (1, 4) (3, 40) and (4, 85).
  18. Form the divided difference table
    x –1 1 2 4
    y –1 5 23 119
  19. Find y(l), given
    x 0 3 4
    y 12 6 8
  20. Define a cubic spline S(x) which is commonly used for interpolation.
  21. State the properties of cubic spline.
  22. For cubic splines what are the 4n conditions required to evaluate the unknowns.
  23. Find the divided differences of f(x)= x3 + x + 2 for the arguments 1, 3, 6.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.166.131