I am having difficulties with interpolating polynomials to approximate. I am familiar when the problem involves 2 points but this particular problem involves 3 points. Can you explain the process to me? For the given function $f(x)=\sin(\pi x)$ let $x_0=1,x_1=1.25,x_2=1.6$. Construct interpolation polynomials of degree at most 1 and at most 2 to approximate $f(1.4)$ and find the absolute error.
Interpolating polynomials for $f(x)=\sin(\pi x)$
-
0Yup that was correct, I got the right answer. Thanks :)))) – 2012-09-12
1 Answers
Interpolation of degree at most $1$ is linear interpolation. You only need the value of $f$ evaluated in $x_1$ and $x_2$ since $x_1<1.4
You can also interpolate using a piecewise polynomial as well but in this case you get fixed degree of smoothness. For example cubic splines, which are piecewise cubic polynomials define a twice differentiable function, and not more ! The nice thing about these interpolation polynomials is that between two knots they have degree at most 3, preventing Runge's phenomenon that Lagrange interpolation polynomial present when increasing the number of knots.
-
1@math101: $ f(1)\frac{20}{3}(x^2-2.85x+2) -f(1.25)\frac{80}{7}(x^2-2.6x+1.6) +f(1.6)\frac{100}{21}(x^2-2.25x+1.25) $ – 2012-09-12