7.7 Applications to springs, circuits, epidemics and qubits
Four real systems run on the machinery of Unit 7. Coupled masses split into independent oscillators along the eigenvectors of a symmetric matrix. An RLC circuit is a damped oscillator, so the same equation, the same roots and the same resonance. The SIR epidemic has a threshold R0 that is the sign of one eigenvalue at the disease-free equilibrium. The state of a two-level quantum system evolves by the matrix exponential of -iH/hbar.
Taught in 375/376Beyond the courseKermack and McKendrick, Proceedings of the Royal Society A 115 (1927), 700 to 721Murray, Mathematical Biology I, chapter 10 (epidemic models)Feynman, Leighton and Sands, Lectures on Physics III, chapters 8 to 11 (the Hamiltonian matrix and two-state systems)MATH 376 homework 9 #2 (the circuit equation q'' + 5q' + 4q = 10 sin 2t) and final 6(b) (resonance)
Unit 7 produced tools: solve y′′+by′+cy=R (7.2, 7.3), solve x′=Ax by the matrix exponential (7.4), and read stability off eigenvalues or off the Jacobian (7.6). This chapter points them at four real systems, each with numbers. The pattern is the same every time. A law of nature (Newton, Kirchhoff, “infections need a meeting between an infected and a susceptible person”, Schrödinger) gives a system of differential equations. The system is linear, or becomes linear near an equilibrium. And then the eigenvalues carry the meaning: imaginary parts are frequencies, real parts are decay and growth rates, and the sign of one eigenvalue can be the difference between an epidemic and none.
Before you start
You need the spectral theorem for symmetric matrices from 3.1, the roots of the characteristic polynomial from 7.2, the 2×2 matrix exponential from 7.4, and the language of equilibria and stability from 7.6. Three quick checks:
Quick checkFor a real symmetric matrix, eigenvectors that belong to different eigenvalues are
The characteristic polynomial r2+2r+5 has roots −1±2i, so the solutions are e−t(c1cos2t+c2sin2t): real part −1 gives the decay, imaginary part 2 the oscillation.Review: real solutions from complex roots
Quick checkIf A2=−ω2I for a 2×2 matrix A and a number ω>0, what is etA?
Even powers of tA are (−ω2)kt2kI and odd powers are (−ω2)kt2k+1A. The series split into the series of cosine and sine, as for the rotation matrix. This is the 2×2 formula of 7.4.Review: the exponential of a 2 by 2 matrix
The picture
Two identical masses hang between walls and are joined to each other by a weaker spring. Press Play to watch the time slider run. Start with Push mass 1 only: the first mass swings, slows down as the second one picks up, and after about five seconds the first mass is almost still while the second swings wide; then the energy flows back. Now choose Mode 1 or Mode 2. Each of these starts both masses in a special pattern, and then both masses oscillate at a single frequency for ever, without any exchange of energy. These special patterns are the normal modes, and every motion is a sum of them.
Where this came from· Kermack and McKendrick, Rabi and Schrödinger
In 1926 Schrödinger published his wave equation in a series of four papers titled Quantisierung als Eigenwertproblem in the Annalen der Physik: quantisation as an eigenvalue problem, the energies being eigenvalues of an operator. In 1927 W. O. Kermack and A. G. McKendrick published “A contribution to the mathematical theory of epidemics” in the Proceedings of the Royal Society A (volume 115, pages 700 to 721). Their paper established a threshold: for given rates of infection and recovery, a single infected person introduced into a population starts an epidemic only if the density of susceptible people is above a critical value. In 1937 Isidor Rabi published “Space quantization in a gyrating magnetic field” in Physical Review (volume 51, page 652), computing how a spin responds to a rotating magnetic field. That calculation became the theoretical basis for magnetic resonance, from nuclear magnetic resonance to the MRI scanner.
The idea, in words
Why· Find the eigen-directions, and each part of the problem becomes a single number
All four systems are, after a change of variables, copies of the scalar equations you know. Coupled masses: the symmetric matrix has an orthonormal basis of eigenvectors, and in that basis the system falls apart into independent oscillators c′′=−ω2c. The circuit: a single oscillator with damping, so a complex pair of roots, the same equation as a mass on a spring. The epidemic: a nonlinear system, linearized at the state where nobody is infected, where one eigenvalue is γ(R0−1) and its sign is the threshold. The qubit: a matrix exponential whose matrix has imaginary eigenvalues, so the state rotates and never decays. In every case the question ‘what does the system do?’ becomes ‘what are the eigenvalues, and what do they mean?’
Definitions and theorems
Coupled springs and normal modes
Take n masses on a line, each joined by springs to its neighbours or to the walls. Let xi be the displacement of mass i from its resting place. Hooke’s law says a spring pulls with force k×(extension), and Newton’s law says mxi′′ is the total force. For two masses m between walls, with a spring k from each wall and a coupling spring kc between them,
The matrix M is symmetric. It is also positive definite: the stored energy 21kx12+21kc(x2−x1)2+21kx22 is positive for every x=0, and this energy is 2mxTMx (3.2). The same shape x′′=−Mx appears for any number of masses with equal masses m.
Definition B
Normal mode
A normal mode of x′′=−Mx is a solution of the form x(t)=cos(ωt−ϕ)v with a fixed non-zero vector v (the mode shape) and numbers ω>0 (the natural frequency) and ϕ. Substituting, −ω2cos(ωt−ϕ)v=−cos(ωt−ϕ)Mv, so Mv=ω2v: the mode shapes are the eigenvectors of M and the natural frequencies are the square roots of its eigenvalues. For M positive definite all eigenvalues are positive, so all frequencies are real.
In one lineA solution of x′′=−Mx in which every coordinate oscillates at the same frequency in a fixed pattern: x(t)=cos(ωt−ϕ)v. Then v is an eigenvector of M and ω2 its eigenvalue.
Why it existsComplicated motion of many coupled parts is a sum of independent simple motions, one for each eigenvector. The frequencies of a structure, a molecule or an instrument are the square roots of the eigenvalues.
Theorem Bstandard; spectral theorem (3.1) with the solutions of 7.2
Normal-mode decomposition
Let M be a real symmetric positive definite n×n matrix with an orthonormal basis of eigenvectors vj, Mvj=ωj2vj, ωj>0. Then the unique solution of x′′=−Mx with given x(0) and x′(0) is
Each term is a normal mode, and the energy 21∥x′∥2+21xTMx is the sum of the energies of the modes, each constant in time.
In one lineIf M is symmetric positive definite with orthonormal eigenvectors v1,…,vn and eigenvalues ωj2, then every solution of x′′=−Mx is x(t)=∑j(ajcosωjt+bjsinωjt)vj with aj=vj⋅x(0) and bj=vj⋅x′(0)/ωj.
Why it is trueIn the basis v1,…,vn the coordinates cj=vj⋅x satisfy cj′′=−ωj2cj, because M is symmetric. Each is an ordinary oscillator.
Proofstandard
The idea: Expand x in the eigenvector basis. Use symmetry of M to move M across the dot product, and the coordinates decouple into n copies of the scalar oscillator of 7.2.
Write x(t)=∑jcj(t)vj with cj(t)=vj⋅x(t).
The spectral theorem (3.1) gives an orthonormal eigenbasis, and coordinates in an orthonormal basis are dot products (2.9).
cj′′=−vj⋅Mx.
Differentiate twice: cj′′=vj⋅x′′, since vj is constant. Substitute x′′=−Mx.
cj′′=−(Mvj)⋅x=−ωj2vj⋅x=−ωj2cj.
M is symmetric, so vj⋅Mx=(Mvj)⋅x. And Mvj=ωj2vj.
So cj(t)=ajcosωjt+bjsinωjt.
The equation c′′+ω2c=0 has characteristic roots ±iω, so its solutions are acosωt+bsinωt (7.2). Here a=cj(0)=vj⋅x(0) and bω=cj′(0)=vj⋅x′(0).
Hence the formula for x(t).
Uniqueness of the solution of the initial value problem for the linear system (7.1): the formula is a solution with the right initial data, so it is the solution.
The total energy is a sum of constants, one per mode.
The energy: ∥x′∥2=∑cj′2 and xTMx=∑ωj2cj2 (orthonormal basis). Each 21cj′2+21ωj2cj2=21ωj2(aj2+bj2) is constant. ■
Proof workshopRebuild: coupled oscillators split into normal modesstandard
Tap the lines in the order a proof would write them. Each line can only use what is already above it.
The spectral theorem gives the basis, and in an orthonormal basis the coordinates are dot products.
vj is a constant vector, and x′′=−Mx.
You first need the coordinates cj to differentiate.
M is symmetric, and vj is an eigenvector with eigenvalue ωj2.
This simplifies the expression for cj′′ found in the line before.
The characteristic roots are ±iωj.
The equation cj′′=−ωj2cj must be on the page first.
It satisfies the equation and the initial data.
You can reassemble only after every cj is known.
Worked example new numbers; compare 7.2 (y'' + ω²y = 0)
Two masses m = 0.5 kg, springs k = 20 N/m to the walls and kc = 2 N/m between them. Find the normal modes, then solve the motion when mass 1 is pulled 1 cm and released.
Solution.
Write M.M=0.51[22−2−222]=[44−4−444] (in s−2). k+kc=22, divide by m=0.5.
Eigenvalues and eigenvectors.M[11]=[4040] and M[1−1]=[48−48]. So ω12=40, mode shape (1,1); ω22=48, mode shape (1,−1). Trace is 88=40+48 and determinant 442−16=1920=40⋅48.
Frequencies.ω1=40=6.3246 rad/s (1.007 Hz) and ω2=48=6.9282 rad/s (1.103 Hz). In mode 1 the masses move in step and the coupling spring is never stretched, so the frequency is the single-mass value k/m=6.3246. In mode 2 they move in opposition and the coupling spring is stretched twice as much, giving (k+2kc)/m.
Starting data.x(0)=(0.01,0) m, x′(0)=0. The orthonormal modes are 21(1,1) and 21(1,−1), so a1=a2=20.01, b1=b2=0. aj=vj⋅x(0) and the masses start at rest.
The motion.x1=20.01(cosω1t+cosω2t) and x2=20.01(cosω1t−cosω2t). x=a1cosω1t⋅v1+a2cosω2t⋅v2 with v1,2=21(1,±1).
Recognise beats. With ωˉ=2ω1+ω2=6.6264 and Ω=2ω2−ω1=0.3018, the sum-to-product identities give x1=0.01cos(ωˉt)cos(Ωt) and x2=0.01sin(ωˉt)sin(Ωt). cosA+cosB=2cos2A+Bcos2A−B and cosA−cosB=−2sin2A+Bsin2A−B (note the sign: x2 with sinωˉtsinΩt).
Read off the energy transfer. Mass 1 oscillates at about 6.63 rad/s with an envelope cos(0.3018t); mass 2 with the envelope sin(0.3018t). The envelope of mass 1 first vanishes when 0.3018t=2π, that is t=5.20 s: all the energy has moved to mass 2. The whole cycle takes ω2−ω12π=10.4 s. Neither frequency in the beating motion is a natural frequency of the system. The beat comes from the two natural frequencies being close, which happens when the coupling kc is weak.
Answer. Normal modes (1,1) at 6.3246 rad/s and (1,−1) at 6.9282 rad/s; pulling one mass gives beats that transfer all the energy to the other mass every 5.20 s.
Your answerIn the example above, after how many seconds has all the energy first passed from mass 1 to mass 2? (The time is π/(ω2−ω1) with ω1=40, ω2=48.)
The envelope cos(Ωt) first vanishes at Ωt=2π, with Ω=2ω2−ω1.
ω2−ω1=6.9282−6.3246=0.6036, and 0.6036π=5.204 s. The factor π (not 2π) because the envelope cos(Ωt) has Ω=2ω2−ω1.
Quick checkYou push only the first of two identical, weakly coupled oscillators and let go. What happens?
Pushing one mass is a sum of the in-step mode and the opposition mode with equal amplitudes. They have slightly different frequencies, so they drift in and out of phase, and the beat shows as energy sloshing from one mass to the other.
Worked example standard; new numbers
Three identical masses in a row between two walls (all springs k, all masses m). Find the normal modes and their frequencies.
Solution.
The matrix.M=mk2−10−12−10−12. Mass i feels −k(xi−xi−1)−k(xi−xi+1): 2 on the diagonal, −1 for each neighbour; the walls hold x0=x4=0.
Test the vector (1,0,−1).M(1,0,−1)T=mk(2,0,−2)T=2mk(1,0,−1)T. Eigenvalue 2k/m. Row 2 is −1⋅1+2⋅0−1⋅(−1)=0.
Test (1,±2,1).M(1,s,1)T=mk(2−s,−2+2s,2−s)T, and this equals λ(1,s,1) when λ=(2−s)mk and λs=(2s−2)mk, that is s(2−s)=2s−2, so s2=2. Hence s=±2 with eigenvalues (2∓2)mk. Require the same λ from rows 1 and 2.
Frequencies.ω2=(2−2)mk, 2mk, (2+2)mk. With k=20 N/m and m=0.5 kg (k/m=40): ω=4.841,8.944,11.686 rad/s. 40×0.5858=4.841, 80=8.944, 40×3.4142=11.686.
Pattern. In the lowest mode all three move in step, the middle mass most. In the middle mode the middle mass stays still while the outer two oppose. In the highest mode neighbours always oppose. The number of sign changes in the pattern is 0,1,2: higher frequency, more nodes. This is the picture of the harmonics of a string, with the masses as sample points.
The general formula. For N masses the frequencies are ωj=2k/msin2(N+1)jπ, j=1,…,N, with mode shapes (sinN+1jiπ)i=1N. For N=3 these are 240sin8π=4.841, … as above. Problem S2 proves this by one trigonometric identity. As N→∞ the highest frequency approaches 2k/m and the lowest tends to 0 like N+11: the continuous string.
Python labNormal-mode frequencies of a chain from the eigenvalues
import numpy as npdef chain_matrix(n, k=20.0, m=0.5): # n equal masses m joined by equal springs k, with a spring to a wall at each end M = np.zeros((n, n)) for a in range(n): M[a, a] = 2 * k / m if a > 0: M[a, a - 1] = -k / m if a < n - 1: M[a, a + 1] = -k / m return Mk, m = 20.0, 0.5print(" n lowest w highest w (n+1)*lowest largest gap to the formula")for n in [1, 2, 3, 5, 10, 50, 200]: w = np.sqrt(np.linalg.eigvalsh(chain_matrix(n, k, m))) formula = 2 * np.sqrt(k / m) * np.sin(np.arange(1, n + 1) * np.pi / (2 * (n + 1))) print(f"{n:4d} {w[0]:9.4f} {w[-1]:10.4f} {(n + 1) * w[0]:11.4f} {np.max(np.abs(w - formula)):.1e}")print("2*sqrt(k/m) =", 2 * np.sqrt(k / m), " pi*sqrt(k/m) =", np.pi * np.sqrt(k / m))
Try this.Run it. The numbers in the last column are all below 10−13: the eigenvalues of the matrix agree with the formula 2k/msin2(N+1)jπ for every N. The highest frequency creeps up to 2k/m=12.649 and cannot pass it: a chain of masses cannot vibrate faster than that, whatever its length (the cut-off frequency of a lattice). The lowest frequency times N+1 tends to πk/m=19.869, which says the lowest frequency is about 19.87/(N+1): a longer chain is softer. Change k or m and check the formula still holds, then change the line M[a, a] = 2 * k / m into M[a, a] = 3 * k / m (an extra spring from every mass to the ground) and watch the lowest frequency stop going to zero.
RLC circuits
A series circuit is a loop containing a resistor, an inductor, a capacitor and a voltage source. Kirchhoff’s voltage law says the source voltage equals the sum of the voltage drops around the loop. A resistor of R ohms drops RI when the current is I. An inductor of L henries drops LI′: a changing current induces an opposing voltage. A capacitor of C farads holding charge q drops q/C. The current is the rate of flow of charge, I=q′.
Definition B
RLC circuit
The RLC circuit in series has the charge equation
Lq′′+Rq′+C1q=E(t),I=q′.
It is the oscillator equation mx′′+cx′+kx=F(t) with the dictionary
circuit
spring
charge q
displacement x
current I=q′
velocity x′
inductance L
mass m
resistance R
damping constant c
1/C
spring constant k
source voltage E(t)
force F(t)
The inductor stores energy 21LI2 (kinetic energy), the capacitor 2Cq2 (potential energy), and the resistor turns energy into heat (friction).
In one lineA loop with a resistor R, an inductor L, a capacitor C and a source E(t). The charge q on the capacitor satisfies Lq′′+Rq′+Cq=E(t).
Why it existsIt is exactly the equation of a mass on a spring with friction and a driving force, so everything proved about oscillators in Unit 7 applies: damping, resonance, stability.
Write α=2LR (the decay rate) and ω0=LC1 (the natural frequency without damping). The characteristic polynomial Lr2+Rr+C1 has roots r=−α±α2−ω02, so by 7.2 the free motion is underdamped (decaying oscillation e−αtcosωdt with ωd=ω02−α2) when R<2L/C, critically damped when R=2L/C, and overdamped (two decaying exponentials) when R>2L/C. In the language of 7.6: with x=(q,I) the system is x′=[0−LC11−LR]x+[0E/L] with trace −LR<0 and determinant LC1>0, so the origin is always asymptotically stable: a stable spiral when underdamped and a stable node when overdamped.
Fact Bstandard; Lyapunov function from 7.6
A passive circuit loses energy
Along a solution of Lq′′+Rq′+q/C=E(t) with I=q′, W˙=IE(t)−RI2. Without a source, W is a strict Lyapunov function away from I=0, and the circuit runs down.
In one lineWith no source, the stored energy W=21LI2+2Cq2 satisfies W˙=−RI2≤0. With a source, W˙=IE−RI2.
Why it is trueThe power the source delivers is IE and the power dissipated in the resistor is RI2; the rest is stored. As a function of the state it is a Lyapunov function.
Proofstandard
The idea: Differentiate W, replace LI' by the circuit equation.
W˙=I(LI′+Cq).
Chain rule: W˙=LII′+Cqq′, and q′=I.
W˙=I(E−RI)=IE−RI2.
The circuit equation says LI′+RI+Cq=E, so LI′+Cq=E−RI. ■
The forced circuit is what makes a radio work. Let the source be E(t)=E0cosωt (a pure tone). Then the equation is linear with constant coefficients and a sinusoidal right-hand side, and 7.3 solves it by undetermined coefficients. The result is best written with complex numbers.
Theorem T7.3 (undetermined coefficients, as in MATH 376 homework 9 #2); the complex impedance form was not in the course
Steady-state response of the driven RLC circuit
Let L,R,C>0 and ω>0. The current in Lq′′+Rq′+q/C=E0cosωt has the form I(t)=Itr(t)+Iss(t), where Itr(t)→0 exponentially and Iss(t)=Re(ZE0eiωt)=∣Z∣E0cos(ωt−φ) with tanφ=RωL−1/(ωC) and ∣Z∣=R2+(ωL−ωC1)2.
In one lineFor E(t)=E0cosωt, every solution is a decaying transient plus the steady state Iss(t)=∣Z∣E0cos(ωt−φ), where Z=R+i(ωL−ωC1) is the impedance.
Why it is trueTry a complex exponential I^eiωt in the equation for the current. Each derivative multiplies by iω, so the equation becomes one complex equation ZI^=E0. The transient dies out because the characteristic roots have negative real part.
Proof7.3; standard
The idea: Differentiate the equation to get one for the current, try a complex exponential, solve for its amplitude, and use that the homogeneous solutions decay.
LI′′+RI′+CI=E′(t)=−E0ωsinωt=Re(iωE0eiωt).
Differentiate Lq′′+Rq′+q/C=E once and use I=q′.
(L(iω)2+R(iω)+C1)I^=iωE0.
Solve the complex equation LI′′+RI′+I/C=iωE0eiωt and take the real part (the coefficients are real, so the real part of a solution solves the real equation). Try I=I^eiωt; each derivative multiplies by iω (7.2). This is possible because iω is not a characteristic root (the roots have negative real part).
(R+iωL−ωCi)I^=E0, that is ZI^=E0 with Z=R+i(ωL−ωC1).
Divide both sides by iω: iωL(iω)2=iωL and Ciω1=−ωCi.
So Iss(t)=∣Z∣E0cos(ωt−φ) is a solution.
Polar form of Z=∣Z∣eiφ (0.6): I^=∣Z∣E0e−iφ, and the real part of I^eiωt is ∣Z∣E0cos(ωt−φ).
The pair (qss,Iss) solves the circuit equation.
We solved the differentiated equation, so we still owe a charge. Define qss=C(E−LIss′−RIss). Then qss satisfies the circuit equation by construction, and qss′=C(E′−LIss′′−RIss′)=Iss because Iss solves the differentiated equation. So Iss really is the current of a solution.
The difference tends to 0: that is the transient.
Any other solution differs from it by a solution of the homogeneous equation (7.2), which is a combination of er1t, er2t (or e−αtcosωdt etc.) with Rerj=−α or smaller, negative. ■
The current amplitude ∣Z∣E0 is largest when the reactance ωL−ωC1 vanishes, that is at ω=ω0=LC1. There ∣Z∣=R and the amplitude is RE0: resonance. How sharp the peak is depends on R.
Definition B
Quality factor
The quality factor of the series RLC circuit is Q=Rω0L. The current amplitude falls to 21 of its peak (half the power) at the two frequencies ω with ∣ωL−ωC1∣=R, and the distance between them is exactly Δω=LR. Hence ω0Δω=Q1. A free oscillation has its amplitude multiplied by e−1 in the time α1=R2L, during which the circuit completes about πQ oscillations.
In one lineQ=Rω0L=R1CL for a series RLC circuit: the ratio of the resonant frequency to the width of the resonance peak.
Why it existsIt measures how many oscillations the circuit makes before the energy dies out, and how selective a tuned circuit is.
Worked example MATH 376 homework 9 #2; 7.3
Homework 9 #2 of MATH 376 as a circuit: q″ + 5q′ + 4q = 10 sin 2t. Identify L, R, C and E, classify the damping, find the steady state, and explain the amplitude with the impedance.
Solution.
Read the circuit.L=1 H, R=5Ω, C1=4 so C=0.25 F, and E(t)=10sin2t V. Compare with Lq′′+Rq′+q/C=E. (These numbers are far from those of a pocket radio, and the mathematics is the same.)
Classify the damping.2L/C=24=4<R=5: overdamped. The roots of r2+5r+4=(r+1)(r+4) are −1 and −4. Two real negative roots: stable node in the phase plane.
The steady state, from 7.3.qp=−cos2t, so the whole solution is q=C1e−t+C2e−4t−cos2t. The two exponentials are the transient and die out.
The steady-state current.Iss=qp′=2sin2t, amplitude 2 A. Differentiate the charge.
Check with the impedance.ω=2: ωL=2 and ωC1=24=2. The reactance is 2−2=0, so ∣Z∣=R=5 and the amplitude is RE0=510=2. The circuit is driven exactly at its natural frequency ω0=LC1=2: resonance, current in phase with the source (φ=0). The two methods agree.
Answer.q(t)=C1e−t+C2e−4t−cos2t; steady-state current 2sin2t, at resonance with amplitude E0/R.
Worked example the amplitude formula above
An AM radio tuner: L = 200 μH, R = 10 Ω, tuned to 1000 kHz. Find C, the quality factor, the bandwidth, and how well a station 10 kHz away is rejected.
Solution.
Find C.ω0=2π×106 rad/s, and ω02=LC1 gives C=ω02L1=(2π×106)2×2×10−41=126.65 pF. Solve ω0=1/LC for C.
Quality factor.Q=Rω0L=102π×106×2×10−4=125.7. The definition.
Bandwidth.Δf=Qf0=2πLR=7.96 kHz. The half-power frequencies are 996.03 kHz and 1003.99 kHz. Δω=R/L exactly; divide by 2π to get hertz.
The decay time.α=2LR=25000s−1, so a free oscillation dies by the factor e−1 in α1=40μs, which is 40 cycles of 1 MHz. Underdamped, since Q≫21; ωd=ω02−α2 is within 10−5 of ω0.
A station 10 kHz away. At f=1.01 MHz: ωL=1269.2Ω and ωC1=1244.2Ω, so the reactance is 25.0Ω and ∣Z∣=102+25.02=26.9Ω. The current is 26.910=0.37 of what the same source would produce at resonance (about −8.6 dB). The formula for ∣Z∣ at a detuned frequency.
Answer.C=126.7 pF, Q=125.7, bandwidth 7.96 kHz, a neighbouring channel is cut to 37% by this one stage. A radio uses several such stages.
Your answerFor the tuner above (L=200μH, R=10Ω, f0=1 MHz), what is the quality factor Q=ω0L/R? (Two decimals.)
Compute ω0=2πf0, multiply by L in henries (200μH=0.0002 H), and divide by R.
ω0=2π×106=6.2832×106 rad/s, so ω0L=6.2832×106×2×10−4=1256.6Ω and Q=101256.6=125.66.
Your answerIn the tuner, at 1.01 MHz the impedance is 26.9Ω while at resonance it is 10Ω. What fraction of the resonant current flows at 1.01 MHz? (Two decimals.)
The ratio of the amplitudes is the ratio of the impedances, inverted.
The current amplitude is ∣Z∣E0, so the ratio is 26.910=0.372.
Quick checkAn RLC circuit has L=0.1 H, C=100μF and R=20Ω. Is it underdamped or overdamped?
2L/C=20.1/10−4=21000=63.2Ω. Since 20<63.2 the roots are complex: −α±iωd with α=2LR=100 and ωd=316.22−1002=300 rad/s. The damped frequency is lower than ω0=316.2.
The SIR epidemic
Divide a population into three groups: Susceptible (can catch the disease), Infected (and infectious), Recovered (immune, or removed). Let s, i and r be their fractions of the population, so s+i+r=1.
Definition B
SIR model
The SIR model of Kermack and McKendrick is
s′=−βsi,i′=βsi−γi,r′=γi,
with constants β>0 (the infection rate: new infections per infected person per unit time in a fully susceptible population) and γ>0 (the recovery rate: 1/γ is the mean time a person stays infectious). The sum s+i+r is constant, because the three right-hand sides add to 0, so the model is really the planar system for (s,i).
In one lineThe system s′=−βsi, i′=βsi−γi, r′=γi for the fractions of susceptible, infected and recovered people.
Why it existsIt is the simplest model of an epidemic that keeps track of who can still be infected. Infection needs a meeting between an infected and a susceptible person (the product si), recovery takes a fixed fraction of the infected per unit time.
Definition B
Basic reproduction number
The basic reproduction number is R0=γβ.
In one lineR0=β/γ: the average number of people infected by one infected person during the whole infectious period, when everyone else is susceptible.
Why it existsOne infected person infects β people per unit time, for a time 1/γ on average. The product is the number of 'children' of an infection, and whether it is above or below 1 decides whether the infection grows.
Definition B
Disease-free equilibrium
A disease-free equilibrium of the SIR model is a point (s∗,i∗)=(s∗,0) with 0≤s∗≤1. Each is an equilibrium, since s′=−βs⋅0=0 and i′=(βs−γ)⋅0=0. (There are no others: i′=0 needs i=0 or s=1/R0, and s′=0 then forces i=0.)
In one lineA state with no infected people, i=0. In the SIR model every (s∗,0) is an equilibrium, so these form a whole line.
Why it existsIt is the state the epidemic starts from and ends in. The question is whether it is stable: does a few infected people grow into an epidemic?
Theorem BKermack and McKendrick 1927; linearization (7.6)
The epidemic threshold
For the SIR system in (s,i) the Jacobian at (s∗,0) is [00−βs∗βs∗−γ] with eigenvalues 0 and λ=βs∗−γ=γ(R0s∗−1). If s∗>1/R0 then λ>0 and a small infection grows like eλt; if s∗<1/R0 it decays. In a fully susceptible population (s∗=1) there is an epidemic exactly when R0>1.
In one lineAt the disease-free equilibrium (s∗,0) the Jacobian of the (s,i) system has eigenvalues 0 and γ(R0s∗−1). A few infected people grow exponentially if R0s∗>1 and die out if R0s∗<1.
Why it is trueThe eigenvalue 0 is the line of equilibria itself. The other eigenvalue is the growth rate of the infection: with s≈s∗ the equation i′=(βs−γ)i is a linear equation with growth rate βs∗−γ.
Proof7.6
The idea: Differentiate the two right-hand sides to get the Jacobian. At i = 0 it is triangular, so the eigenvalues are the diagonal entries.
DF=[−βiβi−βsβs−γ].
Rows are the gradients of −βsi and βsi−γi (5.3): ∂s∂(−βsi)=−βi, ∂i∂(−βsi)=−βs, and so on.
DF(s∗,0)=[00−βs∗βs∗−γ].
Substitute i=0, s=s∗. The first column becomes 0.
The eigenvalues are 0 and βs∗−γ=γ(R0s∗−1), because β=γR0.
The matrix is upper triangular: the eigenvalues are the diagonal entries (2.8). The eigenvector for 0 is (1,0), pointing along the line of equilibria.
If the second eigenvalue is positive the infection grows; if negative it decays.
Near the equilibrium i′=(βs−γ)i and s≈s∗ varies slowly while i is small (s′=−βsi is of the size of i). So i grows like e(βs∗−γ)t if the exponent is positive. The equilibrium is not hyperbolic (the eigenvalue 0 is forced by the line of equilibria), so this conclusion is about the transverse direction. ■
For R0=3 and γ=0.2 per day (infectious for five days on average, β=0.6 per day) the early growth rate is γ(R0−1)=0.4 per day, and the number of cases doubles every 0.4ln2=1.73 days. A fraction p of immunity at the start gives s∗=1−p, so the infection dies out as soon as R0(1−p)<1, that is p>1−R01: the herd immunity threshold. For R0=3 it is 32.
Worked example Kermack and McKendrick 1927; new numbers
An infection has β = 0.35 per day and γ = 0.1 per day. Find R0 and the herd immunity threshold. Does an epidemic start if 50% of the population is immune, and if 80% is? Give the growth rate or the decay rate in each case.
Solution.
Compute R0.R0=γβ=0.10.35=3.5. Definition of the basic reproduction number. One infected person infects 0.35 people per day for an average of 10 days.
Herd immunity threshold.1−R01=1−3.51=0.714, that is 71.4%. The infection dies out as soon as R0(1−p)<1.
Fifty percent immune. Then s∗=0.5 and R0s∗=1.75>1. The growth eigenvalue is γ(R0s∗−1)=0.1×0.75=0.075 per day, so the number of cases doubles every 0.075ln2=9.2 days. The second eigenvalue of the Jacobian at (s∗,0) is positive: a small infection grows.
Eighty percent immune. Then s∗=0.2 and R0s∗=0.7<1. The eigenvalue is 0.1×(0.7−1)=−0.03 per day, so a small infection shrinks by the factor e−0.03t, halving every 0.03ln2=23 days. The eigenvalue is negative, and 80% is above the threshold of 71.4%, as it must be.
Answer.R0=3.5; threshold 71.4%; at 50% immune the infection grows at 0.075 per day (doubling in 9.2 days); at 80% immune it decays at 0.03 per day.
The linearization says how the epidemic starts. The second theorem says how it develops and ends, by a conserved quantity.
Theorem BKermack and McKendrick 1927; Murray 10
Peak and final size of an epidemic
Let s0,i0>0 be the starting values. (a) K˙=0 for K=i+s−R01lns. (b) If R0s0>1 the fraction infected rises to a maximum at the moment s=R01 and equals imax=i0+s0−R01+ln(R0s0). (c) As t→∞, i→0 and s→s∞>0, the root in (0,R01) of lnss0=R0(s0+i0−s). In particular the epidemic ends before everyone has been infected.
In one lineAlong every solution of the SIR system, i+s−R01lns is constant. Hence the infection peaks when s=1/R0 at imax=i0+s0−R01+ln(R0s0), and the epidemic ends with i→0 and s→s∞ where lns∞s0=R0(s0+i0−s∞).
Why it is trueDividing the two equations removes time: dsdi=−1+R0s1, which integrates at once. The conserved quantity ties the start of the epidemic to its end and its peak.
ProofKermack and McKendrick 1927
The idea: Differentiate K along solutions and watch the terms cancel. Evaluate K at the peak and at the end.
K˙=−γi+γi=0.
Chain rule: K˙=i′+s′−R0ss′. Insert i′+s′=−γi (add the first two equations) and R0ss′=R0s−βsi=−γi, because R0β=γ.
The maximum of i is where s=R01.
i′=i(βs−γ), which is zero when s=γ/β=1/R0 (and i>0). Since s decreases, i increases while s>1/R0 and decreases afterwards.
Use K(s=1/R0,imax)=K(s0,i0): imax+R01−R01lnR01=i0+s0−R01lns0. Solve for imax.
At the end, lns∞s0=R0(s0+i0−s∞).
s is decreasing and bounded below by 0, so it has a limit s∞. Since r′=γi and r≤1, the integral ∫0∞idt=(r(∞)−r(0))/γ is finite. A non-negative function with finite integral and a bounded derivative (∣i′∣≤(β+γ)) tends to 0, so i→0. Then K(s∞,0)=K(s0,i0) gives s∞−R01lns∞=i0+s0−R01lns0.
Hence 0<s∞<R01: some people are never infected, and the epidemic overshoots the herd immunity level.
If s∞ were 0, then −R01lns→+∞ while i,s≥0, so K→+∞, but K is constant. And s∞≤R01: if s∞>R01, then i′=i(βs−γ)>0 for large t, so i would increase, contradicting i→0 with i>0. Equality s∞=R01 is also impossible: the function s−R01lns has its minimum value R01+lnR0 exactly at s=R01, while K(s0,i0) is larger than that minimum because i0>0 (and K(s∞,0) must equal K(s0,i0)). ■
Proof workshopRebuild: the SIR quantity K is conservedKermack and McKendrick 1927
Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.
K˙=i′+s′−R0ss′.
i′+s′=−γi.
R0ss′=R0s−βsi=−R0βi=−γi.
K˙=−γi−(−γi)=0.
Worked example Kermack and McKendrick 1927; new numbers
The SIR epidemic with R0 = 3: peak, final size and timing, then a table for other R0.
Solution. Take γ=0.2 per day, β=0.6 per day, so R0=3. Start with i0=0.001 (one in a thousand infected) and s0=0.999.
Does an epidemic start?R0s0=3×0.999=2.997>1, eigenvalue γ(R0s0−1)=0.2×1.997=0.399 per day. Positive, so the infection grows at about 0.4 per day, doubling in 1.7 days.
The peak.imax=0.001+0.999−31+ln(2.997)=1−31+1.0976=0.3008. It occurs when s=31. Peak formula; at the peak a third of the population is still susceptible.
The final size. Solve lns∞0.999=3(1−s∞). By iteration of s↦0.999e−3(1−s) starting from 0.5: 0.5→0.223→0.097→0.067→0.061→⋯, settling at s∞=0.0594. Fixed-point iteration for the root; it converges because the derivative 3s∞=0.18 is below 1.
Interpret.94.1% of the population is infected at some point, and only 5.9% escapes. The herd immunity threshold is 32 but the epidemic overshoots: it ends at s∞=0.059, well below 31. After the peak the infection still has many infectives, who keep infecting until i has fallen to 0.
Timing. The numerical solution (lab below) puts the peak at 3.84/γ=19.2 days after the start, from 0.1% infected. Time is measured in units of 1/γ=5 days.
R0
herd immunity 1−1/R0
peak fraction infected
final fraction ever infected
0.8
none (no epidemic)
0.001 (the start)
0.5%
1.5
33%
6.4%
58.4%
2
50%
15.4%
79.7%
3
67%
30.1%
94.1%
15
93%
75.3%
≈100%
Answer. Peak 30.1% infected at 19 days, final 94.1% ever infected, for R0=3.
Your answerFor the SIR model with R0=3 started from a fully susceptible population (s0≈1, i0≈0), what is the largest fraction of the population infected at one time? (Three decimals.)
Use imax=1−R01+lnR0.
imax=1−R01+lnR0=1−31+1.0986=0.3005. With i0=0.001, s0=0.999 the figure is 0.3008.
Your answerMeasles has R0 of about 15. What fraction of the population must be immune to stop an epidemic? (A fraction.)
Use 1−1/R0.
The herd immunity threshold is 1−R01=1−151=1514=93.3%. For R0 between 12 and 18 it is between 91.7% and 94.4%.
Quick checkAn SIR epidemic has R0=2. A vaccination campaign immunises 40% of the population before the disease arrives. Will an epidemic start?
The growth eigenvalue is γ(R0s∗−1) with s∗=1−0.4=0.6, and 2×0.6=1.2>1, so the infection still grows (slowly). The herd immunity threshold is 1−21=50%, which this campaign does not reach.
Python labSimulating the SIR epidemic and checking the formulas
import numpy as npI0 = 0.001 # fraction infected at the startdef sir(R0, gamma=1.0, T=60.0, h=0.01): # fractions s (susceptible) and i (infected); recovered r = 1 - s - i. Time is measured in units of 1/gamma. beta = R0 * gamma f = lambda s, i: (-beta * s * i, beta * s * i - gamma * i) s, i, t = 1.0 - I0, I0, 0.0 peak, t_peak = i, 0.0 for _ in range(int(T / h)): k1 = f(s, i) k2 = f(s + h/2*k1[0], i + h/2*k1[1]) k3 = f(s + h/2*k2[0], i + h/2*k2[1]) k4 = f(s + h*k3[0], i + h*k3[1]) s += h/6*(k1[0] + 2*k2[0] + 2*k3[0] + k4[0]) i += h/6*(k1[1] + 2*k2[1] + 2*k3[1] + k4[1]) t += h if i > peak: peak, t_peak = i, t return s, peak, t_peakdef final_size(R0): # solve ln(s0 / s) = R0 (s0 + i0 - s) = R0 (1 - s) by the iteration s = s0 exp(-R0 (1 - s)) s = 0.5 for _ in range(500): s = (1 - I0) * np.exp(-R0 * (1 - s)) return sprint(" R0 final s (sim) final s (theory) ever infected peak i (sim) peak i (theory) peak time")for R0 in [0.8, 1.5, 2.0, 3.0, 15.0]: s, peak, tp = sir(R0) th_peak = 1 - (1 + np.log(R0 * (1 - I0))) / R0 if R0 > 1 else I0 print(f"{R0:4.1f} {s:11.6f} {final_size(R0):13.6f} {1 - s:11.1%} {peak:10.4f} {th_peak:13.4f} {tp:8.2f}")
Try this.Run it. For each R0 the simulated final susceptible fraction agrees with the root of ln(s0/s)=R0(1−s) to 6 digits, and the simulated peak agrees with 1−(1+ln(R0s0))/R0 to 3 or 4 digits (the last digit at R0=15 differs because of the step size). For R0=0.8 there is no epidemic: the infected fraction only falls, and the total ever infected is 0.5%, the starting 0.1% plus a few more. For R0=15 only about 3×10−7 of the population escapes. Now change I0 = 0.001 to I0 = 0.0001: the peak and the final size hardly change (R0=3 still gives a peak of 30.0% and 94.0% ever infected), but the peak comes later, at 4.99 instead of 3.84 in units of 1/γ, because the infection takes longer to grow from a smaller start. Restore I0 and change T=60.0 to T=10.0: for R0=1.5 the epidemic is still in progress at time 10 (the susceptible fraction is 0.758, not 0.416).
A two-level quantum system
In quantum mechanics the state of a system is a vector ψ of unit length in a complex vector space, and the energy is an operator. For a system with only two relevant states (the two spin directions of an electron or proton, the ground and excited state of an atom driven by a laser, the two lowest states of a superconducting circuit) the state space is C2 and the operator is a 2×2 matrix.
Definition B
Hamiltonian
The Hamiltonian is a Hermitian matrix H (3.1), H∗=H, so its eigenvalues E1,E2,… are real: the allowed energies. The state ψ(t) obeys the Schrödinger equation
iℏdtdψ=Hψ,ℏ=1.0546×10−34J s.
The probability of finding the system in the state u (a unit vector) is ∣u∗ψ∣2.
In one lineThe Hermitian matrix H (or operator) of a quantum system whose eigenvalues are the possible energies. The state obeys the Schrödinger equation iℏψ′(t)=Hψ(t).
Why it existsIt packages the physics of the system, the forces and fields, into one matrix. Everything about the motion follows from it by the matrix exponential.
Definition B
Two-level system
A two-level system has a state ψ∈C2 with ∣ψ1∣2+∣ψ2∣2=1 (∣ψ1∣2 is the probability of level 1) and a 2×2 Hermitian matrix H. The Pauli matrices σx=[0110] and σz=[100−1] appear in nearly every Hamiltonian.
In one lineA quantum system whose state space is C2: a vector ψ=(ψ1,ψ2) with ∣ψ1∣2+∣ψ2∣2=1, and a 2×2 Hermitian Hamiltonian.
Why it existsIt is the smallest quantum system, and the model of a spin-21 particle in a magnetic field, of a qubit, and of an atom driven near a single resonance.
The Schrödinger equation is ψ′=Aψ with the constant matrix A=−ℏiH (a complex matrix; everything in 7.4 works for complex matrices, as MATH 376’s Remark 8.10 says). So ψ(t)=e−iHt/ℏψ(0).
Theorem Bstandard; 7.4 and 3.3
Unitary evolution
Let H be a Hermitian n×n matrix. Then ψ(t)=e−iHt/ℏψ(0) is the unique solution of iℏψ′=Hψ, the matrix U(t)=e−iHt/ℏ is unitary (3.3) for every real t, and ψ keeps its length. If H=Vdiag(Ej)V∗ with V unitary, then U(t)=Vdiag(e−iEjt/ℏ)V∗: each energy eigenstate is only multiplied by a phase.
In one lineThe solution of iℏψ′=Hψ is ψ(t)=U(t)ψ(0) with U(t)=e−iHt/ℏ. For Hermitian H the matrix U(t) is unitary, so ∥ψ(t)∥=∥ψ(0)∥ for all t: total probability stays 1.
Why it is trueThe adjoint of the exponential series is the series of the adjoint, and H∗=H turns −iHt/ℏ into +iHt/ℏ. So U∗=e+iHt/ℏ=U−1.
Proofstandard
The idea: Solve with the matrix exponential, take the adjoint of the series, and use the law of exponents for the commuting matrices iHt/hbar and -iHt/hbar.
ψ(t)=e−iHt/ℏψ(0).
The equation is ψ′=Aψ with A=−ℏiH constant, and 7.4 gives ψ(t)=etAψ(0) (unique by 7.1).
U∗=eiHt/ℏ.
Conjugate transpose each term of the series: (k!1(−iHt/ℏ)k)∗=k!1(iH∗t/ℏ)k because (cB)∗=cˉB∗ and (Bk)∗=(B∗)k. Then use H∗=H. The adjoint is continuous, so it passes through the sum.
U∗U=eiHt/ℏe−iHt/ℏ=I, so U is unitary.
iHt/ℏ and −iHt/ℏ commute (one is minus the other), so eAe−A=e0=I (7.4).
∥ψ(t)∥=∥ψ(0)∥=1.
A unitary matrix preserves lengths: ∥Uψ∥2=ψ∗U∗Uψ=ψ∗ψ. For the diagonal form: H=VDV∗ gives Hk=VDkV∗ and the series sums to Vdiag(e−iEjt/ℏ)V∗. ■
In the language of 7.6: the eigenvalues of −ℏiH are −ℏiEj, purely imaginary, the signature of a centre. The state rotates and neither decays nor grows. Real systems lose phase coherence to their surroundings, which adds damping and is the main enemy of quantum computers.
Theorem BRabi 1937; Feynman Lectures III, chapters 8 to 11
The Rabi formula
Let N=δσz+Ωσx=[δΩΩ−δ] with real δ,Ω and ΩR=δ2+Ω2>0, and H=2ℏN. Then U(t)=e−iHt/ℏ=cos2ΩRtI−isin2ΩRtΩRN, and for ψ(0)=(1,0) the probability of finding the system in level 2 at time t is P(t)=ΩR2Ω2sin22ΩRt. It oscillates between 0 and Pmax=δ2+Ω2Ω2 with angular frequency ΩR.
In one lineFor H=2ℏ(δσz+Ωσx) and ΩR=δ2+Ω2: e−iHt/ℏ=cos2ΩRtI−isin2ΩRt⋅ΩRδσz+Ωσx. Starting in level 1, the probability of level 2 is ΩR2Ω2sin22ΩRt.
Why it is trueThe matrix N=δσz+Ωσx satisfies N2=ΩR2I, exactly the situation of the 2×2 matrix exponential of 7.4 (a square that is a multiple of I), so the series splits into cosine and sine.
Proof7.4
The idea: Square N by hand, then sum the exponential series in even and odd powers.
N2=[δ2+Ω200Ω2+δ2]=ΩR2I.
Direct multiplication: the diagonal entries are δ2+Ω2 and the off-diagonal entries are δΩ−Ωδ=0.
e−iHt/ℏ=cossI−isinsΩRN with s=2ΩRt.
Put B=−i2tN=−iHt/ℏ and s=2ΩRt. Then B2=−4t2ΩR2I=−s2I, so B2k=(−1)ks2kI and B2k+1=(−1)ks2kB. The series ∑n!Bn splits into even and odd powers, exactly as for the rotation matrix in 7.4: eB=cossI+ssinsB. And sB=−iΩRt/2(t/2)N=−iΩRN.
ψ(t)=(coss−iΩRδsins,−iΩRΩsins).
Apply to (1,0)T: the first column of N is (δ,Ω)T.
P(t)=∣ψ2∣2=ΩR2Ω2sin2s.
The squared modulus of the second component. As a check, cos2s+ΩR2δ2sin2s+ΩR2Ω2sin2s=1. ■
Worked example Rabi 1937; new numbers
A spin-1/2 or qubit driven by a field: find the pulse that flips it, the effect of detuning, and the numbers for a proton in an MRI magnet.
Solution.
On resonance, δ=0. Then ΩR=Ω and P(t)=sin22Ωt. The probability is 1 when Ωt=π: a π-pulse turns level 1 completely into level 2. At Ωt=2π the probability is sin24π=21: an equal superposition (a 2π-pulse). Set 2Ωt=2π and 4π.
Numbers for a qubit. With a Rabi frequency Ω/2π=10 MHz, Ω=6.283×107 rad/s, the π-pulse lasts t=Ωπ=50 ns and the 2π-pulse 25 ns. Divide by Ω. Superconducting qubits are driven at rates of this order, which is why a gate takes tens of nanoseconds.
Off resonance. If the drive is detuned by δ=Ω then ΩR=2Ω and Pmax=2Ω2Ω2=21: the flip is never complete. For δ=3Ω it is only 101. The Rabi formula: a drive must be tuned to the transition. This is also why the quantum circuit behaves as a narrow filter, like the RLC circuit.
The MRI proton. A proton in a magnetic field B0=1.5 T has two energy levels split by ℏωL with 2πωL=42.577MHz/T×1.5T=63.87 MHz (the Larmor frequency), so the Hamiltonian is H=2ℏωLσz and e−iHt/ℏ=diag(e−iωLt/2,eiωLt/2): a pure rotation of phase. The diagonal case of the unitary evolution theorem.
The radio-frequency pulse. A rotating field of amplitude B1=10μT at the Larmor frequency drives the spin at the Rabi frequency 2πΩ=42.577MHz/T×10−5T=425.8 Hz. A 90∘ pulse (Ωt=2π) lasts 4×425.8Hz1=587μs. t=Ωπ/2=4(Ω/2π)1. These are the numbers that set the timing of MRI sequences.
Answer.P(t)=sin22Ωt on resonance; 50 ns for a π-pulse at 10 MHz; δ2+Ω2Ω2 off resonance; 587μs for a 90∘ pulse of 10μT on a proton.
Your answerA qubit is driven on resonance with Rabi frequency Ω/2π=10 MHz. How long, in nanoseconds, is a π-pulse (Ωt=π)?
t=π/Ω=2(Ω/2π)1.
Ω=2π×107 rad/s, so t=Ωπ=2×107s−11=5×10−8 s =50 ns.
Quick checkFor ψ(t)=e−iHt/ℏψ(0) with H Hermitian, which quantity does NOT change with time?
e−iHt/ℏ is unitary, and unitary matrices preserve length. The individual components ψ1,ψ2 do change (probability moves between the levels) and so does the matrix itself, which is a different rotation at every t.
Where it is used
Used inside maths· Inside maths: a network of springs is a graph Laplacian, and energy is the Lyapunov function
Join any number of unit masses by unit springs along the edges of a graph. The stiffness matrix is the graph LaplacianL=D−AG (degrees on the diagonal, minus the adjacency matrix), and the normal modes are its eigenvectors. For the three masses in a row with no walls, L=1−10−12−10−11 has eigenvalues 0,1,3 with modes (1,1,1) (the whole chain translating: frequency 0), (1,0,−1) and (1,−2,1). Compare with the chain between walls above: the walls remove the zero mode and raise the frequencies. In data science, the lowest non-zero mode (the Fiedler vector, here (1,0,−1)) splits a graph into two halves, which is spectral clustering.
Energy plays the role of Lyapunov function in all four systems of this chapter. For the springs the energy is conserved (a centre: stable, not asymptotically). For the RLC circuit W˙=−RI2 (a stable spiral or node). For the SIR model K is conserved and decides the final size. For the quantum state ∥ψ∥2 is conserved. In each case the conserved or decreasing quantity is the shortest route to the qualitative behaviour, and the eigenvalues give the quantitative detail.
Used in the real world· Civil engineering: the modes of a two-storey building
Model a two-storey building as two floors of mass m=105 kg (100 tonnes), each connected to the one below by columns of stiffness k=4×107 N/m (illustrative values). Then mx′′=−Kx with K=k[2−1−11]: the lower floor is held by the ground floor and the floor above, the upper floor only by the floor below. With mk=400s−2 the eigenvalues of mK are 400⋅23∓5, so ω1=12.36 rad/s (1.97 Hz) and ω2=32.36 rad/s (5.15 Hz). In the first mode the upper floor moves 1.618 times as far as the lower one, in the same direction. In the second the floors move in opposite directions. The ratio of the two eigenvalues is 3−53+5=6.854. Ground motion of an earthquake contains frequencies from below 1 Hz to 10 Hz, so the building is shaken hardest when the ground has energy near 2 Hz or 5 Hz; the design task is to move these frequencies away from the dominant frequencies of the expected ground motion, or to add damping so that the Q of each mode is small.
Used in the real world· Radio: covering the AM band with one coil
An AM receiver tunes with a fixed inductor and a variable capacitor. The band runs from about 540 kHz to 1600 kHz. Since f0=2πLC1, the capacitance must change by the factor (5401600)2=8.78. With L=240μH the capacitor must cover C=(2πf)2L1, that is 362 pF at 540 kHz down to 41 pF at 1600 kHz. With the series resistance R=10Ω of the coil the quality factor at 1000 kHz is Q=102π×106×2.4×10−4=151 and the bandwidth is Qf0=6.6 kHz, narrower than the 10 kHz spacing of AM stations in the Americas, so that a neighbouring station is attenuated.
Used in the real world· Public health: why measles needs about 95% coverage
Measles has a reproduction number R0 that is often quoted as between 12 and 18 (estimates vary with the place and the time). The herd immunity threshold 1−R01 is then between 91.7% and 94.4%: with R0=15 it is 93.3%. Because a vaccine does not protect everyone who receives it, the proportion that has to be vaccinated is higher than the proportion that has to be immune; this is why the public-health target for two-dose measles vaccination is about 95%. The threshold theorem is also a statement about the early phase. Take R0=15 and a community with 90% immune: then s∗=0.1 and the growth eigenvalue is γ(R0s∗−1)=γ×0.5>0, so an outbreak starts and grows, slowly. At 95% immune the eigenvalue is γ(15×0.05−1)=−0.25γ<0 and a single imported case dies out.
Used in the real world· Medicine: how long to flip a proton in an MRI scanner
An MRI scanner at 1.5 T uses protons in the water of the body. Their Larmor frequency is 63.87 MHz, so the radio-frequency coil is tuned to it. A pulse of rotating-field amplitude B1=10μT tips the magnetisation by 90∘ in 587μs (computed above), and by 180∘ in 1.17 ms. Tissue contrast comes from how quickly the tipped magnetisation relaxes back, which adds damping (the real part) to the pure rotation of the unitary evolution. A pulse that is slightly off resonance tips by less, by the Rabi formula, which is why the frequency and the field strength must be uniform across the body.
Traps
Watch out· Normal modes need a symmetric matrix
For equal masses the matrix M in x′′=−Mx is symmetric and the proof works. For unequal masses mi the equation is x′′=−M−1Kx with M=diag(mi) and K the symmetric stiffness matrix; the matrix M−1K is not symmetric, its eigenvectors are not orthogonal in the dot product, and you must use the inner product weighted by the masses. The easy fix is the substitution y=M1/2x, which gives y′′=−M−1/2KM−1/2y with a symmetric matrix.
Watch out· The beat frequency is not a natural frequency
When one mass is pushed, mass 1 oscillates at the mean frequency ωˉ=6.63 rad/s with an envelope cosΩt, Ω=2ω2−ω1. The system has no normal mode at ωˉ. The slow envelope cosΩt has angular frequency Ω, but the energy goes like cos2Ωt, so the energy of mass 1 returns after Ωπ=ω2−ω12π, twice as long as the first transfer takes. Use the eigenvalues for the natural frequencies, and sum-to-product for the beats.
Watch out· Current peaks at ω0, charge peaks a little lower
The current amplitude ∣Z∣E0 is largest exactly at ω0=LC1. The charge on the capacitor (and so the voltage across it) has amplitude L(ω02−ω2)2+4α2ω2E0, which peaks at ω=ω02−2α2. For a high-Q circuit the difference is negligible (999.984 kHz against 1000 kHz in the tuner), but for Q below 21≈0.71 (that is, ω02<2α2) there is no peak in the charge at all.
Watch out· R0 above 1 means growth, not the size of the epidemic, and not the herd immunity at the end
R0 is a ratio. The speed of the start is γ(R0−1), which depends on γ as well. The fraction who are ever infected is 1−s∞ with s∞ from the final-size equation, and it is much larger than the herd immunity fraction 1−R01: for R0=2 the herd immunity threshold is 50% but 79.7% are infected, because the epidemic coasts past the point where the infection stops growing. And R0 describes a fully susceptible population; with a fraction p immune the relevant number is R0(1−p).
Watch out· Quantum evolution: the exponent is a matrix, with the factor i, and the angle is half
e−iHt/ℏ is NOT the matrix of e−iHjkt/ℏ (the trap of 7.4 again). For H=2ℏN with N2=ΩR2I the angle in the cosine and sine is 2ΩRt, not ΩRt; this is why the probability sin22ΩRt oscillates at the angular frequency ΩR and a π-pulse has Ωt=π. Check any answer for ∣ψ1∣2+∣ψ2∣2=1.
Problems
checkcompare the worked example
Two masses of 1 kg lie between walls with springs k=4 N/m to the walls and a coupling spring kc=1 N/m. Find the normal modes and the frequencies.
Solution
M=[5−1−15]. The vector (1,1) gives M(1,1)=(4,4): eigenvalue 4, so ω1=2 rad/s (in step; the coupling spring is not stretched, so this is k/m). The vector (1,−1) gives (6,−6): eigenvalue 6, ω2=6=2.449 rad/s (in opposition; (k+2kc)/m). Check: trace 10=4+6, determinant 24=4⋅6.
check7.2
An RLC circuit has L=0.1 H and C=100μF. Classify the free motion for R=100Ω, and find the decay rates.
Solution
2L/C=63.2Ω<R=100Ω: overdamped. With α=2LR=500 and ω02=LC1=105: r=−500±250000−100000=−500±387.3, that is −112.7 and −887.3 per second. The charge is a sum of two decaying exponentials, and the slower one (time constant 112.71=8.9 ms) dominates after the first few milliseconds. (For R=20Ω the same circuit is underdamped with ωd=300 rad/s.)
check7.6
An SIR epidemic has β=0.5 and γ=0.25 per day. Find R0 and the herd immunity threshold. Does an epidemic start if 60% of the population is immune? At what rate does it grow when 20% is immune, and what is the doubling time?
Solution
R0=0.250.5=2, and the threshold is 1−21=50%. With 60% immune, s∗=0.4 and R0s∗=0.8<1: the growth eigenvalue γ(R0s∗−1)=0.25×(−0.2)=−0.05 per day is negative, so no epidemic. With 20% immune, s∗=0.8, R0s∗=1.6, and the rate is 0.25×0.6=0.15 per day; the doubling time is 0.15ln2=4.6 days.
check7.7 theorem
A qubit has H=2ℏΩσx with Ω/2π=5 MHz, and starts in level 1. What is the probability of level 2 after 50 ns?
Solution
On resonance, P=sin22Ωt. Ω=2π×5×106=3.1416×107 rad/s and Ωt=3.1416×107×5×10−8=1.5708=2π. So P=sin24π=21. The pulse is a 2π-pulse.
use3.1 and the chain formula
Three masses of 1 kg lie between walls with all springs k=9 N/m. Give the frequencies and the motion when x(0)=(1,0,−1) and the masses start at rest.
Solution
Frequencies ωj=2k/msin8jπ=6sin8jπ: 2.296, 4.243, 5.543 rad/s. The vector (1,0,−1) is the second mode shape (the middle mass stays still and the outer ones oppose). So the motion is the pure mode x(t)=(1,0,−1)cos(4.243t), with ω2=6sin4π=32=4.243 and period 1.48 s. Check: M(1,0,−1)=9(2,0,−2)=2⋅9(1,0,−1), so ω2=18 and ω=18=4.243.
usethe impedance formula
A series RLC circuit has L=0.5 H, C=2μF, R=25Ω and is driven by E0=10 V. Find ω0, Q, the bandwidth, the current at resonance, and the current at ω=1050 rad/s.
Solution
ω0=0.5×2×10−61=1000 rad/s. Q=Rω0L=25500=20. Bandwidth Δω=LR=50 rad/s. At resonance ∣Z∣=R, so the current amplitude is 2510=0.40 A. At 1050 rad/s the reactance is ωL−ωC1=525−476.2=48.8Ω, so ∣Z∣=252+48.82=54.8Ω and the amplitude is 54.810=0.182 A: less than half the resonant value (the frequency is 50 rad/s above resonance, one bandwidth).
usefinal-size equation
For an SIR epidemic with R0=2 started from a nearly fully susceptible population, find the final fraction never infected s∞ by iterating s↦e−2(1−s), and the fraction ever infected.
Solution
Start with s=0.5: the iterates are 0.368,0.283,0.238,0.218,0.209,0.206,0.204,0.2036,… converging to s∞=0.2032 (the iteration converges because the derivative at the root, 2s∞=0.41, is below 1). So 20.3% are never infected and 79.7% are infected at some time. Check in the equation: ln0.20321=1.594 and 2(1−0.2032)=1.594.
useRabi formula
A qubit with Rabi frequency Ω/2π=1 MHz is driven with detuning δ/2π=2 MHz. What is the largest probability of flipping, and when is it first reached?
Solution
ΩR=δ2+Ω2=2π5 MHz =2π×2.236 MHz. Pmax=ΩR2Ω2=51=0.2. It is first reached when 2ΩRt=2π, that is t=ΩRπ=2×2.236MHz1=0.2236μs.
prove3.1
Prove that for x′′=−Mx with M symmetric, the energy E=21∥x′∥2+21xTMx is constant along solutions.
Solution
Plan. Differentiate, and use symmetry of M.
dtd21x′⋅x′=x′⋅x′′=−x′⋅Mx. And dtd21xTMx=21(x′)TMx+21xTMx′=x′⋅Mx, because xTMx′=(Mx)⋅x′ by symmetry of M (xTMx′=(x′)TMTx=(x′)TMx). The two derivatives cancel, so E˙=0. ■
prove3.3 and 7.4
Prove that if H is Hermitian then e−iHt/ℏ is unitary for every real t, and deduce that ∥ψ(t)∥ is constant.
Solution
Plan. Take the conjugate transpose of the exponential series.
Write A=−ℏitH. Then A∗=ℏitH∗=ℏitH=−A. The adjoint of a power is the power of the adjoint, and the adjoint is continuous, so (eA)∗=∑k!(A∗)k=eA∗=e−A. Since A and −A commute, eAe−A=e0=I (7.4). So (eA)∗eA=e−AeA=I: eA is unitary. Then ∥eAψ∥2=ψ∗(eA)∗eAψ=ψ∗ψ=∥ψ∥2. ■
proveKermack and McKendrick 1927; new
Prove that if R0s0≤1 then the number infected i(t) decreases for all t≥0 in the SIR model.
Solution
Plan. Show that i′≤0 at all times by comparing s with s0.
From s′=−βsi≤0, s is non-increasing, so s(t)≤s0. Then i′=βsi−γi=γi(R0s−1)≤γi(R0s0−1)≤0, because i≥0. So i is non-increasing. (If R0s0<1 it decreases strictly, and the infection dies out.) ■
prove7.2 and the impedance theorem
Prove that the half-power bandwidth of a series RLC circuit, defined by ∣Z∣2=2R2, is exactly Δω=LR.
Solution
Plan. Solve ∣ωL−ωC1∣=R for ω and subtract the two positive roots.
∣Z∣2=R2+X2 with X=ωL−ωC1, so ∣Z∣2=2R2 means X=±R. Multiply ωL−ωC1=±R by ωC: LCω2∓RCω−1=0, so ω=2LC±RC+R2C2+4LC=±2LR+4L2R2+LC1. The positive root for the upper sign minus the positive root for the lower sign is 2LR−(−2LR)=LR. ■
stretchMurray 10
(The SEIR model.) A latent period is added: infected people are first ‘exposed’ (e), then infectious (i): s′=−βsi, e′=βsi−σe, i′=σe−γi. Linearize at the disease-free state s=1 and show that an epidemic starts if and only if R0=β/γ>1, the same as before. Compute the early growth rate for β=0.5, σ=0.25, γ=0.2 per day, and compare with the SIR growth rate.
Solution
Plan. Linearize the (e,i) part and find when it has a positive eigenvalue.
With s≈1 the equations for the exposed and infectious are e′=βi−σe, i′=σe−γi, that is [ei]′=[−σσβ−γ][ei]. The trace is −(σ+γ)<0 and the determinant is σγ−σβ=σ(γ−β). By the table of 7.6 the matrix has an eigenvalue with positive real part exactly when its determinant is negative, that is β>γ: R0>1. The largest eigenvalue is λ=2−(σ+γ)+(σ−γ)2+4σβ. For β=0.5, σ=0.25, γ=0.2: R0=2.5, and λ=2−0.45+0.0025+0.5=2−0.45+0.7089=0.129 per day (doubling time 5.4 days). The SIR model with the same β and γ grows at β−γ=0.3 per day (doubling in 2.3 days). The latent period leaves the threshold unchanged and slows the early growth. ■
stretch2.8 and a trigonometric identity
Prove that for N masses in a row between two walls with all springs k and all masses m, the vector v(j)=(sinN+1jiπ)i=1N is an eigenvector of M=mktridiag(−1,2,−1) with eigenvalue m2k(1−cosN+1jπ)=m4ksin22(N+1)jπ.
Solution
Plan. Apply M to the vector, use the sum formula for sine, and watch the boundary terms vanish.
Put a=N+1jπ and vi=sin(ia), i=0,1,…,N+1, so that v0=sin0=0 and vN+1=sin(jπ)=0: these two ‘virtual’ entries are exactly the wall conditions. For 1≤i≤N: (Mv)i=mk(2vi−vi−1−vi+1) (with v0=vN+1=0 the first and last rows are correct too). By sin(ia−a)+sin(ia+a)=2sin(ia)cosa, we get vi−1+vi+1=2cosavi. So (Mv)i=mk(2−2cosa)vi, which is the eigenvalue equation with λ=m2k(1−cosa). Since 1−cosa=2sin22a, λ=m4ksin22(N+1)jπ and ωj=2k/msin2(N+1)jπ. The vectors are non-zero for j=1,…,N and have distinct eigenvalues, so they are all the modes. ■
Summary
Coupled springs:x′′=−Mx with M symmetric positive definite. The eigenvectors are the normal modes (patterns that oscillate at one frequency), ωj=eigenvalue, and every motion is a sum of modes (beats appear when two frequencies are close). The energy of each mode is constant.
An RLC circuit obeys Lq′′+Rq′+q/C=E: the oscillator equation with L↔m, R↔c, 1/C↔k. It is always asymptotically stable (τ=−R/L, Δ=1/LC), underdamped if R<2L/C, and W˙=IE−RI2 for its energy.
Driven by E0cosωt the steady current is ∣Z∣E0cos(ωt−φ) with the impedanceZ=R+i(ωL−ωC1); resonance at ω0=1/LC, bandwidth R/L, quality factorQ=ω0L/R.
The SIR models′=−βsi, i′=βsi−γi has a line of disease-free equilibria. The Jacobian there has eigenvalues 0 and γ(R0s∗−1), so an epidemic starts exactly when R0s∗>1; with R0=β/γ and herd immunity at 1−1/R0.
The quantity i+s−R01lns is conserved, giving the peak1−R01+lnR0 and the final size (solve lns∞s0=R0(1−s∞)): for R0=3, 30% at the peak and 94% ever infected.
A two-level quantum system evolves by ψ(t)=e−iHt/ℏψ(0). For Hermitian H the matrix is unitary, so probability is conserved, and for H=2ℏ(δσz+Ωσx) the Rabi formula gives P(t)=ΩR2Ω2sin22ΩRt: a π-pulse at Ω/2π=10 MHz lasts 50 ns.
In practice: turn the law into x′=Ax (or x′′=−Mx), find the eigenvalues, and read their meaning: imaginary part, frequency; real part, rate; sign of one eigenvalue, a threshold; and keep an energy or a conserved quantity as a check.
Watch and read
The same ideas explained by someone else. Use these when an explanation here does not land.
MATH 376: Homework 9 #2 solves q'' + 5q' + 4q = 10 sin 2t, which is an RLC circuit with L = 1, R = 5, 1/C = 4 and a sinusoidal source; the final's 6(b) (y'' + y = cos t) is resonance. Normal modes, epidemics and quantum evolution were not part of the course.
Physics and chemistry: A molecule vibrates in normal modes whose frequencies are the square roots of the eigenvalues of a symmetric matrix, and infrared spectroscopy measures exactly those frequencies. A qubit in a quantum computer is a two-level system, and a gate is a matrix exponential e^(-iHt/hbar) of a Hamiltonian H.
CS 532 / spectral methods: The Laplacian matrix of a graph is the stiffness matrix of a network of unit springs. Its eigenvectors are the normal modes of that network, and spectral clustering splits a graph along the lowest non-trivial mode.
Epidemiology and public health: The threshold R0 > 1, herd immunity at 1 - 1/R0 and the final size of an epidemic all come out of the two equations of the SIR model. The same linearization at a disease-free state, applied to larger models, defines R0 as the largest eigenvalue of the next-generation matrix.