I am a novice in PDE, and I met a problem, I reduced it to
$$ \begin{cases} u_{tt}-u_{xx}=f(x,t), -\infty <x<+\infty,t>0 \\ u(x,0)=u_{0}(x), -\infty<x<+\infty \\ u_{t}(x,0)=u_{1}(x),-\infty<x<+\infty \end{cases} $$
Clearly if $f=0$, the solution would be the D'Alembert Formula. So can anyone solve this problem for me?
Also, I am looking for a pde book that is full of solutions for wave equation with different boundary condition, so... any recommendations?
Thank you for your help.