Using separation of variables to solve the wave equation

3.4k Views Asked by At

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!

3

There are 3 best solutions below

2
On 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)$.

0
On

So lets try to work through this: Intuitively, you can see that cosine is the correct solution since by differentiating twice we get back to the cosine but only its negative. However, we can do this more formally(this is my favourite method of doing it): Suppose we can get a solution of the sort $u(x)=\sum^{\infty}_{i=1}a_ix^i$.Then we can write: $u'(x)=\sum^{\infty}_{i=1}ia_ix^{i-1}=\sum^{\infty}_{i=0}(i+1)a_{i+1}x^{i}$, and similarly : $u''(x)=\sum^{\infty}_{i=0}(i+1)(i)a_{i+1}x^{i-1}=\sum^{\infty}_{i=0}(i+1)(i+2)a_{i+2}x^{i}$. So we now have the following: $\sum^{\infty}_{i=0}(i+1)(i+2)a_{i+2}x^{i}+w^2a_ix^i=0$. This will give you that $a_{i+2}=-(w^2)a_i/(i+1)(i+2)$. If you solve this linear recurence relation,with the initial conditions, you will get the power series for cosine

0
On

I would get rid of $\alpha$ and just look at your boundary conditions to solve your constants. The first thing to note, is that you should begin in fact with: \begin{equation} \sum_{n=1}^{\infty} A_n\cos(\omega_nt) + B_n\sin(\omega_nt) \end{equation} From there you can use boundary conditions, signs and fourier series knowledge to end up with only cos and fill in the coefficients you're missing.