One is asked to determine the Fourier series of the function
$$ f(x)= \left\{\matrix{ 0 & \hbox{(for $-\pi\le x<0$)} \cr x & \hbox{(for $0\le x<\pi $)} }\right. $$ where $f(x+2\pi)$ = $f(x)$. Hence calculate the value of the infinite sum
$$\sum_{n=1}^\infty\frac{1}{(2n-1)^2}$$
For the coefficients, $A_0$ = $\frac{1}{2\pi}$$\int_{-\pi}^{+\pi}f(x)dx$ = $\frac{1}{2\pi}$[$\int_{-\pi}^0$$f(x)dx$ + $\int_0^{\pi}$$f(x)dx$]
$A_n$ = $\frac{1}{\pi}$$\int_{-\pi}^{+\pi}$$f(x)cos\frac{nx\pi}{\pi}dx$
I know that need to plug in x=0 to f(x) but can not get the fourier series f,from this kinda stuck how to proceed any help will be appriciated