Fourier series - Your turn

Fourier series - Your turn#

For the function \(f(x) = 2x\), \(-2 < x < 2\), given the Fourier expansion

\[ f(x) = \sum_{n=1}^{\infty} \dfrac{8}{n\pi} (-1)^{n+1} \sin \left( \dfrac{n\pi x}{2} \right), \]

plot the actual function and first \(5\) partial sums over the domain \(-4 < x < 4\), all on the same set of axes.

# TODO: Write your solution below

Exporting your work#

When you’re ready, the easiest way to export the notebook is to File > Print it and save it as a PDF. Remove any excessively long, unrelated outputs first by clicking the arrow → next to the output box and then Show/hide output. Obviously don’t obscure any necessary output or graphs!