For period two, write . Direct integration gives . For , and , so
Thus the Fourier series is
It converges to the values specified in part a. Changing the assigned values at the jumps would not change these integral coefficients.