An infinitely long string on which waves travel at speed $c$ has an initial displacement
$$
y(x)= \begin{cases}\sin (\pi x / a), & -a \leq x \leq a \\ 0, & |x|>a\end{cases}
$$
It is released from rest at time $t=0$, and its subsequent displacement is described by $y(x, t)$.
By expressing the initial displacement as one explicit function incorporating Heaviside step functions, find an expression for $y(x, t)$ at a general time $t>0$. In particular, determine the displacement as a function of time (a) at $x=0$, (b) at $x=a$, and (c) at $x=a / 2$.