Applying Boundary Conditions to Standing Waves
Boundary conditions for the wave equation describe the behavior of solutions at certain points in space. For instance, the strings of a harp are fixed on both ends to the frame of the harp. If the string is plucked, it oscillates according to a solution of the wave equation, where the boundary conditions are that the endpoints of the string have zero displacement at all times.
In general, there are two major types of boundary conditions: fixed-endpoint or Dirichlet boundary conditions, and free-endpoint or Neumann boundary conditions, corresponding to holding the end of a string or allowing it to freely oscillate, respectively. Both types of boundary conditions can lead to standing waves, where certain points called nodes have zero displacement at all times and the maximum amplitude of the wave at all points does not change in time.
Standing Waves and the Wave Equation
The wave equation is a partial differential equation which is second order in both time and space which models small oscillations in some quantity \(y\):
\[\frac{1}{v^2} \frac{\partial^2 y}{\partial t^2} = \frac{\partial^2 y}{\partial x^2},\]
where \(v\) is the velocity of the wave. Depending on the medium in which the wave travels, the velocity \(v\) can take several different forms:
Strings: \(v = \sqrt{\frac{T}{\mu}}\) where \(T\) is the tension of the string and \(\mu\) is the mass density per unit length of the string.
Sound/Pressure waves: \(v = \sqrt{\frac{K}{\rho}}\) where \(\rho\) is the density of the gas through which the sound travels and \(K\) is the elastic bulk modulus given by \(K = \gamma p\), where \(p\) is the pressure of the gas and \(\gamma\) is the adiabatic index of the gas (equal to \(5/3\) for a monatomic ideal gas).
Light: Light waves are the propagation of oscillations in the electromagnetic field, which travel at the speed of light \(v=c\).
Sound waves propagate in a room filled with a monatomic ideal gas. Suppose more gas is flooded into the room, so that the new density of gas in the room is twice what it was previously. The room is climate-controlled so that the temperature stays fixed. By what factor does the speed of the sound waves change?
Any solution of the wave equation can be expressed as the sum of left-traveling and right-traveling waves, which can be any functions of the form \(f(x-vt)\) and \(g(x+vt)\).
Show that any solution to the wave equation can be expressed as a sum of left-traveling and right-traveling waves \(f(x-vt)\) and \(g(x+vt)\).
Solution:
The two (left-traveling and right-traveling) solutions can be verified by direct substitution. For the left-traveling solution:
\[ \begin{align} \frac{d^2}{dx^2} f(x-vt) &= f''(x-vt) \\ \frac{d^2}{dt^2} f(x-vt) &= v^2 f''(x-vt) \end{align} \]
Therefore, \(\frac{d^2}{dt^2} f(x-vt) = v^2\frac{d^2}{dx^2} f(x-vt)\), so \(f(x-vt)\) solves the wave equation. Substituting the right-traveling waves gets the identical result. Since the left-traveling and right-traveling waves are linearly independent, any solution of the wave equation can be expressed as a linear combination of them.
If the wave is traveling in some one-dimensional region where both endpoints are fixed, the simplest examples of solutions are sinusoids:
\[y(x,t) = y_0 \sin (x-vt) + y_0 \sin (x+vt).\]
where \(y_0\) is the amplitude of the wave. Using trigonometric identities, this solution may be expanded:
\[ \begin{align} y(x,t) &= y_0( \sin (x-vt) + \sin (x+vt)) \\ &= y_0 (\sin (x) \cos (vt) - \cos (x) \sin (vt) + \sin(x) \cos (vt) + \cos (x) \sin (vt)) \\ &= 2y_0 \sin(x) \cos (vt) \end{align} \]
This solution has constant amplitude and the spatial part \(\sin (x)\) has no time dependence. This is the mathematical description of a standing wave, visualized below.
Fundamental Frequency and Harmonics
Solutions to the wave equation can also be written in the form \(f(kx-\omega t\)) rather than \(f(x-vt)\), where \(k\) is the wave number and \(\omega\) is the frequency, using the fact that \(\omega = vk\) for non-dispersive waves. In this form, the solution for the amplitude of harmonic (sinusoidal) standing waves on a string fixed at both ends described above is: \[ y(x,t) = 2y_0 \sin(kx) \cos (\omega t)\]
Since the amplitude \(y(x,t)\) must vanish at the endpoints for standing waves at all times \(t\), the allowed values of \(k\) are highly constrained. Suppose the string is length \(L\), and label the endpoints of the string as the coordinates \(x=0\) and \(x=L\). Plugging in above, since \(\sin(0) = 0\), \(y(0,t) = 0\) regardless of time \(t\). However, at the endpoint at \(x=L\), \(y(L,t) = 0\) if and only if:
\[kL = n\pi,\]
for \(n\) any integer. The wave number \(k\) is thus constrained to the set of values:
\[k = n \frac{\pi}{L}.\]
Using the fact that the wave number is related to the wavelength \(\lambda\) by:
\[k = \frac{2\pi}{\lambda},\]
the possible allowed wavelengths are similarly discrete:
\[\lambda = \frac{2L}{n},\]
as are the frequencies:
\[f = n \frac{v}{2L} = n \frac{\omega}{2kL}.\]
The allowed frequencies of standing waves (and in general, the allowed frequencies of any oscillatory system) are typically called normal modes, with the \(n=1\) frequency called the fundamental frequency and frequencies corresponding to higher \(n\) called harmonics, where the \(n\)th harmonic corresponds to the integer \(n\).
To find the allowed wave numbers or frequencies, it is typically useful to first draw some cases of allowed wave patterns, from which the wavelength can be extracted first, as illustrated in the diagram below:
An oscillating string of tension \(100 \text{ N}\) and mass density per unit length \(\mu = 1 \text{ kg}/\text{m}\) fixed at both ends has fundamental frequency \(400 \text{ Hz}\). What is the difference in meters between the wavelengths corresponding to the second and third harmonics?
This analysis applies not only to transverse waves on a string but in fact generic sinusoidal solutions to the wave equation. Another common example concerns longitudinal pressure/sound waves traveling in pipes. A pipe closed at both ends represents Dirichlet boundary conditions for the sound waves in the pipe, since the longitudinal displacement at the ends of the pipe must be zero. If one end of the pipe is opened, the boundary condition becomes Neumann: the pressure at the end should be atmospheric pressure, so there is no change in pressure as waves leave the pipe, and the slope of the longitudinal displacement is flat.
What are the allowed frequencies of longitudinal pressure waves in a half-open pipe of length \(L\)?
Solution:
First, analyze the three longest allowed wavelengths to identify a pattern. The longitudinal displacement over the length of the pipe is illustrated in the following diagram:
The lowest-frequency harmonic completes a quarter wavelength in length \(L\). The next highest harmonic completes three-quarters of a wavelength, and the harmonic after that completes five-fourths of a wavelength. Observing the pattern, the allowed wavelengths must be:
\[L = \frac{2n-1}{4} \lambda \implies \lambda = \frac{4L}{2n-1}.\]
The corresponding frequencies are found from the relation \(\lambda f = v\), which yields:
\[f = \frac{(2n-1)v}{4L},\]
where \(v\) is the velocity of the pressure waves, and \(n \in \{1,2,3\ldots\}\).
References
[1] Image from https://upload.wikimedia.org/wikipedia/commons/5/5c/Standing_waves_on_a_string.gif under Creative Commons licensing for reuse and modification.
[2] Image from https://upload.wikimedia.org/wikipedia/commons/7/7d/Standing_wave_2.gif under Creative Commons licensing for reuse and modification.
[3] Image from lecture notes from San Francisco State University, August 2015. Accessed February 10, 2016. http://www.physics.sfsu.edu/~bland/courses/385/downloads/vector/ch8.pdf