Question #153477

Apply Lagrange’s formula to find f(5) and f(6) given that f(2) = 4, f(1) = 2, f(3) = 8, f(7) = 128 Explain why the result differs from those obtained by completing the series of powers of 2?


1
Expert's answer
2021-01-06T19:43:07-0500

Solution. According to the condition of the problem we have pairs of points (1;2), (2;4), (3;8), (7;128).

Using Lagrange's interpolation formula


f(x)=(xx1)(xx2)(xx3)(x0x1)(x0x2)(x0x3)f(x0)+...+f(x)=\frac{(x-x_1)(x-x_2)(x-x_3)}{(x_0-x_1)(x_0-x_2)(x_0-x_3)}f(x_0)+...+

+(xx0)(xx1)(xx2)(x3x0)(x3x1)(x3x2)f(x3)+\frac{(x-x_0)(x-x_1)(x-x_2)}{(x_3-x_0)(x_3-x_1)(x_3-x_2)}f(x_3)

As result get


f(5)=(52)(53)(57)(12)(13)(17)×2+(51)(53)(57)(21)(23)(27)×4+f(5)=\frac{(5-2)(5-3)(5-7)}{(1-2)(1-3)(1-7)}\times2+\frac{(5-1)(5-3)(5-7)}{(2-1)(2-3)(2-7)}\times4++(51)(52)(57)(31)(32)(37)×8+(51)(52)(53)(71)(72)(73)×128=38.8+\frac{(5-1)(5-2)(5-7)}{(3-1)(3-2)(3-7)}\times8+\frac{(5-1)(5-2)(5-3)}{(7-1)(7-2)(7-3)}\times128=38.8f(6)=(62)(63)(67)(12)(13)(17)×2+(61)(63)(67)(21)(23)(27)×4+f(6)=\frac{(6-2)(6-3)(6-7)}{(1-2)(1-3)(1-7)}\times2+\frac{(6-1)(6-3)(6-7)}{(2-1)(2-3)(2-7)}\times4+

+(61)(62)(67)(31)(32)(37)×8+(61)(62)(63)(71)(72)(73)×128=74+\frac{(6-1)(6-2)(6-7)}{(3-1)(3-2)(3-7)}\times8+\frac{(6-1)(6-2)(6-3)}{(7-1)(7-2)(7-3)}\times128=74



The result differs from those obtained by completing the series of powers of 2 (blue line) because interpolation polynomial of the third degree (green line) and the required function has an exponential dependence. More initial data points are needed to get a more accurate value.


Answer. f(5)=38.8; f(6)=74



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