Question #61799

Let
x0x1xn
be n + 1 distinct points on the real line and let f(x) be a real-valued function defined on some interval I = [a, b] containing these points. Then, there exists exactly one polynomial Pn(x) of degree n, which ..... f(x) at
x0x1…xn

Expert's answer

Answer on Question #61799 Programming & Computer Science

Let x0,x1,,xnx_0, x_1, \ldots, x_n be n+1n + 1 distinct points on the real line and let f(x)f(x) be a real-valued function defined on some interval I=[a,b]I = [a, b] containing these points. Then, there exists exactly one polynomial Pn(x)P_n(x) of degree nn , which matches f(x)f(x) at x0,x1,,xnx_0, x_1, \ldots, x_n . This one polynomial named an interpolation polynomial.

Solution

Let the polynomial has the form Pn(x)=k=0nakxkP_{n}(x) = \sum_{k=0}^{n} a_{k} x^{k} and satisfying conditions of interpolation i=0..n\forall i = 0..n : Pn(xi)=f(xi)=fiP_{n}(x_{i}) = f(x_{i}) = f_{i} . Then we have a system of nn linear equations with nn unknown coefficients {ak}\{a_{k}\} :


[
    [1, x_0, x_0**2, ..., x_0**n],
    [1, x_1, x_1**2, ..., x_1**n],
    ...
    [1, x_n, x_n**2, ..., x_n**n]
]
* [a_0, a_1, ..., a_n] = [f_0, f_1, ..., f_n]


This system has exactly one solution {ak}\{a_k\} , because its matrix is nonsingular Vandermonde matrix and therefore there exists exactly one polynomial Pn(x)P_n(x) of degree nn , which matches f(x)f(x) at x0,x1,,xnx_0, x_1, \ldots, x_n .

http://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!

LATEST TUTORIALS
APPROVED BY CLIENTS