---
title: Differential equations and normal modes
heading: Eigenvectors that move on their own
eyebrow: A7 · Lesson 37 · Normal modes
xp: 40
---

::: hook
Two identical LC tanks sit side by side, weakly coupled through a small capacitor. Ring the first one and something strange happens: its oscillation slowly dies away while the second tank's grows, then the energy flows back, over and over. The two tanks have no single natural frequency each; together they have two, one where they swing in step and one where they swing against each other. Those are the **normal modes**, the eigenvectors of the system's matrix. In each mode the system moves as if it were uncoupled.
:::

::: play
- Tank 1 starts with all the energy. The curves show the voltages of tank 1 and tank 2.
- Raise the coupling $c$. The energy sloshes across faster.
- The readouts give the two mode frequencies and the time for a complete back-and-forth exchange, the beat period.
:::
:::

```sim plot
view: graph
x: t = 0..150 s
y: v = -1.1..1.1 V
slider: c = 0.01..0.3 step 0.01 = 0.05
plot: (cos(t) + cos(sqrt(1 + 2*c)*t))/2 | label: tank 1 | samples: 3000
plot: (cos(t) - cos(sqrt(1 + 2*c)*t))/2 | label: tank 2 | color: ch2 | samples: 3000
readout: in-step mode, rad/s = 1 | digits: 4
readout: opposed mode, rad/s = sqrt(1 + 2*c) | digits: 4
readout: beat period = 2*pi/(sqrt(1 + 2*c) - 1) s | digits: 4
```

::: predict
## The coupled system starts with tank 1 ringing and tank 2 still. In terms of the two modes, what is that starting state?

- [x] Equal amounts of the in-step mode $(1, 1)$ and the opposed mode $(1, -1)$
- [ ] Only the in-step mode
- [ ] Only the opposed mode
- [ ] Neither; it isn't a combination of modes

::: reveal
Equal amounts: $(1, 0) = \frac{1}{2}(1, 1) + \frac{1}{2}(1, -1)$. Each mode then oscillates at its own frequency. When the two are in phase they add in tank 1 and cancel in tank 2; as their phases drift apart the energy moves to tank 2. The exchange repeats at the difference of the two frequencies.
:::
:::

::: nameit
## First-order systems

For $\frac{d\mathbf{u}}{dt} = A\mathbf{u}$, try $\mathbf{u} = e^{\lambda t}\mathbf{x}$. Substituting gives $\lambda e^{\lambda t}\mathbf{x} = Ae^{\lambda t}\mathbf{x}$, so $A\mathbf{x} = \lambda\mathbf{x}$: **every eigenpair gives a solution**. The general solution is

$$\mathbf{u}(t) = c_1e^{\lambda_1t}\mathbf{x}_1 + \cdots + c_ne^{\lambda_nt}\mathbf{x}_n$$

with the $c_i$ chosen to match $\mathbf{u}(0)$. Equivalently $\mathbf{u}(t) = e^{At}\mathbf{u}(0)$, where the **matrix exponential** is $e^{At} = Xe^{\Lambda t}X^{-1}$ (or the series $I + At + \frac{(At)^2}{2!} + \cdots$).

**Stability:** $\mathbf{u} \to \mathbf{0}$ for every start exactly when every eigenvalue has negative real part. A complex pair $\sigma \pm j\omega$ gives oscillation at $\omega$ inside an envelope $e^{\sigma t}$. For 2 × 2, that's trace $< 0$ and determinant $> 0$.

## Second-order systems and normal modes

Coupled oscillators obey $\frac{d^2\mathbf{u}}{dt^2} = -K\mathbf{u}$, with $K$ symmetric. Trying $\mathbf{u} = \cos(\omega t)\mathbf{x}$ gives $K\mathbf{x} = \omega^2\mathbf{x}$: each eigenvector is a **normal mode** oscillating at $\omega = \sqrt{\lambda}$.

For two identical oscillators (stiffness $k$) with coupling $c$:

$$K = \begin{bmatrix}k + c & -c\\-c & k + c\end{bmatrix} \qquad \begin{aligned}\mathbf{x} = (1, 1)&: \omega = \sqrt{k}\\ \mathbf{x} = (1, -1)&: \omega = \sqrt{k + 2c}\end{aligned}$$

The energy exchanges with the **beat period** $\frac{2\pi}{\omega_2 - \omega_1}$. Coupled resonators in RF filters, coupled transmission lines (crosstalk) and the vibration modes of a circuit board all work this way.
:::

::: example
## Two components share heat: $\frac{d\mathbf{u}}{dt} = \begin{bmatrix}-3 & 1\\1 & -3\end{bmatrix}\mathbf{u}$, starting at $\mathbf{u}(0) = (1, 0)$. Solve it.

::: solution
1. **Eigenvalues and eigenvectors.** $-2$ with $\mathbf{x} = (1, 1)$ and $-4$ with $\mathbf{x} = (1, -1)$.
2. **Split the start.**
   $$(1, 0) = \tfrac{1}{2}(1, 1) + \tfrac{1}{2}(1, -1)$$
3. **Let each piece decay at its own rate.**
   $$\begin{aligned} \mathbf{u}(t) &= \tfrac{1}{2}e^{-2t}(1, 1) \\ &\quad + \tfrac{1}{2}e^{-4t}(1, -1) \end{aligned}$$
4. **Read it.** The difference between the two temperatures dies at rate 4; their average dies more slowly, at rate 2.

**Answer:** $\mathbf{u}(t) = \frac{1}{2}e^{-2t}(1, 1) + \frac{1}{2}e^{-4t}(1, -1)$.
:::
:::

::: example
## Two LC tanks with $k$ = 1 (rad/s)² and coupling $c$ = 0.05: find the mode frequencies and the beat period.

::: solution
1. **Mode frequencies.**
   $$\omega_1 = 1\ \text{rad/s}$$
   $$\begin{aligned} \omega_2 &= \sqrt{1.1} \\ &= 1.0488\ \text{rad/s} \end{aligned}$$
2. **Beat period.**
   $$\begin{aligned} T_\text{beat} &= \frac{2\pi}{0.0488} \\ &= 129\ \text{s} \end{aligned}$$
3. **Energy exchange.** The energy moves fully to tank 2 in half that, about 64 s, and back again.

**Answer:** the modes are at 1 and 1.0488 rad/s, and the beat period is 129 s.
:::
:::

::: example
## A series RLC circuit with $R$ = 3 Ω, $L$ = 1 H and $C$ = 1 F has state $(i, v_C)$ and $\frac{d}{dt}\begin{bmatrix}i\\v_C\end{bmatrix} = \begin{bmatrix}-3 & -1\\1 & 0\end{bmatrix}\begin{bmatrix}i\\v_C\end{bmatrix}$. What are its time constants?

::: solution
1. **Characteristic polynomial.**
   $$\det(A - \lambda I) = \lambda^2 + 3\lambda + 1$$
2. **Eigenvalues.**
   $$\begin{aligned} \lambda &= \frac{-3 \pm \sqrt5}{2} \\ &= -0.382 \text{ and } -2.618 \end{aligned}$$
   Both are real and negative: the circuit is overdamped and doesn't ring.
3. **Time constants.** They are the reciprocals, 2.618 s and 0.382 s.
4. **Which one matters.** The slow mode dominates once the fast one has died out, after a second or so.

**Answer:** the time constants are 2.618 s and 0.382 s.
:::
:::

::: check
given: a = 3 | 5; b = 1 | 2
answer: 1/(a - b)
tolerance: 0.5%

## $\frac{d\mathbf{u}}{dt} = \begin{bmatrix}-\given{a} & \given{b}\\\given{b} & -\given{a}\end{bmatrix}\mathbf{u}$. What is the time constant of its slower mode?

::: right
Right. The eigenvalues are $-a \pm b$; the slower is $-(a - b)$, with time constant $\frac{1}{a - b}$ = {answer}.
:::

::: misses
- [1/(a + b)] That's the faster mode.
- [1/a] The coupling shifts the eigenvalues to $-a \pm b$.
- [any] Not yet. Find the eigenvalues; the slower mode has the one closer to zero.
:::
:::

::: check
given: a = 3 | 4; b = 1 | 2; t = 0.5 | 1
answer: 0.5*(exp(-(a - b)*t) + exp(-(a + b)*t))
tolerance: 0.5%

## For that system with $\mathbf{u}(0) = (1, 0)$, what is $u_1$ at $t$ = {t}?

::: right
Right. $\frac{1}{2}\left(e^{-(a - b)t} + e^{-(a + b)t}\right)$ = {answer}.
:::

::: misses
- [exp(-a*t)] The two modes decay at different rates, $a - b$ and $a + b$.
- [0.5*(exp(-(a - b)*t) - exp(-(a + b)*t))] That's $u_2$.
- [any] Not yet. Split $(1, 0)$ into the two eigenvectors.
:::
:::

::: check
kind: choice

## Which system is stable?

- [x] $\begin{bmatrix}-1 & 2\\-2 & -1\end{bmatrix}$
- [ ] $\begin{bmatrix}1 & 2\\-2 & 1\end{bmatrix}$
- [ ] $\begin{bmatrix}-1 & 3\\3 & -1\end{bmatrix}$
- [ ] $\begin{bmatrix}0 & 1\\-1 & 0\end{bmatrix}$

::: right
Right. Its eigenvalues are $-1 \pm 2j$: a decaying oscillation. Trace $-2 < 0$ and determinant $5 > 0$.
:::

::: misses
- [2] Eigenvalues $1 \pm 2j$: a growing oscillation.
- [3] Its eigenvalues are $-1 \pm 3$, and $+2$ is positive, so one mode grows.
- [4] Eigenvalues $\pm j$: it oscillates forever without decaying, which is not stable in this sense.
- [any] Check the real parts of the eigenvalues.
:::
:::

::: check
given: k = 1 | 4; c = 0.1 | 0.5
answer: sqrt(k + 2*c)
unit: rad/s
tolerance: 0.5%

## Two identical oscillators with stiffness {k} are coupled with $c$ = {c}. What is the frequency of the opposed mode, $(1, -1)$, in rad/s?

::: right
Right. $K(1, -1) = (k + 2c)(1, -1)$, so $\omega = \sqrt{k + 2c}$ = {answer}.
:::

::: misses
- [sqrt(k)] That's the in-step mode.
- [sqrt(k + c)] For the opposed mode the coupling is stretched twice as much: $k + 2c$.
- [any] Not yet. Apply $K$ to $(1, -1)$.
:::
:::

::: check
given: k = 1 | 4; c = 0.02 | 0.1
answer: 2*pi/(sqrt(k + 2*c) - sqrt(k))
unit: s
tolerance: 0.5%

## For those oscillators ($k$ = {k}, $c$ = {c}), what is the beat period?

::: right
Right. $\frac{2\pi}{\omega_2 - \omega_1}$ = {answer}.
:::

::: misses
- [pi/(sqrt(k + 2*c) - sqrt(k))] That's the time for one full transfer to the other tank. The beat period includes the return.
- [any] Not yet. $2\pi$ over the difference of the mode frequencies.
:::
:::

::: check
given: l = -2 | -0.5 | 1; t = 1 | 3
answer: exp(l*t)
tolerance: 0.5%

## $A = \begin{bmatrix}\given{l} & 0\\0 & 5\end{bmatrix}$. What is the top-left entry of $e^{At}$ at $t$ = {t}?

::: right
Right. For a diagonal matrix, $e^{At}$ is diagonal with entries $e^{\lambda t}$: {answer}.
:::

::: misses
- [l*t] Exponentiate.
- [any] Not yet. $e^{\lambda t}$ for the top-left eigenvalue.
:::
:::

::: check
kind: parts
given: R = 2.5 | 3 | 4

## A series RLC circuit with $L$ = 1 H, $C$ = 1 F and $R$ = {R} Ω has $\lambda^2 + R\lambda + 1 = 0$.

::: part
answer: (R - sqrt(R^2 - 4))/2
tolerance: 0.5%

### What is the decay rate of its slow mode?

::: misses
- [R/2] Overdamped: the two modes decay at $\frac{R \mp \sqrt{R^2 - 4}}{2}$.
- [any] Solve the quadratic; the slow mode has the smaller rate.
:::
:::

::: part
answer: (R + sqrt(R^2 - 4))/2
tolerance: 0.5%

### And of its fast mode?

::: misses
- [any] The two rates multiply to 1.
:::
:::
:::

::: check
kind: derivation
vars: k = 0.5..3, c = 0.01..0.5

## Two identical tanks with stiffness $k$ have coupling $c$.

::: step
answer: sqrt(k + 2*c)

### What is the frequency of the opposed mode?
:::

::: step
answer: 2*pi/(sqrt(k + 2*c) - sqrt(k))

### What is the beat period?
:::

::: right
Right. The beat period is $2\pi$ over the difference of the mode frequencies, so weak coupling means slow exchange.
:::
:::

::: explain
## Why do eigenvectors let you solve a coupled system as if it were uncoupled?

::: model
In the eigenvector basis, $A$ becomes the diagonal matrix $\Lambda$: substituting $\mathbf{u} = X\mathbf{y}$ into $\mathbf{u}' = A\mathbf{u}$ gives $\mathbf{y}' = \Lambda\mathbf{y}$, which says each $y_i' = \lambda_iy_i$ on its own. Each coordinate is one mode, decaying or oscillating independently at its own rate. The coupling hasn't gone away; it's built into the eigenvectors, which tell you how to split the starting state into modes and how to add the modes back together.
:::
:::

::: practice

::: check
given: a = 2 | 6; b = 1 | 3
answer: 1/(a + b)
tolerance: 0.5%

## $\frac{d\mathbf{u}}{dt} = \begin{bmatrix}-\given{a} & \given{b}\\\given{b} & -\given{a}\end{bmatrix}\mathbf{u}$. What is the time constant of the faster mode?

::: misses
- [1/(a - b)] That's the slower mode.
- [any] Eigenvalue $-(a + b)$.
:::
:::

::: check
given: tr = -3 | -1 | 2; d = 2 | 5
answer: step(-tr)*step(d)

## A 2 × 2 system matrix has trace {tr} and determinant {d}. Enter 1 if it's stable and 0 if not.

::: misses
- [any] Stable needs trace < 0 and determinant > 0.
:::
:::

::: check
given: k = 2..30 int
answer: sqrt(k)
unit: rad/s
tolerance: 0.5%

## Two identical oscillators with stiffness {k} are weakly coupled. What is the in-step mode's frequency in rad/s?

::: misses
- [k] Take the square root: $\omega^2 = k$.
- [any] In step, the coupling isn't stretched: $\omega = \sqrt{k}$.
:::
:::
:::
