5. Homework (This can be done in Mathematica or Python.)
(a). Given the square wave below, calculate $a_0$, $a_n$ and $b_n$, and find its expanded Fourier series.
Please DO show your work. (Hint, please refer to the square wave example in the lecture notes.)
$f(t)$
1
-2 -1 0 1 2 3 ?
-1
(b). Plot the Fourier series of the square wave for $N = 11$, here $N$ is not $n$.