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)=(x0−x1)(x0−x2)(x0−x3)(x−x1)(x−x2)(x−x3)f(x0)+...+
+(x3−x0)(x3−x1)(x3−x2)(x−x0)(x−x1)(x−x2)f(x3) As result get
f(5)=(1−2)(1−3)(1−7)(5−2)(5−3)(5−7)×2+(2−1)(2−3)(2−7)(5−1)(5−3)(5−7)×4++(3−1)(3−2)(3−7)(5−1)(5−2)(5−7)×8+(7−1)(7−2)(7−3)(5−1)(5−2)(5−3)×128=38.8f(6)=(1−2)(1−3)(1−7)(6−2)(6−3)(6−7)×2+(2−1)(2−3)(2−7)(6−1)(6−3)(6−7)×4+
+(3−1)(3−2)(3−7)(6−1)(6−2)(6−7)×8+(7−1)(7−2)(7−3)(6−1)(6−2)(6−3)×128=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
Comments