4.5.2. Wave Particle Duality and the Classical Wave Equation#

4.5.2.1. Motivation#

We have already used the concept that light and matter both exhibit aspects of wave-like and particle-like behavior. de Broglie formalized this hypothesis in his famous wavelength equation. Additionally, we will discuss how waves are treated classically.

4.5.2.2. Learning Goals#

After working through these notes, you will be able to:

  1. Use the de Broglie wavelength equation to convert between wavelength and particle mass

  2. Solve the classical wave equation using the methods of separation of variables

4.5.2.3. Coding Concepts#

The following coding concepts are used in this notebook:

  1. Variables

  2. Functions

  3. Plotting with matplotliub

4.5.2.4. Matter has wavelike properties#

Both light and matter have wave-like and particle-like properties. This is more readily observed in light. White light splitting into colors of the visible spectrum when shone through a prism is an example of light displaying wave-like character. The photoelectric effect, where a photon of light with energy \(h\nu\) collides with an electron causing it to leave the metal if the incident energy is larger than the work function, is an example of light displaying matter-like character. In 1925, de Broglie reasoned that both light and matter display this behavior. Whats more, the realatonship between wavelength and momentum derived for light by Einstein also applies to matter

(4.670)#\[\begin{equation} \lambda = \frac{h}{p} = \frac{h}{mv} \end{equation}\]

4.5.2.4.1. Example: The de Broglie Wavelength of Matter#

Compute the de Broglie Wavelength of the following two objects:

  1. An electron traveling at \(3\times10^{5}\) m\(\cdot\)s\(^{-1}\)

  2. A baseball (5.0 oz) traveling at 90 mph

4.5.2.4.2. Solution: The de Broglie Wavelength of Matter#

  1. An electron traveling at \(3\times10^5\) m\(\cdot\)s\(^{-1}\). For this we compute the momentum of the electron:

(4.671)#\[\begin{align} p = m_ev &= (9.109\times10^{-31}\text{ kg})(3\times10^5 \text{ m}\cdot\text{s}^{-1}) \\ &= 2.73 \times 10^{-25} \text{ kg}\cdot\text{m}\cdot\text{s}^{-1} \end{align}\]

The de Broglie wavelength is then

(4.672)#\[\begin{align} \lambda &= \frac{6.626\times10^{-34} \text{ J}\cdot\text{s}}{2.73 \times 10^{-25} \text{ kg}\cdot\text{m}\cdot\text{s}^{-1}} \\ &= 2.43 \text{ nm} \end{align}\]
  1. For a baseball traveling at 90 mph

(4.673)#\[\begin{align} m = 5\text{ oz}\frac{1\text{ lb}}{16 \text{ oz}} \frac{0.454 \text{kg}}{1 \text{ lb}} = 0.14 \text {kg} \end{align}\]
(4.674)#\[\begin{align} p = m_ev &= (0.14\text{ kg})\left(90\text{ mph} \frac{1610\text{ m}}{1 \text{mi}} \frac{1 \text{hr}}{3600 \text{s}}\right) \\ &= 5.6 \text{ kg}\cdot\text{m}\cdot\text{s}^{-1} \end{align}\]
(4.675)#\[\begin{align} \lambda = \frac{6.626\times10^{-34}}{5.6} = 1.2\times10^{-34} \text{ m} \end{align}\]
print(9.109e-31*3e5)
print(6.626e-34/(9.109e-31*3e5))
2.7326999999999997e-25
2.424708164086801e-09

From this example we see that, at this velocity, the wavelength of electron motion is of a similar magnitude to the radius of hydrogen atom orbits. This demonstrates that the wavelike character of the electron is important for its behavior.

The wavelength of the baseball, however, is miniscule, even for atomic distances. Thus, the wavelike behavior of a baseball is irrelevant for its behavior.

The wavelike behavior of electrons is not only important for determining the structure and behavior of atoms and molecules. It is utilized in electron microscopes and can display similar wavelike defraction patterns to X-rays.

4.5.2.5. The 1-D Wave Equation#

The behavior and physics of waves might be foreign to us. Waves are, however, readily treated using classical mechanics. Consider, for example, a string of tied between two objects a length \(l\) apart. We consider the motion of the string (i.e. strumming a guitar string). The amplitude of the motion normal to the direction of the wave is described by a time dependent function \(u(x,t)\) where \(x\) is the position along the end separation vector and \(t\) is time. The classical wave equation relates the second derivative of the function \(u\) in position and in time

(4.676)#\[\begin{equation} \frac{\partial^2 u(x,t)}{\partial x^2} = \frac{1}{v^2}\frac{\partial^2u(x,t)}{\partial t^2}, \end{equation}\]

where \(v\) is the linear velocity of the wave. This is a linear partial differential equation: linear because the second derivatives only appear to the first power and there are not cross partial derivatives and partial because derivatives of the same function w.r.t different variables show up in the same equation.

The above equation is subject to the following boundary conditions:

(4.677)#\[\begin{align} u(0,t) =& 0\\ u(l,t) =& 0 \end{align}\]

Since the string is anchored at both ends.

Hide code cell source
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
# make an array containing domain of wavelengths to consider
x = np.arange(0,np.pi,0.0001)
# setup plot parameters
fig = plt.figure(figsize=(10,5), dpi= 80, facecolor='w', edgecolor='k')
ax = plt.subplot(111)
ax.set_xlabel(r'$x$',size=20)
plt.tick_params(axis='x',labelsize=20)
plt.ylim((0.0,1.05))
# plot quantum result
ax.plot(x,np.sin(x),lw=3)
plt.xlim(0,np.pi)
# ticks
plt.xticks([0,np.pi],[0,'l'])
plt.yticks(ticks=None);
../../_images/dce8743a6a8a0c1767e7a39f84265d0355ba0eb59489e1d381be618484cb9df2.png

4.5.2.6. Solving the 1-D Wave Equation with Separation of Variables#

The first major step to solve the above differential equation is to assume that the dependence of the two different variables can be separated. Namely that

(4.678)#\[\begin{equation} u(x,t) = X(x)T(t) \end{equation}\]

where \(X(x)\) is some function strictly of \(x\) and \(T(t)\) is another function strictly of \(t\). Substituting this for for \(u\) into the differential equation above yields

(4.679)#\[\begin{equation} T(t)\frac{d^2X(x)}{dx^2} = \frac{1}{v^2}X(x)\frac{d^2T(t)}{dt} \end{equation}\]

Dividing both sides of the above equation by \(u(x,t) = X(x)T(t)\) will complete the separation of variables

(4.680)#\[\begin{equation} \frac{1}{X(x)}\frac{d^2X(x)}{dx^2} = \frac{1}{v^2T(t)}\frac{d^2T(t)}{dt} \end{equation}\]

Since the left-hand side depends only on \(x\) and the right-hand side depends only on \(t\), and these two coordinates are independent, the only way for this to be achieved is for both sides to be equal to the same constant. That is

(4.681)#\[\begin{align} \frac{1}{X(x)}\frac{d^2X(x)}{dx^2} &= K \\ \frac{1}{v^2T(t)}\frac{d^2T(t)}{dt} &= K \end{align}\]

Each of these equations can be rewritten as

(4.682)#\[\begin{align} \frac{d^2X(x)}{dx^2} - KX(x) = 0 \\ \frac{d^2T(t)}{dt} - v^2KT(t) = 0 \end{align}\]

These are ordinary differential equations that can be solved using standard ODE procedures. We now consider the solutions to these equations for three scenarios

(4.683)#\[\begin{align} K &= 0\\ K &>0\\ K &< 0 \end{align}\]

4.5.2.6.1. K =0#

\(K = 0\) is what is called the trivial solution. Namely this solution is such that

(4.684)#\[\begin{equation} u(x,t) = 0 \end{equation}\]

This is a mathematically valid solution to our problem but of no physical interest.

4.5.2.6.2. K > 0#

If \(K>0\), we get the following general form for \(X(x)\) and \(T(t)\):

(4.685)#\[\begin{align} \frac{d^2y(x)}{dx^2} - k^2y(x) = 0 \end{align}\]

Or you can write this as

(4.686)#\[\begin{align} \frac{d^2y(x)}{dx^2} = k^2y(x) \end{align}\]

which implies that \(y\) is a function that, when you take two derivatives, returns itself times a constant squared. This type of behavior is exhibited by functions of the form \(e^{\alpha x}\) the value of \(\alpha\) needs to be determined. So, we propose that \(y(x) = e^{\alpha x}\) and plug this into the above equation to determine the expression for \(\alpha\).

(4.687)#\[\begin{align} &\frac{d^2e^{\alpha x}}{dx^2} - k^2e^{\alpha x} = 0 \\ & \alpha^2e^{\alpha x} - k^2e^{\alpha x} = 0 \\ & (\alpha^2 - k^2)e^{\alpha x} = 0 \\ \Rightarrow & (\alpha^2 - k^2) = 0 \\ \Rightarrow & \alpha = \pm k \end{align}\]

This means that there are two possible values for \(\alpha\) and thus two possible solutions, \(y(x)\). Namely

(4.688)#\[\begin{align} y(x) = e^{kx} \\ y(x) = e^{-kx} \end{align}\]

In general, when there are two possible solutions for a given differential equation, then any linear combination of these two solutions is also a solution. Thus, it is more complete to write that the solution is

(4.689)#\[\begin{equation} y(x) = c_1e^{kx} + c_2e^{-kx}, \end{equation}\]

where \(c_1\) and \(c_2\) are constants.

4.5.2.6.3. K < 0#

If \(K<0\), we can set \(K = (ki)^2\) for arbitrary constant \(k>0\). This implies the general form for \(X(x)\) and \(T(t)\):

(4.690)#\[\begin{align} \frac{d^2y(x)}{dx^2} - (ki)^2y(x) = 0 \end{align}\]

Or you can write this as

(4.691)#\[\begin{align} \frac{d^2y(x)}{dx^2} = (ki)^2y(x) \end{align}\]

which implies that \(y\) is a function that, when you take two derivatives, returns itself times a constant squared. This type of behavior is exhibited by functions of the form \(e^{\alpha x}\) the value of \(\alpha\) needs to be determined. So, we propose that \(y(x) = e^{\alpha x}\) and plug this into the above equation to determine the expression for \(\alpha\).

(4.692)#\[\begin{align} &\frac{d^2e^{\alpha x}}{dx^2} - (ik)^2e^{\alpha x} = 0 \\ & \alpha^2e^{\alpha x} - (ki)^2e^{\alpha x} = 0 \\ & (\alpha^2 - (ki)^2)e^{\alpha x} = 0 \\ \Rightarrow & (\alpha^2 - (ki)^2) = 0 \\ \Rightarrow & \alpha = \pm ki \end{align}\]

This means that there are two possible values for \(\alpha\) and thus two possible solutions, \(y(x)\). Namely

(4.693)#\[\begin{align} y(x) = e^{ikx} \\ y(x) = e^{-ikx} \end{align}\]

In general, when there are two possible solutions for a given differential equation, then any linear combination of these two solutions is also a solution. Thus, it is more complete to write that the solution is

(4.694)#\[\begin{equation} y(x) = c_1e^{ikx} + c_2e^{-ikx}, \end{equation}\]

where \(c_1\) and \(c_2\) are constants.

In this case, we can also recall/recognize that

(4.695)#\[\begin{equation} e^{ix} = \cos(x) + i \sin(x) \end{equation}\]

Using this relationship is can be readily shown that

(4.696)#\[\begin{equation} y(x) = (c_1 + c_2)\cos(kx) + i(c_1-c_2)\sin(kx) \end{equation}\]

We will write this general solution as

(4.697)#\[\begin{equation} X(x) = A\cos(kx) + B\sin(kx) \end{equation}\]

When we apply the boundary conditions we get that

(4.698)#\[\begin{align} A &= 0 \\ k &= \frac{n\pi}{l} \end{align}\]

Finally yielding an \(n\) specific solution of

(4.699)#\[\begin{equation} X_n(x) = B_n\cos\frac{n\pi x}{l} \end{equation}\]

4.5.2.6.4. Time Dependence#

Now that we have solved the positional dependence equation and found a non-trivial solution we must solve the time dependent portion. Recall that the time dependent differential equation is

(4.700)#\[\begin{equation} \frac{d^2T(t)}{dt} - v^2KT(t) = 0, \end{equation}\]

where \(K\) is the exact same constant as for the positional part. Thus, for the non-trivial case with \(K<0\) we have

(4.701)#\[\begin{equation} \frac{d^2T(t)}{dt} + \frac{n^2\pi^2v^2}{l^2}T(t) = 0, \end{equation}\]

The solutions to this equation are, by analogy with to the position equation,

(4.702)#\[\begin{equation} T_n(t) = A_n\cos(\omega_nt) + B_n\sin(\omega_nt) \end{equation}\]

where \(\omega_n = \frac{n \pi v}{l}\). It can be shown that this can be rewritten as

(4.703)#\[\begin{equation} T_n(t) = D_n\cos(\omega_nt + \phi_n) \end{equation}\]

where \(\phi_n = \tan^{-1}\frac{B_n}{A_n}\).

4.5.2.6.5. Combined General Solution#

The combined specific solution is then

(4.704)#\[\begin{equation} u_n(x,t) = A_n\cos(\omega_nt + \phi_n)\sin\frac{n\pi x}{l} \end{equation}\]

Since and \(u_n\) is a specific solution to the linear differential equation, the general solution is a linear combination of these solutions. Thus, the general solution is

(4.705)#\[\begin{equation} u(x,t) = \sum_{i=1}^{\infty} u_n(x,t) = \sum_{i=1}^{\infty} A_n\cos(\omega_nt + \phi_n)\sin\frac{n\pi x}{l} \end{equation}\]

4.5.2.6.6. Example: Linear combination of first two harmonics#

To investigate what these look like, we can look at the sum of the first two harmonics, or first two solutions to the equation above. The function is then

(4.706)#\[\begin{equation} u(x,t) = A_1\cos(\omega_1t)\sin\frac{\pi x}{l} + A_2\cos(\omega_2t + \frac{\pi}{2})\sin\frac{2\pi x}{l} \end{equation}\]

If we assume \(A_1 = A_2 = 1\) we can see plot what these two curves look like as a function of time.

title

Hide code cell source
# make animated gif of first two harmonics
import matplotlib.pyplot as plt
def plot_classical_wave_frame(t, nu, max_n):
    a = 1
    # setup plot parameters
    fig = plt.figure(figsize=(6,4), dpi= 80, facecolor='w', edgecolor='k')
    ax = plt.subplot(111)
    all_x = np.arange(0,a,0.01)
    n = 1
    partial_sum = np.sin(n*np.pi*all_x/a)*np.cos(nu*n*t/(2*a))
    ax.plot(all_x,partial_sum,'--',lw=2, label="n=1")
    n = 2
    partial_sum += np.sin(n*np.pi*all_x/a)*np.cos(nu*n*t/(2*a)+np.pi/2)
    ax.plot(all_x,np.sin(n*np.pi*all_x/a)*np.cos(nu*n*t/(2*a)+np.pi/2),'--',lw=2, label="n=2")   
    ax.plot(all_x,partial_sum,'-',lw=3, label="sum")
    plt.legend(fontsize=12)
    ax.set_xlabel(r'$x/a$',size=20)
    ax.get_yaxis().set_visible(False)
    plt.ylim((-2,2))
    plt.xlim((0.0,1.0))
    plt.savefig(f'./img/img_{t}.png', 
                transparent = False,  
                facecolor = 'white'
               )
    plt.close()
    
# make gif
import numpy as np
import imageio
time = np.arange(0,120)
for t in time:
    plot_classical_wave_frame(t,0.1,1)
frames = []
for t in time:
    #image = iio.imread(f'./img/img_{t}.png')
    image = imageio.imread(f'./img/img_{t}.png')
    frames.append(image)
imageio.mimsave('./img/classical_wave_three_modes_v01.gif', # output gif
                frames,          # array of input frames
                fps = 10)  
/var/folders/td/dll8n_kj4vd0zxjm0xd9m7740000gq/T/ipykernel_2300/3411842439.py:36: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning dissapear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.
  image = imageio.imread(f'./img/img_{t}.png')