3.2 Lagrange Polynomials

To create a function that interpolates through prescribed points

Suppose n1 and x0,x1,...,xn are n distinct real numbers.

We use the notation Pn(x) for the polynomial of least degree interpolating the points:

(x0,y0),(x1,y1),,(xn,yn)

Setting pi(x)=j=0,jin(xxj)=(xx0)(xx1)(xxi1)(xxi+1)(xxn)

Pn=Ln(x)=i=0npi(x)pi(xi)yi

Lagrange Polynomial is the interpolating polynomial of least degree passing though n+1 points (since we index at 0).

Error

Setting a=min(x0,...,xn,x) and b=max(x0,...,xn,x), we have the following result. If f has n+1 derivatives on (a,b) and f,f,f,...,f(n) are all continuous on [a,b], then there is a value ξx(a,b) such that:

f(x)Pn(x)=f(n+1)(ξx)(n+1)!(xx0)(xx1)(xxn).

To find max error over the entire interval we usually look at a graph of:

h(x)=(xx0)(xx1)(xxn)(n+1)!

To get maxx[a,b]|h(x)|

And then we look at maxξx[a,b]|fn+1(ξx)|

and take maxx[a,b]|h(x)|maxξx[a,b]|fn+1(ξx)|

Uniqueness

The polynomial Pn of least degree interpolating the data (xi,yi) for i=0,1,...,n exists and is unique. Moreover, the interpolating polynomial of degree at most n is equal to Pn .

Proof idea

We know Pn exists since Ln(x) interpolates the data and has degree at most n.
Suppose that Pn(x) and q(x) are both polynomials of degree at most n, such that they each pass through all of the points (xi,yi) for i=0,1,...,n.
Then the function (Pnq)(x) is a polynomial of degree at most n, such that it passes through the points (xi,0) for i=0,1,...,n. That is, it has n+1 zeros! Thus (Pnq)(x) must be the zero polynomial, and so Pn(x)=q(x).

Sidi's Method: Root-Finding

In the secant method we had the formula:

xn+1=xng(xn)g(xn)g(xn1)xnxn1

Now considering in Lagrange form we have:

p1(x)=g(xn)xxn1xnxn1+g(xn1)xxnxn1xnp1(x)=g(xn)+(g(xn)g(xn1)xnxn1)(xxn)

We see that the denominator is of the secant method is the slop of our interpolating polynomial.

Sidi's kth degree method then takes the derivative of a higher order interpolating polynomial.

xn+1=xng(xn)pn,k(xn)

where pn,k is the interpolating polynomial passing through

(xn,g(xn)),(xn1,g(xn1)),,(xnk,g(xnk))

so we have the derivative of a trailing interpolating polynomial.
When k=1 this is the secant method.

Neville's Method: Recursive Construction

Suppose Pk,l is the polynomial of degree at most l interpolating the data

(xk,f(xk)),(xk+1,f(xk+1)),,(xk+l,f(xk+l))

Then, by definition, P0,n is the polynomial of degree at most n interpolating the data

(x0,f(x0)),(x1,f(x1)),,(xn,f(xn))

Moreover, this polynomial can be computed using the recursive formula:

Pi,m+1(x)=(xxi)Pi+1,m(x)(xxi+m+1)Pi,m(x)xi+m+1xiPi,0(x)=f(xi),i=0,,n.

noting that m+1 is the degree. P0,n(x)=Ln(x)

Pasted image 20250221171544.webp