When multiple variables influence each other, a single differential
equation is no longer sufficient. The populations of predators and prey,
currents and voltages in circuits, concentrations of substances in
chemical reactions — the relationships between them need to be described
by systems of differential equations. In this chapter,
we'll see that the combination of linear algebra and differential
equations produces an extremely elegant theory: matrix exponentials,
fundamental matrices, and phase space analysis — these tools make the
behavior of complex systems clearly visible.
Starting with an Ecology
Problem
Imagine a simplified ecosystem: rabbits and wolves. Rabbits eat grass
and reproduce, wolves eat rabbits and reproduce. Letbe the number of rabbits andbe the number of wolves.
Intuitive modeling: - The growth rate of rabbits
depends on their own number (more means faster reproduction) minus the
number eaten by wolves - The growth rate of wolves depends on how many
rabbits are available to eat minus natural death
A simplified linear model:This is a linear system of differential
equations. How do we solve it? How do we understand the
long-term behavior ofand?
Vector Form and Matrix
Notation
Vector Representation
Write the system in vector form:Abbreviated as:whereis the state vector andis the coefficient
matrix.
General Form
Homogeneous linear system:
Non-homogeneous linear system:This chapter mainly focuses on the
constant coefficient case:does not depend on.
Review: The One-Dimensional
Case
For the one-dimensional equation, the solution is.
Natural conjecture: For, is the
solution?
Yes! But first we need to define the matrix
exponential.
Matrix Exponential
Definition
Recall the Taylor expansion of the scalar exponential function:
Definition of matrix exponential:This series
converges for any square matrix
Basic Properties
Property 1: (exponential of zero matrix is identity matrix)
Property 2:This is exactly the differentiation property we
need!
Property 3: If (andcommute), then
Warning: If, then generallyThis is an important difference between matrices and
scalars.
Property 4:is always invertible,
Property 5:
Solution of Linear Systems
Theorem: The initial value problemhas unique solution:
Verification: - ✓ - ✓
How to Compute the Matrix
Exponential?
Direct computation using the definition is tedious. There are several
more practical methods.
Method 1: Diagonalization
Ifis diagonalizable:, where.
Then:$
$ And the
exponential of a diagonal matrix is simple:
When eigenvalues have repeated roots, there may not be enough
eigenvectors. For example:Eigenvalue(repeated), but there is only one eigenvector.
Generalized Eigenvectors
Definition: Ifbut, thenis a generalized
eigenvector of rank
for.
For the example above:Take, then.
Corresponding Solutions
For a generalized eigenvector of rank, the corresponding solution contains
polynomial factors:For the
example above, the two independent solutions are:
Letbe the displacements
of the two masses from their equilibrium positions.
Equations of motion:$
$ Simplifying (let,):$
$
Matrix Form
Let:
Normal Modes
Eigenvalue analysis reveals the system's normal
modes— patterns where the entire system oscillates
synchronously at specific frequencies.
For a symmetric coupled system, normal modes have simple physical
interpretations: - Symmetric mode: Both masses move in
the same direction () -
Antisymmetric mode: Masses move in opposite directions
()
When a matrix is not diagonalizable, it can be reduced to
Jordan normal form:whereis a Jordan
matrix composed of Jordan blocks.
AJordan block:
Exponential
of a Jordan Block
Key observation: Even if all eigenvalues have
negative real parts, polynomial factors may cause short-term growth, but
long-term decay still occurs.
Introduction to Stability
Stability of the Zero
Solution
Consider the zero solutionof.
Theorem: 1. If all eigenvalues ofhave real parts, then the zero solution is
asymptotically stable 2. Ifhas any eigenvalue with real part, then the zero solution is
unstable 3. If all eigenvalues have real parts, and eigenvalues with real
partare all simple (algebraic
multiplicity equals geometric multiplicity), then the zero solution is
stable but not asymptotically stable
This sets the stage for detailed stability theory in the next
chapter.
Numerical Methods
Numerical
Computation of Matrix Exponential
There are several methods for computing:
Method 1: Pad é approximation
(scipy.linalg.expm)
The most stable general-purpose method.
Method 2: Diagonalization
Ifis diagonalizable, this is
the fastest method.
Method 3: Series truncation
Directly using the definition, suitable for small matrices and
small.
import numpy as np from scipy.linalg import expm, eig import time
defmatrix_exp_series(A, n_terms=50): """Compute matrix exponential using series""" result = np.eye(len(A)) A_power = np.eye(len(A)) factorial = 1.0 for k inrange(1, n_terms): A_power = A_power @ A factorial *= k result = result + A_power / factorial return result
defmatrix_exp_diag(A): """Compute matrix exponential using diagonalization""" eigenvalues, P = eig(A) exp_D = np.diag(np.exp(eigenvalues)) return P @ exp_D @ np.linalg.inv(P)
# Test A = np.array([[1, 2], [3, 4]], dtype=float)
In "Stability Theory," we will: - Study Lyapunov stability in depth -
Analyze local behavior of nonlinear systems - Learn the Lyapunov
function method - Explore the beginnings of bifurcation and chaos
Exercises
Basic Problems
Compute the exponential of matrix,
i.e.,.
Solve the initial value problem:3. Determine the type of the origin
(node/spiral/saddle/center) for the following systems: - - -$A =
(e^A) =
e^{(A)}$.
For(repeated eigenvalue), find the
fundamental matrix.
Advanced Problems
Coupled harmonic oscillators:
Find the normal mode frequencies of the system
Prove conservation of energy
Analyze the beat frequency period
RLC circuit:
Prove the critical damping condition - Calculate the physical meaning of quality
factor - Design a
filter with bandwidth 10 Hz and center frequency 1000 Hz
Prove that if all eigenvalues ofhave negative real parts, then.
Chemical reaction: Consider the reaction:
Write in matrix form
Prove conservation of total mass
Find steady-state concentrations
Programming Problems
Implement function matrix_exp(A, t) to computeusing three methods and compare
accuracy.
Write a program to plot a complete phase portrait for 2×2
systems, including:
Direction field
Eigenvectors
Multiple trajectories
Automatic detection and labeling of equilibrium point type
Simulate a simplified three-body problem: three masses connected
by springs oscillating on a line.
Find the three normal modes
Visualize energy flow among the three masses
Implement a circuit simulator that can analyze the response of
arbitrary RLC networks.
Thought Questions
Why is(when)? Give a
specific counterexample.
Why can't trajectories in phase space cross (except at
equilibrium points)? What is the relationship with uniqueness of
solutions?
How can we intuitively understand that "zero trace means phase
space volume is conserved"?
References
Hirsch, M. W., Smale, S., & Devaney, R. L. (2012).
Differential Equations, Dynamical Systems, and an Introduction to
Chaos. Academic Press.
Strang, G. (2019). Linear Algebra and Learning from Data.
Wellesley-Cambridge Press.
Perko, L. (2001). Differential Equations and Dynamical
Systems. Springer.
MIT 18.03SC: Differential Equations, Unit III: Linear Systems.
Moler, C., & Van Loan, C. (2003). Nineteen dubious ways to
compute the exponential of a matrix. SIAM Review.