The goal of Lagrange interpolation is to find the polynomial
p∈Pn for
n+1 interpolation points
x0,…,xn∈R and
associated values
y0,…,yn∈R so that:
p(xi)=yifor i=0,…,n.
For the constuction, Lagrange basis functions are used:
Li(n)(x):=∏j=0,j=inxi−xjx−xj∈Pn,i=0,…n.
With this the interpolation polynomial can be constructed:
p:=∑i=0nyiLi(n)∈Pn.