quiz 05inp background solution

7
Multiple-Choice Test Background Interpolation COMPLETE SOLUTION SET 1. The number of different polynomials that can go through two fixed data points ( ) 1 1 , y x and ( ) 2 2 , y x is A) 0 B) 1 C) 2 D) infinite Solution The correct answer is (D). The number of polynomials that can go through two fixed data points ( ) 1 1 , y x and is infinite. For example the polynomials ( ) 2 2 , y x 6 5 = x y and go through the two data points (2,4) and (3,9). So does every polynomial of the form , where m and n are any positive integers of your choice. 2 x y = n m bx ax y + =

Upload: kim-david

Post on 20-Jan-2016

12 views

Category:

Documents


5 download

DESCRIPTION

Quiz 05inp Background Solution

TRANSCRIPT

Page 1: Quiz 05inp Background Solution

Multiple-Choice Test Background Interpolation COMPLETE SOLUTION SET 1. The number of different polynomials that can go through two fixed data points ( )11, yx and

( )22 , yx is A) 0 B) 1 C) 2 D) infinite

Solution The correct answer is (D). The number of polynomials that can go through two fixed data points ( )11, yx and is infinite. For example the polynomials

( )22 , yx65 −= xy and go through the two data points

(2,4) and (3,9). So does every polynomial of the form , where m and n are any positive integers of your choice.

2xy =nm bxaxy +=

Page 2: Quiz 05inp Background Solution

2. Given n+1 data pairs, a unique polynomial of degree __________________ passes

through 1+n data points. (A) 1 +n(B) 1+n or less (C) n (D) n or less

Solution The correct answer is (D). A unique polynomial of degree n or less passes through 1+n data points. If the polynomial is not unique, then at least two polynomials of order n or less pass through the data points. Assume two polynomials and

1+n( )xPn ( )xQn go through 1+n data points,

( ) ( ) ( nn yxyxyx ,,,,,, 1100 … ) Then

( ) ( ) ( )xQxPxR nnn −= Since and pass through all the ( )xPn ( )xQn 1+n data points,

( ) ( ) nixQxP inin ,,0, …== Hence ( ) ( ) nixQxPxR ininin ,,0,0)( …==−= The nth order polynomial has ( )xRn 1+n zeros. A polynomial of order n can have zeros only if it is identical to a zero polynomial, that is,

1+n

( ) 0≡xRn Hence ( ) ( )xQxP nn ≡ Extra Notes for the Student: How can one show that if a second order polynomial has three zeros, then it is zero everywhere? If , then if it has three zeros at x1, x2, and x3, then ( ) 2

2102 xaxaaxR ++=

( )( )( ) 0

0

0

23231032

22221022

21211012

=++=

=++=

=++=

xaxaaxR

xaxaaxR

xaxaaxR

which in matrix form gives

⎥⎥⎥

⎢⎢⎢

⎡=

⎥⎥⎥

⎢⎢⎢

⎥⎥⎥

⎢⎢⎢

000

111

2

1

0

233

222

211

aaa

xxxxxx

The above set of equations has a trivial solution, that is, 0321 === aaa . But is this the only solution? That is true if the coefficient matrix is invertible.

Page 3: Quiz 05inp Background Solution

The determinant of the coefficient matrix can be found symbolically with the forward elimination steps of naïve Gauss elimination to give

))()((

111

det

133221

221

2213

21

2313

22

232

233

222

211

xxxxxx

xxxxxxxxxxxxxxxxxx

−−−=

−++−−=⎥⎥⎥

⎢⎢⎢

Since 321 xxx ≠≠the determinant is non-zero. Hence the coefficient matrix is invertible. is the only solution, that is,

0321 === aaa( ) .02 ≡xR

Page 4: Quiz 05inp Background Solution

3. The following function(s) can be used for interpolation:

(A) polynomial (B) exponential (C) trigonometric (D) all of the above

Solution The correct answer is (D). Polynomials are often used for interpolation because they are easy to evaluate, differentiate and integrate. However, other functions such as trigonometric and exponential can be used for interpolation. How is a polynomial easy to evaluate as compared to a trigonometric function? Because terms such as xm in a polynomial involve multiplication of x to itself times. However, trigonometric and exponential functions include the use of computationally more involved calculations via a Taylor series.

1−m

Page 5: Quiz 05inp Background Solution

4. Polynomials are the most commonly used functions for interpolation because they are

easy to (A) evaluate (B) differentiate (C) integrate (D) evaluate, differentiate and integrate

Solution The correct answer is (D). Polynomials are often used for interpolation because they are easy to evaluate, differentiate and integrate. However, other functions such as trigonometric and exponential can be used for interpolation. How is a polynomial easy to evaluate as compared to a trigonometric function? Because terms such as xm in a polynomial involve multiplication of x to itself times. However, trigonometric and exponential functions include the use of computationally more involved calculations via a Taylor series.

1−m

Page 6: Quiz 05inp Background Solution

5. Given 1+n data points ( ) ( ) ( ) ( )nnnn yxyxyxyx ,,,,......,,,, 111100 −− , assume you pass a

function )(xf through all the data points. If now the value of the function )(xf is required to be found outside the range of the given x-data, the procedure is called

(A) extrapolation (B) interpolation (C) guessing (D) regression

Solution The correct answer is (A). If x falls outside the range of x for which the data is given, it is no longer interpolation but instead is called extrapolation.

Page 7: Quiz 05inp Background Solution

6. Given three data points (1,6), (3,28), and (10, 231), it is found that the function

13 passes through the three data points. Your estimate of y at 2=x is most nearly

2 2 ++= xxy

(A) 6 (B) 15 (C) 17 (D) 28

Solution The correct answer is (B).

15 168

12322)2(132)(

2

2

=++=

+×+×=

++=

yxxxy