Given the following PDE with an initial condition and two boundary conditions:
$$\begin{cases} \frac{\partial^2 u}{\partial Z^2} = \frac{\partial u}{\partial T_v} \\ u(Z,0) = u_t(Z) \\ u(0,T_v) = u_i \\ u(2,T_v)=u_f \end{cases}$$ I know that in the particular case in which:
$$u_i = u_f = 0, \; \; \; u_t(Z) = u_0$$ the Fourier series solution is as follows:
$$u(Z,T_V) = \sum_{n=0}^{\infty} \frac{2\,u_0}{m}\,\sin(m\,Z)\,e^{-m^2 T_v}\,, \; \; \; \text{with} \; \; m = \frac{(2\,n+1)\,\pi}{2}\,.$$
Unfortunately, I can not really understand how to get this last solution in Wolfram Mathematica 11 and therefore not even the general solution. Can anyone help me? Thank you!
NDSolve
and check your calculations. $\endgroup$