Answer on Question #55518 – Math – Algorithms | Quantitative Methods
Question 1
If f(1)=1, f(3)=19, f(4)=49 and f(5)=101, find the Lagrange’s interpolation polynomial of f(x).
a. P(x)=x⋅3−x⋅2+1
b. P(x)=x⋅3−3x⋅2−5x−4
c. P(x)=x⋅3−3x⋅2+5x−6
d. P(x)=2x⋅2−3x+5x−6
Solution
The Lagrange’s interpolation polynomial has the form
L(x)=i=0∑nyili(x),
where
li(x)=j=0,j=i∏nxi−xjx−xj=xi−x0x−x0⋯xi−xi−1x−xi−1⋅xi−xi+1x−xi+1⋯xi−xnx−xn.
Thus, we obtain
P(x)=(1−3)(1−4)(1−5)(x−3)(x−4)(x−5)f(1)+(3−1)(3−4)(3−5)(x−1)(x−4)(x−5)f(3)+(4−1)(4−3)(4−5)(x−1)(x−3)(x−5)f(4)+(5−1)(5−3)(5−4)(x−1)(x−3)(x−4)f(5)==24−1(x−3)(x−4)(x−5)+419(x−1)(x−4)(x−5)+3−49(x−1)(x−3)(x−5)+8101(x−1)(x−3)(x−4)==x3−x2+1.
Answer: a. P(x)=x3−x2+1.
Question 2
The first divided difference of f with respect to x i and x i+1 denoted by f[x⋅i,x⋅i+1] is defined as
a. f[x⋅i,x⋅i+1]=f[x⋅i+1]−f[x⋅i]⋅x⋅i+1−xi
b. f[x⋅i,x⋅i+1]=x⋅i+1−x⋅if[x⋅i+1]−f[x⋅i]
c. f[x⋅i,x⋅i+1]=f[x⋅i]−f[x⋅i+1]⋅x⋅i+1−xi
d. f[x⋅i,x⋅i+1]=f[x⋅i]−f[x⋅i+1]⋅f[x⋅i+1]−xi
Solution
The first divided difference of f with respect to xi and xi+1 denoted by f[xi,xi+1] is defined as
f[xi,xi+1]=xi+1−xif(xi+1)−f(xi).
Answer: a. f[xi,xi+1]=xi+1−xif(xi+1)−f(xi).
www.AssignmentExpert.com
Comments