1) Please can my answers be checked, including my final Fourier series.
2) Is it possible to use Wolfram Alpha to check my answers? If so, how will I go about doing this?
Deduce the Fourier series for the following period waveform (the waveform is given for 1 period):
\begin{align} x(t) = \begin{cases} 2 & 0 \leq t \leq \frac{T}{2} \\ -1 & \frac{T}{2} < t \leq T \end{cases} \end{align}
My Answers: \begin{align} x(t) = \begin{cases} 2 & 0 \leq t \leq \frac{1}{2} \\ -1 & \frac{1}{2} < t \leq 1 \end{cases} \end{align}
Calculated the 3 coefficients:
$$a_0 = 1$$ $$a_n = 0$$ $$b_n = \frac{1}{\pi \, n}(2+\cos(\pi \, n) -3(-1)^2)$$
The final Fourier Series:
$$x(t)=\frac{1}{2} +\frac{1}{\pi}[(5+\cos2\pi) \sin(2\pi \, t) + \frac{(6+ \cos6\pi) \, \sin(6\pi \, t)}{3} + \cdots] + \frac{1}{\pi}[\frac{(\cos4\pi -1) \, \sin(4\pi \, t)}{2} + \frac{(\cos8\pi - 1) \, \sin(8\pi \, t)}{4} + \cdots]$$
Except for the constant term (indeed $\frac12$), this is a so-called square waveform, the transform of which is well-know.
See http://mathworld.wolfram.com/FourierSeriesSquareWave.html or https://en.wikipedia.org/wiki/Square_wave.