Solve by direct methods the $1$-dimensional non-homogeneous wave equation $$u_{tt} - u_{xx} = f(x,t), \hspace{1cm} u(x,0) = g(x), \hspace{1cm} u_t (x,0) = h(x).$$
Our solution will be of the form $u(x,t) = p(x,t) + o(x,t)$, where $p(x,t)$ is a particular solution satisfying homogeneous boundary conditions: \begin{align*} p_{tt} - p_{xx} &= f(x,t) \\ p(x,0) &= 0 \\ p_t (x,0) &= 0 \end{align*} and $o(x,t)$ is a solution of the corresponding to the homogeneous PDE: \begin{align*} o_{tt} - o_{xx} &= 0 \\ o(x,0) &= g(x) \\ o_t (x,0) &= h(x) \end{align*} By D'Almbert's formula we know that $$o(x,t) = \dfrac{1}{2}\left( g(x + t) + g(x - t) + \int_{x-t}^{x+t} h(y)dy\right)$$ So our goal is to find the solution to the particular solution $p$. That is we need to solve \begin{align*} p_{tt} - p_{xx} &= f(x,t) \\ p(x,0) &= 0 \\ p_t(x,0) &= 0 \end{align*} I know that the solution should be $$p(x,t) = \dfrac{1}{2}\int_0^t \int_{x-(t-s)}^{x+(t-s)} f(r,s)drds.$$ where Duhamel's principle should be utilized somewhere.
Question: How do I solve the PDE involving $p$? My lecture notes only have the solution involving $o$ (i.e. derivation of D'Almbert's formula).
,u(x,0)=\dot{u}(x,0)=0$$ and $$\square u=0,u(x,0)=f(x)~,~\dot{u}(x,0)=g(x)$$ can simply be added to produce the solution for the problem $$\square u=F,u(x,0)=f(x)~,~\dot{u}(x,0)=g(x)$$ – K.defaoite Aug 21 '21 at 18:29