Question: forward difference method for PDE

January 07 2014 fatih 10
2

I want to solve following PDE question with forward difference method inn Maple. Can you help me please?

 

du/dt=d^2u/dx^2, 0<x<2, t>0

u(x,0)=sin(2*pi*x)

u(0,t)=0, u(2,t)=0

 

Use h=0.4 and k=0.1. and compare your answers at  t=0.5 to the exact solution u(x,t)=exp(-4*pi^2*t)*sin(2pi*x). Then use h=0.4 and k=0.05,and compare the answers. 

Please Wait...