跳到正文

个人记录

《Algebra》习题选做 Chapter 1

Elegia约 9 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 9 分钟

版本

  1. v1当前

Chapter 1 Matrices

2.6. 计算帕斯卡三角矩阵的逆:

[111121133114641]\begin{bmatrix} 1\\ 1&1\\ 1&2&1\\ 1&3&3&1\\ 1&4&6&4&1\\ \end{bmatrix}

注意到下三角矩阵,可以比较方便消元。

[111121133114641|11111]⇒[11111211331|1−11−11−11−11]⇒[11111121|1−111−211−211−21]⇒[111111|1−111−21−13−31−13−31]⇒[11111|1−111−21−13−311−46−41]\begin{aligned} &\left[ \begin{matrix} 1\\ 1&1\\ 1&2&1\\ 1&3&3&1\\ 1&4&6&4&1\\ \end{matrix} \middle| \begin{matrix} 1\\ &1\\ &&1\\ &&&1\\ &&&&1\\ \end{matrix} \right]\\ \Rightarrow& \left[ \begin{matrix} 1\\ &1\\ &1&1\\ &1&2&1\\ &1&3&3&1\\ \end{matrix} \middle| \begin{matrix} 1\\ -1&1\\ &-1&1\\ &&-1&1\\ &&&-1&1\\ \end{matrix} \right] \\ \Rightarrow& \left[ \begin{matrix} 1\\ &1\\ &&1\\ &&1&1\\ &&1&2&1\\ \end{matrix} \middle| \begin{matrix} 1\\ -1&1\\ 1&-2&1\\ &1&-2&1\\ &&1&-2&1\\ \end{matrix} \right] \\ \Rightarrow& \left[ \begin{matrix} 1\\ &1\\ &&1\\ &&&1\\ &&&1&1\\ \end{matrix} \middle| \begin{matrix} 1\\ -1&1\\ 1&-2&1\\ -1&3&-3&1\\ &-1&3&-3&1\\ \end{matrix} \right] \\ \Rightarrow& \left[ \begin{matrix} 1\\ &1\\ &&1\\ &&&1\\ &&&&1\\ \end{matrix} \middle| \begin{matrix} 1\\ -1&1\\ 1&-2&1\\ -1&3&-3&1\\ 1&-4&6&-4&1\\ \end{matrix} \right] \end{aligned}

容易得到,[(ij)]−1=[(−1)i−j(ij)][\binom i j]^{-1} = [(-1)^{i-j}\binom i j],其实这就是变换 f(x+1)f(x+1) 和 f(x−1)f(x-1)(或者转置上说就是对 EGF 乘以 exp⁡x\exp x 和 exp⁡−x\exp -x)

点评:其实结论的形式我们并不陌生,但是求解的过程其实是很多途径的。

M.1. 记分块矩阵 M=[ABCD]\mathbf M=\begin{bmatrix} \mathbf A&\mathbf B\\\mathbf C&\mathbf D \end{bmatrix},其中都是 n×nn\times n 的矩阵。求证若 A\mathbf A 可逆且 AC=CA\mathbf A\mathbf C=\mathbf C\mathbf A,则 det⁡M=det⁡(AD−CB)\det \mathbf M = \det (\mathbf A \mathbf D - \mathbf C \mathbf B)。

考虑 [I−CA][ABCD]=[ABAC−CAAD−CB]\begin{bmatrix} \mathbf I&\\-\mathbf C&\mathbf A \end{bmatrix}\begin{bmatrix} \mathbf A&\mathbf B\\\mathbf C&\mathbf D \end{bmatrix}=\begin{bmatrix} \mathbf A&\mathbf B\\\mathbf A\mathbf C - \mathbf C\mathbf A&\mathbf A\mathbf D - \mathbf C\mathbf B \end{bmatrix},两边同取行列式得

det⁡Idet⁡Adet⁡M=det⁡[ABAD−CB]=det⁡Adet⁡(AD−CB)\det \mathbf I \det \mathbf A \det \mathbf M = \det \begin{bmatrix} \mathbf A&\mathbf B\\&\mathbf A\mathbf D - \mathbf C\mathbf B \end{bmatrix} = \det \mathbf A \det(\mathbf A \mathbf D - \mathbf C \mathbf B)

因为 A\mathbf A 可逆,所以两边可以除掉 det⁡A\det \mathbf A,等式得证。

点评:分块矩阵的行列变换在进行的时候要分析更加小心,一是要注意不存在交换律,二是对行列式值的影响。

M.4. 求证 AB−BA=I\mathbf A \mathbf B - \mathbf B \mathbf A = \mathbf I 对于方阵 A,B\mathbf A, \mathbf B 无解。

考虑计算矩阵的迹,tr⁡AB=tr⁡BA\operatorname{tr} \mathbf A \mathbf B = \operatorname{tr} \mathbf B \mathbf A,而 tr⁡I=n\operatorname{tr} \mathbf I = n,左右必然不相等。

点评:矩阵的迹 tr⁡M=∑i=1nMii\operatorname{tr} \mathbf M = \sum_{i=1}^n \mathbf M_{ii} 有很不错的性质,因为 M1M2⋯Mk\mathbf M_1 \mathbf M_2 \cdots \mathbf M_k 的任何一个 cyclic shift 都不改变迹的值。

M.10. 矩阵 A,B\mathbf A,\mathbf B 分别是一个 m×nm\times n 和 n×mn\times m 的矩阵,求证 Im−AB\mathbf I_m - \mathbf A\mathbf B 可逆当且仅当 In−BA\mathbf I_n - \mathbf B\mathbf A 可逆。

我们先做一个启发式的推导:由 (1−x)−1=∑n≥0xn(1-x)^{-1} = \sum_{n\ge 0} x^n,我们先尝试展开:

(Im−AB)−1=Im+AB+(AB)2+⋯=Im+A(In+BA+(BA)2+⋯ )B=Im+A(In−BA)−1B\begin{aligned} (\mathbf I_m - \mathbf {AB})^{-1} & = \mathbf I_m + \mathbf{AB} + (\mathbf{AB})^2 + \cdots\\ &= \mathbf I_m + \mathbf A ( \mathbf I_n + \mathbf {BA} + (\mathbf{BA})^2 + \cdots )\mathbf B \\ &= \mathbf I_m + \mathbf A (\mathbf I_n - \mathbf{BA})^{-1} \mathbf B \end{aligned}

这个推导并不严谨,但是让我们猜到了答案。设 X=(In−BA)−1\mathbf X = (\mathbf I_n - \mathbf{BA})^{-1},根据 X−BAX=In\mathbf {X - BAX} = \mathbf I_n 我们可以得到

(Im−AB)(Im+AXB)=Im−AB+AXB−ABAXB=Im−AB+AXB−A(X−In)B=Im\begin{aligned} & \quad (\mathbf I_m - \mathbf{AB}) (\mathbf I_m + \mathbf {AXB}) \\ &=\mathbf I_m - \mathbf{AB} + \mathbf{AXB} - \mathbf{ABAXB}\\ &=\mathbf I_m - \mathbf{AB} + \mathbf{AXB} - \mathbf A (\mathbf X - \mathbf I_n) \mathbf B\\ &=\mathbf I_m \end{aligned}

因此 (Im−AB)−1=Im+AXB(\mathbf I_m - \mathbf {AB})^{-1} = \mathbf I_m + \mathbf {AXB},同理可知反着也正确。

点评:级数展开的意想不到的用途。

M.11. (离散 Dirichlet 问题)对于函数 f(u,v)f(u, v) 的 Laplace 方程 ∂2f∂u2+∂2f∂v2=0\frac{\partial ^2f}{\partial u^2} + \frac{\partial ^2f}{\partial v^2} = 0 的离散情况:

在离散情况下,一个点满足的 Laplace 方程是

f(u+1,v)+f(u−1,v)+f(u,v+1)+f(u,v−1)−4f(u,v)=0f(u+1,v)+f(u-1,v)+f(u,v+1)+f(u,v-1)-4f(u,v)=0

也就是每个点的值是相邻四个点的平均数。令平面的有限整点区域 RR 是满足该方程的全体 (u,v)(u, v),边界 ∂R\partial R 是不在 RR 中,但与 RR 的距离为 11 的全体整点。R‾=∂R∪R\overline R = \partial R \cup R 是 ff 的定义域。我们想要求解这个线性方程组 LX=B\mathbf {LX} = \mathbf B,其中已知值是 ∂R\partial R 上的点有 f(u,v)=βuvf(u, v) = \beta_{uv}。

(b) maximum principle 指出 ff 的最大值必然在边界上,请证明。

(c) 请证明对于任意一组 R,βR, \beta,方程的解唯一。

(b) 反证,假设 RR 中有最大数 MM 大于 max⁡β\max \beta,那么它相邻的数必然都 =M=M ,我们将这个数加进来,得到的是一个:3x1+3x2=⋯3 x_1 + 3x_2 = \cdots,其中右边有 66 项,两边除以 66,又是一个平均值,这个平均值还是 =M= M,我们将这个过程看做一个区域 R′R' 的扩张,那么每时每刻满足一个等式:

∑(u,v)∈R′α⁡uvf(u,v)=∑(u,v)∈∂R′α⁡uvf(u,v)\sum_{(u,v) \in R'} \operatorname \alpha_{uv} f(u,v) = \sum_{(u,v) \in \partial R'} \operatorname \alpha_{uv} f(u,v)

其中 αuv\alpha_{uv} 在 R′R' 内是与 ∂R\partial R 的邻接数量,在 ∂R\partial R 是与 RR 的邻接数量。可知两个 α\alpha 求和相等,因此邻接的数总是 =M=M。一直扩张到 ∂R′∩∂R≠∅\partial R' \cap \partial R \neq \varnothing,导出矛盾。

(c) 假设有两个解 X,Y\mathbf X, \mathbf Y,考察 X−Y\mathbf X - \mathbf Y,对它而言 β=0\beta = 0 也就是最小值和最大值都是 00,由 (b) 可知解只能是 X−Y=0\mathbf X - \mathbf Y=\mathbf 0,因此 X=Y\mathbf X = \mathbf Y,即解唯一。

原文