x0, ---.xn_1 a0 + alx + + an_1x”“1
Given n distinct points , Evaluate it at n
distinct points
l :01 XS - - - xfif ' .51.; 1'11.
1 x1 .1; - - - 1'1"] 111 1"
l .1'_.,._-_ .1'_-_ I - - - -"5.-li— ' Gin—I 1"11—:
J
Running time. 1:9 (n2) for matrix-vector multiply (or n Horner’s)..
Coefficient => point-value.
Given n distinct points x0,-~,xn_1 and values 3’0""!3’11-1 , find unique
n—1
polynomial a0 + “ix + + an_1x ,that has given values at given points.
J. In Ill]: ' ' ' IE I (In 'L'.;_.
1 x. .1; - - - .1":"'] £11 ,1-'1
l .1'_.,._-_ .1'_§_| - - - .1;_,":'_ ' an—I 3"11—'.
1
\ 115.111: is him-eth'ble ifi'xi dishhcl
Running time. 9 (n3) for Gaussian elimination.
Theorem. For any set {(xo, yo), (x1,y1), . . ., (xn-1,yn-1)} of n point-value pairs,
there is a unique polynomial A(x) of degree-bound n such that y, = A(xk) for k =
0,1,...,n-1.
Proof: write out A(xo) = y0,A(x1) = yl... A(xn.1) = yn.1 as
" .I.' 'I
l :01 .15 - - - EU .51.; 11-,
I x. .1; - - - .1'f'] £11 .1-'1
l .1'_..._-_ .1'Ifi_| - - - 351':— J' 61.1— | 111—:
The matrix on the left is denoted V(x0,x1, . . .,x,,—1) and is known as a
Vandermonde matrix. this matrix has determinant
n11. — 1.1 .
Determinant (x0, x1, . . ., xn-l) ¢ 0 since all the x’s are distinct. So the system
has a solution
A: V (x0, x1, . - .1 xn-1)'1y