Coupled Oscillators and Normal Modes
Two masses connected by springs move in a complicated way, but every motion is a superposition of a few simple ones, the normal modes, in which all masses oscillate at the same frequency. Finding them is an eigenvalue problem, and it is how engineers analyse vibrating structures and how chemists compute molecular vibrations.
Second-order systems
Newton's law for several masses gives with a diagonal mass matrix and a symmetric stiffness matrix . With unit masses, or after dividing, this is
We could rewrite it as a first-order system of twice the size, but there is a shortcut: guess . Then , so must be an eigenvalue of . For a stable spring system all eigenvalues of are negative, , and the general solution is
Two masses, three springs
Masses between two walls, all springs with constant :
Eigenvalues and :
- , : the masses move together, the middle spring is never stretched.
- , : they move against each other, faster.
import numpy as np
A = np.array([[-2.0, 1.0], [1.0, -2.0]])
lam, V = np.linalg.eigh(A) # symmetric: eigh gives orthonormal eigenvectors
for l, v in zip(lam, V.T):
print(f"lambda = {l:.4f}, omega = {np.sqrt(-l):.4f}, mode shape {np.round(v / v[0], 4)}")lambda = -3.0000, omega = 1.7321, mode shape [ 1. -1.]
lambda = -1.0000, omega = 1.0000, mode shape [1. 1.]
Energy exchange: beats between masses
Pull only mass 1 aside and release: . Then
With a weak middle spring the two frequencies are close, and the energy sloshes from one mass to the other and back, like two coupled pendulums. Mass 1 has handed almost all of its motion to mass 2 after about time units.
import numpy as np
k_c = 0.05 # weak coupling spring
A = np.array([[-(1 + k_c), k_c], [k_c, -(1 + k_c)]])
lam, V = np.linalg.eigh(A)
w = np.sqrt(-lam)
coef = np.linalg.solve(V, [1.0, 0.0]) # amplitudes of the two modes
x = lambda t: V @ (coef * np.cos(w * t))
print("frequencies:", np.round(w, 4), " transfer time pi/(w2 - w1) =", round(np.pi / abs(w[1] - w[0]), 2))
for t in (0, 15, 30, 45, 60):
print(f"t = {t:2d}: x1 = {x(t)[0]: .3f}, x2 = {x(t)[1]: .3f}")frequencies: [1.0488 1. ] transfer time pi/(w2 - w1) = 64.37
t = 0: x1 = 1.000, x2 = 0.000
t = 15: x1 = -0.880, x2 = 0.120
t = 30: x1 = 0.577, x2 = -0.422
t = 45: x1 = -0.236, x2 = 0.761
t = 60: x1 = 0.021, x2 = -0.974
Damping and forcing
With damping, . For "proportional" damping the modes stay the same and each one is an independent damped oscillator. Forcing near any excites that mode resonantly, which is why a structure has several dangerous frequencies, not one.
In software
- Finite element packages compute the lowest normal modes of bridges, aircraft wings and engine mounts with sparse eigensolvers (
scipy.sparse.linalg.eigshuses the same Lanczos algorithm family). - Physics-based animation of cloth and soft bodies uses "modal dynamics": simulate only a few low modes for real-time performance.
- In chemistry, the normal modes of a molecule's Hessian give its infrared spectrum.
Exercises
Exercise 1: Mode frequencies
For , , find the normal mode frequencies and shapes.
Answer
with and with .
Solution
has eigenvalues , i.e. (vector ) and (vector ). Frequencies are and .
Exercise 2: Pure mode
In the lesson's two-mass system, which initial displacement (released from rest) produces motion at the single frequency ?
Answer
Any multiple of , e.g. , .
Solution
Starting in the mode shape with zero velocity gives , no component.
Exercise 3: Three masses (code)
Three unit masses between walls, four unit springs. Find the three frequencies.
Answer
.
Solution
is tridiagonal with on the diagonal and 1 next to it; its eigenvalues are for .
import numpy as np
A = -2 * np.eye(3) + np.eye(3, k=1) + np.eye(3, k=-1)
print(np.round(np.sqrt(-np.linalg.eigvalsh(A))[::-1], 4))[0.7654 1.4142 1.8478]
Test yourself
For , the normal mode frequencies are…
- the eigenvalues of
- for the eigenvalues of
- the diagonal entries of
- always 1
In the in-phase mode of two equal masses between walls, the middle spring…
- is stretched the most
- is never stretched
- breaks
- has double frequency
Weakly coupled identical oscillators exchange energy slowly because…
- their mode frequencies are close, producing beats
- they are damped
- their mode shapes are equal
- energy is not conserved