CompuChip said:
As 1 - x² is only a quadratic function you could first try doing it by trial-and-error, knowing that
P_0(x) = 1, P_1(x) = x, P_2(x) = \tfrac12(3x^2 - 1)
which should give you the right answer after you give it some thought.
More formally, there is an expansion along the lines of
f(x) = \sum_{n = 0}^\infty a_n P_n(x)
where
a_n = \langle P_n(x), f(x) \rangle \operatorname{:=} \int_{-1}^1 P_n(x) f(x) \, dx
If you have any text or lecture notes, you should be able to find a similar looking expression in there.
I have seen these in my textbook (Advanced Engineering Mathematics by O'Neil), but the section only has 3 problems where it wants you to expand some simple polynomial into Legendre polynomials, only one answer to the 1 of problems but no idea how it is reached, and no examples in the chapter.
So I have f(x) = \sum_{n = 0}^{\infty}a
nP
n(x), and I have a formula for the coefficients: a
n = \int_{-1}^{-1} P
n(x)f(x)dx.
How do I find the coefficients, a
n, if the integral is dependent on P
n(x)? Do I do it as follows:
n = 0 --> P
0(x) = 1.
a
0 = \int_{-1}^{-1} 1 - x
2 dx = x - x
3/3 evaluated from -1 to 1 = 4/3.
So a
0 = 4/3.
The same for n = 1, n = 2. Then a
1 = 0, a
2 = 14/15.
But then P(x) = 4/3 P
0(x) + 0 + 14/15 P
2(x) + ...
?
Using this method to check the one problem in the book doesn't yield the correct answer. Am I missing a recursion relation or something?
Between 2nd semester o-chem, neurogenetics, nonlinear dynamics and stability theory, mathematical reasoning and writing, and this advanced applied analysis course, my brain is starting to go crazy and it's becoming incredibly difficult to retain everything nearing the end of the semester. I apologize if I'm failing to understand or I'm missing some simple concept...I'm just feeling very lost in applied analysis at this point...
So any help is greatly, greatly appreciated.