In each of Problems 1 through 10, expand the function in a Fourier integral and determine what this integral converges to.
$f(x)=\left\{\begin{aligned}-1 & \text { for }-\pi \leq x \leq 0 \\ 1 & \text { for } 0<x \leq \pi \\ 0 & \text { for }|x|>\pi\end{aligned}\right.$