Given the following problem
Where f(x)=y_1(x)+0.2y_4(x)+0.01y_6 (x)
y_n are the Eigenfunctions that defined as y_n(x)=\exp\left(\displaystyle{\frac{-x^2}{2}}\right)H_n(x)
By separation we assume
I have found that the general solution of T is
T(x)=c_1e^{-\lambda v t}
and the general solution of X is
X_n(x)=\exp\left(\displaystyle{\frac{-x^2}{2}}\right)H_n(x)
So the general solution to our initial problem is
u_n(x,t)=\sum_{n=1}^{\infty}A_n \exp\left(\displaystyle{\frac{-x^2}{2}}\right)H_n(x) c_1e^{-\lambda v t}
Using the I.C we got
I have the following two questions
- How many terms does the expansion of the solution have? Use the Manipulate command, in conjunction with Plot, to construct animated graphics for the evolution of the solution. For the first case
- With appropriate snapshots at 3 different moments of your choice (or even using Manipulate), compare the analytical and numerical solutions. Plot using Plot3D the solution u( x, t ).
I have tried this code but it does not seem right to me.
Any suggestions?