Msilva
- 5
- 0
Hello friends. I need help to write the function x^3 as a somatory using the Legendre polinomials as base. Something like:
f(x)=\sum^{\infty}_{n=0}c_{n}P_{n}(x)
Basically is to find the terms c_{n}.
But, the problem is that Legendre polinomials does't form a orthonormal base: \langle P_{m}|P_{n}\rangle=\delta_{mn}\frac{2}{2n+1}, and I don't know how exactly to use this information.
May I use c_n=\frac{2n+1}{2}\int_{-1}^{-1}P_n(x)x^3\,dx? Is that right?
f(x)=\sum^{\infty}_{n=0}c_{n}P_{n}(x)
Basically is to find the terms c_{n}.
But, the problem is that Legendre polinomials does't form a orthonormal base: \langle P_{m}|P_{n}\rangle=\delta_{mn}\frac{2}{2n+1}, and I don't know how exactly to use this information.
May I use c_n=\frac{2n+1}{2}\int_{-1}^{-1}P_n(x)x^3\,dx? Is that right?