Solve the following parabolic equation and find U(x, t): by hand writing and create your own MATLAB you can see the sample of coding in the next pages but don’t copy and paste it. write one conclusion paragraph about the steps and results . all should be as a report include tables and graphs and coding.
Under the following initial and boundary conditions:
U(x, 0) =f(x)=
U(0,t)=U(L,t)=0;
Where
Use explicit method to solve this problem for step sizes of :
Compare your numerical solutions using appropriate measures ( e.g. calculating the errors, and demonstrating the results in graphs and etc..)with the exact solution which is :
( exact solution)
Sample Solution