1. Trang chủ
  2. » Giáo án - Bài giảng

Interpolation handout

44 0 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Interpolation and Polynomial Approximation
Tác giả Lê Xuân Đại
Trường học Ho Chi Minh City University of Technology
Chuyên ngành Applied Mathematics
Thể loại Bài giảng
Năm xuất bản 2019
Thành phố Ho Chi Minh City
Định dạng
Số trang 44
Dung lượng 881,21 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

I NTRODUCTIONA census of the population of the USA is taken every 10 years.. The following table lists the population, in thousands of people, from 1950 to 2000, and the data are also re

Trang 1

INTERPOLATION AND POLYNOMIAL

APPROXIMATION

E LECTRONIC VERSION OF LECTURE

Dr Lê Xuân Đại

HoChiMinh City University of Technology Faculty of Applied Science, Department of Applied Mathematics

Email: ytkadai@hcmut.edu.vn

HCMC — 2019.

Trang 2

O UTLINE

2 L AGRANGE I NTERPOLATING P OLYNOMIALS

3 N EWTON ’ S D IVIDED D IFFERENCE M ETHOD

4 C UBIC S PLINE I NTERPOLATION

Trang 3

I NTRODUCTION

A census of the population of the USA is

taken every 10 years The following table

lists the population, in thousands of people, from 1950 to 2000, and the data are also

represented in the figure

Trang 5

In the reviewing these data, we might ask whether they could be used to provide a

reasonable estimate of the population, for instance, in 1975 or even in the year 2020 Predictions of this type can be obtained by using a function that fits the given data.

This process is called interpolation

Trang 6

One of the most useful and well-known

classes of functions mapping the set of real numbers into itself is the algebraic

form P n (x) = a n x n + a n−1 x n−1 + + a1x + a0,

where nis a non-negative integer and

a0, a1, , a n are real constants.

The polynomial which satisfies

P n (x i ) = y i , i = 0,1,2, ,n is called

Trang 7

Consider the construction of a polynomial

of degree at most n

y = P n (x) = a n x n + a n−1 x n−1 + + a1x + a0that passes through the (n + 1) points

M i (x i , y i ), i = 0,1,2, ,n.

Trang 8

THEOREM 1.1

The interpolation polynomial P n (x) for f (x),

is unique.

Construct a interpolation polynomial for

y = f (x), which is defined by the table

x 0 1 3

y 1 -1 2

Trang 10

Let y = f (x) be given by the table:

Trang 11

EXAMPLE 2.1

Construct the Lagrange interpolating

polynomial for y = sin(πx) using the numbers called nodesx0= 0, x1= 16, x2= 12

Trang 14

EXAMPLE 2.2

Let y be defined by x 0 1 3 4

y 1 1 2 -1 Use the Lagrange interpolating polynomial to

approximate the value of y when x = 2.

Trang 15

Let function f (x) be defined by the table

which is called the first divided difference of

f with respect to x k andx k+1

Trang 16

The second divided difference of f in

Trang 18

The first divided difference of f in [x, x0]is

Trang 19

Continuing the process to step n, we have

Trang 20

DEFINITION 3.2

The formula N (1)

n (x) is called the Newton forward divided-difference formula starting from x0 off and R n (x) is called the error of the interpolating polynomial.

Similarly, we can construct the Newton

forward divided-difference formula starting from x n of f as following

Trang 22

EXAMPLE 3.2

Let y = f (x) be defined by the table of data

x 0 2 3 5 6

y 1 3 2 5 6

1 Construct Newton forward

divided-difference formula, starting from

x0 of functiony = f (x)

2 Using the obtained interpolating

polynomial, estimate f (1.25)

Trang 24

Therefore, the Newton forward

Trang 25

DEFINITION 4.1

Given a function f defined on [a, b] and a set of nodes

a = x0< x1< x2= b Let y0= f (x0), y1= f (x1), y2= f (x2 ).A cubic spline interpolant for f on [a, b] is a function g that satisfies the following conditions:

1 g(x) has continuous derivatives to the second

Trang 27

Consider [x0, x1] Let h0= x1− x0 Sinceg0(x) is the cubic polynomial then

b0= y1− y0

h0 − c0h0− d0h20

Trang 28

Consider [x1, x2] Let h1= x2− x1 Sinceg1(x) is the cubic polynomial then

b1= y2− y1

h1 − c1h1− d1h21

Trang 29

Because the first and the second derivatives

Trang 30

Because the first and the second derivatives

Trang 32

N ATURAL C UBIC S PLINE

The boundary condition for natural cubic spline is

Trang 33

Then we can define the coefficients of g0

Trang 34

EXAMPLE 4.1

Construct a natural cubic spline for a

function defined by the table x 0 2 5

y 1 1 4

h0= 2, h1= 3 Because this is a natural cubic spline so c0= c2= 0 The coefficient c1 can be defined by the formula

Trang 35

Then we can define the coefficients of g0

Trang 36

Therefore, the required natural cubic spline is

Trang 37

C LAMPED C UBIC S PLINE

The boundary condition for clamped cubic spline is

Trang 39

Then we will have 2 equations

The coefficients of g k (x) (k = 0,1) can be

found by the formula

Trang 40

EXAMPLE 4.2

Construct the clamped cubic spline for a

function defined by the table x 0 1 2

y 1 2 1 which satisfies y0(0) = 0,y0(2) = 0

coefficients c0, c1, c2 can be found by solving the system

Trang 42

Then we can define the coefficients of g0

Trang 43

Therefore, the required clamped cubic

Trang 44

THANK YOU FOR YOUR ATTENTION

Ngày đăng: 14/05/2025, 21:37

w