TITLE: Hint on how to prove $\zeta ( 2) =\pi ^{2}/6$ using the complex Fourier series of $f(x)=x$
QUESTION [5 upvotes]: I know how to prove $\zeta (2)=\pi ^{2}/6$ by using the trigonometric Fourier series expansion of $x^{2}/4$. How can one prove the same result using the complex Fourier series of $f(x)=x$ for $0\leq x\leq 1$? Any suggestion?

REPLY [2 votes]: Extending off from Aryabhatta answer:

For our situation:  We have $f(x)=x ~~~{\text{ for }} 0\leq x\leq 1$
$2L=1,\Rightarrow L=\frac{1}{2}$
So restating we have: 
$f(x) = \displaystyle\sum_{n=-\infty}^{\infty} {c_{n} e^{inx}}, \text{ where }c_{n} = \displaystyle\frac{1}{2\pi}\int_{-\frac{1}{2}}^{\frac{1}{2}}{f(x)e^{-inx}} ~\mathrm{d}x,~~~~~~n=0,~\pm 1,~\pm 2, \cdots~ $
$
\Rightarrow~~ c_{n} = \displaystyle\frac{1}{2\pi}\int_{-\frac{1}{2}}^{\frac{1}{2}}{xe^{-inx}}~\mathrm{d}x
$
After integrating the complex Fourier coefficient we see that we get the following:
$\Rightarrow~~~~\displaystyle c_n=i\left(\frac{\cos(\frac{n}{2})}{2\pi n}-\frac{\sin(\frac{n}{2})}{\pi n^2}\right),~~~\text{for }n \in \mathbb{R}$
Lastly plugging back $c_n$ into $f(x)$ we then get our desired result for $n=0,~\pm 1,~\pm 2, \cdots~$.
Please update if you see any mistakes with any of the work. It has been quite some time since I work with Fourier Series and went off from my head. Feel free to edit mistakes as necessary if willing.
Thanks.