How to solve a system of first-order, constant-coefficient linear differential equations du/dt = Au, and why it turns directly into linear algebra. The solutions are exponentials e^(lambda t) x built from the eigenvalues and eigenvectors of A, completely parallel to the powers of a matrix from last lecture. Along the way: stability from the real parts of the eigenvalues, a trace-and-determinant test for 2 by 2 matrices, and the matrix exponential e^(At) defined by its power series.
“Lift-off on differential equations.” This lecture solves systems of first-order, constant-coefficient linear equations — and done right, “it turns directly into linear algebra.” The key idea: the solutions to constant-coefficient linear equations are exponentials. Look for an exponential, and all you have to find is what goes up in the exponent and what multiplies it — and that’s the linear algebra.
The result is completely parallel to the last lecture, which computed high powers like A100 for the difference equation uk+1=Auk. Now it’s not powers but exponentials, the natural thing for a differential equation:
dtdu=Au
An example, mechanics first
Take two coupled equations, matrix and initial condition:
dtdu=[−112−2]u,u(0)=[10]
At the start everything is in u1. But du2/dt will be positive because of that u1 term, so flow moves into the u2 component and out of u1. We follow that movement by doing the first job for any matrix: before anything else, find the eigenvalues and eigenvectors.
Can you spot the eigenvalues? The matrix is singular — the second column is −2 times the first, the determinant is zero — so λ1=0 is an eigenvalue immediately. The trace is −1+(−2)=−3, and the trace equals the sum of the eigenvalues, so the other one had better be λ2=−3. As a check, the characteristic polynomial is
det(A−λI)=λ2+3λ=λ(λ+3)
confirming λ1=0, λ2=−3.
Already the eigenvalues are telling us the most important information about the answer. The negative eigenvalue will contribute an e−3t, which becomes very, very small as time goes on — that part disappears. The zero eigenvalue contributes e0t=1, a constant. So the solution will have two parts, and as t→∞ the second part vanishes and the first part is a steady state — it won’t move. A zero eigenvalue means a steady state.
Now the eigenvectors. For λ1=0, the eigenvector is the guy in the null space of A: give the free variable the value 1 and you need a 2 on top, so x1=(2,1). For λ2=−3, add 3 to the diagonal:
A+3I=[2121]
singular, as it should be, with x2=(1,−1) in its null space (or (−1,1) — either is perfectly good).
Building the solution from pure exponentials
The general solution is a combination of two pure exponential solutions, one for each eigenvalue:
u(t)=c1eλ1tx1+c2eλ2tx2
Check that each piece really solves the equation. Plug eλ1tx1 into du/dt=Au: the time derivative brings down a λ1, the right side is Aeλ1tx1, the exponential appears on both sides, and what remains is Ax1=λ1x1 — check.
For our matrix, eλ1t=e0t=1, so the solution is
u(t)=c1[21]+c2e−3t[1−1]
Everything so far was immediate from the eigenvalues and eigenvectors. The constants come from the initial condition. At t=0:
c1[21]+c2[1−1]=[10]
Spot the answer: if c1 and c2 were both 1, the sum would be (3,0) — so take one third of that. c1=c2=31, and
u(t)=31[21]+31e−3t[1−1]
You can see what’s actually happening with this flow. It started at (1,0); as time goes on, some fraction moves from the first component into the second; and in the limit the e−3t part disappears, leaving the steady state
u(∞)=[2/31/3]
That’s total insight into the behavior of the solution — what the differential equation does — read off from two eigenvalues and two eigenvectors.
One more observation about the step that found c1,c2: as a matrix equation it is Sc=u(0), where S is the eigenvector matrix — the eigenvectors sit in its columns. You figure out how much of each pure exponential is present in u(0), and then off they go, each on its own. “By getting it right at the start, it stays right forever.”
Stability: it’s the real part that matters
We won’t always have a steady state. Sometimes the solution approaches zero; sometimes it blows up. The eigenvalues tell us which.
Stability — u(t)→0 for every initial condition — needs every eλt going to zero, which asks for negative eigenvalues. But eigenvalues can be complex. Suppose λ=−3+6i. How big is e(−3+6i)t? The factor e6it=cos6t+isin6t has absolute value one — cos2+sin2=1 — it just runs around the unit circle. The magnitude is e−3t: it’s the real part of λ that matters. The imaginary part only oscillates the solution between components.
So the three behaviors:
Stability: u(t)→0 when every eigenvalue has Reλ negative.
Steady state: one eigenvalue λ1=0 and all other eigenvalues have negative real part — exactly our example.
Blow-up: if any eigenvalue has positive real part. Reverse all the signs of our matrix A and every eigenvalue changes sign: the zero stays at zero, but the −3 becomes +3, an e3t appears, and the solution takes off.
Uncoupling the system: u = Sv
The matrix Acouplesu1 and u2; the whole point of eigenvectors is to uncouple — to diagonalize. Set u=Sv, where S is the eigenvector matrix (a constant). Then
Sdtdv=ASv⟹dtdv=S−1ASv=Λv
In the eigenvector basis the system is diagonal — no coupling anymore. Each equation stands alone: dv1/dt=λ1v1, and so on for all n of them. Each is trivially solved, v(t)=eΛtv(0), and transforming back,
u(t)=SeΛtS−1u(0)
That matrix SeΛtS−1 is the exponential we’re after: it is eAt, and u(t)=eAtu(0) is the answer. But what does it mean to raise e to a matrix?
What e^At means
Strang can’t resist the side comment: there are two beautiful Taylor series in this world. The exponential series, and the geometric series1+x+x2+x3+⋯=1−x1 — the nicest power series of all, with no factorials. The matrix version gives
(I−At)−1=I+At+(At)2+(At)3+⋯
a reasonable way to approximate an inverse when t is small: (I−At)−1≈I+At. But without the factorials this series can fail — if At has an eigenvalue larger than one in magnitude, squaring and cubing blow it up. It converges only when all eigenvalues of At are below one; the exponential series is safe always.
Now connect the definition to S and Λ. Use the fundamental formula of this whole chapter, A=SΛS−1, in every term. Squaring makes the inner S−1S cancel: A2=SΛ2S−1, then A3=SΛ3S−1, and so on. Write the identity as SS−1 too, and pull S out on the left and S−1 out on the right of the whole series:
eAt=S(I+Λt+2(Λt)2+⋯)S−1
And the exponential of the diagonal matrix Λ is completely decoupled — diagonal, as the whole point demands:
eΛt=eλ1t⋱eλnt
just ordinary scalar exponentials down the diagonal, zeros elsewhere. From this formula you can see the stability statement again: S and S−1 aren’t moving, so eAt→0 exactly when every eλit→0 — every eigenvalue with negative real part.
Second order becomes first order
One final example: a single second-order equation,
y′′+by′+ky=0
How do we make one second-order equation into a 2×2 first-order system? Just the way we did for Fibonacci: let the vector unknown be u=(y′,y) and add the trivial extra equation y′=y′. Then
u′=[y′′y′]=[−b1−k0][y′y]
The first row is the differential equation (y′′=−by′−ky); the second row is the trivial one. In the general case — a fifth-order equation becoming a 5×5 first-order system — the coefficients of the equation go across the top row, and four trivial equations put ones below the diagonal. The eigenvalues of this matrix come out naturally connected to the differential equation.
That’s differential equations: a parallel lecture to powers of a matrix. We can now do exponentials.
Problems
Work these before revealing the solutions — the method is exactly the one from the lecture.
Problem 23.1Solve du/dt = Au
Solve
dtdu=[−211−2]u,u(0)=[31]
and describe the behavior as t→∞.
Show solution
Eigenvalues: trace =−4, determinant =4−1=3, so λ2+4λ+3=(λ+1)(λ+3)=0: λ1=−1, λ2=−3.
Eigenvectors: for λ1=−1, A+I=[−111−1] gives x1=(1,1). For λ2=−3, A+3I=[1111] gives x2=(1,−1).
Constants:c1(1,1)+c2(1,−1)=(3,1) means c1+c2=3 and c1−c2=1, so c1=2, c2=1.
u(t)=2e−t[11]+e−3t[1−1]
Both eigenvalues are negative, so the system is stable: u(t)→0. The e−3t part dies faster, so for large t the solution approaches zero along the direction (1,1).
Problem 23.2Trace–determinant test
Without computing any eigenvalues, decide whether each system du/dt=Au is stable:
A1=[−1−23−1],A2=[−5121]
Then verify your verdict on A1 by finding its eigenvalues.
A2: trace =−4 (negative), but determinant =(−5)(1)−(2)(1)=−7 (negative ✗). Not stable — a negative determinant means the eigenvalues are real with opposite signs, so one is positive and the solution blows up.
Check on A1:λ2+2λ+7=0 gives λ=−1±i6. Complex eigenvalues — but the real part is −1, negative, so ∣eλt∣=e−t→0. Stable, as the test predicted; the imaginary part ±6i only makes the solution oscillate on the way to zero.
Problem 23.3Computing a matrix exponential
Find eAt for
A=[101−1]
using eAt=SeΛtS−1, and check your answer at t=0.
Show solution
A is triangular, so the eigenvalues are on the diagonal: λ1=1, λ2=−1.
Eigenvectors: for λ1=1, A−I=[001−2] gives x1=(1,0). For λ2=−1, A+I=[2010] gives x2=(1,−2).
Check at t=0:e0=1 and 21(1−1)=0, so eA⋅0=I — exactly as the series I+At+⋯ requires.
Problem 23.4Second order to first order
Convert the second-order equation
y′′+4y′+3y=0
into a 2×2 first-order system u′=Au with u=(y′,y). Find the eigenvalues of A and write the general solution y(t). Is the equation stable?
Show solution
The first row of A comes from the equation, y′′=−4y′−3y; the second row is the trivial equation y′=y′:
A=[−41−30]
Eigenvalues:det(A−λI)=λ2+4λ+3=(λ+1)(λ+3)=0, so λ=−1,−3 — the characteristic polynomial of the matrix is exactly the characteristic polynomial of the original differential equation.
General solution: each eigenvalue contributes a pure exponential, so
y(t)=c1e−t+c2e−3t
Both eigenvalues are negative (equivalently: trace −4 negative, determinant 3 positive), so the equation is stable — every solution decays to zero.