Question #54865

if f(1) = 1, f(3) =19, f(4) = 49 and f(5) = 101, find the lagrange's interpolation polynomial of f(x)
1

Expert's answer

2015-09-22T12:03:46-0400

Answer on Question #54865 – Math – Algorithms | Quantitative Methods

Question

If f(1)=1,f(3)=19,f(4)=49f(1) = 1, f(3) = 19, f(4) = 49 and f(5)=101f(5) = 101, find the Lagrange's interpolation polynomial of f(x)f(x)

Solution

If f(xi)=yi,i=0,1,2,,nf(x_{i}) = y_{i}, i = 0,1,2,\ldots,n, then Lagrange's interpolation polynomial of f(x)f(x) is polynomial of nn-th degree in form


L(x)=j=0nyjlj(x)L(x) = \sum_{j=0}^{n} y_j l_j(x)


where


lj(x)=xx0xjx0xx1xjx1xxj1xjxj1xxj+1xjxj+1xxnxjxnl_j(x) = \frac{x - x_0}{x_j - x_0} \cdot \frac{x - x_1}{x_j - x_1} \cdots \frac{x - x_{j-1}}{x_j - x_{j-1}} \cdot \frac{x - x_{j+1}}{x_j - x_{j+1}} \cdots \frac{x - x_n}{x_j - x_n}


We have x0=1,x1=3,x2=4,x3=5x_0 = 1, x_1 = 3, x_2 = 4, x_3 = 5 and y0=1,y1=19,y2=49,y3=101y_0 = 1, y_1 = 19, y_2 = 49, y_3 = 101

l0(x)=x313x414x515=124(x3)(x4)(x5)=124(x312x2+47x60)l_0(x) = \frac{x - 3}{1 - 3} \cdot \frac{x - 4}{1 - 4} \cdot \frac{x - 5}{1 - 5} = -\frac{1}{24}(x - 3)(x - 4)(x - 5) = -\frac{1}{24}(x^3 - 12x^2 + 47x - 60)l1(x)=x131x434x535=14(x1)(x4)(x5)=14(x310x2+29x20)l_1(x) = \frac{x - 1}{3 - 1} \cdot \frac{x - 4}{3 - 4} \cdot \frac{x - 5}{3 - 5} = \frac{1}{4}(x - 1)(x - 4)(x - 5) = \frac{1}{4}(x^3 - 10x^2 + 29x - 20)l2(x)=x141x343x545=13(x1)(x3)(x5)=13(x39x2+23x15)l_2(x) = \frac{x - 1}{4 - 1} \cdot \frac{x - 3}{4 - 3} \cdot \frac{x - 5}{4 - 5} = -\frac{1}{3}(x - 1)(x - 3)(x - 5) = -\frac{1}{3}(x^3 - 9x^2 + 23x - 15)l3(x)=x151x353x454=18(x1)(x3)(x4)=18(x38x2+19x12)l_3(x) = \frac{x - 1}{5 - 1} \cdot \frac{x - 3}{5 - 3} \cdot \frac{x - 4}{5 - 4} = \frac{1}{8}(x - 1)(x - 3)(x - 4) = \frac{1}{8}(x^3 - 8x^2 + 19x - 12)


Hence L(X)=l0(x)+19l1(x)+49l2(x)+101l3(x)=L(X) = l_0(x) + 19l_1(x) + 49l_2(x) + 101l_3(x) =

=124(x312x2+47x60)+194(x310x2+29x20)493(x39x2+23x15)+1018(x38x2+19x12)=x3x2+1= -\frac{1}{24}(x^3 - 12x^2 + 47x - 60) + \frac{19}{4}(x^3 - 10x^2 + 29x - 20) - \frac{49}{3}(x^3 - 9x^2 + 23x - 15) + \frac{101}{8}(x^3 - 8x^2 + 19x - 12) = x^3 - x^2 + 1


Answer: L(x)=x3x2+1L(x) = x^3 - x^2 + 1.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS