Let
so that we want such that
From Hint 1 (and setting L=1) we have that are orthogonal i.e.,
where the overbar indicates the complex conjugate
We can get the coefficients of using this orthogonality. Take the inner product with each
- .
If we use integration by parts: with , to obtain
Here we see the importance of having , otherwise the coefficient diverges using this formula. If n = 0,
Therefore, we have all the coefficients for the series.