My problem is regarding the wave equation of the form: $$u_{tt}=u_{xx}$$ in the domain $$D = \{ (x,t) \mid - \infty<x< \infty\ ,t>0\} $$ subject to the initial conditions:
$$u(x,0)=\left\{ \begin{array}{c l} x^3-x, & |x|\leq1\\ 0, & |x|\geq1 \end{array}\right.$$
$$u_t(x,0)=\left\{ \begin{array}{c l} 1-x^2, & |x|\leq1\\ 0, & |x|\geq1 \end{array}\right.$$
I'm pretty sure this can be solved using D'Alambert's solution for a general wave equation, however I'm slightly unsure as to how to do this question when there are piecewise initial conditions. I know the initial conditions are continuous. How do I tackle this? Any help would be greatly appreciated!