Interpolation & Polynomial Approximation Divided Differences: A - - PowerPoint PPT Presentation

interpolation polynomial approximation divided
SMART_READER_LITE
LIVE PREVIEW

Interpolation & Polynomial Approximation Divided Differences: A - - PowerPoint PPT Presentation

Interpolation & Polynomial Approximation Divided Differences: A Brief Introduction Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011


slide-1
SLIDE 1

Interpolation & Polynomial Approximation Divided Differences: A Brief Introduction

Numerical Analysis (9th Edition) R L Burden & J D Faires

Beamer Presentation Slides prepared by John Carroll Dublin City University

c 2011 Brooks/Cole, Cengage Learning

slide-2
SLIDE 2

Introduction Notation Newton’s Polynomial

Outline

1

Introduction to Divided Differences

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 2 / 16

slide-3
SLIDE 3

Introduction Notation Newton’s Polynomial

Outline

1

Introduction to Divided Differences

2

The Divided Difference Notation

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 2 / 16

slide-4
SLIDE 4

Introduction Notation Newton’s Polynomial

Outline

1

Introduction to Divided Differences

2

The Divided Difference Notation

3

Newton’s Divided Difference Interpolating Polynomial

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 2 / 16

slide-5
SLIDE 5

Introduction Notation Newton’s Polynomial

Outline

1

Introduction to Divided Differences

2

The Divided Difference Notation

3

Newton’s Divided Difference Interpolating Polynomial

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 3 / 16

slide-6
SLIDE 6

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

A new algebraic representation for Pn(x)

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 4 / 16

slide-7
SLIDE 7

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

A new algebraic representation for Pn(x)

Suppose that Pn(x) is the nth Lagrange polynomial that agrees with the function f at the distinct numbers x0, x1, . . . , xn.

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 4 / 16

slide-8
SLIDE 8

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

A new algebraic representation for Pn(x)

Suppose that Pn(x) is the nth Lagrange polynomial that agrees with the function f at the distinct numbers x0, x1, . . . , xn. Although this polynomial is unique, there are alternate algebraic representations that are useful in certain situations.

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 4 / 16

slide-9
SLIDE 9

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

A new algebraic representation for Pn(x)

Suppose that Pn(x) is the nth Lagrange polynomial that agrees with the function f at the distinct numbers x0, x1, . . . , xn. Although this polynomial is unique, there are alternate algebraic representations that are useful in certain situations. The divided differences of f with respect to x0, x1, . . . , xn are used to express Pn(x) in the form Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1) for appropriate constants a0, a1, . . . , an.

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 4 / 16

slide-10
SLIDE 10

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1) To determine the first of these constants, a0, note that if Pn(x) is written in the form of the above equation, then evaluating Pn(x) at x0 leaves only the constant term a0; that is, a0 = Pn(x0) = f(x0)

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 5 / 16

slide-11
SLIDE 11

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1) To determine the first of these constants, a0, note that if Pn(x) is written in the form of the above equation, then evaluating Pn(x) at x0 leaves only the constant term a0; that is, a0 = Pn(x0) = f(x0) Similarly, when P(x) is evaluated at x1, the only nonzero terms in the evaluation of Pn(x1) are the constant and linear terms, f(x0) + a1(x1 − x0) = Pn(x1) = f(x1)

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 5 / 16

slide-12
SLIDE 12

Introduction Notation Newton’s Polynomial

Introduction to Divided Differences

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1) To determine the first of these constants, a0, note that if Pn(x) is written in the form of the above equation, then evaluating Pn(x) at x0 leaves only the constant term a0; that is, a0 = Pn(x0) = f(x0) Similarly, when P(x) is evaluated at x1, the only nonzero terms in the evaluation of Pn(x1) are the constant and linear terms, f(x0) + a1(x1 − x0) = Pn(x1) = f(x1) ⇒ a1 = f(x1) − f(x0) x1 − x0

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 5 / 16

slide-13
SLIDE 13

Introduction Notation Newton’s Polynomial

Outline

1

Introduction to Divided Differences

2

The Divided Difference Notation

3

Newton’s Divided Difference Interpolating Polynomial

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 6 / 16

slide-14
SLIDE 14

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

We now introduce the divided-difference notation, which is related to Aitken’s ∆2 notation

∆ Definition Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 7 / 16

slide-15
SLIDE 15

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

We now introduce the divided-difference notation, which is related to Aitken’s ∆2 notation

∆ Definition

The zeroth divided difference of the function f with respect to xi, denoted f[xi], is simply the value of f at xi: f[xi] = f(xi)

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 7 / 16

slide-16
SLIDE 16

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

We now introduce the divided-difference notation, which is related to Aitken’s ∆2 notation

∆ Definition

The zeroth divided difference of the function f with respect to xi, denoted f[xi], is simply the value of f at xi: f[xi] = f(xi) The remaining divided differences are defined recursively.

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 7 / 16

slide-17
SLIDE 17

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

The first divided difference of f with respect to xi and xi+1 is denoted f[xi, xi+1] and defined as f[xi, xi+1] = f[xi+1] − f[xi] xi+1 − xi

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 8 / 16

slide-18
SLIDE 18

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

The first divided difference of f with respect to xi and xi+1 is denoted f[xi, xi+1] and defined as f[xi, xi+1] = f[xi+1] − f[xi] xi+1 − xi The second divided difference, f[xi, xi+1, xi+2], is defined as f[xi, xi+1, xi+2] = f[xi+1, xi+2] − f[xi, xi+1] xi+2 − xi

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 8 / 16

slide-19
SLIDE 19

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

Similarly, after the (k − 1)st divided differences, f[xi, xi+1, xi+2, . . . , xi+k−1] and f[xi+1, xi+2, . . . , xi+k−1, xi+k] have been determined,

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 9 / 16

slide-20
SLIDE 20

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

Similarly, after the (k − 1)st divided differences, f[xi, xi+1, xi+2, . . . , xi+k−1] and f[xi+1, xi+2, . . . , xi+k−1, xi+k] have been determined, the kth divided difference relative to xi, xi+1, xi+2, . . . , xi+k is f[xi, xi+1, . . . , xi+k−1, xi+k] = f[xi+1, xi+2, . . . , xi+k] − f[xi, xi+1, . . . , xi+k−1] xi+k − xi

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 9 / 16

slide-21
SLIDE 21

Introduction Notation Newton’s Polynomial

The Divided Difference Notation

Similarly, after the (k − 1)st divided differences, f[xi, xi+1, xi+2, . . . , xi+k−1] and f[xi+1, xi+2, . . . , xi+k−1, xi+k] have been determined, the kth divided difference relative to xi, xi+1, xi+2, . . . , xi+k is f[xi, xi+1, . . . , xi+k−1, xi+k] = f[xi+1, xi+2, . . . , xi+k] − f[xi, xi+1, . . . , xi+k−1] xi+k − xi The process ends with the single nth divided difference, f[x0, x1, . . . , xn] = f[x1, x2, . . . , xn] − f[x0, x1, . . . , xn−1] xn − x0

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 9 / 16

slide-22
SLIDE 22

Introduction Notation Newton’s Polynomial

Generating the Divided Difference Table

First Second Third x f(x) divided differences divided differences divided differences x0 f[x0] f[x0, x1] = f[x1] − f[x0] x1 − x0 x1 f[x1] f[x0, x1, x2] = f[x1, x2] − f[x0, x1] x2 − x0 f[x1, x2] = f[x2] − f[x1] x2 − x1 f[x0, x1, x2, x3] = f[x1, x2, x3] − f[x0, x1, x2] x3 − x0 x2 f[x2] f[x1, x2, x3] = f[x2, x3] − f[x1, x2] x3 − x1 f[x2, x3] = f[x3] − f[x2] x3 − x2 f[x1, x2, x3, x4] = f[x2, x3, x4] − f[x1, x2, x3] x4 − x1 x3 f[x3] f[x2, x3, x4] = f[x3, x4] − f[x2, x3] x4 − x2 f[x3, x4] = f[x4] − f[x3] x4 − x3 f[x2, x3, x4, x5] = f[x3, x4, x5] − f[x2, x3, x4] x5 − x2 x4 f[x4] f[x3, x4, x5] = f[x4, x5] − f[x3, x4] x5 − x3 f[x4, x5] = f[x5] − f[x4] x5 − x4 x5 f[x5] Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 10 / 16

slide-23
SLIDE 23

Introduction Notation Newton’s Polynomial

Outline

1

Introduction to Divided Differences

2

The Divided Difference Notation

3

Newton’s Divided Difference Interpolating Polynomial

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 11 / 16

slide-24
SLIDE 24

Introduction Notation Newton’s Polynomial

Newton’s Divided Difference Interpolating Polynomial

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1)

Using the Divided Difference Notation

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 12 / 16

slide-25
SLIDE 25

Introduction Notation Newton’s Polynomial

Newton’s Divided Difference Interpolating Polynomial

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1)

Using the Divided Difference Notation

Returning to the interpolating polynomial, we can now use the divided difference notation to write: a0 = f(x0) = f [x0]

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 12 / 16

slide-26
SLIDE 26

Introduction Notation Newton’s Polynomial

Newton’s Divided Difference Interpolating Polynomial

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1)

Using the Divided Difference Notation

Returning to the interpolating polynomial, we can now use the divided difference notation to write: a0 = f(x0) = f [x0] a1 = f(x1) − f(x0) x1 − x0 = f [x0, x1]

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 12 / 16

slide-27
SLIDE 27

Introduction Notation Newton’s Polynomial

Newton’s Divided Difference Interpolating Polynomial

Pn(x) = a0+a1(x −x0)+a2(x −x0)(x −x1)+· · ·+an(x −x0) · · · (x −xn−1)

Using the Divided Difference Notation

Returning to the interpolating polynomial, we can now use the divided difference notation to write: a0 = f(x0) = f [x0] a1 = f(x1) − f(x0) x1 − x0 = f [x0, x1] Hence, the interpolating polynomial is Pn(x) = f[x0] + f[x0, x1](x − x0) + a2(x − x0)(x − x1) + · · · + an(x − x0)(x − x1) · · · (x − xn−1)

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 12 / 16

slide-28
SLIDE 28

Introduction Notation Newton’s Polynomial

Newton’s Divided Difference Interpolating Polynomial

Pn(x) = f[x0] + f[x0, x1](x − x0) + a2(x − x0)(x − x1) + · · · + an(x − x0)(x − x1) · · · (x − xn−1). As might be expected from the evaluation of a0 and a1, the required constants are ak = f[x0, x1, x2, . . . , xk], for each k = 0, 1, . . . , n.

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 13 / 16

slide-29
SLIDE 29

Introduction Notation Newton’s Polynomial

Newton’s Divided Difference Interpolating Polynomial

Pn(x) = f[x0] + f[x0, x1](x − x0) + a2(x − x0)(x − x1) + · · · + an(x − x0)(x − x1) · · · (x − xn−1). As might be expected from the evaluation of a0 and a1, the required constants are ak = f[x0, x1, x2, . . . , xk], for each k = 0, 1, . . . , n. So Pn(x) can be rewritten in a form called Newton’s Divided-Difference: Pn(x) = f[x0] +

n

  • k=1

f[x0, x1, . . . , xk](x − x0) · · · (x − xk−1)

Numerical Analysis (Chapter 3) Divided Differences: A Brief Introduction R L Burden & J D Faires 13 / 16

slide-30
SLIDE 30

Questions?

slide-31
SLIDE 31

Reference Material

slide-32
SLIDE 32

Forward Difference Operator ∆

For a given sequence {pn}∞

n=0, the forward difference ∆pn (read “delta

pn”) is defined by ∆pn = pn+1 − pn, for n ≥ 0. Higher powers of the operator ∆ are defined recursively by ∆kpn = ∆(∆k−1pn), for k ≥ 2.

Return to the Divided Difference Notation