Suppose we need to approximate $f(8.4)$ where $f(x) = \mathbb{xln(x)}$ by using a linear polynomial . We have the following points as nodes : $x_0=8.1 , x_1 = 8.3 , x_2 = 8.6 , x_3 = 8.7$ .
I realize that we can use Lagrange Interpolation to fit a linear polynomial by choosing any two nodal points . But , as I have been given $4$ nodal points , how should I choose the best two points for the approximation (without evaluating $f$ directly at $x = 8.4$ ) ?
I would use a piecewise linear function, making a linear function between each pair of points. As $8.4$ is between $8.3$ and $8.6$, use those two points.