06.09.2021 Views

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

A First Course in Linear Algebra, 2017a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.2. Applications of the Determ<strong>in</strong>ant 139<br />

Procedure 3.48: F<strong>in</strong>d<strong>in</strong>g an Interpolat<strong>in</strong>g Polynomial<br />

Suppose that values of x and correspond<strong>in</strong>g values of y are given, such that the actual relationship<br />

between x and y is unknown. Then, values of y can be estimated us<strong>in</strong>g an <strong>in</strong>terpolat<strong>in</strong>g polynomial<br />

p(x). Ifgivenx 1 ,...,x n and the correspond<strong>in</strong>g y 1 ,...,y n , the procedure to f<strong>in</strong>d p(x) is as follows:<br />

1. The desired polynomial p(x) is given by<br />

2. p(x i )=y i for all i = 1,2,...,n so that<br />

p(x)=r 0 + r 1 x + r 2 x 2 + ... + r n−1 x n−1<br />

r 0 + r 1 x 1 + r 2 x 2 1 + ... + r n−1x1 n−1 = y 1<br />

r 0 + r 1 x 2 + r 2 x 2 2 + ... + r n−1x2 n−1 = y 2<br />

.<br />

.<br />

r 0 + r 1 x n + r 2 x 2 n + ... + r n−1xn<br />

n−1 = y n<br />

3. Set up the augmented matrix of this system of equations<br />

⎡<br />

1 x 1 x 2 1<br />

··· x n−1 ⎤<br />

1<br />

y 1<br />

1 x 2 x 2 2<br />

··· x2 n−1 y 2<br />

⎢<br />

⎥<br />

⎣<br />

...<br />

...<br />

...<br />

...<br />

... ⎦<br />

1 x n x 2 n ··· xn<br />

n−1 y n<br />

4. Solv<strong>in</strong>g this system will result <strong>in</strong> a unique solution r 0 ,r 1 ,···,r n−1 . Use these values to construct<br />

p(x), and estimate the value of p(a) for any x = a.<br />

This procedure motivates the follow<strong>in</strong>g theorem.<br />

Theorem 3.49: Polynomial Interpolation<br />

Given n data po<strong>in</strong>ts (x 1 ,y 1 ),(x 2 ,y 2 ),···,(x n ,y n ) with the x i dist<strong>in</strong>ct, there is a unique polynomial<br />

p(x)=r 0 +r 1 x +r 2 x 2 +···+r n−1 x n−1 such that p(x i )=y i for i = 1,2,···,n. The result<strong>in</strong>g polynomial<br />

p(x) is called the <strong>in</strong>terpolat<strong>in</strong>g polynomial for the data po<strong>in</strong>ts.<br />

We conclude this section with another example.<br />

Example 3.50: Polynomial Interpolation<br />

Consider the data po<strong>in</strong>ts (0,1),(1,2),(3,22),(5,66). F<strong>in</strong>d an <strong>in</strong>terpolat<strong>in</strong>g polynomial p(x) of degree<br />

at most three, and estimate the value of p(2).<br />

Solution. The desired polynomial p(x) is given by:<br />

p(x)=r 0 + r 1 x + r 2 x 2 + r 3 x 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!