Skip to main content
Physics LibreTexts

1.1: Wave Mathematics

  • Page ID
    94031
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Definition of a Wave

    A wave is a disturbance that propagates through space at a constant speed. With one notable exception that we will encounter later, this "disturbance" consists of a fluctuation in the ambient condition of a medium. Waves in one dimension maintain a consistent waveform as they propagate (later we will see why this is not so for waves in two and three dimensions). Let's see how we can model this mathematically. We'll start with a localized disturbance frozen in time (think of it as a snapshot) that we describe with a function \(f\left(x\right)\):

    Figure 1.1.1 – Snapshot of a Wave

    wave_snapshot.png

    This is the waveform, but to be a wave, it needs to be propagating along the \(x\)-axis, which would make it a function of both \(x\) and \(t\). To turn it into such a function, we first have to think about how a function can be shifted along the \(x\)-axis. This is accomplished by replacing \(x\) in the argument of the function with the sum or difference of \(x\) and the value of the shift. If one wishes to shift the function \(f\left(x\right)\) in the \(+x\) direction by a distance \(a\), then the proper change is to the function \(f\left(x-a\right)\). Note that subtracting \(a\) in the argument shifts the function in the positive \(x\) direction, and adding the constant shifts it in the negative \(x\) direction. We insist that the wave moves at a constant speed, so we want the wave form to shift by the same distance every time the same time interval passes. We therefore have that the general form of a wave function is:

    \[f\left(x,t\right)=f\left(x\pm vt\right)\]

    This represents a waveform \(f\left(x\right)\) propagating in the \(\mp x\) direction with a speed \(v\).

    There are countless functions of \(x\) and \(t\) that we can come up with, but not all can be written in the form described above. When faced with an arbitrary function of \(x\) and \(t\), it can be challenging to determine whether the function represents a wave.

    Example \(\PageIndex{1}\)

    Determine which (if any) of the functions below represent a traveling wave. For those that do, determine the direction of their propagation, and their speed. In every case the constants \(\alpha\) and \(\beta\) are positive numbers.

    1. \(f\left(x,t\right)=\left(1-\alpha x+\beta t\right)^3+\left(2+\alpha x-\beta t\right)^5\)
    2. \(f\left(x,t\right)=\sin\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]\)
    3. \(f\left(x,t\right)=e^{-\alpha x}e^{-\beta t}\)
    Solution

    The idea here is to do whatever algebra that is necessary to get the function into the form \(f\left(x\pm vt\right)\)...

    a. If we factor \(-\alpha^3\) out of the first term, and \(\alpha^5\) out of the second term, we have:

    \[f\left(x,t\right)=-\alpha^3\left(-\frac{1}{\alpha}+ \left(x-\frac{\beta}{\alpha} t\right)\right)^3+\alpha^5\left(\frac{2}{\alpha}+ \left(x-\frac{\beta}{\alpha} t\right)\right)^5 \nonumber\]

    We can see that this is purely a function of \(\left(x-\frac{\beta}{\alpha} t\right)\). In such problems, it might help to substitute \(z\) for \(\left(x\pm vt\right)\) and show that there are no \(x\)'s or \(t\)'s left over. The resulting function \(f\left(z\right)\) is in fact the waveform. For this case:

    \[f\left(z\right)=\left(1-\alpha z\right)^3+\left(2+ \alpha z\right)^5 \nonumber\]

    This is therefore a traveling wave moving in the \(+x\) direction (because of the opposite signs of \(x\) and \(t\)), and the speed must be \(\frac{\beta}{\alpha}\).

    b. At first glance this might appear to be the function of a traveling wave, but we can show that in fact it cannot be written in the correct form. Writing the difference of two squares as a product gives:

    \[f\left(x,t\right)=\sin\left[\left(\alpha x+\beta t\right)\left(\alpha x-\beta t\right)\right]\nonumber\]

    Each of the factors has the right form (once a factor of \(\alpha\) is divided out), but if we substitute \(z\) for one of them, we cannot similarly eliminate the second factor. Put another way, one of the factors indicates the wave is moving in the \(+x\) direction, while the other indicates it is moving the opposite way. It can't be doing both, so this is not the equation of a traveling wave.

    c. Combining the exponentials gives:

    \[f\left(x,t\right)=e^{-\alpha x-\beta t}=e^{-\alpha \left(x+\frac{\beta}{\alpha} t\right)}\;\;\;\Rightarrow\;\;\; f\left(z\right)=e^{-\alpha z}\nonumber\]

    Clearly this represents a wave propagating in the \(-x\) direction with a speed of \(\frac{\beta}{\alpha}\).

    The Wave Equation

    It seems like there has to be an easier way to determine if a function of \(x\) and \(t\) represents a wave. It turns out that there is! To see this, let's start with the basic definition above. If we define \(g_{\pm}\left(x,t\right)\equiv x\pm vt\), then we can write the wave function as \(f\left(g_{\pm}\right)\). Now we can write derivatives of the function with respect to \(x\) and \(t\) in terms of derivatives with respect to \(g_{\pm}\) using the chain rule. Note that these are functions of more than one variable, so we need to use partial derivatives. These work precisely like ordinary derivatives, except that when the derivative is taken with respect to one variable, all the other variables are treated as constants.

    \[\begin{array}{l} \dfrac{\partial f}{\partial x}=\dfrac{\partial f}{\partial g_{\pm}}\dfrac{\partial g_{\pm}}{\partial x}=\dfrac{\partial f}{\partial g_{\pm}} && \Rightarrow && \dfrac{\partial^2 f}{\partial x^2}=\dfrac{\partial^2 f}{\partial g_{\pm}^2} \\ \dfrac{\partial f}{\partial t}=\dfrac{\partial f}{\partial g_{\pm}}\dfrac{\partial g_{\pm}}{\partial t}=\pm v\dfrac{\partial f}{\partial g_{\pm}} && \Rightarrow && \dfrac{\partial^2 f}{\partial t^2}= v^2\dfrac{\partial^2 f}{\partial g_{\pm}^2} \end{array}\]

    Putting these together gives us a relation between second derivatives known as the wave equation:

    \[\dfrac{\partial^2 f}{\partial x^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2} \]

    This second order partial differential equation holds if and only if the function behaves like a traveling wave (or a linear combination of traveling waves) with speed \(v\).

    Example \(\PageIndex{2}\)

    For the functions in the previous example, demonstrate whether they do or do not satisfy the wave equation with the proper wave speed.

    Solution

    We found that the formulas for cases (a) and (c) represent waves, so we plug those into the wave equation:

    (a)

    \[\dfrac{\partial^2}{\partial x^2}f\left(x,t\right) =\dfrac{\partial^2}{\partial x^2}\left[\left(1-\alpha x+\beta t\right)^3+\left(2+\alpha x-\beta t\right)^5\right] = \dfrac{\partial}{\partial x}\left[-3\alpha\left(1-\alpha x+\beta t\right)^2+5\alpha\left(2+\alpha x-\beta t\right)^4\right] = 6\alpha^2\left(1-\alpha x+\beta t\right)+20\alpha^2\left(2+\alpha x-\beta t\right)^3\nonumber\]

    \[\dfrac{\partial^2}{\partial t^2}f\left(x,t\right)=\dfrac{\partial^2}{\partial t^2}\left[\left(1-\alpha x+\beta t\right)^3+\left(2+\alpha x-\beta t\right)^5\right] = \dfrac{\partial}{\partial t}\left[3\beta\left(1-\alpha x+\beta t\right)^2-5\beta\left(2+\alpha x-\beta t\right)^4\right] = 6\beta^2\left(1-\alpha x+\beta t\right)+20\beta^2\left(2+\alpha x-\beta t\right)^3\nonumber\]

    From direct comparison, it is clear that these two terms are proportional, which means they satisfy the wave equation:

    \[\dfrac{\partial^2}{\partial x^2}f\left(x,t\right) = \frac{\alpha^2}{\beta^2}\dfrac{\partial^2}{\partial t^2}f\left(x,t\right)\nonumber\]

    The constant of proportionality for the wave equation is \(\frac{1}{v^2}\), so this confirms that \(v=\frac{\beta}{\alpha}\).

    (b)

    \[\dfrac{\partial^2}{\partial x^2}f\left(x,t\right) = \dfrac{\partial^2}{\partial x^2}\sin\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right] = \dfrac{\partial}{\partial x}\left\{2\alpha^2 x\cos\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]\right\}=2\alpha^2 \cos\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]-4\alpha^4 x^2 \sin\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]\nonumber\]

    \[\dfrac{\partial^2}{\partial t^2}f\left(x,t\right) = \dfrac{\partial^2}{\partial t^2}\sin\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right] = \dfrac{\partial}{\partial t}\left\{-2\beta^2 t\cos\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]\right\}=-2\beta^2 \cos\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]-4\beta^4 t^2 \sin\left[\left(\alpha x\right)^2-\left(\beta t\right)^2\right]\nonumber\]

    These two terms are clearly not proportional, so this function does not satisfy the wave equation.

    (c)

    \[\dfrac{\partial^2}{\partial x^2}f\left(x,t\right) = \dfrac{\partial^2}{\partial x^2}\left[e^{-\alpha x}e^{-\beta t}\right] = \dfrac{\partial}{\partial x}\left[-\alpha e^{-\alpha x}e^{-\beta t}\right] = \alpha^2 e^{-\alpha x}e^{-\beta t}\nonumber\]

    \[\dfrac{\partial^2}{\partial t^2}f\left(x,t\right) = \dfrac{\partial^2}{\partial t^2}\left[e^{-\alpha x}e^{-\beta t}\right] = \dfrac{\partial}{\partial t}\left[-\beta e^{-\alpha x}e^{-\beta t}\right] = \beta^2 e^{-\alpha x}e^{-\beta t}\nonumber\]

    These two terms are proportional, and the constant of proportionality gives the correct velocity once again.

    Waves in Two and Three Dimensions

    Consider a two-dimensional wave, such as a ripple radiating outward from a pebble dropped into a still lake. If the distance of the wave front from the source is \(r\), following the "wave form remains unchanged" prescription, the functional form of the traveling wave is \(f\left(r,t\right)=f\left(r-vt\right)\). Alternatively, we can extend the wave equation to two or three dimensions as follows:

    \[\begin{array}{l} \text{two dimensions:} && \dfrac{\partial^2 f}{\partial x^2}+\dfrac{\partial^2 f}{\partial y^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2} \\ \text{three dimensions:} && \dfrac{\partial^2 f}{\partial x^2}+\dfrac{\partial^2 f}{\partial y^2}+\dfrac{\partial^2 f}{\partial z^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2} \end{array}\]

    In the one-dimensional case, we showed above that the wave form that remains unchanged as it propagates is described by a function that satisfies the wave equation. It turns out that in the two-dimensional case, this is no longer true. We can show this by repeating the procedure outlined in Equation 1.1.2. A waveform that remains unchanged as it spreads radially outward would have the form \(f\left(r,t\right)=f\left(r-vt\right)\) (we are considering an outgoing waveform, which accounts for the minus sign). Defining the function \(g\left(r,t\right)\equiv r - vt\), we have for the derivative of the wave function with respect to \(x\):

    \[\dfrac{\partial f}{\partial x}=\left(\dfrac{\partial f}{\partial g}\right)\left(\dfrac{\partial g}{\partial x}\right)=\left(\dfrac{\partial f}{\partial g}\right)\left(\dfrac{\partial g}{\partial r}\right)\left(\dfrac{\partial r}{\partial x}\right)\]

    Note that the variable \(r\) depends upon both \(x\) and \(y\), specifically:

    \[r=\sqrt{x^2+y^2}=\left(x^2+y^2\right)^{\frac{1}{2}}\;\;\; \Rightarrow \;\;\; \dfrac{\partial r}{\partial x} = \frac{1}{2}\left(x^2+y^2\right)^{-\frac{1}{2}}\left(2x\right) = \dfrac{x}{r},\;\;\;\text{and}\;\;\;\dfrac{\partial r}{\partial y} =\dfrac{y}{r}\]

    Plugging this and \(\dfrac{\partial g}{\partial r} = 1\) in above gives:

    \[\begin{array}{l} \dfrac{\partial f}{\partial x}=\dfrac{\partial f}{\partial g}\left(\dfrac{x}{r}\right) && \Rightarrow && \dfrac{\partial^2 f}{\partial x^2}=\dfrac{\partial^2 f}{\partial g^2}\left(\dfrac{x^2}{r^2}\right)+\dfrac{\partial f}{\partial g}\left(\dfrac{1}{r}\right)\left(1-\dfrac{x^2}{r^2}\right) \\ \dfrac{\partial f}{\partial y}=\dfrac{\partial f}{\partial g}\left(\dfrac{y}{r}\right) && \Rightarrow && \dfrac{\partial^2 f}{\partial y^2}=\dfrac{\partial^2 f}{\partial g^2}\left(\dfrac{y^2}{r^2}\right)+\dfrac{\partial f}{\partial g}\left(\dfrac{1}{r}\right)\left(1-\dfrac{y^2}{r^2}\right) \end{array}\]

    The dependence on \(t\) is the same as in the one-dimensional case:

    \[\dfrac{\partial f}{\partial g}=-\dfrac{1}{v}\dfrac{\partial f}{\partial t}\;\;\;\Rightarrow\;\;\;\dfrac{\partial^2 f}{\partial g^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2}\]

    Plugging this into the previous equations, and adding them together gives:

    \[\dfrac{\partial^2 f}{\partial x^2}+\dfrac{\partial^2 f}{\partial y^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2}\left(\dfrac{x^2}{r^2}+\dfrac{y^2}{r^2}\right)-\dfrac{1}{v}\dfrac{\partial f}{\partial t}\left(\dfrac{1}{r}\right)\left(2-\dfrac{x^2}{r^2}-\dfrac{y^2}{r^2}\right)\]

    Noting that \(x^2+y^2=r^2\), we finally get:

    \[\dfrac{\partial^2 f}{\partial x^2}+\dfrac{\partial^2 f}{\partial y^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2}-\dfrac{1}{v}\dfrac{\partial f}{\partial t}\left(\dfrac{1}{r}\right)\]

    The second term on the right hand side of the equation clearly makes this differential equation look different from the one-dimensional wave equation. So the question is, which is the correct way of describing a two-dimensional wave? Does it maintain its wave form as it propagates outward, or does it satisfy our previous wave equation extended to two dimensions? The figures below display the two possibilities we are talking about.

    Figure 1.1.2 – Two-Dimensional Circularly-Radiating Function with Unchanging Waveform

    unphysical_2D_wave.png

    The graph shows a cross-sectional snapshot of the wave – the waveform repeats as a function of \(r\).

    Figure 1.1.3 – Two-Dimensional Circularly-Radiating Function Satisfying 2-D Wave Equation

     

    physical_2d_wave.pngThe graph shows a cross-sectional snapshot of the wave – the waveform does not repeat as a function of \(r\).

    We can't answer this question purely mathematically – we have to observe what actually happens in nature. As we will see in later section, conservation of energy will require that it is in fact the extended two-dimensional wave equation that gives the correct answer – two and three-dimensional waveforms do not remain fixed as they radiate outward. The maximal wave displacements diminish with distance from the source, as shown in Figure 1.1.3.  Of course, two-dimensional waves don't have to move purely radially outward from a central source, but solutions to the wave equation become extremely complicated in such cases, so we will never address them.

    The extension to the three-dimensional wave equation should be obvious:

    \[\dfrac{\partial^2 f}{\partial x^2}+\dfrac{\partial^2 f}{\partial y^2}+\dfrac{\partial^2 f}{\partial z^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f}{\partial t^2}\]

    As with the two-dimensional case, radially-moving waves in three dimensions have diminishing maximal wave displacements, for the same reason (energy conservation).  It turns out that a change of coordinate systems makes it much easier to discuss waves that travel purely radially.  In two dimensions, the useful coordinate system is cylindrical coordinates, and in three dimensions it is spherical coordinates:

    Figure 1.1.4 – Cylindrical and Spherical Coordinates

    cylindrical.png                spherical.png

    Note that the two \(r\) variables have different definitions in these coordinate systems, so one must take care to keep track of the context when these variables are in play.  Specifically, we can write each of these \(r\)'s in terms of the Cartesian coordinates as follows:

    \[\text{cylindrical:}~~~r=\sqrt{x^2+y^2}~~~~~~~~~~\text{spherical:}~~~r=\sqrt{x^2+y^2+z^2}\]

    A little bit of trigonometry yields a translation between the angles and the Cartesian coordinates as well:

    \[\phi=\cos^{-1}\frac{x}{\sqrt{x^2+y^2}}~~~~~~~~~~\theta=\cos^{-1}\frac{z}{\sqrt{x^2+y^2+z^2}}\]

    While we certainly have no reason to produce it here, these translations between coordinate systems allows us to derive the wave equation in each of these other coordinate systems.  The result is a huge mess, but as we have only considered radial waves here, we can simplify this mess. A radially-moving wave does not vary in the angular directions (nor in the 2-dimensional case, in the \(z\)-direction – it has only radial dependence).  Therefore the only derivatives for the wave equation under these special circumstances that survive are with respect to the variable \(r\).  The resulting radial wave equations are:

    \[\text{cylindrical:}~~~\frac{1}{r}\frac{\partial}{\partial r}\left(r\frac{\partial}{\partial r}\right)f\left(r,t\right)=\frac{1}{v^2}\frac{\partial^2}{\partial t^2}f\left(r,t\right)~~~~~~~~~~\text{spherical:}~~~\frac{1}{r^2}\frac{\partial}{\partial r}\left(r^2\frac{\partial }{\partial r}\right)f\left(r,t\right)=\frac{1}{v^2}\frac{\partial^2}{\partial t^2}f\left(r,t\right)\]

    It turns out that although these wave equations don't result in a sustained wave form like the 1-dimensional case, we can nevertheless write the radially-moving wave solutions in terms of a function that looks like \(f\left(r\pm vt\right)\). For the spherical case, this expression is exact, but for the cylindrical case it is only an approximation that gets better as \(r\) gets larger.  Doing this shows explicitly the property of reduced heights of wave peaks, since the wave form is in the numerator, and the denominator grows (making the total wave displacement smaller) with increased distance from the center:

    \[\text{cylindrical:}~~~f\left(r,t\right)\approx\frac{f\left(r\pm vt\right)}{\sqrt r}~~~~~~~~~~\text{spherical:}~~~f\left(r,t\right)=\frac{f\left(r\pm vt\right)}{r}\]

    An Important Feature of the Wave Equation

    One feature of the wave equation that we will use over and over is the fact that it is linear. What this means is that if two different functions satisfy the same wave equation, then so does their sum. Or more generally, so does a linear combination of those functions.  This is true in any number of dimensions, but is quite obvious in one dimension:

    \[\left.\begin{array}{l}a\left(\dfrac{\partial^2 f_1}{\partial x^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f_1}{\partial t^2}\right)\\ b\left(\dfrac{\partial^2 f_2}{\partial x^2}=\dfrac{1}{v^2}\dfrac{\partial^2 f_2}{\partial t^2}\right)\end{array}\right\}~~~a\dfrac{\partial^2 f_1}{\partial x^2}+b\dfrac{\partial^2 f_2}{\partial x^2}=a\dfrac{1}{v^2}\dfrac{\partial^2 f_1}{\partial t^2}+b\dfrac{1}{v^2}\dfrac{\partial^2 f_2}{\partial t^2}~~~\Rightarrow~~~\dfrac{\partial^2 \left(af_1+bf_2\right)}{\partial x^2}=\dfrac{1}{v^2}\dfrac{\partial^2\left(af_1+bf_2\right)}{\partial t^2}\]

    What this tells us is that the wave equation assures the basic wave features, but more information (commonly referred to as boundary conditions) is required to get the specific wave for the physical situation at hand.  It should also be noted that not just any waves work in this way.  The waves must both satisfy the same wave equation, which means, for example, that they must have the same speed (though interestingly – and as we will see, importantly – they can be moving in opposite directions, since the velocity appears as a squared value in the wave equation).  Also, a one-dimensional wave function cannot be added to a two-dimensional wave function.


    This page titled 1.1: Wave Mathematics is shared under a CC BY-SA license and was authored, remixed, and/or curated by Tom Weideman.

    • Was this article helpful?