Legendre polynomials

397 Views Asked by At

I'm relatively new here( This is my first question tbh) This question is from my assignment which I'm supposed to submit in two days. I have been scratching my head over past couple of days but have reached nowhere.

Obtain the first three terms in the expansion of function F(x) in a series of the form $$ F(x) = \sum_{k=0}^{\infty} A_k P_k(x) $$ where $$F(x)=\{\cos(x) \text{ for } 0 \le x \le \pi/2 \ $$$$0 \text{ for } \frac{\pi}{2} \le x \le \pi.\} $$

What I know is I have to use legendre's expansion formula i.e,$F(x) =\sum A_kP_k(x)$ where $-1≤x≤1$ But obviously I cannot use it directly because the range of $x$ differs. I have tried substituting $x=\cos(\theta)$ but no success so far.

P.S Please don't downvote, and instead suggest where I must improve. Thank you