Additional Exercise - Wave Equation Solution

Exercise 0 ().

Consider the wave equation

(1) {utt(x,t)=c2uxx(x,t),(x,t)(0,2π)×(0,),u(0,t)=u(2π,t),t(0,),u(x,0)=f(x),t(0,2π),ut(x,0)=0,x(0,2π),

where f is a smooth function on [0,2π] with f(0)=f(2π)=0. We will find a solution to the (1) by utilising the Fourier series (like the heat equation). We assume that we can write

u(x,t)=nan(t)einx

with

an(t)=12π02πu(x,t)e-inx𝑑x

and that the convergence is such that all interchanging of differentiation and integration is allowed (this will happen, for instance, if we seek a solution that is C4 on the periodic domain).

  1. (i)

    Show that an(t) satisfies the equation

    an′′(t)+n2c2an(t)=0.
  2. (ii)

    using he boundary conditions show that

    an(t)=Ancos(nct)

    and find an explicit expression for {An}n which depends on f.

  3. (iii)

    Write a solution to (1)

Solution.
  1. (i)

    Differentiating the sum and plugging it into our wave equation yields

    nan′′(t)einx=c2nan(t)(in)2einx.

    The uniqueness of the Fourier coefficients implies that an(t) must solve the equation

    an′′(t)=-n2c2an(t),

    which is the desired result.

  2. (ii)

    The solution to the above sequence of ODEs is given by

    an(t)={A0+B0t,n=0,Ancos(nct)+Bnsin(nct),n0.

    At this point we will need to use our boundary condition for u(x,0) and ut(x,0). Since

    ut(x,t)=nan(t)einx

    we conclude that ut(x,0)=0 implies, together with the uniqueness of the Fourier coefficients, that

    an(0)=0,n.

    As

    an(t)={B0,n=0,-ncAnsin(nct)+ncBncos(nct),n0.

    we find that Bn=0 for all n. Thus, we have that

    an(t)={A0,n=0,Ancos(nct),n0.=Ancos(nct).

    Using the fact that u(x,0)=f(x) we find that

    nan(0)einx=u(x,0)=f(x)=nf^neinx

    and, like before, the uniqueness of the Fourier coefficients imply that

    An=an(0)=f^n,n.
  3. (iii)

    Combining the previous results we conclude that our solution is given by

    u(x,t)=nf^ncos(nct)einx