Question 6
The value of the Fourier coefficient bn for f(x) = x in the interval (-pi, pi) is:
$bn = (1/pi) integral_{-pi}^{pi} x \sin(nx) dx = (2/pi) integral_0^{pi} x \sin(nx) dx.$
Integrate by parts: integral_0^{pi} x $\sin(nx) dx = [-x \cos(nx)/n]_0^{pi} + integral_0^{pi} (\cos(nx)/n) dx = -pi \cos(n*pi)/n + 0 = -pi (-1)^$$n / n = pi (-1)^{n+1} / n$.
Thus bn = (2/pi) * [pi (-1)^{n+1} / n] = (2/n) (-1)^{n+1}