Application to the case N=2
Obviously, there is no problem in changing the numbering of the matrix elements
i,k=0,1,2,…,N−1 to
i,k=1,2,…,N. We have chosen to start from zero, since we deal with polynomials of degree
N−1.
Summarizing, for Legendre polynomials with N=2 we have
weights
ω:{1,1},
and mesh points
x:{−1√3,1√3}.