Wave equation#
What you need to know
Wave Equation Overview: The wave equation, a partial differential equation (PDE), fully describes the spatial and temporal evolution of waves.
Linearity of the Wave Equation: The wave equation is linear, meaning that any linear combination of solutions is also a solution. This allows the most general solution to be expressed as a linear combination of all possible solutions.
Boundary and Initial Conditions: To solve the wave equation for a specific physical system, boundary conditions must be specified. These include the values the wave function takes at the physical boundaries (e.g., \(x = 0\) and \(x = L\)). Initial conditions with respect to time (e.g., at \(t = 0\)) may also be required.
Solution Method for 1D Guitar String: For a 1D guitar string, the wave equation is solved by separating variables, solving the resulting ordinary differential equations, and then applying boundary conditions at the two ends of the string.
Periodic Solutions: The solution for a 1D guitar string results in an infinite number of periodic solutions, which are parameterized by an integer \(n\).
Classical Wave equation#
Wave equation is an example of a second order PDE (partial differential equation). This PDE governs behavior of displacement \(u(x,t)\) in time and space.
Applications of the Classical Wave Equation: To illustrate the applications of the classical wave equation, we will solve it for a 1D guitar string. This provides a comprehensive mathematical description of the string’s behavior.
Predicting Evolution: By specifying arbitrary initial conditions, the wave equation allows us to precisely predict the evolution of the string over time and space.
Solving Wave Equation: The big picture#
Boundary Conditions: To solve the wave equation for a specific physical situation, such as a guitar string fixed at both ends, we need to specify two boundary conditions. Mathematically, these are:
where \(u(x, t)\) represents the displacement of the string at position \(x\) and time \(t\).
Separation of Variables: A common method to solve such equations is the technique of separation of variables. This technique assumes that \(x\) and \(t\) vary independently of each other, allowing us to express \(u(x, t)\) as a product of two functions, each depending on only one variable. This allows us to decompose PDE into Ordinary Differnetial Equations ODEs.
Principle of superposition: The wave equation is linear which you can see by \(u\) terms appearing with first order on both side. Linearity means that linear combination of two solutions \(c_1 u_1+c_2u_2\) is also a solution. If you have \(n\) particular solutions than you write general solution as linear combination of n terms.
Step 1: Plug the Product of Univariate Functions into the Wave Equation#
Start with the 1D wave equation that can describe 1D guitar string:
Substitute \(u(x, t) = X(x)T(t)\) into the wave equation:
After rearranging, we get:
Thus, we obtain two separate ordinary differential equations (ODEs) from the original partial differential equation (PDE):
where \(K\) is a constant.
Step 2: Solving Each Ordinary Differential Equation#
After decomposing the PDE into ODEs, we solve each ODE separately:
Solving the spatial part: when \(K > 0\)
If \(K > 0\), we specify \(K = \beta^2\), where \(\beta\) is a constant. The general solution for \(X(x)\) is represented as linar combination of particular solutions (principle of superposition):
\[ X(x) = c_1 e^{\beta x} + c_2 e^{-\beta x} \]Applying the boundary conditions \(X(0) = X(L) = 0\) leads to \(c_1 = c_2 = 0\). Since a non-trivial linear combination of two exponential functions cannot be zero everywhere, this results in the trivial solution:
\[ X(x) = 0 \]This implies that the string does not move—no music!
Solving the spatial part: when \(K < 0\)
If \(K < 0\), we specify \(K = -\beta^2\), where \(\beta\) is a constant. The general solution for \(X(x)\) is:
\[ X(x) = c_1 e^{i \beta x} + c_2 e^{-i \beta x} \]Using Euler’s formula, this can be rewritten as:
\[ X(x) = c_1 (\cos(\beta x) + i \sin(\beta x)) + c_2 (\cos(\beta x) - i \sin(\beta x)) \]Simplifying further:
\[ X(x) = (c_1 + i c_2) \cos(\beta x) + (c_1 - i c_2) \sin(\beta x) \]Let \(A = c_1 + i c_2\) and \(B = c_1 - i c_2\):
\[ X(x) = A \cos(\beta x) + B \sin(\beta x) \]Applying the boundary conditions \(X(0) = 0\) and \(X(L) = 0\):
At \(x = 0\): \(A \cdot 1 + B \cdot 0 = 0\), so \(A = 0\).
At \(x = L\): \(X(L) = B \sin(\beta L) = 0\).
For a non-trivial solution, \(\sin(\beta L) = 0\), which implies:
\[ \beta L = n \pi \quad \text{where} \quad n = 1, 2, 3, \ldots \]Hence:
\[ \beta = \frac{n \pi}{L} \]Thus:
\[ X(x) = B \sin \left(\frac{n \pi}{L} x \right) \]
Solving temporal part
Having identified \(K<0\) conditions through solution of spatial part we can now solve for \(T(t)\):
Substitute \(K = \beta^2\):
The solution is:
where \(\omega_n = \beta v = \frac{n \pi v}{L}\).
Solution for spatial part#
Becasue of boundary conditions (\(X(x)=X(L)=0\)) imposed at the ends of guitar string we found infinite number of solutions indexed by an integer number \(n\). These terms are called normal modes and are visualized below.
Solution for temporal part#
For temporal part since we do not have boundary conditions! Time is allowed to march forward into infinity. We find solution in the form of linear combination of sine and cosine functions with \(\omega_n = \beta v = \frac{n \pi v}{L}\) and \(n = 1, 2, 3, \ldots\) represents the normal modes.
In the second line we esing trig identity to express sum of cosine and sine in terms of cosine. Still we have two constantst o determine
The constants \(A_n\) \(\phi_n\) in temporal part are determined by initial codnitions E.g what should be the amplitude and phase of wave at starting time \(t=0\).
Step 3 Full solution: A linear combination of normal modes#
After solving ODEs for spatial and tempoeral parts we now combine them into a full solution.
The complete description of any vibrational motion of the guitar string is given by the sum of the normal modes, \(X_n(x)\).
While the terms involving time, \(T_n(t)\), depend on how and where the string is plucked, the normal modes \(X_n(x)\) remain the same for a given string.
For \(n = 1\): There are 0 nodes (excluding the endpoints). This is called the fundamental frequency or first harmonic.
For \(n = 2\): There is 1 node. This is known as the first overtone or second harmonic.
For \(n = 3\): There are 2 nodes. This is called the second overtone or third harmonic.
Note that the general solution to wave equation is expressed as a linear combination of all normal modes
2D Membrane Vibrations#
The wave function of a 2D membrane with fixed edges depends on two independent spatial variables, \(x\) and \(y\). By applying the method of separation of variables, we decompose the wave function into three ordinary differential equations.
For the spatial components \(X(x)\) and \(Y(y)\), there are boundary conditions that must be satisfied at the fixed edges: Boundary condition along the \(X\)-axis: \(X(0) = X(L) = 0\) and Boundary condition along the \(Y\)-axis: \(Y(0) = Y(L) = 0\)
The 2D normal mode is the product of two 1D mode. Since dimensions are independent we get integer numbers \(n\) for the \(x\)-direction and \(m\) for the \(y\)-direction:
The angular frequency \(\omega_{nm}\) depends on the geometry of the membrane (with dimensions \(a\) and \(b\)) and the mode numbers \(n\) and \(m\):
Where:
\(v\) is the wave speed,
\(n\) and \(m\) are the mode numbers,
\(a\) and \(b\) are the dimensions of the membrane.
Full derivation of 2D rectangular membrane problem
To extend the solution of the 1D guitar string problem to 2D, you can analyze a 2D vibrating membrane, such as a rectangular or circular drumhead. Here’s a step-by-step solution for a 2D rectangular membrane:
Solution for a 2D Rectangular Membrane
Consider a rectangular membrane with dimensions \(L_x\) and \(L_y\), fixed along its edges. The wave equation for the membrane is:
where \(c\) is the wave speed.
Separation of Variables
Assume the solution can be written as a product of functions, each depending on only one variable:
Substitute this into the wave equation:
This simplifies to:
Divide through by \(X(x) Y(y) T(t)\):
Since the left side depends only on \(t\) and the right side depends only on \(x\) and \(y\), each side must equal a constant, which we denote as \(-\lambda\):
Solving for \(T(t)\)
The ODE for \(T(t)\) is:
This has the general solution:
where \((\omega = \sqrt{\lambda} c)\).
Solving for \(X\) and \(Y\)
To solve the spatial part, we need to separate the problem into two parts:
Assume:
where \((\lambda = \alpha^2 + \beta^2)\).
So, we have:
Boundary Conditions:
For a rectangular membrane with boundaries \(x = 0\), \(x = L_x\), \(y = 0\), and \(y = L_y\), we apply:
The solutions for (X(x)) and (Y(y)) are:
where (n) and (m) are positive integers, and:
So, the general solution for (u(x, y, t)) is:
where:
This solution describes the vibration modes of a 2D rectangular membrane, with each mode characterized by different integer values of (n) and (m).
The sound of music.#
Music produced by musical instruments is a combination of sound waves with frequencies corresponding to a superposition of normal modes (in music they call harmonics, overtones) of those musical instruments.
Learn more from this series.
Example Problems#
Problem 1: Simple Harmonic Oscillator#
Solve the ODE:
where \(\omega\) is a constant.
Solution:
The characteristic equation is:
Solving for \(r\):
Thus, the general solution is:
where \(C_1\) and \(C_2\) are constants determined by initial conditions.
Problem 2: Damped Oscillator#
Solve the ODE:
where \(\beta\) and \(\omega\) are constants. Consider cases of \(\beta^2 < \omega^2\), \(\beta^2 > \omega^2\) and \(\beta^2 = \omega^2\)
Solution:
The characteristic equation is:
Solving for \(r\) using the quadratic formula:
Depending on the discriminant \(\beta^2 - \omega^2\), we have three cases:
Underdamping (\(\beta^2 < \omega^2\)):
\[ y(t) = e^{-\beta t} [C_1 \cos(\omega_d t) + C_2 \sin(\omega_d t)] \]where \(\omega_d = \sqrt{\omega^2 - \beta^2}\).
Critical Damping (\(\beta^2 = \omega^2\)):
\[ y(t) = (C_1 + C_2 t) e^{-\beta t} \]Overdamping (\(\beta^2 > \omega^2\)):
\[ y(t) = C_1 e^{r_1 t} + C_2 e^{r_2 t} \]where \(r_1\) and \(r_2\) are the distinct real roots found from the quadratic formula.
Problem 3: ODE with Constant Coefficients#
Solve the ODE:
Solution:
The characteristic equation for this ODE is:
Solving for \(r\):
Thus, the general solution is:
where \(C_1\) and \(C_2\) are constants determined by initial conditions.
Problem 4: Simple 2nd order ODE#
Solve the ODE:
Solution:
The characteristic equation for this ODE is:
Solving for \(r\):
Thus, the general solution is:
where \(C_1\) and \(C_2\) are constants determined by initial conditions.
Problem 5: When ODE gives repeated roots#
Solve the ODE:
Solution:
The characteristic equation for this ODE is:
Factoring:
Thus:
The general solution for repeated roots is:
where \(C_1\) and \(C_2\) are constants determined by initial conditions.