(a) Given a set of n+1 distinct real points x0,x1,…,xn and real numbers f0,f1,…,fn, show that the interpolating polynomial pn∈Pn[x],pn(xi)=fi, can be written in the form
pn(x)=k=0∑nakj=0,j=k∏nxk−xjx−xj,x∈R
where the coefficients ak are to be determined.
(b) Consider the approximation of the integral of a function f∈C[a,b] by a finite sum,
∫abf(x)dx≈k=0∑s−1wkf(ck)
where the weights w0,…,ws−1 and nodes c0,…,cs−1∈[a,b] are independent of f. Derive the expressions for the weights wk that make the approximation ( 1) exact for f being any polynomial of degree s−1, i.e. f∈Ps−1[x].
Show that by choosing c0,…,cs−1 to be zeros of the polynomial qs(x) of degree s, one of a sequence of orthogonal polynomials defined with respect to the scalar product
⟨u,v⟩=∫abu(x)v(x)dx
the approximation (1) becomes exact for f∈P2s−1[x] (i.e. for all polynomials of degree 2s−1).
(c) On the interval [a,b]=[−1,1] the scalar product (2) generates orthogonal polynomials given by
qn(x)=2nn!1dxndn(x2−1)n,n=0,1,2,…
Find the values of the nodes ck for which the approximation (1) is exact for all polynomials of degree 7 (i.e. f∈P7[x] ) but no higher.