For some weeks have been studying Legendre polynomial as a solution to this equation. $$ (1-x^2)\frac{d^2}{dx^2}f(x)-2x\frac{d}{dx}f(x)+n(n+1)f(x)=0.$$
I've found them very interesting to learn from purely mathematical perspective but I haven't come across their specific use. Why are they so important and any example suggesting the use of Legendre polynomial would be appreciated.
Thank you.
Roots of such polynomials are used through Gaussian quadrature, which aims at computing integrals accurately.
For instance the second Legendre polynomial, namely $$ P_2(X) = \frac{1}{2}\left(3X^2-1\right) $$ has roots $\pm \frac{1}{\sqrt{3}}$. Gaussian quadrature tells you that $$f\left(\frac{1}{\sqrt{3}}\right) + f\left(-\frac{1}{\sqrt{3}}\right)$$ is a good approximation for $$I = \int_{-1}^1 f(x) dx$$ In fact it is exact for polynomials up to the 3th order !
You can get more info there as well.