Docsity

Notes for Interpolation Using Equally Spaced Points | MAT 460, Study notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Jim Lambers
MAT 460/560
Fall Semester 2009-10
Lecture 18 Notes
These notes correspond to Section 3.2 in the text.
Interpolation Using Equally Spaced Points
Suppose that the interpolation points 𝑥0, 𝑥1, . . . , 𝑥𝑛are equally spaced; that is, 𝑥𝑖=𝑥0+𝑖ℎ for
some positive number ℎ. In this case, the Newton interpolating polynomial can be simplified, since
the denominators of all of the divided differences can be expressed in terms of the spacing ℎ. If we
recall the forward difference operator Δ, defined by
Δ𝑥𝑘=𝑥𝑘+1 −𝑥𝑘,
where {𝑥𝑘}is any sequence, then the divided differences 𝑓[𝑥0, 𝑥1, . . . , 𝑥𝑘] are given by
𝑓[𝑥0, 𝑥1, . . . , 𝑥𝑘] = 1
𝑘!ℎ𝑘Δ𝑘𝑓(𝑥0).
The interpolating polynomial can then be described by the Newton forward-difference formula
𝑝𝑛(𝑥) = 𝑓[𝑥0] +
𝑛
∑
𝑘=1 (𝑠
𝑘)Δ𝑘𝑓(𝑥0),
where the new variable 𝑠is related to 𝑥by
𝑠=𝑥−𝑥0
ℎ,
and the extended binomial coefficient (𝑠
𝑘)is defined by
(𝑠
𝑘)=𝑠(𝑠−1)(𝑠−2) ⋅ ⋅ ⋅ (𝑠−𝑘+ 1)
𝑘!,
where 𝑘is a nonnegative integer.
Example We will use the Newton forward-difference formula
𝑝𝑛(𝑥) = 𝑓[𝑥0] +
𝑛
∑
𝑘=1 (𝑠
𝑘)Δ𝑘𝑓(𝑥0)
to compute the interpolating polynomial 𝑝3(𝑥) that fits the data
1
pf3
pf4
pf5

Partial preview of the text

Download Notes for Interpolation Using Equally Spaced Points | MAT 460 and more Study notes Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Jim Lambers MAT 460/ Fall Semester 2009- Lecture 18 Notes

These notes correspond to Section 3.2 in the text.

Interpolation Using Equally Spaced Points

Suppose that the interpolation points 푥 0 , 푥 1 ,... , 푥푛 are equally spaced; that is, 푥푖 = 푥 0 + 푖ℎ for some positive number ℎ. In this case, the Newton interpolating polynomial can be simplified, since the denominators of all of the divided differences can be expressed in terms of the spacing ℎ. If we recall the forward difference operator Δ, defined by

Δ푥푘 = 푥푘+1 − 푥푘,

where {푥푘} is any sequence, then the divided differences 푓 [푥 0 , 푥 1 ,... , 푥푘] are given by

푓 [푥 0 , 푥 1 ,... , 푥푘] =

푘!ℎ푘^

The interpolating polynomial can then be described by the Newton forward-difference formula

푝푛(푥) = 푓 [푥 0 ] +

X^ 푛

푘=

where the new variable 푠 is related to 푥 by

푠 =

and the extended binomial coefficient

is defined by

 푠 푘

where 푘 is a nonnegative integer.

Example We will use the Newton forward-difference formula

푝푛(푥) = 푓 [푥 0 ] +

X^ 푛

푘=

to compute the interpolating polynomial 푝 3 (푥) that fits the data

In other words, we must have 푝 3 (−1) = 3, 푝 3 (0) = −4, 푝 3 (1) = 5, and 푝 3 (2) = − 6. Note that the interpolation points 푥 0 = −1, 푥 1 = 0, 푥 2 = 1 and 푥 3 = 2 are equally spaced, with spacing ℎ = 1. To apply the forward-difference formula, we define 푠 = (푥 − 푥 0 )/ℎ = 푥 + 1 and compute  푠 1

푓 [푥 0 ] = 푓 (푥 0 )

Δ^2 푓 (푥 0 ) = Δ(Δ푓 (푥 0 ))

= Δ[푓 (푥 1 ) − 푓 (푥 0 )]

= [푓 (푥 2 ) − 푓 (푥 1 )] − [푓 (푥 1 ) − 푓 (푥 0 )]

Δ^3 푓 (푥 0 ) = Δ(Δ^2 푓 (푥 0 ))

= Δ[푓 (푥 2 ) − 2 푓 (푥 1 ) + 푓 (푥 0 )]

= [푓 (푥 3 ) − 푓 (푥 2 )] − 2[푓 (푥 2 ) − 푓 (푥 1 )] + [푓 (푥 1 ) − 푓 (푥 0 )]

To apply the backward-difference formula, we define 푠 = (푥 − 푥 3 )/ℎ = 푥 − 2 and compute

 −푠 1

푓 [푥 3 ] = 푓 (푥 3 )

∇^2 푓 (푥 3 ) = ∇(∇푓 (푥 3 ))

= Δ[푓 (푥 3 ) − 푓 (푥 2 )]

= [푓 (푥 3 ) − 푓 (푥 2 )] − [푓 (푥 − 2) − 푓 (푥 1 )]

∇^3 푓 (푥 3 ) = ∇(∇^2 푓 (푥 3 ))

= ∇[푓 (푥 3 ) − 2 푓 (푥 2 ) + 푓 (푥 1 )]

= [푓 (푥 3 ) − 푓 (푥 2 )] − 2[푓 (푥 2 ) − 푓 (푥 1 )] + [푓 (푥 1 ) − 푓 (푥 0 )]

It follows that

푝 3 (푥) = 푓 [푥 3 ] +

X^3

푘=

∇^2 푓 (푥 3 ) −

∇^3 푓 (푥 3 )

= − 6 − −(푥 − 2) +

Note that the backward-difference formula does not compute the same form of the interpolating polynomial 푝푛(푥) as the Newton divided-difference formula. Instead, it computes a different Newton form of 푝푛(푥) given by

X^ 푛

푗=

푓 [푥푗 , 푥푗+1,... , 푥푛]

Y^ 푛

푖=푗+

= 푓 [푥푛] + 푓 [푥푛− 1 , 푥푛](푥 − 푥푛) + 푓 [푥푛− 2 , 푥푛− 1 , 푥푛](푥 − 푥푛− 1 )(푥 − 푥푛) +

⋅ ⋅ ⋅ + 푓 [푥 0 , 푥 1 ,... , 푥푛](푥 − 푥 1 )(푥 − 푥 2 ) ⋅ ⋅ ⋅ (푥 − 푥푛− 1 )(푥 − 푥푛).

The divided-differences 푓 [푥푗 ,... , 푥푛], for 푗 = 0, 1 ,... , 푛, can be obtained by constructing a divided- difference table as in the first example. These divided differences appear in the bottom row of the table, whereas the divided differences used in the forward-difference formula appear in the top row. □