Let x1,x2,…,xm be all the distinct zeros of ϕn for which
a<xi<b
ϕn changes sign at xi
i.e., there are m roots each with odd multiplicity in (a,b). This includes all the simple roots also. There might be other roots outside the interval (a,b) and there could be roots with even multiplicity in (a,b). Since degree ϕn=n, we have m≤n. Now since ϕn is orthogonal to ϕ0= constant,
∫abw(x)ϕn(x)dx=0,n≥1 ⟹ each ϕn has atleast one root in (a,b), i.e., m≥1.
Let us assume that m<n and derive a contradiction. We can write
ϕn(x)=(x−x1)r1…(x−xm)rmh(x) Each ri is odd and other roots are roots of h(x). Define
B(x)=(x−x1)…(x−xm) so that
B(x)ϕn(x)=(x−x1)r1+1…(x−xm)rm+1h(x) h(x) does not change sign in (a,b) and since each ri+1 is even, B(x)ϕn(x) does not change sign in (a,b). Hence
∫abw(x)ϕn(x)B(x)dx=(B,ϕn)=0 But degree of B=m<n so that (B,ϕn)=0 which leads to a contradiction. Hence m=n. Since ϕn has atmost n roots, the multiplicity of each xi is one. Hence ϕn has n distinct roots.