Consider the $2\pi$-periodic odd function defined on $[0,\pi]$ by $f(\theta)=\theta (\pi - \theta)$.
(b)Compute the Fourier Coefficients of $f$, show that$$f(\theta) = \frac{8}{\pi}\sum_{k\ odd\ \ge 1}\frac{\sin(k\theta)}{k^3} $$
I calculated $\hat{f}(0)$ and it was $\frac{\pi^2}{12}$(which at the end I knew that it is wrong).But the calculation of $\hat{f}(n)$ gave me $$(\frac{1}{2} + \frac{2}{in}) \{\frac{\pi}{-in} e^{-in\pi} + \frac{1}{n^2}(e^{-in\pi} - 1)\} + \frac{1}{2in\pi} (\pi^2 e^{-in\pi})$$(which was also wrong ), which I do not know how it will reach the formula that he wants? and also I do not know the importance of mentioning that the function is odd. May be the book want us to use the following problem results, exactly letter (b) of it Basic Properties Of Fourier Series. 2.. For the integration by parts that we do when we are calculating the Fourier Coefficient, The following link contains the details Integration By Parts Example., Now I knew the correct answer of this question, thanks to all who helped me and I hope this question will be a reference to questions that appear in minds before trying to solve questions like it. The newest and the most beautiful thing that I have learned from this question is adjusting the definition of the given function.