8. Oscillations#

8.1. Oscillatory motion#

8.1.1. Harmonic oscillator#

We’ve already encountered two examples of oscillatory motion - the rotational motion of Section 5, and the mass-on-a-spring system in Section 2.3 (see Fig. 1.2). The latter is the quintessential oscillator of physics, known as the harmonic oscillator. Recapping briefly, we get its equation of motion by considering a mass \(m\) that is being pulled on by a massless ideal spring of spring constant \(k\). Equating the resulting spring force (Hooke’s law) to the net force in Newton’s second law of motion, we get:

(8.1)#\[ m \ddot{x} = - k x. \]

The harmonic oscillator is characterized by its natural frequency \(\omega_0\):

(8.2)#\[ \omega_0 = \sqrt{\frac{k}{m}}, \]

as follows readily by dimensional arguments (or, of course, by solving the differential equation). Because equation (8.1) is second-order, its solution has two unknowns; moreover, as it has to be minus its own derivative we readily see that it should be a linear combination of sines and cosines (for a formal derivation, see Section 15.4.2). We can write the solution in two different ways:

(8.3)#\[\begin{align*} x(t) &= x(0) \cos(\omega_0 t) + \frac{v(0)}{\omega_0} \sin(\omega_0 t), \ \end{align*}\]
(8.4)#\[\begin{align*} &= A \cos(\omega_0 t + \phi), \end{align*}\]

where the phase \(\phi\) is given by \(\tan\phi = -\frac{1}{\omega} \frac{v(0)}{x(0)}\) and the amplitude \(A\) by \(A = \frac{x(0)}{\cos\phi}\). Unsurprisingly, as they are both simple periodic motions, there is a direct relationship between a harmonic oscillator with natural frequency \(\omega_0\), and a point on a disk rotating with uniform angular velocity \(\omega_0\) in the \(xy\)-plane - the motion of the harmonic oscillator is that of the disk projected on the \(x\) (or \(y\)) axis.

8.1.2. Torsional oscillator#

A torsional oscillator is the rotational analog of a harmonic oscillator - imagine a disk with moment of inertia \(I\) suspended by a massless, frictionless rope that has a torsional constant \(\kappa\), i.e., the force to twist the rope is given by \(F = - \kappa \theta\), with \(\theta\) the twist angle. By invoking the rotational analog of Newton’s second law of motion, equation (5.12), we readily find for the equation of motion of the torsional oscillator:

\[ I \ddot{\theta} = - \kappa \theta, \]

so the torsional oscillator indeed is the exact rotational analog of the harmonic oscillator, and has a natural frequency of \(\omega_0 = \sqrt{\kappa/I}\).

8.1.3. Pendulum#

A pendulum is an object that is suspended on a horizontal peg through any point \(x_\mathrm{P}\) but its center of mass \(x_\mathrm{CM}\) (it won’t oscillate if you pin it at the center of mass). If the center of mass of the pendulum is pulled sideways, gravity will exert a torque around the position of the peg, pulling the pendulum back down. If the distance between \(x_{P}\) and \(x_{CM}\) is \(L\), and the line connecting them makes an angle \(\theta\) with the vertical through \(x_\mathrm{P}\), then the torque exerted by gravity around \(x_P\) equals \(-mgL\sin\theta\), where as usual \(m\) is the mass of the pendulum. Now again invoking equation (5.12), we can write for the equation of motion of the pendulum (with \(I\) its moment of inertia about \(x_\mathrm{P}\)):

(8.5)#\[ I \ddot{\theta} = -mgL \sin\theta. \]

Unfortunately we can’t solve equation (8.5). For small angles however, we can Taylor-expand the sine, and write \(\sin\theta \approx \theta\), which takes us back to the harmonic oscillator equation. From that we find that for this pendulum (called the physical pendulum), the natural frequency is \(\omega_0 = \sqrt{mgL/I}\). For the special case that the pendulum consists of a mass \(m\) suspended on a massless rope of length \(L\) (the simple pendulum), we have \(I=mL^2\) and thus \(\omega_0 = \sqrt{g/L}\).

8.1.4. Oscillations in a potential energy landscape#

The potential energy associated with a mass on a spring has a very simple form: \(U_\mathrm{s}(x) = \frac12 k x^2\) (see equation (3.14)). The potential energy landscape of a harmonic oscillator thus has the shape of a parabola. Now that’s a shape that we encounter very often: the shape of pretty much every landscape about a minimum closely resembles a parabola[2]. To see why this is the case, simply Taylor-expand the potential energy about a minimum at \(x_0\): because the function has a minimum at \(x_0\), \(U'(x_0) = 0\), and the Taylor expansion gives

(8.6)#\[ U(x) = U(x_0) + \frac12 U''(x_0) x^2 + \mathcal{O}(x^3). \]

Around a minimum in the potential energy, any potential energy thus resembles that of a harmonic oscillator. Any particle placed in such a potential energy landscape close to a minimum (i.e., a particle on which a force acts close to the point where the force vanishes) will therefore tend to oscillate. By comparing equation (8.6) with the potential energy of the harmonic oscillator, we can immediately read off that the resulting oscillatory motion is identical to that of a harmonic oscillator with spring constant \(k = U''(x_0)\). A particle released close to a minimum of the potential energy will thus oscillate with a frequency \(\omega = \sqrt{U''(x_0) / m}\).

../_images/c9q1_energyandequilibrium.svg
../_images/c9q2_generaloscillator.svg

8.2. Damped harmonic oscillator#

So far we’ve disregarded damping on our harmonic oscillators, which is of course not very realistic. The main source of damping for a mass on a spring is due to drag of the mass when it moves through air (or any fluid, either gas or liquid). For relatively low velocities, drag forces on an object scale linearly with the object’s velocity, as illustrated by Stokes’ law (equation (2.11)). For an object of arbitrary shape moving through an arbitrary fluid we’ll write \(F_\mathrm{drag} = -\gamma \dot{x}\), with \(\gamma\) the drag coefficient, and of course opposing the direction of motion. Adding this to the spring force gives for the equation of motion of the damped harmonic oscillator:

(8.7)#\[ m \ddot{x} = -\gamma \dot{x} - k x. \]

We now have two numbers that determine the motion: the undamped frequency \(\omega_0 = \sqrt{k/m}\) and the damping ratio \(\zeta = \gamma / 2 \sqrt{mk}\). In terms of these parameters, we can rewrite equation (8.7) as:

(8.8)#\[ \ddot{x} + 2 \zeta \omega_0 \dot{x} + \omega_0^2 x = 0. \]

The solution of equation (8.8) depends strongly on the value of \(\zeta\), see Fig. 8.2. We can find it[3] by substituting the Ansatz \(x(t) = e^{\lambda t}\), which gives a characteristic equation for \(\lambda\):

(8.9)#\[ \lambda^2 + 2\zeta\omega_0 \lambda + \omega_0^2 = 0, \]

so

(8.10)#\[ \lambda = -\zeta \omega_0 \pm \omega_0 \sqrt{\zeta^2-1}. \]

For \(\zeta < 1\), there are two complex solutions for \(\lambda\), and we find that \(x(t)\) undergoes an oscillation with an exponentially decreasing amplitude:

(8.11)#\[ x(t) = e^{-\zeta \omega_0 t} [A \cos(\omega_d t) + B \sin(\omega_d t)], \]

where \(\omega_d = \omega_0 \sqrt{1-\zeta^2}\) and \(A\) and \(B\) follow from the initial conditions. Because there is still an oscillation, this type of motion is called underdamped. In contrast, if \(\zeta >1\), the roots \(\lambda_\pm\) in equation (8.10) are real, and we get qualitatively different, overdamped behavior, in which \(x\) returns to 0 with an exponential decay without any oscillations:

(8.12)#\[ x(t) = A e^{\lambda_+ t} + B e^{\lambda_- t} = e^{-\zeta \omega_0 t} \left[ A e^{\Omega t} + B e^{-\Omega t} \right], \]

where \(\Omega = \omega_0 \sqrt{\zeta^2-1}\). Naturally the boundary case is when \(\zeta=1\), which is a critically damped oscillator - the fastest return to 0 without oscillations. Because in this case equation (8.10) only has one root, we again get a qualitatively different solution:

(8.13)#\[ x(t) = (A + B t) e^{-\omega_0 t}. \]

The three different cases and the undamped oscillation are shown in Fig. 8.2.

Hide code cell source
%config InlineBackend.figure_formats = ['svg']
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams.update({'font.size': 12})
from myst_nb import glue

def x(t):
    # Returns x(t), with x(0) = 1, v(0) = 0, and omega_0 = 1.
    return np.cos(t)

def xud(t):
    # Returns x_{underdamped}(t), zeta = 0.25 and omega_0 =1 (and therefore omega_d = sqrt{1-0.25^2}).
    return np.exp(-0.25*t) * np.cos(np.sqrt(1-0.25*0.25) * t)

def xcd(t):
    # Returns x_{critically damped}(t), A = B = omega_0 = 1.
    return (1 + t) * np.exp(-t)

def xod(t):
    # Returns x_{overdamped}(t), with zeta = 2 and omega_0 =1, and therefore Omega = sqrt(3). Also choose A and B such that x(0) = 1.
    return ((0.5 + 1/np.sqrt(3))*np.exp(np.sqrt(3) * t) + (0.5 - 1/np.sqrt(3))*np.exp(-np.sqrt(3) * t)) * np.exp(-2*t)

fig, ax = plt.subplots(figsize=(6,4))

t = np.linspace(0, 4*np.pi, 1000)

line1 = ax.plot(t, x(t), label='$\\zeta = 0$')
line2 = ax.plot(t, xud(t), label='$0 < \\zeta < 1$')
line3 = ax.plot(t, xcd(t), label='$\\zeta = 1$')
line4 = ax.plot(t, xod(t), label='$\\zeta > 1$')

ax.axhline(y = 0, color = 'k', linestyle = ':')

ax.set_xlim(0,4*np.pi)
ax.set_xticks([0, np.pi, 2*np.pi, 3*np.pi, 4*np.pi], labels=['$0$', '$\\pi$', '$2\\pi$', '$3\\pi$', '$4\\pi$'])
ax.set_yticks([-1, -0.5, 0, 0.5, 1], labels=['$-1$', '$-\\frac{1}{2}$', '$0$', '$\\frac{1}{2}$', '$1$'])
ax.set_xlabel('$t$')
ax.set_ylabel('$x(t)$')
ax.legend()

# Save graph to load in figure later (special Jupyter Book feature)
glue("dampedoscillations", fig, display=False)
../_images/0855a3de37b0acf79ec69697c93007b0e922a44023aba231e54688c3aa5be96b.svg

Fig. 8.2 Position as function of time for four types of oscillation: undamped (\(\zeta = 0\), blue), underdamped (\(0 < \zeta < 1\), orange), critically damped (\(\zeta = 1\), green) and overdamped (\(\zeta > 1\), red). In all cases the initial conditions are \(x(0) = 1\) and \(v(0) = 0\).#

8.3. Driven harmonic oscillator#

A mass on a spring, displaced out of its equilibrium position, will oscillate about that equilibrium for all time if undamped, or relax towards that equilibrium when damped. Its amplitude will remain constant in the first case, and decrease monotonically in the second. However, if we give the mass a periodic small push at the right moment in its oscillation cycle, its amplitude can increase, and even diverge. To see how this works we study the driven oscillator, where we apply a periodic driving force \(F_\mathrm{D}(t) = F_\mathrm{D}\cos(\omega_\mathrm{D} t) = \frac12 F_\mathrm{D} \left(e^{i \omega_\mathrm{D}t} + e^{-i \omega_\mathrm{D}t}\right)\). Adding this driving force to the equation of motion (8.7) of a damped harmonic oscillator, we obtain:

(8.14)#\[ \ddot{x} + 2 \omega_0 \zeta \dot{x} + \omega_0^2 x = \frac{F_\mathrm{D}}{2m} \left(e^{i \omega_\mathrm{D}t} + e^{-i \omega_\mathrm{D}t}\right). \]

We already know the homogeneous solution to equation (8.14) - that’s just the damped oscillator again, so depending on the value of \(\zeta\), we get one of the three possible solutions of the previous section. To find a particular solution, we first note that we can split the driving term in two - if we have a particular solution for each of the oscillating exponentials, we can simply add them. Also, these exponentials themselves look very similar to the underdamped solutions, so they may make a good guess for a particular solution. For a right-hand side of \((F_\mathrm{D}/2m) e^{\pm i \omega_\mathrm{D}t}\) we therefore try \(x_\mathrm{p} = A e^{\pm i \omega_\mathrm{D}t}\). Substituting this into equation (8.14) with the appropriate right-hand side, we get:

(8.15)#\[ A\left(-\omega_\mathrm{D}^2 \pm 2 i \omega_0 \zeta \omega_\mathrm{D} + \omega_0^2 \right) e^{\pm i \omega_\mathrm{D}t} = \frac{F_\mathrm{D}}{2m} e^{\pm i \omega_\mathrm{D}t}, \]

so we find that we have indeed a solution if the amplitude is given by

(8.16)#\[ A(\omega_\mathrm{D}) = \frac{F_\mathrm{D}}{2m\left(\omega_0^2 \pm 2 i \omega_0 \zeta \omega_\mathrm{D} - \omega_\mathrm{D}^2 \right)}. \]

The full particular solution of equation (8.14) is then given by

(8.17)#\[\begin{split}\begin{align*} x_\mathrm{p}(t) &= \frac{F_\mathrm{D}}{2m} \left[\frac{e^{i \omega_\mathrm{D}t}}{\omega_0^2 + 2 i \omega_0 \zeta \omega_\mathrm{D} - \omega_\mathrm{D}^2} + \frac{e^{-i \omega_\mathrm{D}t}}{\omega_0^2 - 2 i \omega_0 \zeta \omega_\mathrm{D} - \omega_\mathrm{D}^2} \right] \\ &= \frac{F_\mathrm{D}}{m} \left[ \frac{(\omega_0^2 - \omega_\mathrm{D}^2) \cos(\omega_\mathrm{D}t) + 2 \omega_0 \zeta \omega_\mathrm{D} \sin(\omega_\mathrm{D}t)}{(\omega_0^2 - \omega_\mathrm{D}^2)^2 + 4 \omega_0^2 \zeta^2 \omega_\mathrm{D}^2} \right] \\ &= \frac{F_\mathrm{D}}{m R(\omega_\mathrm{D})} \cos\left(\omega_\mathrm{D}t - \phi(\omega_\mathrm{D})\right) \end{align*}\end{split}\]

where the factor \(R(\omega_\mathrm{D})\) in the amplitude is defined by

(8.18)#\[ R^2(\omega_\mathrm{D}) = (\omega_0^2 - \omega_\mathrm{D}^2)^2 + 4 \omega_0^2 \zeta^2 \omega_\mathrm{D}^2, \]

and the phase \(\phi(\omega_\mathrm{D})\) by \(\cos\phi = (\omega_0^2-\omega_\mathrm{D}^2)/R(\omega_\mathrm{D})\), \(\sin\phi = 2\omega_0\zeta\omega_\mathrm{D}/R(\omega_\mathrm{D})\), so

(8.19)#\[ \tan(\phi(\omega_\mathrm{D})) = \frac{2 \omega_0 \zeta \omega_\mathrm{D}}{(\omega_0^2-\omega_\mathrm{D}^2)}. \]

Resonance, a large response of the harmonic oscillator to a small driving force, occurs when \(x_\mathrm{p}(t)\) blows up, or \(R(\omega_\mathrm{D})\) goes to zero. That does not always happen, but \(R(\omega_\mathrm{D})\) can reach a minimum at which the amplitude becomes large:

(8.20)#\[ 0 = \frac{\mathrm{d}R^2}{\mathrm{d}\omega_\mathrm{D}} = -4 (\omega_0^2 - \omega_\mathrm{D}^2) \omega_\mathrm{D} + 8 \omega_0^2 \zeta^2 \omega_\mathrm{D}, \]

which is at

(8.21)#\[ \omega_\mathrm{D}^2 = \omega_0^2 - 2\omega_0^2 \zeta^2, \]

or \(\omega_\mathrm{D} \simeq \omega_0\) if the damping factor \(\zeta\) is small. Note that in this same limit (small \(\zeta\)), we find that when \(\omega_\mathrm{D} \simeq \omega_0\), \(\tan \phi \to \infty\), so \(\phi \to \pi/2\). Therefore, in this case the driving happens out of phase with the response, that is to say, you push hardest when the mass is at its point of maximum speed, increasing that speed even further, and leading to an increase in amplitude. In practice, this is what kids do when they sit on a swing: they fling back their legs when they go through the lowest point (maximum speed) going backwards, and fling their legs forward at the same point when going forwards, increasing their speed and thus amplitude.

8.4. Phase portraits#

So far, we’ve studied harmonic oscillators, for which the equation of motion is linear. We also already encountered a case for which this is just an approximation, the pendulum in Section 8.1.3. We could solve the non-linear equations of motion of a general oscillator linearly, but there is a lot we can learn about them without having to resort to numerical methods. The key tool for analyzing the behavior of a non-linear oscillator is a phase portrait. Rather than plotting the position and velocity of an oscillator as a function of time, we plot them against each other, with the position on the horizontal axis, and the velocity on the vertical axis. This (\(x\), \(v\)) plane is usually referred to as the phase plane. A phase portrait depicts possible trajectories in the phase plane. For a harmonic oscillator, we have \(\ddot{x} = - \omega^2 x\), or, re-writing the equations in terms of the position \(x\) and the velocity \(v\):

(8.22)#\[\begin{split}\begin{align*} \dot{x} &= v, \\ \dot{v} &= - \omega_0^2 x. \end{align*}\end{split}\]

Note that the system of two first-order differential equations (8.22) is completely equivalent to the second-order differential equation we started with. We can do the same for any second-order differential equation by considering the first derivative of our variable at interest (here the velocity \(v\), as the derivative of the position \(x\)) as a separate variable.

For a harmonic oscillator, the phase portrait consists of concentric ellipses, see Fig. 8.3(a). Which ellipse depends on the initial conditions, but, as there is no dissipation of energy in the simple harmonic oscillator, once the oscillator is set in motion, it will stay on its trajectory forever. In particular, each ellipse corresponds to a given amount of mechanical energy, namely

\[ E = K + U = \frac12 m v^2 + \frac12 k x^2 = \frac12 m \left( v^2 + \omega_0^2 x^2 \right). \]

The trajectories have a direction: they will always rotate clockwise in our phase plane, except at one point, \(x = v = 0\), which is a fixed point in which an unperturbed harmonic oscillator stays put for all eternity.

We can also draw the phase portrait of a pendulum; now the phase plane is spanned by the angle \(\theta\) and the angular velocity[4] \(\omega\), which satisfy

(8.23)#\[\begin{split}\begin{align*} \dot{\theta} &= \omega, \\ \dot{\omega} &= - \omega_0^2 \sin(\theta). \end{align*}\end{split}\]

One immediate difference between the phase portrait of the simple harmonic oscillator and the pendulum is that the latter is periodic. Like for the harmonic oscillator, the pendulum has stable fixed points, for \(\theta\) any integer multiple of \(2\pi\) (including \(0\)) and \(\omega = 0\). As long as \(\theta\) and \(\omega\) are small, the trajectories in the phase plane are periodic, although they start deviating from ellipses as \(\theta\) increases. For large values of \(\theta\) or \(\omega\) though, the trajectories are no longer closed: they ‘hop’ from one period to the next. Physically, these trajectories correspond to pendulums that make full rotations.

In between the closed and open trajectories there is one special trajectory, corresponding to the release of a pendulum in its unstable position (with the mass above the pivot). As you know, this pendulum will make a single full rotation, initially accelerating, decelerating again as it goes up to make a full circle. The unstable points are equilibrium points of equation (8.23), with \(\omega = 0\) and \(\theta = (2n+1)\pi\), where \(n\) is any integer. They are known as saddle points in the phase portrait, as they have two incoming and two outgoing trajectories, see Fig. 8.3(b).

Like the trajectories of the harmonic oscillator, those of the pendulum have a conserved total energy, given by

\[ E = K + U = \frac12 I \omega^2 + \int m g L \sin(\theta) \mathrm{d}\theta = I \left( \frac12 \omega^2 - \omega_0^2 \cos(\theta)\right). \]

Real pendulums and other oscillators experience drag forces, and will therefore not continue oscillating indefinitely. Instead, they lose (or dissipate) a bit of mechanical energy every cycle. We can see this beautifully in the phase plane of the pendulum if we add the drag force, which adds a second term of the form \(-\zeta \omega\) to equation (8.23)A. The trajectories are now no longer closed loops, but spiral inwards into a stable fixed point, even if they start at conditions where they’d have an open trajectory without drag, see Fig. 8.3(c).

Phase portraits are used throughout physics, as they can be drawn for every system described by a second-order differential equation. They are especially useful for studying periodic motion, and particularly so when the equations are nonlinear. As a final example, we’ll draw the phase diagram of the Van der Pol oscillator, which has a nonlinear damping term. The equations for this oscillator are given by

(8.24)#\[\begin{split}\begin{align*} \dot{x} &= v \\ \dot{v} &= \mu (1-x^2) v - x \end{align*}\end{split}\]

The van der Pol oscillator differs from the damped pendulum in that instead of converging to a stationary point, it converges to a limit cycle: the system evolves over time to a specific trajectory in the phase plane, see Fig. 8.3(d).

Although the details of a trajectory in the phase plane can often only be found through numerical solution, we can usually determine the long-term behavior of the system analytically. The first step is to identify steady-state solutions that do not change in time. If the solutions are time-independent, their time derivatives have to vanish. In general, we can write for any phase portrait

(8.25)#\[\begin{split}\begin{align*} \dot{x} = f(x, v), \\ \dot{v} = g(x, v), \end{align*}\end{split}\]

where \(f\) and \(g\) are analytic functions. In the examples we have seen so far, we always had \(f(x, v) = v\), but in many cases it is easier to write the system in different form. To find the steady-state solutions of the system, we now solve

(8.26)#\[ f(x, v) = g(x, v) = 0. \]

The solutions to equation (8.26) are known as equilibrium points or fixed points of the system if they are points, and limit cycles if they are trajectories. Equilibrium points come in various kinds. We already encountered stable fixed points (or ‘nodes’), saddle points, and stable spiral points when discussing the pendulum; there are also unstable fixed points and unstable saddle points, from which all solutions move or spiral away. We can determine the nature of each fixed point through linear stability analysis. The basic idea is to approximate the functions \(f(x, v)\) and \(g(x, v)\) by their Taylor expansions near each fixed point and look at the solutions of the linearized differential equation. If we do so, we get

(8.27)#\[\begin{split}\begin{align*} \dot{x} = f(x, v) \approx \left.\frac{\partial f}{\partial x}\right|_{\bm{x}_\mathrm{eq}} (x-x_\mathrm{eq}) + \left.\frac{\partial f}{\partial v}\right|_{\bm{x}_\mathrm{eq}} (v-v_\mathrm{eq}), \\ \dot{v} = g(x, v) \approx \left.\frac{\partial g}{\partial x}\right|_{\bm{x}_\mathrm{eq}} (x-x_\mathrm{eq}) + \left.\frac{\partial g}{\partial v}\right|_{\bm{x}_\mathrm{eq}} (v-v_\mathrm{eq}), \end{align*}\end{split}\]

where \(\bm{x}_\mathrm{eq} = (x_\mathrm{eq}, v_\mathrm{eq})\) is the fixed point. We can re-write equation (8.27) as a matrix equation

(8.28)#\[\begin{split} \begin{pmatrix} \dot{x} \\ \dot{v} \end{pmatrix} = A \begin{pmatrix} x-x_\mathrm{eq} \\ v-v_\mathrm{eq} \end{pmatrix}, \end{split}\]

where \(A\) is the matrix of first derivatives at the fixed points. The solution of equation (8.28) is easy if \(A\) has two different eigenvalues \(\lambda\) and \(\mu\), with corresponding eigenvectors \(\bm{p}\) and \(\bm{q}\):

(8.29)#\[\begin{split} \begin{pmatrix} x \\ v \end{pmatrix} = \begin{pmatrix} x_\mathrm{eq} \\ v_\mathrm{eq} \end{pmatrix} + C e^{\lambda t} \begin{pmatrix} p_1 \\ p_2 \end{pmatrix} + D e^{\mu t} \begin{pmatrix} q_1 \\ q_2 \end{pmatrix}, \end{split}\]

where \(C\) and \(D\) are integration constants. We now have four options. If \(\lambda\) and \(\mu\) are both real, the solution will be a node. The stability of the node depends on the signs of the eigenvalues, as listed in table. If \(\lambda\) and \(\mu\) have a nonzero imaginary part, they must be each other’s complex conjugate. As long as the eigenvalues have nonzero real part, we get a spiral, again with the stability depending on the sign. Finally, if the two eigenvalues are purely imaginary, we get periodic solutions.

../_images/phaseportraits.svg

Fig. 8.3 Phase portraits in the (\(x\), \(v\)) phase plane. Arrows indicate the direction a trajectory moves in at that point, continuous lines are example trajectories. (a) For a harmonic oscillator, the phase portrait consists of concentric ellipses (equation (8.22)). Different colors correspond to different energies; the blue dot at the origin is the single fixed point. (b) For a pendulum, the phase portrait contains stable fixed points (blue dots), closed trajectories (blue and green) for small amplitudes, saddle points (orange dots), marginal trajectories (orange lines) and open trajectories (red lines) corresponding to continuous rotations. (c) For a damped pendulum, the trajectories eventually become spirals into a stable fixed point. (d) Phase portrait of the nonlinear van der Pol oscillator (equation (8.24)).#

8.5. Coupled oscillators#

8.5.1. Two coupled pendulums#

../_images/Coupledpendulums.svg

Fig. 8.4 Motion of two coupled pendulums. (a) Sketch of the setup. Two identical pendulums of length \(L\) and mass \(m\) are connected through a weak spring of spring constant \(k\). As our initial condition we choose both pendulums at rest, with the right one in its equilibrium position and the left one given a finite amplitude. (b) Resulting motion of the two pendulums: left (blue) and right (orange).#

A beautiful demonstration of how energy can be transferred from one oscillator to another is provided by two weakly coupled pendulums. Imagine we have two identical pendulums of length \(L\) and mass \(m\), which are connected by a weak spring with spring constant \(k\) (Fig. 8.4a). The equation of motion of the combined system is then given by:

(8.30)#\[\begin{split}\begin{align*} L \ddot{\theta}_1 &= -g \sin\theta_1 - kL(\sin\theta_1 - \sin\theta_2), \\ L \ddot{\theta}_2 &= -g \sin\theta_2 + kL(\sin\theta_1 - \sin\theta_2). \end{align*}\end{split}\]

We will once again use the small angle expansion in which we can approximate \(\sin \theta \approx \theta\), and identify \(\omega_0 = \sqrt{g/L}\) as the frequency of each of the (uncoupled) pendulums. Equations (8.30) then become

(8.31)#\[\begin{split}\begin{align*} \ddot{\theta}_1 &= -\omega_0^2 \theta_1 - k\theta_1 +k\theta_2, \\ \ddot{\theta}_2 &= -\omega_0^2 \theta_2 + k\theta_1 - k\theta_2. \end{align*}\end{split}\]

We can solve the system of coupled equations (8.31) easily by introducing two new variables: \(\alpha = \theta_1 + \theta_2\) and \(\beta = \theta_1 - \theta_2\), which gives us two uncoupled equations:

(8.32)#\[\begin{split}\begin{align*} \ddot{\alpha} &= - \omega_0^2 \alpha, \\ \ddot{\beta} &= - \omega_0^2 \beta - 2 k \beta = - (\omega')^2 \beta, \end{align*}\end{split}\]

where \((\omega')^2 = \omega_0^2 + 2k\) or \(\omega' = \sqrt{2 k + g/L}\). Since equations (8.32)A and (8.32)B are simply the equations of harmonic oscillators, we can write down their solutions immediately:

\[\begin{split}\begin{align*} \alpha(t) &= A \cos(\omega_0 t + \phi_0), \\ \beta(t) &= B \cos(\omega' t + \phi'). \end{align*}\end{split}\]

Converting back to the original variables \(\theta_1\) and \(\theta_2\) is also straightforward, and gives

\[\begin{split}\begin{align*} \theta_1 &= \frac12(\alpha + \beta) = \frac{A}{2} \cos(\omega_0 t + \phi_0) + \frac{B}{2} \cos(\omega' t + \phi'),\\ \theta_2 &= \frac12(\alpha - \beta) = \frac{A}{2} \cos(\omega_0 t + \phi_0) - \frac{B}{2} \cos(\omega' t + \phi'). \end{align*}\end{split}\]

Let’s put in some specific initial conditions: we leave pendulum number 2 at rest in its equilibrium position (\(\theta_2(0) = \dot{\theta}_2(0) = 0\) and give pendulum number 1 a finite amplitude but also release it at rest (\(\theta_1(0) = \theta_0\), \(\dot{\theta_1}(0) = 0\)). Working out the four unknowns (\(A\), \(B\), \(\phi_0\) and \(\phi'\)) is straightforward, and we get:

(8.33)#\[\begin{split}\begin{align*} \theta_1 &= \frac{\theta_0}{2} \cos(\omega_0 t) + \frac{\theta_0}{2} \cos(\omega' t) = \theta_0 \cos\left(\frac{\omega_0 + \omega'}{2}t\right) \cos\left(\frac{\omega_0 - \omega'}{2}t\right),\\ \theta_2 &= \frac{\theta_0}{2} \cos(\omega_0 t) - \frac{\theta_0}{2} \cos(\omega' t) = \theta_0 \sin\left(\frac{\omega_0 + \omega'}{2}t\right) \sin\left(\frac{\omega' - \omega_0}{2}t\right). \end{align*}\end{split}\]

The solution given by equations (8.33) is plotted in Fig. 8.4b. Note that the solutions have two frequencies (known as the eigenfrequencies of the system). The fast one, \(\frac12(\omega_0 + \omega')\), which for a weak coupling constant \(k\) is very close to the eigenfrequency \(\omega_0\) of a single pendulum, is the frequency at which the pendulums oscillate. The do so in anti-phase, as expressed mathematically by the fact that one oscillation has a sine and the other a cosine (which is of course just a sine shifted over \(\pi/2\)). The second frequency, \(\frac12(\omega' - \omega_0)\) is much slower, and represents the frequency at which the two pendulums transfer energy to each other, through the spring that couples them. In Fig. 8.4b, it is the frequency of the envelope of the amplitude of the oscillation of either of the pendulums. All these phenomena will return in the next section, in the study of waves, which travel in a medium in which many oscillators are coupled to one another.

8.5.2. Normal modes#

For a system with only two oscillators, the technique we used above for solving the system of coupled equations (8.30) is straightforward. It does however not generalize easily to systems with many oscillators. Instead, we can exploit the fact that the equations are linear and use techniques from linear algebra (as you may have guessed from the term eigenfrequency). We can rewrite equations (8.30) in matrix form:

(8.34)#\[\begin{split} \frac{\mathrm{d}^2}{\mathrm{d}t^2} \begin{pmatrix}\theta_1 \\ \theta_2 \end{pmatrix} = \begin{pmatrix} -(\omega_0^2 + k) & k \\ k & -(\omega_0^2 + k) \end{pmatrix} \begin{pmatrix}\theta_1 \\ \theta_2 \end{pmatrix}. \end{split}\]

Equation (8.34) is a homogeneous, second-order differential equation with constant coefficients, strongly resembling the equation for a simple, one-dimensional harmonic oscillator. Consequently, we may expect the solutions to look similar as well, so we try our usual Ansatz:

(8.35)#\[\begin{split} \begin{pmatrix}\theta_1 \\ \theta_2 \end{pmatrix} = \begin{pmatrix}C_1 \\ C_2 \end{pmatrix} e^{i\omega t}, \end{split}\]

where \(C_1\) and \(C_2\) are constants. Substituting (8.35) in (8.34) gives

(8.36)#\[\begin{split} \begin{pmatrix} \omega_0^2 + k & -k \\ -k & \omega_0^2 + k \end{pmatrix} \begin{pmatrix}C_1 \\ C_2 \end{pmatrix} = \omega^2 \begin{pmatrix}C_1 \\ C_2 \end{pmatrix}, \end{split}\]

which you hopefully recognize as an eigenvalue problem. Solving for the eigenvalues \(\omega^2\) gives:

(8.37)#\[ (-\omega^2 + \omega_0^2 + k)^2 - k^2 = 0. \]

The solutions of equation (8.37) unsurprisingly reproduce the frequencies of the uncoupled equations in Section 8.5.1:

(8.38)#\[ \omega_{+}^2 = \omega_0^2, \quad \omega_{-}^2 = \omega_0^2 + 2 k. \]

The eigenvectors of (8.36) are given by

(8.39)#\[\begin{split} \bm{C}_{+} = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \\ 1 \end{pmatrix}\quad \text{for}\quad \omega_{+} \quad \text{and} \quad \bm{C}_{-} = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 \\ -1 \end{pmatrix}\quad \text{for}\quad \omega_{-}. \end{split}\]

Note that the eigenvectors are orthogonal; this is a general property of the eigenvectors of symmetric matrices. Each eigenvector corresponds to a possible steady-state of motion of the system; these states are known as the normal modes (‘normal’ referring to the orthogonality of the eigenvectors). We can now immediately write down the most general solution of equation (8.34) as a linear combination of the eigenmodes:

(8.40)#\[\begin{split} \begin{pmatrix} \theta_1(t) \\ \theta_2(t) \end{pmatrix} = \frac{A_{+}}{2} e^{i(\omega_{+}t + \phi_{+})} \begin{pmatrix} 1 \\ 1 \end{pmatrix} + \frac{A_{-}}{2} e^{i(\omega_{-}t + \phi_{-})} \begin{pmatrix} 1 \\ -1 \end{pmatrix}, \end{split}\]

where the amplitudes \(A_\pm\) and phases \(\phi_\pm\) are determined by the initial conditions.

Writing our system of equations in matrix form allows us to easily generalize both to asymmetric configurations (see problem Section 8.5.\ref{prob:coupledoscillators}) and to systems with many coupled oscillators. An important example of the latter case is the study of vibrations in solids. Atoms or ions in solids typically form a crystal lattice, that can be modeled as a large number of masses coupled by springs. Such crystals can have complicated vibrational properties, that can be analyzed in terms of its normal modes. In particular the modes with a low energy can typically be accessed easily. They are known as phonons, and correspond to sound waves in the solid.

8.6. Problems#