I have the following problem:
$$ \begin{array}{ll} &u_{tt}(x,t)=4u_{xx}(x,t),&x>0, t>0\\ &u_x(0,t)=-\cos(t),&t>0\\ &u(x,0)=e^{-x},&x>0\\ &u_t(x,0)=2e^{-x},&x>0. \end{array} $$
I am struggling to solve the above problem most likely because of the boundary condition. It is easy to get a solution to this problem if $x\in\mathbb{R}$ by applying d'Alembert's formula, for which I would get the solution $e^{-x+2t}$. However, this does not satisfy the boundary condition — only the initial conditions.
I tried to follow the derivation here without much luck possibly due to a lack of experience. Also, I tried to split the problem into two separate problems, firstly where $v(x,t)$ solves the wave equation PDE with homogeneous initial conditions and $v_x(0,t)=-\cos(t)$, and also $w(x,t)$ solves the wave equation with homogeneous boundary condition $w_x(0,t)=0$ and the desired initial conditions $w(x,0)=e^{-x}, w_t(x,0)=2e^{-x}$. Then, I should get $u(x,t)=v(x,t)+w(x,t)$. However, I ended up with $v(x,t)=\begin{cases}2\sin(t-x/2),&0\leq x\leq 2t\\0,&x>2t\end{cases}$, but was unable to solve for $w(x,t)$.
Any help would be greatly appreciated.