small corrections to legendre.tex
add basics of Legendre polynomials
add the Rayleigh equation