Higher-order linear equation 与 second-order equation 的基本思路相同:先解 associated homogeneous equation;如果有 forcing term,再加上一个 particular solution。不同之处在于,nth-order equation 需要 n 个 independent homogeneous solutions,也需要 n 个 initial conditions。
一般的 nth-order linear equation
在 interval I 上,考虑 normalized equation
y(n)+p1(t)y(n−1)+⋯+pn−1(t)y′+pn(t)y=g(t).
这里,y(k) 表示 y 对 t 的第 k 阶 derivative。y(n) 前面的 coefficient 是 1,所以这个方程称为 normalized。如果原方程的最高阶 derivative 前有一个不为零的 coefficient,应先在它不取零的 interval 上把整个方程除以它,再使用这个形式。
右边为零时,方程是 homogeneous:
y(n)+p1(t)y(n−1)+⋯+pn−1(t)y′+pn(t)y=0.
如果 g 不恒为零,方程就是 nonhomogeneous,而 g(t) 是 forcing term。
Initial conditions 与 interval theorem
一个 nth-order initial-value problem 会在同一点 t0 指定 solution 本身以及前 n−1 阶 derivatives 的值:
y(t0)=b0,y′(t0)=b1,…,y(n−1)(t0)=bn−1.
假设 I 是 open interval,t0∈I,并且
p1,…,pn,g
在 I 上都 continuous。那么,无论怎样选取 n 个 initial values b0,…,bn−1,都恰好有一个 solution 定义在整个 I 上。与 second-order theorem 一样,interval 不能省略:原方程最高阶 coefficient 的零点,或者 normalized coefficient 的 discontinuity,都可能把 real line 分成不同的有效 intervals。
Fundamental sets 与 Wronskian
假设 y1,…,yn 都是在 I 上满足 associated homogeneous equation 的 solutions。它们的 Wronskian 定义为
W[y1,…,yn](t)=dety1(t)y1′(t)⋮y1(n−1)(t)y2(t)y2′(t)⋮y2(n−1)(t)⋯⋯⋱⋯yn(t)yn′(t)⋮yn(n−1)(t).
每一列记录一个 solution 及其前 n−1 阶 derivatives。如果在某一点 t0∈I 有
W[y1,…,yn](t0)=0
这些列就是 independent 的。再结合 initial-value theorem,可知任意 n 个 initial values 都能由唯一一个 linear combination
c1y1+⋯+cnyn.
来匹配。此时,{y1,…,yn} 称为 I 上的 fundamental set of solutions,而 homogeneous general solution 是
yc(t)=c1y1(t)+⋯+cnyn(t).
下标 c 表示 complementary solution。对于同一个 regular homogeneous linear equation 的 solutions,Wronskian 只要在 interval 中某一点不为零,就会在整个 interval 上保持不为零。
加上 particular solution
设 yp 是 nonhomogeneous equation 的任意一个 particular solution。那么,它的 general solution 为
y(t)=yc(t)+yp(t)=c1y1(t)+⋯+cnyn(t)+yp(t)
这个结论来自 linearity。用 L[y]=g 表示 nonhomogeneous equation。如果 y 和 yp 都满足它,那么
L[y−yp]=L[y]−L[yp]=g−g=0.
所以 y−yp 一定是 homogeneous solution,可以用 fundamental set 写成 c1y1+⋯+cnyn。yc 中的 n 个 constants 正好用来匹配 n 个 initial conditions;particular solution 不会再增加 arbitrary constant。
Constant coefficients 的 homogeneous equations
现在考虑
a0y(n)+a1y(n−1)+⋯+an−1y′+any=0,a0=0,
其中每个 aj 都是常数。Exponential function 很适合这个问题,因为每求一次 derivative,只会多乘一个相同的数。尝试
y(t)=ert.
由于 y(k)=rkert,代入方程可得
ert(a0rn+a1rn−1+⋯+an−1r+an)=0.
ert 永远不为零,所以 r 必须满足 characteristic equation
P(r)=a0rn+a1rn−1+⋯+an−1r+an=0.
Fundamental Theorem of Algebra 说明:计算 multiplicity 时,degree-n characteristic polynomial 一共有 n 个 complex roots。这里先只考虑 n 个 roots r1,…,rn 都是 distinct real numbers 的情形。每一个 root 都给出一个 exponential solution erjt。
为什么 distinct exponentials 是 independent 的
按 Wronskian 各列采用的顺序排列 roots。对
yj(t)=erjt,
Wronskian 为
W(t)=deter1tr1er1t⋮r1n−1er1ter2tr2er2t⋮r2n−1er2t⋯⋯⋱⋯erntrnernt⋮rnn−1ernt=e(r1+⋯+rn)tdet1r1⋮r1n−11r2⋮r2n−1⋯⋯⋱⋯1rn⋮rnn−1=e(r1+⋯+rn)t1≤i<j≤n∏(rj−ri).
最后一个 determinant 称为 Vandermonde determinant。Exponential factor 永远不为零;由于 roots 互不相同,每个差 rj−ri 也不为零。因此,这些 exponentials 构成 fundamental set,并且
y(t)=c1er1t+⋯+cnernt.
一个 fourth-order 例题
求解 initial-value problem
y(4)+y′′′−7y′′−y′+6y=0,
y(0)=1,y′(0)=0,y′′(0)=−2,y′′′(0)=−1.
Characteristic polynomial 为
P(r)=r4+r3−7r2−r+6.
因为 P(1)=0,先除以 r−1:
P(r)=(r−1)(r3+2r2−5r−6).
Cubic polynomial 在 r=−1 时为零,剩下的 quadratic factor 为 r2+r−6=(r−2)(r+3)。所以
P(r)=(r+3)(r+1)(r−1)(r−2).
按从小到大的顺序取
r1=−3,r2=−1,r3=1,r4=2,
得到 fundamental solutions
e−3t,e−t,et,e2t.
在 t=0 处,它们的 Wronskian matrix 是
1−39−271−11−111111248.
它的 determinant 是 Vandermonde product:
i<j∏(rj−ri)=240=0,
因此,四个 exponentials 确实 independent。写成
y(t)=c1e−3t+c2e−t+c3et+c4e2t.
代入四个 initial conditions,得到
1−39−271−11−111111248c1c2c3c4=10−2−1.
解这个 system:
c1=−81,c2=125,c3=811,c4=−32.
所以
y(t)=−81e−3t+125e−t+811et−32e2t.
每个 exponential 都满足 differential equation,因为它的 exponent 是 P 的一个 root。把 t=0 代入 solution 及其前三阶 derivatives,依次得到 1、0、−2、−1,所以四个 initial conditions 全部满足。
不只有 distinct real roots
把 repeated roots 和 complex roots 按 multiplicity 计算后,degree-n characteristic polynomial 仍然共有 n 个 roots。改变的是我们要怎样从这些 roots 构造 real basis。
Repeated real roots
如果 real root r 的 multiplicity 是 m,只有一个 ert 不够。这个 root 会给出 m 个 functions:
ert, tert, t2ert,…,tm−1ert.
这些幂提供缺少的 independent solutions。例如,
y′′′−6y′′+12y′−8y=0
的 characteristic equation 是
r3−6r2+12r−8=(r−2)3=0.
r=2 的 multiplicity 为 3,所以一个 fundamental set 是
e2t,te2t,t2e2t,
general solution 为
y(t)=(C1+C2t+C3t2)e2t.
Complex-conjugate roots
当 differential equation 的 coefficients 都是 real numbers 时,nonreal roots 总是成 conjugate pairs 出现。一个 simple pair
r=α±iβ,β=0,
给出两个 real solutions:
eαtcos(βt),eαtsin(βt).
Real part α 控制 exponential envelope,∣β∣ 控制 angular frequency。例如,
y(4)−y=0
满足
r4−1=(r−1)(r+1)(r2+1),
所以 roots 为 1,−1,i,−i,并且
y(t)=C1et+C2e−t+C3cost+C4sint.
如果 α±iβ 的 multiplicity 是 m,要把两个 real modes 都分别乘上 1,t,…,tm−1。也就是说,每个这样的幂都会带来一个 cosine mode 和一个 sine mode。
例如,
y(4)+2y′′+y=0
的 characteristic polynomial 为
r4+2r2+1=(r2+1)2.
Conjugate pair ±i 的 multiplicity 为 2,所以
y(t)=C1cost+C2sint+C3tcost+C4tsint.
三种 root pattern 可以合在一张表里:
| Characteristic root | Multiplicity | 对应的 real modes |
|---|
| r∈R | m | tkert,其中 k=0,…,m−1 |
| α±iβ,β=0 | m | tkeαtcos(βt) 与 tkeαtsin(βt),其中 k=0,…,m−1 |
把 complex pair 的两个成员都算进去,最后一定得到与方程阶数相同数量的 independent real solutions。
从 roots 判断长期行为
当 t→∞ 时,与 r=α+iβ 对应的 mode 有下面这种 envelope:
tkeαt.
因此,可以直接按 real part 判断:
- 若 α<0,mode 趋于零。Negative exponential 的衰减会压过任何固定次数的 t。
- 若 α>0,除非 coefficient 为零,否则 mode 的 envelope 会按 exponential 增长,因而无界。
- 若 α=0 且 k=0,mode 是常数或持续的 bounded oscillation。
- 若 α=0 且 k≥1,除非 coefficient 为零,否则 polynomial factor 会让 envelope 无界增长。
要让完整 solution 趋于零,每一个不衰减的 mode 的 coefficient 都必须为零。不同 exponential rates 之间的抵消,不能在所有足够大的 t 上消除增长。
例如,在
y(t)=C1et+C2e−t+C3cost+C4sint,
中,e−t mode 会衰减;除非 C1=0,否则 et mode 会增长;sine 和 cosine modes 则会一直存在,除非 C3=C4=0。因此,y(t)→0 当且仅当
C1=C3=C4=0.
Higher-order nonhomogeneous equations
对 constant-coefficient equation
L[y]=a0y(n)+a1y(n−1)+⋯+any=g(t),
undetermined coefficients 与 second-order 时的思路相同。先求 complementary solution yc,再根据 forcing 选择一个在反复求 derivative 后仍保持同类形式的 trial family,作为 yp。
例如:
- Pd(t)eαt 对应 eαtQd(t);
- Pd(t)eαtcos(βt) 或 Pd(t)eαtsin(βt) 要同时保留 sine 与 cosine:
eαt[Qd(t)cos(βt)+Rd(t)sin(βt)].
这里 Pd 是已知的 degree-d polynomial;Qd 与 Rd 则是从最高次项到常数项都完整保留、coefficients 尚待确定的 degree-d polynomials。
Resonance 与 multiplicity
把 natural trial 代入之前,先比较它的 exponential frequency 与 characteristic roots。令
z=α+iβ.
如果 z 是 multiplicity 为 m 的 characteristic root,就把整个 natural trial 乘上 tm:
yp=tm×(natural trial).
如果 z 不是 root,就取 m=0,不需要额外的 t。这个规则把 trial 移出 homogeneous solution space,但还没有确定 unknown coefficients;仍然要把 trial 代回原 ODE 才能求出它们。
当 g=g1+g2 时,可以利用 linearity 分别寻找 particular solutions,再把它们相加:
L[yp,1]=g1,L[yp,2]=g2⟹L[yp,1+yp,2]=g1+g2.
例:没有 resonance 的 exponential forcing
求解
y(4)−y=3e2t.
Associated homogeneous equation 的 characteristic polynomial 是
P(r)=r4−1=(r−1)(r+1)(r2+1),
所以
yc=C1et+C2e−t+C3cost+C4sint.
Forcing 对应 r=2,并且
P(2)=24−1=15=0.
这里没有 resonance,因此尝试
yp=Ae2t.
它的 fourth derivative 是 16Ae2t。代回方程:
yp(4)−yp=(16A−A)e2t=15Ae2t=3e2t,
所以 A=1/5。General solution 为
y(t)=C1et+C2e−t+C3cost+C4sint+51e2t.
例:同时含有 resonance 与 constant forcing
求解
y′′′−y′′−y′+y=2e−t+3.
Characteristic polynomial 可以 factorize 为
P(r)=r3−r2−r+1=(r−1)(r2−1)=(r−1)2(r+1).
因此,r=1 是 double root,r=−1 是 simple root,并且
yc=C1et+C2tet+C3e−t.
分别处理两个 forcing terms。Natural trial Ae−t 与 simple root −1 重合,所以要乘一个 t。Constant forcing 对应 r=0,而 P(0)=1=0,所以不必调整它的 trial。取
yp=Ate−t+B.
依次求 derivatives:
yp′yp′′yp′′′=Ae−t−Ate−t,=−2Ae−t+Ate−t,=3Ae−t−Ate−t.
代回左侧:
yp′′′−yp′′−yp′+yp=4Ae−t+B=2e−t+3.
所以 A=1/2、B=3。General solution 为
y(t)=C1et+C2tet+C3e−t+21te−t+3.
这个 solution 也说明 forcing 会改变长期行为。两个含 e−t 的 terms 都会衰减,但 particular constant 会留下来。只有当 growing coefficients 消失,也就是
C1=C2=0.
solution 才会趋于 3。它不可能趋于零,因为 constant forcing 产生了无法去掉的 steady particular solution 3。