According to Parseval's identity it holds that

where cn are the Fourier coefficients of ƒ(x). In part (b) we calculated the right hand side and found that the above equals to 1/3.
In part (a) we found that the Fourier coefficients are
and
. Hence

where we have noted that
in splitting up the sum. Solving for the remaining series yields the final answer
