Today I came across a question on PDE which makes me really frustrating.
The question is to solve this initial boundary value problem using method of separation variables:
$$u_{tt}=9u_{xx}\text{ for } x>0, t>0$$
$$u(x,0)=x^2 ,\ u_t(x,0)=e^{-x} \text{ for } x>0$$
$$u(0,t)=0 \text{ for }t>0$$
Given answer: $u(x,t)=x^2+9t^2+\dfrac{1}{3}e^{-x}\sinh3t$ for $x-3t>0$
$$u(x,t)=\begin{cases}x^2+9t^2+\dfrac{1}{3}e^{-x}\sinh3t&x-3t>0\\x^2+9t^2+\dfrac{1}{3}e^{-3t}\sinh x&x-3t<0\end{cases}$$
I really dont know how to solve this question because they only provide 1 boundary condition only.
Could someone please show some workings on this problem so that I can undesrtand clearly. Furthermore, I dont have example of this question in my textbook. And my teacher also not able to do it because he said he is not good in PDE chapter. Im really dead now because no one able to help me and my friends also not sure about this. So please please help me to solve this only question so that I can use this solution as reference to solve my other PDEs problems by my ownself.
Lastly, if you can help me, I will really be very grateful to you.