第 23 章
微分方程与矩阵指数 e^{At}
du/dt = Au 的解是特征向量乘指数;用 SΛS⁻¹ 把系统解耦,得到矩阵指数,并由特征值实部的符号判断稳定、稳态与发散。
Differential Equations and the Matrix Exponential e^{At}
The solution of du/dt = Au is a combination of eigenvectors times exponentials; SΛS⁻¹ decouples the system, giving the matrix exponential and a stability test based on the real parts of eigenvalues.
篇内目录
- From discrete to continuous
- Timeline
- A complete two-dimensional example
- Eigenvalues first
- Then eigenvectors
- The general solution
- Fixing the coefficients
- Reading the answer
- Stability, steady state, blow-up
- Why the real part, not the modulus
- A quick test for
- Decoupling with and
- The matrix exponential
- Definition
- Relation to diagonalization
- The assumption
- Turning a higher-order equation into a first-order system
- Core review
- Common misconceptions
- Check your understanding
- How this connects
从离散到连续
上一讲解 ,解里出现 。这一讲解
常数系数线性微分方程的解是指数函数,所以答案里出现 。两套理论完全平行:幂换成指数,特征值仍然决定一切。
时间轴
| 时间 | 内容 |
|---|---|
| 0:00 | 微分方程组 |
| 3:00 | 矩阵结构与它的特征值 |
| 6:13 | 稳态对应零特征值 |
| 9:23 | 解是 的组合 |
| 12:51 | 负特征值项随时间衰减 |
| 15:59 | 稳态 的计算 |
| 19:04 | 稳定性判据: |
| 22:18 | 2×2 系统的稳定性条件 |
| 25:21 | 用迹与行列式给出的判据 |
| 28:37 | 耦合系统与矩阵耦合 |
| 32:04 | |
| 35:10 | 矩阵指数的泰勒级数 |
| 38:28 | 级数收敛的条件 |
| 41:29 | 用 与 计算矩阵指数 |
| 44:47 | 对角化后化为标量指数 |
| 47:57 | 高阶方程化为一阶系统 |
一个完整的二维例子
设
先求特征值
矩阵奇异——第二列是第一列的 倍——所以 。迹为 ,因此 。
也可以用特征多项式验证:
再求特征向量
:零空间满足 ,取
:解 ,其中
零空间由
张成(取 也可以)。
写出通解
两个纯指数解是 与 ,通解为它们的线性组合:
为什么它满足方程?对第一项求导得 ,而 中对应项是 ,两边相等。第二项同理。
用初值定系数
在 :
即
所以 ,解为
读懂这个解
- 第一项不随时间变化,是稳态。
- 第二项以 衰减,最终消失。
- 当 ,。初始的 有一部分「流」到了第二个分量。
这正是特征值在开头就预告的行为:一个零特征值给出稳态,一个负特征值给出衰减。
稳定、稳态与发散
| 情形 | 特征值条件 | 长期行为 |
|---|---|---|
| 稳定 | 所有 | |
| 稳态 | 一个 ,其余 | 收敛到非零常数向量 |
| 发散 | 任一 | 至少一个分量指数增长 |
为什么看实部而不是模
若 ,则
的模恒为 1,只在单位圆上转。决定增长或衰减的只有实部 。虚部只带来振荡。
所以:
- 差分方程的稳定区域是复平面上的单位圆内()。
- 微分方程的稳定区域是左半平面()。
二阶矩阵的快速判据
对 矩阵,两个特征值实部都为负,等价于
迹是特征值之和,行列式是乘积。两个实部为负的数,和必为负、积必为正;复共轭情形同理。
单独一个条件不够。反例:
迹为 ,但特征值是 与 ,仍然发散。所以行列式条件不能省。
用 S 和 Λ 解耦
把 代入 :
左乘 :
系统变成 个独立方程:
每个解是 ,即
回到原变量:
这解释了为什么 的列必须是特征向量:换到特征向量基下,系统没有耦合。
矩阵指数
定义
把标量指数函数的幂级数搬到矩阵上:
这个级数对任何矩阵、任何 都收敛,因为分母的阶乘增长得足够快。
与对角化的关系
把 代入每一项:
级数逐项提出 与 ,中间剩下
所以
对角矩阵的指数只需对每个对角元取指数:
前提
这个推导要求 可对角化。特征向量不足的矩阵没有 ,需要改用 Jordan 形式或其他方法。课堂上明确把这一类留到后面处理。
把高阶方程化成一阶系统
考虑二阶方程
令
则
第一行来自原方程,第二行是恒等式 。特征值满足
与原方程的特征方程一致。这个方法可以推广到任意阶:把最高阶导数放第一行,其余行放移位单位矩阵。
核心回顾
- 的解是特征向量乘 的线性组合。
- 通解的系数由初值 决定。
- 稳定看实部:全负趋于零,有零且其余为负趋于稳态,有正则发散。
- 稳定判据:迹为负且行列式为正。
- 换基到特征向量后系统解耦,得到 。
- 矩阵指数由幂级数定义,,要求可对角化。
常见误区
- 用特征值的模判断连续系统的稳定性。要看实部;模对应的是离散系统。
- 忽略虚部。虚部不改变增长趋势,但会产生振荡,解不是单调的。
- 只检查迹为负。还必须检查行列式为正。
- 把矩阵指数当成逐元素取指数。 不是对每个元素求 。
- 忘记初始条件的作用。特征值决定行为类型,初值决定各分量占多少。
理解检验
1. 为什么 对应稳态而不是衰减?
参考答案:对应分量是 ,即 对一切 成立,大小和方向都不变。它落在零空间里(),所以这个模式被「保存」下来,形成不随时间变化的常数项。只有当 时指数才衰减; 恰好处在稳定与发散的边界上。
2. 若特征值是 ,解会发散吗?会振荡吗?
参考答案:不会发散,会振荡。对复数特征值,
模为 ,实部 使它随时间衰减到零;虚部 只是让解以角频率 旋转、产生振荡,不改变增长趋势。所以解是衰减振荡(螺旋收敛)。
3. 用迹与行列式判断 是否稳定。
参考答案:,。稳定判据要求 且 ;这里 ,判据不满足,所以它不是渐近稳定的。直接求特征值:特征多项式为 ,、。零特征值给出稳态,负特征值给出衰减,因此解有界并收敛到非零的稳态向量(正文中为 ),而不是收敛到零。
4. 写出 对应的一阶系统与特征方程。
参考答案:取 ,则
特征方程为
所以 、。两个特征值都为负,解单调衰减到零。
5. 推导 时,哪一步用到了 可逆?
参考答案:第一步就把 写成 ,这需要 存在;等价地,需要 有 个线性无关的特征向量。代入幂级数后,,相邻项之间的 才能消掉,级数才能整理成 。若 不可对角化,就没有这样的 ,必须改用 Jordan 形式或别的方法。
与前后课程的关系
上一讲是离散时间,这一讲是连续时间。接下来课程转向对称矩阵:它们的特征值必为实数、特征向量必正交,因此一定可以对角化,而且分解是正交的——这解决了本章遗留的「坏情况」中的一大类。
From discrete to continuous
The previous lecture solved , with in the answer. This one solves
Solutions of constant-coefficient linear equations are exponentials, so appears. The two theories run in parallel: powers become exponentials, and eigenvalues still decide the behavior.
Timeline
| Time | Topic |
|---|---|
| 0:00 | Systems |
| 3:00 | The matrix structure and its eigenvalues |
| 6:13 | Steady states correspond to |
| 9:23 | Solutions are combinations of |
| 12:51 | Negative eigenvalues decay |
| 15:59 | Computing |
| 19:04 | Stability requires |
| 22:18 | Stability conditions for 2×2 systems |
| 25:21 | The trace-determinant criterion |
| 28:37 | Coupled systems |
| 32:04 | |
| 35:10 | The Taylor series for |
| 38:28 | When the series converges |
| 41:29 | Computing with and |
| 44:47 | Diagonalization reduces to scalar exponentials |
| 47:57 | Higher-order equations become first-order systems |
A complete two-dimensional example
Let
Eigenvalues first
The matrix is singular — the second column is times the first — so . The trace is , so .
The characteristic polynomial confirms it:
Then eigenvectors
For , the null space satisfies , so take
For , solve with
whose null space is spanned by
(using is equally fine).
The general solution
The two pure exponential solutions are and , and the general solution is their combination:
Why does it solve the equation? Differentiate the first term: . On the other side, contains . The two sides match; the second term works the same way.
Fixing the coefficients
At :
so
Hence , and
Reading the answer
- The first term never changes: a steady state.
- The second decays as and disappears.
- As , . Part of the initial has flowed into the second component.
The eigenvalues predicted this at the outset: a zero eigenvalue produces the steady state, a negative one produces decay.
Stability, steady state, blow-up
| Behavior | Eigenvalue condition | Long-term outcome |
|---|---|---|
| Stable | for all | |
| Steady state | One , others | Converges to a nonzero constant vector |
| Blow-up | Any | At least one component grows exponentially |
Why the real part, not the modulus
If , then
and has modulus 1, circling the unit circle. Only the real part decides growth or decay; the imaginary part produces oscillation.
So:
- For difference equations, the stable region is the unit disk ().
- For differential equations, it is the left half-plane ().
A quick test for
Both eigenvalues have negative real part exactly when
The trace is the sum and the determinant is the product. Two numbers with negative real parts have a negative sum and a positive product; the complex-conjugate case behaves the same way.
One condition alone is not enough. Counterexample:
The trace is , but the eigenvalues are and , so the system blows up. The determinant condition is essential.
Decoupling with and
Substitute into :
Left-multiply by :
The system becomes independent equations:
Each solves as , so
and in the original variables
This is why the columns of must be eigenvectors: in the eigenvector basis the system has no coupling.
The matrix exponential
Definition
Move the scalar power series to matrices:
The series converges for every matrix and every , because the factorial in the denominator grows fast enough.
Relation to diagonalization
Substitute into each term:
Factor out of the whole series on the left and on the right; what remains is
Therefore
The exponential of a diagonal matrix is just the diagonal of scalar exponentials:
The assumption
This derivation requires to be diagonalizable. A matrix with too few eigenvectors has no and needs Jordan form or another method. The lecture explicitly leaves that case aside.
Turning a higher-order equation into a first-order system
Consider
Let
Then
The first row comes from the equation; the second is the identity . The eigenvalues satisfy
which is the original characteristic equation. The trick generalizes to any order: the coefficient row goes first, and shifted identity rows fill the rest.
Core review
- The solution of is a combination of eigenvectors times .
- The coefficients come from the initial condition via .
- Stability is about the real part: all negative decays, one zero and the rest negative gives a steady state, any positive blows up.
- The stability test is negative trace and positive determinant.
- In the eigenvector basis the system decouples, giving .
- The matrix exponential is defined by a power series, and when diagonalizes.
Common misconceptions
- Using the modulus for continuous-time stability. Look at the real part; the modulus belongs to discrete time.
- Ignoring the imaginary part. It does not change growth, but it produces oscillation rather than monotone decay.
- Checking only a negative trace. The determinant must be positive as well.
- Treating as elementwise exponentiation. It is not entry by entry.
- Forgetting the initial condition. Eigenvalues determine the type of behavior; the initial vector determines how much of each mode is present.
Check your understanding
1. Why does produce a steady state rather than decay?
Reference answer: The corresponding mode is , so for all and neither magnitude nor direction changes. It lies in the nullspace (), so the mode is preserved as a constant term. Decay requires ; sits exactly on the boundary between stability and divergence.
2. If the eigenvalues are , does the solution blow up? Does it oscillate?
Reference answer: It does not blow up; it oscillates. For complex eigenvalues,
whose modulus is ; the real part drives it to zero. The imaginary part only rotates the solution at angular frequency , producing oscillation without changing the growth trend. The solution is a decaying spiral.
3. Use trace and determinant to decide whether is stable.
Reference answer: and . The stability test requires and ; here , so the test fails and the system is not asymptotically stable. Computing directly: the characteristic polynomial is , so and . The zero eigenvalue gives a steady state and the negative one decays, so the solution stays bounded and converges to a nonzero steady vector (in the text, ) rather than to zero.
4. Write the first-order system and characteristic equation for .
Reference answer: Set ; then
The characteristic equation is
so , . Both are negative, and the solution decays monotonically to zero.
5. In the derivation of , which step uses invertibility of ?
Reference answer: The very first step writes , which needs to exist — equivalently, must have linearly independent eigenvectors. Substituting into the power series gives , so the adjacent factors cancel and the series collapses to . Without diagonalizability there is no such , and one must use Jordan form or another method.
How this connects
The previous lecture handled discrete time; this one handles continuous time. The course next turns to symmetric matrices: their eigenvalues are real and their eigenvectors orthogonal, so they always diagonalize, and the decomposition is orthogonal. That resolves a large part of the chapter's "bad cases".