Wave equation

The vertical displacement u(x,t) of the vibrating string of length L is determined from utt(x,t)=a2 uxx(x,t), 0<x<L, t>0; u(0,t)=0, u(L,t)=0, t>0; u(x,0)=f(x), ut(x,0)=g(x), 0<x<L. Things to try:
  • Change the initial conditions u(x,0)=f(x) and ut(x,0)=g(x).
  • Increase n, the number of terms in the solution.
  • Change the length L.