Can you please help me with this example?
$$u_{tt}=u_{xx}, -\infty <x<\infty$$
$$u(x,0)=\left\{\begin{matrix} 0, &|x|>2 \\ 2x-1, & 1<|x|\leq 2\\ 3-x &, |x|\leq 1 \end{matrix}\right.$$
$$u_{t}(x,0)=\left\{\begin{matrix} 0, &|x|>2 \\ 1, & |x|\leq 2 \end{matrix}\right.$$
Find $u(0,t)$?
What I have done.. I want to use the d'Alembert's formula: $$ u(x,t)=\frac{f(x+ct)+f(x-ct)}{2}+ \frac{1}{2c}\int_{x-ct}^{x+ct}g(s)ds $$
In our case:$x=0, t=t, c=1$. But there I'm stuck and I don't know how to continue...
Thank you!