STutorial 06
STutorial 06
Tutorial Sheet 6
Polynomial Interpolation - Week 1
~
1. Let x , x , · · · , x
0 1 be distinct nodes. If p(x) is a polynomial of degree less than or
n
equal to n, then show that
n
!
p(x) = p(xi )li (x),
i=0
n
!
lk (x) = 1,
k=0
-
3. Given distinct nodes x , x , . . ., x , for n ≥ 1, let
0 1 n
n
"
L(x) = (x − xi ), x ∈ [a, b].
i=0
L(x)
lk (x) = , x ∈ [a, b],
(x − xk )L! (x)
k
~ 4. Using Lagrange form of interpolating polynomial for the function g(x) = 3x2 +
x + 1, express the rational function
3x2 + x + 1
f (x) =
(x − 1)(x − 2)(x − 3)
~
5. Find the Lagrange form of interpolating polynomial p (x) that interpolates the2
function f (x) = e at the nodes x0 = −1, x1 = 0 and x2 = 1. Further, find the
−x2
value of p2 (−0.75) (use 6-digit rounding arithmetic). Compare the value with the
true value f (−0.75) (use 6-digit rounding arithmetic). Find the percentage error
in this calculation.
1
S. Sivaji Ganesh and S. Baskar Spring 2022-23
Section
!n
f (xi )
f [x0 , x1 , · · · , xn ] = " (x )
.
i=0
w i
2
S. Sivaji Ganesh and S. Baskar Spring 2022-23