solhw2

solhw2 - Solutions for Homework 2 Foundations of...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Solutions for Homework 2 Foundations of Computational Math 2 Spring 2011 Written homework problems are study questions. You need not turn in solutions but you are strongly encouraged to do the problems and read the posted solutions carefully. Problem 2.1 Let p n ( x ) be the unique polynomial that interpolates the data ( x , f ) , . . . , ( x n , f n ) Suppose that we assume the form p n ( x ) = + 1 ( x x ) + + n ( x x )( x x 1 ) ( x x n 1 ) and let a = . . . n y = y . . . y n 2.1.a . Show that the constraints yield a linear system of equations La = y where L is lower triangular. 2.1.b . Show that the linear system yields a recurrence for the i that is equivalent to one of the standard definitions of the divided differences and therefore this is the Newton form of p n ( x ). Solution: 1 Taking n = 3 suffices to show the pattern. We have p 3 ( x ) = + 1 ( x x ) + 2 ( x x )( x x 1 ) + 3 ( x x )( x x 1 )( x x 2 ) p 3 ( x ) = + 1 ( x x ) + 2 ( x x )( x x 1 ) + 3 ( x x )( x x 1 )( x x 2 ) p 3 ( x 1 ) = + 1 ( x 1 x ) + 2 ( x 1 x )( x 1 x 1 ) + 3 ( x 1 x )( x 1 x 1 )( x 1 x 2 ) p 3 ( x 2 ) = + 1 ( x 2 x ) + 2 ( x 2 x )( x 2 x 1 ) + 3 ( x 2 x )( x 2 x 1 )( x 2 x 2 ) p 3 ( x 3 ) = + 1 ( x 3 x ) + 2 ( x 3 x )( x 3 x 1 ) + 3 ( x 3 x )( x 3 x 1 )( x 3 x 2 ) p 3 ( x ) = = y p 3 ( x 1 ) = + 1 ( x 1 x ) = y 1 p 3 ( x 2 ) = + 1 ( x 2 x ) + 2 ( x 2 x )( x 2 x 1 ) = y 2 p 3 ( x 3 ) = + 1 ( x 3 x ) + 2 ( x 3 x )( x 3 x 1 ) + 3 ( x 3 x )( x 3 x 1 )( x 3 x 2 ) = y 3 1 1 ( x 1 x ) 1 ( x 2 x ) ( x 2 x )( x 2 x 1 ) 1 ( x 3 x ) ( x 3 x )( x 3 x 1 ) ( x 3 x )( x 3 x 1 )( x 3 x 2 ) ....
View Full Document

Page1 / 6

solhw2 - Solutions for Homework 2 Foundations of...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online