Expand Function in Legendre Polynomials On The Interval - 11 - Mathematics Stack Exchange
Expand Function in Legendre Polynomials On The Interval - 11 - Mathematics Stack Exchange
We’re rewarding the question askers & reputations are being recalculated! Read more.
1
f (x) = |x|
for n = 0, 1, 2, 3, . . .
My attempt :
2
a0 =
π
1
2
an = ∫ x cos(nx) dx
π −1
You have edited this, removed your original question and turned it in to a brand new question. This doesn't
work well with existing answers to your original question. It would be better to add an entirely new question. –
PM. Nov 28 '17 at 11:35
2 Answers
By usingYou
our are
site,being asked to compute
you acknowledge that you the coefficients
have an in theour
read and understand expansion
Cookie Policy, Privacy Policy, and our
Terms of Service.
https://math.stackexchange.com/questions/2532327/expand-function-in-legendre-polynomials-on-the-interval-1-1 1/3
11/15/2019 Expand function in Legendre polynomials on the interval [-1,1] - Mathematics Stack Exchange
0
∞
f (x) = ∑ an P n (x)
n=0
Another very useful reference (in general) is Abramowitz and Stegun's Handbook of Mathematical
Functions where you will find chapters on Legendre functions and orthogonal polynomials.
0 f (x) = ∑ Cn P n (x)
n=0
where
1
2n + 1
Cn = ∫ f (x)P n (x) dx
2 −1
As |x| is an even function, and the parity of P n (x) depends on the parity of n, We can write
1
∫ |x|P n (x) dx
−1
as
1
and
1
∫ |x|P 2k (x) dx
−1
0 1
= 2∫ xP 2k (x) dx
0
By usingAs
our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
(n + 1)P n+1 (x) − x(2n + 1)P n (x) + nP n−1 (x) = 0
https://math.stackexchange.com/questions/2532327/expand-function-in-legendre-polynomials-on-the-interval-1-1 2/3
11/15/2019 Expand function in Legendre polynomials on the interval [-1,1] - Mathematics Stack Exchange
we get
1
2∫ xP 2k (x) dx
0
1 1
2k + 1 2k
= 2( ∫ P 2k+1 (x) dx + ∫ P 2k−1 (x) dx)
4k + 1 0
4k + 1 0
As
1 0 n = 2k
k
∫ P n (x) dx = { (−1) (2k−1)!!
0
n = 2k + 1
(2k+2)!!
We get
k k−1
(−1) (2k − 1)!! (−1) (2k − 3)!!
C2k = (2k + 1) + n
(2k + 2)!! (2k)!!
1
⎧ k = 0
2
= ⎨ (−1)
k+1
(4k+1) (2k−2)!
⎩ k > 0
2k
2 (k−1)! (k+1)!
So
∞ k+1
1 (−1) (4k + 1) (2k − 2)!
|x| = + ∑ P 2k (x)
2k
2 2 (k − 1)! (k + 1)!
k=1
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.
https://math.stackexchange.com/questions/2532327/expand-function-in-legendre-polynomials-on-the-interval-1-1 3/3