Fourier Method for the 1D Wave Equation: Fixed String
+
+
mathematics
+
pde
+
+
+
+
+
+
+
+
+
Author
+
+
Joana Levtcheva
+
+
+
+
+
Published
+
+
January 4, 2025
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
In this post we are going to explore the Fourier method for solving the 1D wave equation. The method is more known under the name of the method of separation of variables. For the 1D wave equation we are going to show the application of the method to a fixed string. We are also going to attempt to outline some of the physical interpretations of the fixed string.
+
+
1D Wave Equation
+
The 1D wave equation is of the form
+
\[
+u_{tt} = a^2 u_{xx}.
+\]
+
+
Fixed String
+
First, let’s take a look at the model of a string with length \(l\) which is also fixed at both ends:
A visualisation of the string can be seen in the figure below.
+
+
+
+Figure 1. Fixed String
+
+
+
We start solving the equation by taking into account only the boundary conditions \(u(0, t) = u(l, t) = 0\). The idea is to find solution \(u(x, t)\) of the form
+
\[
+u(x, t) = X(x)T(t).
+\]
+
We substitute this form of the solution into the wave equation and get
The above problem is an example of the so called Sturm-Liouville problem. In order to find the general solution of the second order linear homogeneous differential equation with constant coefficients \(\eqref{eq:ref}\) we should solve its characteristic equation
+
\[
+r^2 + \lambda = 0.
+\]
+
+
If \(\lambda < 0\), then \(r_{1, 2} = \pm \sqrt{-\lambda}\), hence the general solution is \[
+X(x) = c_1 e^{\sqrt{-\lambda}x} + c_2 e^{-\sqrt{-\lambda}x}
+\] for some constants \(c_1\) and \(c_2\). In order to determine the constants we substitute the above solution into the boundary conditions \(\eqref{eq:ref2}\) and get the system \[
+\left\{\begin{align*}
+c_1 + c_2 = 0, \\
+c_1 e^{\sqrt{-\lambda}l} + c_2 e^{-\sqrt{-\lambda}l} = 0.
+\end{align*}\right.
+\] This results in \(c_1 = c_2 = 0\), meaning our Sturm-Liouville problem doesn’t have a non-zero solution for \(\lambda < 0\).
+
If \(\lambda = 0\), then \(r_1 = r_2 = 0\) and the general solution is \[
+X(x) = c_1 + c_2 x.
+\] Substituing it into the boundary conditions \(\eqref{eq:ref2}\) again lead to \(c_1 = c_2 = 0\), hence no non-zero solutions of our Sturm-Liouville problem for \(\lambda \leq 0\).
+
If \(\lambda > 0\), then \(r_{1, 2} = \pm i \sqrt{\lambda}\), and the general solution becomes \[
+X(x) = c_1 \cos{\left( \sqrt{\lambda} x \right)} + c_2 \sin{\left(\sqrt{\lambda}x\right)}.
+\] Substituting into the boundary conditions \(\eqref{eq:ref2}\) results in \[
+\left\{\begin{align*}
+c_1 = 0, \\
+c_2 \sin{\left(\sqrt{\lambda}l\right)} = 0
+\end{align*}\right.
+\] If \(c_2 = 0\), then \(X(x) \equiv 0\) which is a trivial solution. Therefore, we set \(c_2 \neq 0\) and hence \[
+\sin{\left(\sqrt{\lambda}l\right)} = 0,
+\] giving \(\sqrt{\lambda}l = k \pi\), \(k = \pm 1, \pm 2, ...\). Theerfore, \[
+\lambda = \lambda_k = \left(\frac{k \pi}{l}\right)^2,
+\] meaning eigenvalues exist when \(\lambda > 0\). The eigenfunctions corresponding to the above eigenvalues are \[
+X_k(x) = \sin{\left(\frac{k \pi x}{l}\right)}, \quad k > 0, k \in N.
+\]
+
+
Going back to \(T^{\prime\prime}(t) + a^2 \lambda T(t) = 0\), solving in analogical way, when \(\lambda = \lambda_k\) the solution becomes
\[
+u_k(x,t) = X_k(x) T_k(t) = \left(A_k \cos{\left(\frac{ak\pi}{l}t\right)} + B_k \sin{\left(\frac{ak\pi}{l}t\right)}\right) \sin{\left(\frac{k \pi x}{l}\right)}, \quad k > 0, k \in N
+\]
+
are solutions to our wave equation, also satisfying the boundary conditions. Since our equation is linear, forming a linear system with its conditions, the principle of superposition is valid. In other words, if \(u_1, u_2, ..., u_n\) are solutions of our system, then
for some constants \(\alpha_1, \alpha_2, ..., \alpha_n\) is also a solution of the system. But in our case we have an infinite number of functions \(u_1, u_2, ...\) which satisfy the linear system. Therefore, we need the generalised superposition principle stating that in such case
+
\[
+u = \sum_n^{\infty} \alpha_n u_n
+\]
+
for some arbitrary constants \(\alpha_n\) is a solution to the system if the series converges uniformly and is twice differentiable termwise. This generalisation is a Lemma and should be prooved. The proof can be found in …
+
Assuming we have prooved the said Lemma, we can state that our system has a solution of the form
If the series on the right side (majorizing series) converge then the series on the left would also converge and the needed differentiation would exist. It is enough (why?) for the following series to converge
converge. From Calculus we know (theorem) that if \(\varphi(x)\) is \(m\)-times differentiable then
+
\[
+\sum_{k=1}^{\infty} k^{m-1} |\varphi_k|
+\]
+
convergres. Therefore, in order for all the majorzing series to converge it is enough \(\varphi_1(x)\) to be \(3\)-times differentiable, and \(\varphi_2(x)\) to be \(2\)-times differentiable.
+
Finally, we should note a few things about the expansion of \(\varphi_1(x)\) and \(\varphi_2(x)\) into sine series. We have to note that in order to do that the function needs to be continued as an odd function which my lead to loss of the regularity of the lower derivatives. Let \(\tilde{\varphi}_1(x)\) be the continuation of \(\varphi_1(x)\) as an odd function (see the Figure below) defined as
Hence, in order for it to be continous and continously differentibale we need to enforce the following condition
+
\[
+\varphi_1(0) = \varphi_1(l) = 0.
+\]
+
To summarise, in order for \(\sum_{k=1}^{\infty} \varphi_k^{(1)} \sin{\left( \frac{k\pi}{l}x\right)}\) to converge in \([0, l]\) it is necessary to enforce the above conditions to have zero values at both ends of the interval. As for the second derivative, if it exists it would be continuous as well. Similarly, for the third derivative to exist we enforce
\[
+u_k(x,t) = \left(A_k \cos{\left(\frac{ak\pi}{l}t\right)} + B_k \sin{\left(\frac{ak\pi}{l}t\right)}\right) \sin{\left(\frac{k \pi}{l}x\right)}, \quad k > 0, k \in N
+\]
+
we can rewrite it as
+
\[
+u_k(x,t) = \sqrt{A_k^2 + B_k^2} \sin{\left(\frac{k \pi}{l}x\right)} \sin{\left(\frac{ak\pi}{l}t + \phi_k\right)}, \quad k \in N,
+\]
+
where
+
\[
+\tan{(\phi_k)} = \frac{A_k}{B_k}.
+\]
+
We can translate this as the points of the string to oscillate at the frequency \(\omega_k = \frac{ak\pi}{l}\) with phase \(\phi_k\). The amplitude is dependant on \(x\) and is given by \[
+F_k = \sqrt{A_k^2 + B_k^2} \sin{\left(\frac{k\pi}{l}x\right)}.
+\]
+
The \(u_k(x, t)\) waves are called standing-waves. Depending on the values of \(k\) we have the following scenarios:
+
+
When \(k = 1\) there are \(2\) motionless points which are the ends of the (fixed) string
+
When \(k = 2\) a third moitonless point \(x = \frac{l}{2}\) is added
+
+
These motionless points are called nodes of the standing wave. In general, \(u_k(x, t)\) has \((k + 1)\) nodes located ate \(0, \frac{1}{k}l, \frac{2}{k}l, ..., \frac{k-1}{k}l, l\). The maximum amplitude is achieved in the middle points between two nodes. These points are called crests. The fundamental tone, or the lowest tone, has frequency of \(\omega_1 = \frac{a\pi}{l}\). The frequencies \(\omega_k\) are called harmonics, while the higher tones corresponding to \(\omega_k\), \(k = 2, 3, ...\) are called overtones. It is quite natural to notice that the higher the value of \(k\) the rapidly lower the amplitude of \(u_k(x, t)\) becomes. Meaning, the effect from the higher harmonics all combined influences the quality of the sound. The below figure shows the harmonics for \(k = 1, 2, 3\).
+
+
+
+Figure 3. Fixed Strings
+
+
+
+
Example
+
Here, we are going to show an example of a fixed string. We are going to show an animated solution with the help of Python. The fixed string problem is given by