# Solve Wave Equation using Separation of Variables

Use separation of variables to solve the wave equation:

$$u_{tt}=a^2u_{xx},$$

on the domain $0<x<1$,$t>0$, with initial conditions

$$u(x,0)=0$$

$$u_t(x,0)=\cos(\pi x)$$

and boundary conditions

$$u_x(0,t)=u_x(1,t)=0$$

So I have rewrote this as

$$T''X=a^2X''T$$

then I set

$$T''/a^2T=X'/X=-\mu$$

Then I got loss.

• Welcome to MSE. :) As this site is not solving home-works, you should show what you think and what you have tried to solve this problem. If you don't after a while your question will be closed. :) – H. R. Nov 23 '15 at 11:53
• This is what I've done. @Normal Human – Jack Nov 23 '15 at 13:36