Week 12: Wave Equation
Problem Setup and Initial Conditions
Waves are ubiquitous and especially central to atmospheric sciences. Vibration on any material with restoring forces can generate waves. The existence of restoring force implies the existence of 2nd-order derivatives in time. One of the most well-known wave equation is Hooke’s Law
(176)\[\begin{align}
\frac{d^2x}{dt^2} = -kx
\end{align}\]
where the restoring force is equivalent to how much the material is stretched except with an opposite sign. This suggesting the force is always going against to the stretched direction. It’s not hard to find the solutions share a form of
(177)\[\begin{align}
x = a_n \cos(\sqrt{k}t)+ b_n \sin(\sqrt{k}t)
\end{align}\]
The coefficients in (175) will be determined by the given initial values of \(x\) and \(x_t\). This is the general setup of wave solutions, where only the temporal structure is considered.
Wave Solution with Space and Time Structures
Here we will consider a slightly more complicated case where the propagating over a space (i.e., we are observing wave at both space and time.). Therefore, the original equation can be rewritten as
(178)\[\begin{align}
y_{tt} = c^2 y_{xx} ;\ \textrm{for } 0<x<L,t>0
\end{align}\]
with initial and boundary conditions
(179)\[\begin{split}\begin{align}
y(x,0) & = f(x), ;\ y_t(x,0) = g(x) \\
y(0,t) & = y(L,t) = 0 \\
\end{align}\end{split}\]
Using separation of variable, one can expect that the solution shares a form of (leave this practice to readers)
(180)\[\begin{align}
y_n(t) = X_n(x)T_n(t) = [a_n\cos(\frac{n\pi ct}{L})+b_n\sin(\frac{n\pi ct}{L})]\sin(\frac{n\pi x}{L})
\end{align}\]
In most cases, we can satisfy the initial condition with finite sum of \(a_n\) and \(b_n\). We therefore attempt a solutions
(181)\[\begin{split}\begin{align}
y(x,t) &= \sum_{n=1}^{\infty} y_n(x,t) \\
&= \sum_{n=1}^{\infty}[a_n\cos(\frac{n\pi ct}{L})+b_n\sin(\frac{n\pi ct}{L})]\sin(\frac{n\pi x}{L})
\end{align}\end{split}\]
using initial condition, we know
(182)\[\begin{align}
y(x,0) &= \sum_{n=1}^{\infty}a_n \sin(\frac{n\pi x}{L}) = f(x)
\end{align}\]
indicating
(183)\[\begin{split}\begin{align}
a_n &= \frac{2}{L} \int_{0}^{L} f(\xi)\sin(\frac{n\pi \xi}{L})d\xi \\
\frac{n\pi c}{L}b_n &= \frac{2}{L} \int_{0}^{L} g(\xi)\sin(\frac{n\pi \xi}{L})d\xi
\end{align}\end{split}\]
Example 1
Suppose a string with fixed ends at \(x=0\) and \(x=\pi\), with initial conditions of
\[\begin{split}f(x) = \begin{cases}
x \textrm{ for } 0\leq x \leq \frac{\pi}{2}\\
\pi-x \textrm{ for } \frac{\pi}{2}< x \leq \pi\\
\end{cases} \end{split}\]
and
\[g(x) = x (1-\cos(x))\]
We also assume \(c=1\), which represents the propagating speed of waves
From (181), we know the solution has a form of
\[\begin{align}
y(x,t) = \sum_{n=1}^{\infty}[a_n\cos(nt)+b_n\sin(nt)]\sin(nx)
\end{align}\]
where
\[\begin{align}
a_n = \frac{2}{\pi} \int_{0}^{\pi} f(\xi)\sin(\frac{n\pi \xi}{L})d\xi = \frac{4\sin(\frac{n\pi}{2})}{n^2\pi}
\end{align}\]
and
\[\begin{split}\begin{align}
b_n &= \frac{2}{n\pi c}\int_{0}^{\pi} g(\xi)\sin(\frac{n\pi \xi}{L})d\xi \\
&= \frac{-2}{n^2}(-1)^{n} + \frac{2(-1)^{n}}{n^2-1} \\
&= \frac{2}{n^2(n^2-1)}(-1)^{n}
\end{align}\end{split}\]
Now considering a more complicated case, where we have external forcing. i.e.,
(184)\[\begin{split}\begin{align}
y_{tt} &= c^2y_{xx}+x;\ \textrm{for } 0 <x< L, t>0 \\
y(0,t) &=y(L,t) = 0, \\
y(x,0) &=x(L-x) = f(x) \\
y_t(x,0) &=x(1+\cos(\frac{\pi x}{L})) = g(x)
\end{align} \end{split}\]
Similar to how we deal with heat equation with external forcing, we can assume the solution shares a form of
(185)\[y(x,t) = Y(x,t) + \psi(x)\]
Substitute (185) back to (184), we can have a homogeneous equation for \(Y(x,t)\).
(186)\[Y_{tt} = c^2Y_{xx} \]
and an 2nd-order ODE for the forcing term i.e.,
(187)\[c^2\psi^{''} = -x \]
Integrating (187) twice, we have
(188)\[\psi(x) = -\frac{x^3}{6c^2}+\alpha x +\beta\]
Now, look at boundary conditions,
(189)\[y(0,t) = 0 = Y(0,t)+\psi(0) = Y(0,t)+\beta\]
To make (189) a homogeneous problem, we choose \(beta=0\).
For the other boundary condition,
(190)\[y(L,t) = 0 = Y(L,t)+\psi(L) = Y(L,t)-\frac{L^3}{6c^2}+\alpha L\]
Let
(191)\[\alpha = \frac{L^2}{6c^2}\]
we can have the same homogeneous equation at the second boundary.
(191) indicates that
(192)\[\psi = -\frac{x^3}{6c^2}+\frac{L^2}{6c^2}x = \frac{x}{6c^2}(L^2-x^2)\]
With the result above, we can rewrite the entire set of wave equation to
(193)\[\begin{split}\begin{align}
Y_{tt} &= c^2Y_{xx};\ \textrm{for } 0 <x< L, t>0 \\
Y(0,t) &=Y(L,t) = 0, \\
Y(x,0) &=x(L-x)-\psi = x(L-x)- \frac{x}{6c^2}(L^2-x^2)\\
Y_t(x,0) &=x(1+\cos(\frac{\pi x}{L})) = g(x)
\end{align} \end{split}\]
We know how to solve this problem.
Wave Motion in an Unbounded Medium
Consider the problem
(194)\[\begin{split}\begin{align}
y_{tt} &= c^2y_{xx};\ \textrm{for } \infty <x< \infty, t>0 \\
y(x,0) &= f(x)\\
y_t(x,0) &= 0
\end{align} \end{split}\]
Similarly, using separation of variable, we have
(195)\[\begin{split}\begin{align}
X^{''}+\lambda X &= 0 \\
T^{''}+\lambda c^2T &= 0 \\
\end{align} \end{split}\]
The first equation has a solution of
(196)\[\begin{align}
X = \sum_{n=0}^{\infty} a_n\cos(kx)+ b_n\sin(kx)
\end{align} \]
where
(197)\[\begin{align}
k=\frac{n\pi}{L}
\end{align} \]
Here we make the increment between two adjacent wave numbers small (\(\sim 0\)). i.e.,
(198)\[\begin{align}
dk=\frac{\pi}{L}\sim 0 ;\ \textrm{where } L\rightarrow \infty
\end{align} \]
We can rewrite (196) into
(199)\[\begin{align}
X = \frac{1}{\pi} \sum_{n=0}^{\infty} A_n\cos(kx)+ B_n\sin(kx) dk = \frac{1}{\pi} \int_{k=0}^{\infty} A_k \cos(kx)+B_k\sin(kx) dk
\end{align} \]
and
(200)\[\begin{align}
T_k = \cos(kct)
\end{align} \]
(readers can think about why T has a constant multiple of Fourier consine function as its solution?)
According to (199), we know
(201)\[\begin{split}\begin{align}
A_n &=\int_{-\infty}^{\infty} f(\xi)\cos(k\xi)d\xi \\
B_n &=\int_{-\infty}^{\infty} f(\xi)\sin(k\xi)d\xi
\end{align} \end{split}\]
and the completed equation is
(202)\[\begin{align}
y(x,t) = \frac{1}{\pi}\int_{k=0}^{\infty} [a_k \cos(kx)+b_k\sin(kx)]\cos(k ct) dk
\end{align} \]
Example 2
Solve the problem on a real line with initial displacement of \(f(x)\) and 0 initial velocity
\[y(x,0) = f(x) = e^{-|x|}\]
All we have to do is calculate the Fourier integral for \(A_n\) and \(B_n\). These are
\[A_n = \int_{-\infty}^{\infty} e^{-|\xi|}\cos(k\xi)d\xi = \frac{2}{\pi (1+k^2)}\]
and
\[B_n = 0 \]
because \(e^{-|x|\sin(k x)}\) is an odd function.
The solution is
\[y(x,t) = \frac{2}{\pi} \int_{0}^{\infty} \frac{1}{1+k^2}\cos(kx)\cos(kct)dk\]
D’Alembert’s Solutions, Characteristic Lines, and Dispersion Relationship
Jean Le D’Alembert (1717-1783) developed a simple method to approach the wave equations, known as the D’Alembert’s Wave Solutions. In optical physics and atmospheric wave dynamics, it has a special name dispersion relationships. i.e., the relation between wave length and wave speed.
Specifically, the D’Alembert’s wave solution describes
(203)\[y(x,t) = F(\xi)+G(\eta) = \frac{1}{2}[f(x-ct)+f(x+ct)]+\frac{1}{2c}\int_{x-ct}^{x+ct}g(x')dx'\]
where
(204)\[\begin{split}\begin{align}
\xi &= x-ct \\
\eta &= x+ct \\
\end{align}\end{split}\]
To show that, we first observe (195) and we can find the following two characteristic equations
(205)\[\begin{split}\begin{align}
(\frac{\partial }{\partial t}-c\frac{\partial }{\partial x})y &= 0 \\
(\frac{\partial }{\partial t}+c\frac{\partial }{\partial x})y &= 0 \\
\end{align}\end{split}\]
while (205) is a slightly more complicated form, we can try to convert it into a simpler question
(206)\[\begin{split}\begin{align}
\frac{\partial }{\partial \xi}y &= 0 \\
\frac{\partial }{\partial \eta}y &= 0 \\
\end{align}\end{split}\]
(206) is an ODE for \(y\), which can be solved with direct integration. One can easily find y is independent of \(\xi\) and \(\eta\). That means we gonna apply certain linear transform from \(x,t\) plane to \(\xi,\eta\) plane where \(y\) is a constant along \(\xi\) and \(\eta\).
To find the corresponding Jacobian matrix, we can first observe the original equation.
(205) can be written as
(207)\[\begin{split}\begin{align}
<(-c,1)|(y_x,y_t)> &= 0 \\
<(c,1)|(y_x,y_t)> &= 0 \\
\end{align}\end{split}\]
\(y_x\) and \(y_t\) represent how \(y\) changes with respect to \(x\) and \(t\). If we assign the first coordinate as \(x\) and the second coordinate as \(t\), the first equation above indicates that \(y\) is constant along the direction of \((-c,1)\) or \(y\) is conserved along each line of \(x=-ct+\eta\). As long as \(\eta\) is given, we know the solution of \(y\). This also implies that \(y\) is a function of \(\eta\). The same idea can be applied to \(\xi\).
Combining both, we have
(208)\[\begin{align}
u(x,t) = F(\xi)+ G(\eta)
\end{align}\]
Here we demonstrate how to derive the D’Alambert’s wave solution.
According to the initial condition of the wave position, we know
(209)\[\begin{split}\begin{align}
y(x,0) &= F(\xi)+ G(\eta) = f(x)\\
y_t(x,0) &= \frac{\partial F(\xi)}{\partial \xi}\frac{\partial \xi}{\partial t}+ \frac{\partial G(\eta)}{\partial \eta}\frac{\partial \eta}{\partial t} = -cF^{'}(\xi)+cG^{'}(\eta) = g(x)\\
\end{align}\end{split}\]
Here if we properly choose an integral for the second equation (I will show that in a seconds), we will have
(210)\[\begin{split}\begin{align}
y(x,0) &= F(x)+ G(x) = f(x)\\
\int_{x_0}^{x} g(w) dw &= -c F(x) + cG(x)\\
\end{align}\end{split}\]
Then we can represent \(y\) with the linear combination of the two equations above.
(211)\[\begin{split}\begin{align}
F(x-ct) &= \frac{1}{2}f(x-ct)-\frac{1}{2c}\int_{x_0}^{x-ct} g(w) dw\\
G(x+ct) &= \frac{1}{2}f(x+ct)+\frac{1}{2c}\int_{x_0}^{x+ct} g(w) dw\\
\end{align}\end{split}\]
Adding both together, we have solutions
(212)\[\begin{align}
u(x,t) = F(x-ct) + G(x+ct) = \frac{1}{2}[f(x-ct)+f(x+ct)]+\frac{1}{2c} \int_{x-ct}^{x+ct} g(w) dw
\end{align}\]