I am trying to calculate the Fourier series of:
$f(x) = x$ on the interval $|x| < \pi/2$.
First, I observed that $f(x) =x$ is odd and thus $f(x) * \cos(nx)$ is odd. Hence, $a_n = 0$.
$b_n = 2/\pi \int_{-\pi/2}^{\pi/2} x*\sin(2nx)dx = 2/\pi[\frac{-xcos(2nx)}{2n}]_{-\pi/x}^{\pi/2} + 2/\pi\int_{-\pi/2}^{\pi/2}\frac{cos(2nx)}{2n}dx = 1$. But I hardly doubt that this would be correct.
What should I do next? Am I on the right track?
Check your calculation of $b_n$. You should have $b_n = \dfrac{(-1)^{n+1}}n$.