We were given that $x=2(\sin x - \frac{\sin 2x}{2}+ \frac{\sin 3x}{3}-\dots)$ and I computed that $x^2=\sum_{n=1}^{\infty}\frac{(-1)^n(4-2\pi ^2 n^2)-4}{\pi n^3}\sin(nx)$.
How can I use these two to show that $1-\frac{1}{3^3} + \frac{1}{5^3} - \frac{1}{7^3} + \dots = \frac{\pi ^3}{32}$
HINT:
First show that the function $f(x)=x^3-\pi^2 x$ has Fourier Series representation for $x\in [-\pi,\pi]$
$$x^3-\pi^2 x=12 \sum_{n=1}\frac{(-1)^n}{n^3}\sin(nx) \tag 1$$
Then, let $x=\pi/2$.
SPOILER ALERT: Scroll over the highlighted area to reveal the solution