Partial Differential Equations – Solving the Wave Equation Using Separation of Variables

partial differential equationswave equation

I'm trying to teach myself separation of variables and have been following some notes for the wave equation, but there's one part which really confuses me and I'm not exactly sure how it makes the step.

For the wave equation

$$u_{tt} – c^2 u_{xx} = 0$$

with length $l$ and fixed ends, $u(0,t)=u(l,t)=0$ we seek a solution in the form $$u(x,t)=v(x)q(t)$$
and substituting this into the equation gives
$$\frac{1}{q(t)}\frac{d^2 q}{dt^2}=c^2 \frac{1}{v(x)}\frac{d^2 v}{dx^2}=-\omega ^2$$

and I understand all of this so far. But when solving the equation
$$q''+\omega ^2 q = 0$$
the general solution is
$$q(t)=A \cos(\omega t +\alpha)$$
where $A$ and $\alpha$ are constants – which is the part which I'm not exactly sure on how it gets to.

Could someone explain this step to me? Thanks!

Best Answer

Generally, it is not a good idea to do "Partial Differential Equations" until you have mastered "Ordinary Differential Equations"!

In "Ordinary Differential Equations" you learned that the "characteristic equation" of the differential equation $q''+ \omega^2q= 0$ is $m^2+ \omega^2= 0$ which, assuming $\omega$ is real, has roots $m= \omega i$. The general solution to that differential equation is $q= Ae^{\omega ti}+ Be^{-\omega ti}= A(\cos(\omega t)+ \sin(\omega t))+ B(\cos(\omega t)- \sin(\omega t))= (A+ B)\cos(\omega t)+ (A- B)\sin(\omega t)$.

In order to get the form you have, you need the trig identity $\cos(A+ B)= \cos(A)\cos(B)- \sin(A)\sin(B)$. So $A \cos(\omega t+ \alpha)= A\cos(\alpha) \cos(\omega t)- A\sin(\alpha) \sin(\omega t)$.

Related Question