Using the hint given in the question, we have
From part (d) we know that c n = 1 2 π 2 n 2 {\displaystyle c_{n}={\frac {1}{2\pi ^{2}n^{2}}}} , which we plug into our equation above to calculate