Linear Methods of Applied Mathematics
Solving the wave equation by separation of variables
The classical linearized wave equation is
.
We classify this PDE as a special case of the more general constant coefficient, second order equation:
.
Second order refers to the lack of derivatives of more than second order.We will solve the wave equation by the method of separation of variables in this worksheet. Later, we will use the methods of d'Alembert.
This first method is often good for linear equations. In this case, linear refers to the superposition property . That is, if two functions and are solutions then so is any linear combination:
.
We often set c = 1 for convenience, so we define the wave operator.
> waveop:=diff(u(t,x),t,t)-diff(u(t,x),x,x);
(Equivalently, we could choose a clock with time variable T = c*t.)
Let's test out the wave operator
> u:=(t,x)->t*sin(x)^2; waveop;
> u:=(t,x)->sin(t-x); waveop;
> u:='u':
The method of separation of variables is precisely what it says: One assumes that solutions can be written as products of separate functions of t and x. Thus, we make the ansatz that u(t,x) is of the special form T(t) X(x), known as a product solution.
> eq:=subs(u(t,x)=T(t)*X(x),waveop)=0;
This simplifies if we divide through by T(t) X(x).
>
eq/X(x)/T(t);
expand(%);
> sep:=(%)+(diff(X(x),x,x)/X(x)=diff(X(x),x,x)/X(x));
The left side of the equation sep depends only on t and the right side depends only on x . Thus, each side must be constant. We do not know the value of this constant, yet. We call it - .
>