Show that the recurrence relation
p0(x)pn+1(x)=1=qn+1(x)−k=0∑n⟨pk,pk⟩⟨qn+1,pk⟩pk(x)
where ⟨⋅,⋅⟩ is an inner product on real polynomials, produces a sequence of orthogonal, monic, real polynomials pn(x) of degree exactly n of the real variable x, provided that qn is a monic, real polynomial of degree exactly n.
Show that the choice qn+1(x)=xpn(x) leads to a three-term recurrence relation of the form
p0(x)p1(x)pn+1(x)=1=x−α0=(x−αn)pn(x)−βnpn−1(x)
where αn and βn are constants that should be determined in terms of the inner products ⟨pn,pn⟩,⟨pn−1,pn−1⟩ and ⟨pn,xpn⟩.
Use this recurrence relation to find the first four monic Legendre polynomials, which correspond to the inner product defined by
⟨p,q⟩≡∫−11p(x)q(x)dx