---
title: "L45 初等变换、初等矩阵与秩"
author: Maki的完美算术教室
pubDatetime: 2026-11-24T00:00:00+08:00
featured: false
draft: false
printable: true
copyable: true
tags:
  - 考研数学
  - Maki Math
  - 大串讲
  - 线性代数
description: "22 个题位里 20 个选填，初等矩阵左行右列是必背动作，秩的选择题难度最高且难题集中在数一；伴随矩阵的秩按三分法判，矩阵方程只有 2015 一道大题。"
---

:::note[来源与版权]
来自 **Maki 的完美算术教室**。本讲义版权归原作者所有，本站仅供学习交流与自用，如有侵权联系删除。

- [Maki 的完美算术教室（哔哩哔哩）](https://space.bilibili.com/391930545)
- [Maki Math 官网](https://maki-math.com)
:::

- [Maki 动画讲解（l45）](https://bu.cnies.org/maki/anim/l45/)

**本讲定位**：<strong>“地基三讲”里体量最大的一讲，而且它基本是一讲选择题课</strong>。16 道独立题、**22 个卷面题位**，数一 **1.41%**、数二 **1.70%**、数三 **1.35%**，每年 2.1／2.6／2.0 分。关键是 22 个题位的构成：**15 选 $+$ 5 填，解答题位只有 2 个**。本编前半段（L43–L47）的解答题位里，L43、L44 是 0，本讲只有 2 个—— **地基三讲基本不以大题形式向你要分**。

本讲下挂三个考点，权重差得很远，别平均用力：**初等变换与初等矩阵**（11 题位，**9 选 2 填、零解答**）是选择题的主战场；**矩阵的秩**（8 题位，**6 选 2 填、零解答**）同样全是选填，但难度最高；**矩阵方程**（3 题位、2 个解答题位，三卷 5.0／10.4／10.4 分）是本讲仅有的大题形态。

:::note[考情频率]
22 个题位里 20 个是选填，**这基本是一讲选择题课**。**初等变换与初等矩阵**：11 个题位全是选填（数二 24 分、数三 19 分，数一只有 8 分），难度 2.67，本讲最低。**矩阵的秩**有 8 个题位、同样全是选填（**数一 23 分，数二 9 分、数三 5 分**），但难度 3.25，是本讲最高，且难题全在数一卷；伴随矩阵的秩三分法归在这一块里（2024 数二 9、2026 数三 6 两道题都在这里）。**矩阵方程**只有 2 道独立题、3 个题位，其中 2 个解答题位（2015 数二数三同题）$+$ 1 个填空（2022 数一 15）——十七年只落过一次大题。注意两处边界：秩那一块里“$\operatorname{\text{r}} (A, A B) = \operatorname{\text{r}} (A)$”那道三卷同题（2018）主线要用向量组互相线性表示，整道归 **L48 第三节**；矩阵方程里“设元化线性方程组”那道三卷同题（2013）主线是解四元方程组，整道归 **L48 第一节**。所以“秩的性质”不是拿来写证明的，是拿来在四个选项之间快速判定的。
:::

## 初等矩阵：左行右列

:::caution[易错提醒]
先给权重：这个考点 17 年 6 道独立题、11 个卷面题位，**9 选 2 填、零解答**，难度 2.67（本讲最低）。分值上 **数二 24 分、数三 19 分，数一只有 8 分**——数二数三同学在这里的收益是数一的两三倍，值得多练两道。考法几乎只有一种：**给 $A$ 与 $B$ 的变换关系，问 $A$、$B$、$P$、$Q$ 之间的等式**。
:::

:::note[三类初等矩阵的定义]
对**单位矩阵 $E$** 做**一次**初等变换（就是 L43 的 43.6 那三种动作）得到的矩阵，叫**初等矩阵**。所以初等矩阵一共只有三类，每一类都长得离单位阵只差一点：

<strong>（一）互换型 $E(i, j)$</strong>：把 $E$ 的第 $i$ 行与第 $j$ 行对调。外形是**单位阵把 $(i, i)$ 与 $(j, j)$ 两个 $1$ 挪到了 $(i, j)$ 与 $(j, i)$ 上**。以 $3$ 阶、$i = 1, j = 2$ 为例：

$$
E(1, 2) = \begin{pmatrix}0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1\end{pmatrix}, \qquad \left|E(i, j)\right| = -1, \qquad E(i, j)^{-1} = E(i, j) \, (\text{它自己的逆是它自己}) .
$$

<strong>（二）倍乘型 $E(i(k))$（$k \neq 0$）</strong>：把 $E$ 第 $i$ 行乘 $k$。外形是**单位阵把第 $i$ 个对角元由 $1$ 换成 $k$**，其余原封不动。以 $3$ 阶、$i = 2$ 为例：

$$
E(2 (k)) = \begin{pmatrix}1 & 0 & 0 \\ 0 & k & 0 \\ 0 & 0 & 1\end{pmatrix}, \qquad \left|E(i(k))\right| = k, \qquad E(i(k))^{-1} = E \! \left(i \! \left(\frac{1}{k}\right)\right) .
$$

<strong>（三）倍加型 $E(i, j(k))$</strong>：把 $E$ 第 $j$ 行的 $k$ 倍加到第 $i$ 行。外形是**单位阵在 $(i, j)$ 位置多了一个 $k$**，其余原封不动（对角线仍全是 $1$）。以 $3$ 阶、$i = 3, j = 1$ 为例：

$$
E(3, 1 (k)) = \begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ k & 0 & 1\end{pmatrix}, \qquad \left|E(i, j(k))\right| = 1, \qquad E(i, j(k))^{-1} = E(i, j(-k)) .
$$

**三条通用事实**：初等矩阵**都可逆**（行列式分别是 $-1$、$k$、$1$，都不为零），**它的逆还是同类型的初等矩阵**（见上面各行右端），而且**由 $E$ 做行变换和做列变换得到的是同一批矩阵**——例如“第 1 行与第 2 行对调”和“第 1 列与第 2 列对调”给出的都是上面那个 $E(1, 2)$。只是**把它乘到别的矩阵上时，左乘按行、右乘按列**（下面 45.1）。
:::

:::tip[初等矩阵左乘行变换与右乘列变换]
用初等矩阵**左乘** $A$，相当于对 $A$ 做相应的**行**变换；**右乘**相当于做**列**变换。
:::

:::caution[易错提醒]
<strong>做题步骤（这一套动作 17 年考了 6 次）</strong>：

1. 看清 $B$ 由 $A$ 经过哪些**行**变换、哪些**列**变换得到。
2. 行变换写在左边，且**按施行顺序从右往左叠**（先做的靠近 $A$）；列变换写在右边，从左往右叠。
3. 题目问的往往不是 $B$ 而是 $A$，此时把等式**反解**，用 $E(i, j)^{-1} = E(i, j)$、$E(i(k))^{-1} = E \left(i \left(\frac{1}{k}\right)\right)$、$E(i, j(k))^{-1} = E(i, j(-k))$。

第 2 步的顺序和第 3 步的反解，是这类题仅有的两个失分点。
:::

<strong>真题演练（标准形态，三卷同题）</strong>。题目给的是“先做一次列变换、再做一次行变换，结果是 $E$”，问 $A$ 等于什么。两个动作、一左一右、还要反解——本考点的三个要素一次给全了。

**左行右列 $+$ 反解**

:::note[题目 1（单选题）]
【难度 2/5】

设 $\mathbf{A}$ 为 $3$ 阶矩阵，将 $\mathbf{A}$ 的第 $2$ 列加到第 $1$ 列得矩阵 $\mathbf{B}$，再交换 $\mathbf{B}$ 的第 $2$ 行与第 $3$ 行得单位矩阵.记 $\mathbf{P}_1 = \begin{pmatrix}1 & 0 & 0 \\ 1 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}$，$\mathbf{P}_2 = \begin{pmatrix}1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0\end{pmatrix}$，则 $\mathbf{A} =$

- A. $\mathbf{P}_1 \mathbf{P}_2$
- B. $\mathbf{P}_1^{-1} \mathbf{P}_2$
- C. $\mathbf{P}_2 \mathbf{P}_1$
- D. $\mathbf{P}_2 \mathbf{P}_1^{-1}$

<details data-answer>
<summary>点击查看答案</summary>

**答案**：$\mathrm{D}$

**考点**：初等变换的矩阵表示：**行变换左乘、列变换右乘**。把两步变换写成矩阵等式，再解出 $\mathbf{A}$。

**解答**：

**第一步：把「第 $2$ 列加到第 $1$ 列」写成右乘**。把 $\mathbf{A}$ 按列分块记作 $\mathbf{A} = (\mathbf{a}_1, \mathbf{a}_2, \mathbf{a}_3)$。设 $\mathbf{M}$ 为 $3$ 阶矩阵，$\mathbf{A} \mathbf{M}$ 的第 $1$ 列等于 $\mathbf{A}$ 的各列以 $\mathbf{M}$ 第 $1$ 列的元素为系数的线性组合。取 $\mathbf{M} = \mathbf{P}_1 = \begin{pmatrix}1 & 0 & 0 \\ 1 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}$，其第 $1$ 列为 $(1, 1, 0)^{\mathrm{T}}$，故

$$
\left(\mathbf{A} \mathbf{P}_1\right) \text{的第 1 列} = 1 \cdot \mathbf{a}_1 +1 \cdot \mathbf{a}_2 +0 \cdot \mathbf{a}_3 = \mathbf{a}_1 +\mathbf{a}_2,
$$

第 $2$、$3$ 列不变（$\mathbf{P}_1$ 的第 $2$、$3$ 列就是 $\mathbf{e}_2$、$\mathbf{e}_3$）。这正是「把 $\mathbf{A}$ 的第 $2$ 列加到第 $1$ 列」，所以

$$
\mathbf{B} = \mathbf{A} \mathbf{P}_1 .
$$

**第二步：把「交换第 $2$、$3$ 行」写成左乘**。$\mathbf{P}_2$ 是把单位阵第 $2$、$3$ 行对换得到的初等矩阵，左乘即对换被乘矩阵的第 $2$、$3$ 行，故

$$
\mathbf{P}_2 \mathbf{B} = \mathbf{E}, \qquad \text{即} \qquad \mathbf{P}_2 \mathbf{A} \mathbf{P}_1 = \mathbf{E} .
$$

**第三步：解出 $\mathbf{A}$**。初等矩阵都可逆，两边左乘 $\mathbf{P}_2^{-1}$、右乘 $\mathbf{P}_1^{-1}$：

$$
\mathbf{A} = \mathbf{P}_2^{-1} \mathbf{P}_1^{-1} .
$$

对换矩阵满足 $\mathbf{P}_2^2 = \mathbf{E}$，即 $\mathbf{P}_2^{-1} = \mathbf{P}_2$；而 $\mathbf{P}_1^{-1} = \begin{pmatrix}1 & 0 & 0 \\ -1 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix} \neq \mathbf{P}_1$。于是

$$
\mathbf{A} = \mathbf{P}_2 \mathbf{P}_1^{-1} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 0 & 1 \\ -1 & 1 & 0\end{pmatrix} .
$$

**验算.** 把上式的第 $2$ 列加到第 $1$ 列，第 $1$ 列由 $(1, 0, -1)^{\mathrm{T}}$ 变成 $(1, 0, -1)^{\mathrm{T}} +(0, 0, 1)^{\mathrm{T}} = (1, 0, 0)^{\mathrm{T}}$，得 $\mathbf{B} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0\end{pmatrix}$；再交换 $\mathbf{B}$ 的第 $2$、$3$ 行恰得 $\mathbf{E}$，与题设相符。

由 $\mathbf{A} = \mathbf{P}_2^{-1} \mathbf{P}_1^{-1}$ 唯一确定：(C) 把 $\mathbf{P}_1^{-1}$ 误写成 $\mathbf{P}_1$；(A)、(B) 则把两个因子的左右次序弄反（列变换的矩阵必须留在右边）。

**结论**：

同一个初等矩阵，左乘与右乘的含义不同：$\mathbf{P}_1 = \mathbf{E} +\mathbf{e}_2 \mathbf{e}_1^{\mathrm{T}}$ 左乘表示「第 $1$ 行的 $1$ 倍加到第 $2$ 行」，右乘表示「第 $2$ 列的 $1$ 倍加到第 $1$ 列」。又：$\left(\mathbf{E} +k \mathbf{e}_i \mathbf{e}_j^{\mathrm{T}}\right)^{-1} = \mathbf{E} -k \mathbf{e}_i \mathbf{e}_j^{\mathrm{T}} \, (i \neq j)$，对换矩阵的逆是它自己，倍乘矩阵 $\operatorname{\text{diag}} (\ldots, k, \ldots)$ 的逆是 $\operatorname{\text{diag}} (\ldots, k^{-1}, \ldots)$。

**易错点**：

两处最容易出错：一是把列变换也写成左乘；二是移项时忘了求逆，直接写成 $\mathbf{A} = \mathbf{P}_2 \mathbf{P}_1$。写成 $\mathbf{P}_2 \mathbf{A} \mathbf{P}_1 = \mathbf{E}$ 后逐步左乘、右乘逆矩阵，就不会错位。

</details>
:::

:::caution[易错提醒]
考场上最快的验证办法：**把选项代回去乘一遍**（或只乘出关键的一列）。初等矩阵的乘法是“搬行搬列”，心算就能验，比推导顺序更不容易错。四个选项里通常只有位置和求逆两处差别，代一次就能定。
:::

<strong>真题演练（近年形态）</strong>。近五年这个考点变了打法：不再直接问初等矩阵，而是给一个具体的 $P$ 和一个乘积结果，让你**反求 $A$**。

**由 $P^T A P^2$ 反求 $A$**

:::note[题目 2（单选题）]
【难度 3/5】

设 $\mathbf{A}$ 为 $3$ 阶矩阵，$\mathbf{P} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 1 & 0 & 1\end{pmatrix}$，若 $\mathbf{P}^{\mathrm{T}} \mathbf{A} \mathbf{P}^2 = \begin{pmatrix}a +2c & 0 & c \\ 0 & b & 0 \\ 2c & 0 & c\end{pmatrix}$，则 $\mathbf{A} =$

- A. $\begin{pmatrix}c & 0 & 0 \\ 0 & a & 0 \\ 0 & 0 & b\end{pmatrix}$
- B. $\begin{pmatrix}b & 0 & 0 \\ 0 & c & 0 \\ 0 & 0 & a\end{pmatrix}$
- C. $\begin{pmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c\end{pmatrix}$
- D. $\begin{pmatrix}c & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & a\end{pmatrix}$

<details data-answer>
<summary>点击查看答案</summary>

**答案**：$\mathrm{C}$

**考点**：$\mathbf{P}$ 是初等矩阵，$\mathbf{P}^{\mathrm{T}}$、$\mathbf{P}^2$ 仍是（同类型的）初等矩阵；把等式两边同乘逆矩阵，就是对已知矩阵做两次逆变换。

**解答**：

记 $\mathbf{M} = \begin{pmatrix}a +2c & 0 & c \\ 0 & b & 0 \\ 2c & 0 & c\end{pmatrix}$。由 $\mathbf{P}^{\mathrm{T}} \mathbf{A} \mathbf{P}^2 = \mathbf{M}$ 得

$$
\mathbf{A} = \left(\mathbf{P}^{\mathrm{T}}\right)^{-1} \mathbf{M} \left(\mathbf{P}^2\right)^{-1} .
$$

**第一步：算出三个初等矩阵.** $\mathbf{P} = \mathbf{E} +\mathbf{e}_3 \mathbf{e}_1^{\mathrm{T}}$（左乘表示「第 $1$ 行加到第 $3$ 行」）。由 $\left(\mathbf{e}_3 \mathbf{e}_1^{\mathrm{T}}\right)^2 = \mathbf{e}_3 \left(\mathbf{e}_1^{\mathrm{T}} \mathbf{e}_3\right) \mathbf{e}_1^{\mathrm{T}} = \mathbf{O}$ 得

$$
\mathbf{P}^2 = \mathbf{E} +2 \mathbf{e}_3 \mathbf{e}_1^{\mathrm{T}} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 2 & 0 & 1\end{pmatrix}, \qquad \left(\mathbf{P}^2\right)^{-1} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ -2 & 0 & 1\end{pmatrix};
$$

$$
\mathbf{P}^{\mathrm{T}} = \begin{pmatrix}1 & 0 & 1 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix}, \qquad \left(\mathbf{P}^{\mathrm{T}}\right)^{-1} = \left(\mathbf{P}^{-1}\right)^{\mathrm{T}} = \begin{pmatrix}1 & 0 & -1 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix} .
$$

**第二步：左乘（行变换）.**左乘 $\left(\mathbf{P}^{\mathrm{T}}\right)^{-1}$ 就是「把第 $3$ 行的 $-1$ 倍加到第 $1$ 行」：第 $1$ 行由 $(a +2c, \, 0, \, c)$ 变成 $(a +2c -2c, \, 0 -0, \, c -c) = (a, 0, 0)$，其余行不动，

$$
\left(\mathbf{P}^{\mathrm{T}}\right)^{-1} \mathbf{M} = \begin{pmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 2c & 0 & c\end{pmatrix} .
$$

**第三步：右乘（列变换）.**右乘 $\left(\mathbf{P}^2\right)^{-1}$ 就是「把第 $3$ 列的 $-2$ 倍加到第 $1$ 列」：第 $1$ 列由 $(a, 0, 2c)^{\mathrm{T}}$ 变成 $(a -0, \, 0 -0, \, 2c -2c)^{\mathrm{T}} = (a, 0, 0)^{\mathrm{T}}$，其余列不动，

$$
\mathbf{A} = \begin{pmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c\end{pmatrix} .
$$

因为逆矩阵唯一，$\mathbf{A}$ 由上式唯一确定，故只能选 (C)；(A)、(B)、(D) 只是把 $a, b, c$ 在对角线上重排，均与所得的 $\operatorname{\text{diag}} (a, b, c)$ 不符。

**正向验算.** 取 $\mathbf{A} = \operatorname{\text{diag}} (a, b, c)$，$\mathbf{A} \mathbf{P}^2 = \begin{pmatrix}a & 0 & 0 \\ 0 & b & 0 \\ 2c & 0 & c\end{pmatrix}$（第 $1$ 列加上了第 $3$ 列的 $2$ 倍），再左乘 $\mathbf{P}^{\mathrm{T}}$（第 $3$ 行加到第 $1$ 行）得 $\begin{pmatrix}a +2c & 0 & c \\ 0 & b & 0 \\ 2c & 0 & c\end{pmatrix} = \mathbf{M}$，与题设完全一致。

**结论**：

设 $\mathbf{P} = \mathbf{E} +k \mathbf{e}_i \mathbf{e}_j^{\mathrm{T}} \, (i \neq j)$，则

$$
\mathbf{P}^m = \mathbf{E} +m k \, \mathbf{e}_i \mathbf{e}_j^{\mathrm{T}}, \qquad \mathbf{P}^{-1} = \mathbf{E} -k \, \mathbf{e}_i \mathbf{e}_j^{\mathrm{T}}, \qquad \mathbf{P}^{\mathrm{T}} = \mathbf{E} +k \, \mathbf{e}_j \mathbf{e}_i^{\mathrm{T}},
$$

即「倍加型初等矩阵的方幂只是把倍数乘以 $m$」，转置则把行变换换成对应的列变换。

**易错点**：

$\mathbf{P}^2 \neq 2 \mathbf{P}$；$\left(\mathbf{P}^{\mathrm{T}}\right)^{-1} = \left(\mathbf{P}^{-1}\right)^{\mathrm{T}}$ 不要写成 $\mathbf{P}^{-1}$；还要留意 $\mathbf{P}^{\mathrm{T}}$ 在左、$\mathbf{P}^2$ 在右，求 $\mathbf{A}$ 时逆矩阵必须各归其位，不能写成 $\mathbf{A} = \mathbf{M} \left(\mathbf{P}^{\mathrm{T}} \mathbf{P}^2\right)^{-1}$。

</details>
:::

:::caution[易错提醒]
反求型的通法：**不要去解方程，直接左右各乘逆矩阵**。$P^T A P^2 = C \Rightarrow A = (P^T)^{-1} C P^{-2}$，而 $P$ 是初等矩阵时 $P^{-1}$ 一眼可写，整个过程只是两次“搬行搬列”。这一招在 L50（$P^{-1} A P = \Lambda$ 反求 $A$）、L52（合同变换）里原样再用。
:::

## 秩：选择题的战场

:::caution[易错提醒]
**秩的性质是用来在四个选项之间快速判定的，不是拿来写证明的**。**矩阵的秩这个考点 2010–2026 的 8 个卷面题位里，6 个选择、2 个填空，解答题 0 道**，十七年没有一道大题是纯粹让你“证一个秩的等式”的。

秩的真实考法是**选择题里的四选一判定**，且难度不低——本考点平均难度 3.25，是本讲最高，其中 2023 数一 5 难度 **5.0**（全书最高档）、2021 数一 7 与 2025 数一 7 难度 4.0。分值上 **数一 23 分，数二 9 分、数三 5 分**，数一同学要格外重视，这是数一在本讲相对另外两卷唯一占优的地方。

结论：性质要背熟，但练的方式是**成组做选择题、逐条找反例**，不是写证明。
:::

:::note[子式与矩阵秩的定义]
先说什么叫**子式**：在 $m \times n$ 矩阵 $A$ 中**任取 $k$ 行、任取 $k$ 列**（$k \leq \min \{m, n\}$，取出的行、列都不必相邻），这些行列**交叉位置**上的 $k^2$ 个元素按原来的相对位置组成一个 $k$ 阶方阵，它的**行列式**就叫 $A$ 的一个 **$k$ 阶子式**。值不为 $0$ 的子式就叫**非零子式**。

**定义：$A$ 中非零子式的最高阶数称为 $A$ 的秩**，记 $\operatorname{\text{r}} (A)$。（规定零矩阵的秩为 $0$。）

**例**：$A = \begin{pmatrix}1 & 2 & 3 \\ 2 & 4 & 6\end{pmatrix}$。它的 $1$ 阶子式就是各个元素，有非零的，所以 $\operatorname{\text{r}} (A) \geq 1$；$2$ 阶子式一共 $\binom{2}{2} \binom{3}{2} = 3$ 个，分别是 $\begin{vmatrix}1 & 2 \\ 2 & 4\end{vmatrix} = 0$、$\begin{vmatrix}1 & 3 \\ 2 & 6\end{vmatrix} = 0$、$\begin{vmatrix}2 & 3 \\ 4 & 6\end{vmatrix} = 0$，全为零。故最高阶非零子式是 $1$ 阶，$\operatorname{\text{r}} (A) = 1$。（直观原因：第 $2$ 行是第 $1$ 行的 $2$ 倍。）

<strong>两个等价刻画（现在先记结论）</strong>：$A$ 的**行阶梯形**中非零行的行数；$A$ 的行（列）向量组的**极大无关组**所含向量个数。<strong>“行阶梯形”与“极大无关组”这两个词本讲还没有定义</strong>——行阶梯形在 **L47**（解方程组时才真正用得上），极大无关组在 **L48**。它们只是告诉你“秩这个数还有别的读法”，**本讲的全部计算都只用定义和下面的十条性质**，读到这里不必回头去查。

**实战提醒**：考场上从来不靠数子式求秩——具体矩阵一律**用初等变换化成阶梯状，数非零行**；抽象矩阵一律**用下面十条性质夹**。定义式的用处只有一个：<strong>说明“秩 $\geq k$”等价于“存在一个 $k$ 阶子式非零”</strong>，这在证明与选择题的反例里偶尔要用。
:::

:::tip[矩阵秩的十条性质]
1. $0 \leq \operatorname{\text{r}} (A_{m \times n}) \leq \min \{m, n\}$。
2. $\operatorname{\text{r}} (A^T) = \operatorname{\text{r}} (A) = \operatorname{\text{r}} (A^T A)$。
3. 初等变换不改变秩；$P, Q$ 可逆时 $\operatorname{\text{r}} (P A Q) = \operatorname{\text{r}} (A)$。
4. $\operatorname{\text{r}} (A +B) \leq \operatorname{\text{r}} (A) +\operatorname{\text{r}} (B)$。
5. $\operatorname{\text{r}} (A B) \leq \min \{\operatorname{\text{r}} (A), \operatorname{\text{r}} (B)\}$。
6. <strong>（Sylvester）</strong> $A$ 为 $m \times n$，$B$ 为 $n \times s$，则 $\operatorname{\text{r}} (A) +\operatorname{\text{r}} (B) -n \leq \operatorname{\text{r}} (A B)$。
7. **$A B = O \Rightarrow \operatorname{\text{r}} (A) +\operatorname{\text{r}} (B) \leq n$**（$n$ 为 $A$ 的列数 $=$ $B$ 的行数）。
8. $A$ 为 $n$ 阶方阵：$A$ 可逆 $\Leftrightarrow \operatorname{\text{r}} (A) = n \Leftrightarrow \left|A\right| \neq 0$。
9. 分块：$\operatorname{\text{r}} \begin{pmatrix}A & O \\ O & B\end{pmatrix} = \operatorname{\text{r}} (A) +\operatorname{\text{r}} (B)$；$\max \{\operatorname{\text{r}} (A), \operatorname{\text{r}} (B)\} \leq \operatorname{\text{r}} (A, B) \leq \operatorname{\text{r}} (A) +\operatorname{\text{r}} (B)$。

**这里的 $(A, B)$ 指把 $A$ 与 $B$ 横向并排拼成的矩阵**（要求两者**行数相同**，拼出来的列数是两者列数之和），例如

  

$$
A = \begin{pmatrix}1 & 0 \\ 0 & 1\end{pmatrix}, \, B = \begin{pmatrix}2 \\ 3\end{pmatrix} \, \Longrightarrow \, (A, B) = \begin{pmatrix}1 & 0 & 2 \\ 0 & 1 & 3\end{pmatrix} .
$$

对应地，$\begin{pmatrix}A \\ B\end{pmatrix}$ 是**竖向**摞起来（要求列数相同）。**横拼与竖拼的秩没有必然关系**，别把 $\operatorname{\text{r}} (A, B)$ 和 $\operatorname{\text{r}} \begin{pmatrix}A \\ B\end{pmatrix}$ 混为一谈。

1. **伴随矩阵的秩三分法**：$\operatorname{\text{r}} (A^{\ast})$ 只能取 $n$、$1$、$0$ 三个值，见本节末尾。
:::

:::caution[易错提醒]
性质 6 和 7 是同一件事的两种说法（$A B = O$ 时 $\operatorname{\text{r}} (A B) = 0$）。看到 $A B = O$，脑子里应该同时弹出：

- $\operatorname{\text{r}} (A) +\operatorname{\text{r}} (B) \leq n$——**本讲能用的就是这一条**；
- **把 $B$ 按列拆开**，$A B = O$ 就是说 $A$ 乘 $B$ 的每一列都得零向量，即 $A \boldsymbol{\beta}_j = \mathbf{0}$ 对每一列都成立。

第二条现在只是一个观察，<strong>到 L47 学了线性方程组之后你会知道，它的说法是“$B$ 的每一列都是齐次方程组 $A \mathbf{x} = \mathbf{0}$ 的解”</strong>——那时这个观察才真正能用来数东西（解空间有 $n -\operatorname{\text{r}} (A)$ 维，于是 $\operatorname{\text{r}} (B) \leq n -\operatorname{\text{r}} (A)$，正好又回到第一条）。**在本讲，$A B = O$ 只当秩的不等式用**。
:::

<strong>真题演练（本考点最标准的形态，数一 2021）</strong>。四个选项都是**分块矩阵**的秩等式，要你逐一判定。做法不是逐条写证明，而是：**能用分块初等变换把右上角那块消成 $O$ 的，就化成分块对角、秩相加（性质 3 $+$ 性质 9）；消不掉的，举一个二阶反例打掉**。动笔前先看清每个选项的主对角块是什么——本题四个选项的主对角块秩都等于 $\operatorname{\text{r}} (A)$（用到性质 2 里的 $\operatorname{\text{r}} (A^T A) = \operatorname{\text{r}} (A)$），所以全部问题只在右上角那一块上。

**分块矩阵的秩：能消角块就秩相加，消不掉就举反例**

:::note[题目 3（单选题）]
【难度 4/5】

设 $\mathbf{A}$，$\mathbf{B}$ 为 $n$ 阶实矩阵，下列结论不成立的是

- A. $\operatorname{\text{r}} \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}} \mathbf{A}\end{pmatrix} = 2 \operatorname{\text{r}} (\mathbf{A})$
- B. $\operatorname{\text{r}} \begin{pmatrix}\mathbf{A} & \mathbf{A} \mathbf{B} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}}\end{pmatrix} = 2 \operatorname{\text{r}} (\mathbf{A})$
- C. $\operatorname{\text{r}} \begin{pmatrix}\mathbf{A} & \mathbf{B} \mathbf{A} \\ \mathbf{O} & \mathbf{A} \mathbf{A}^{\mathrm{T}}\end{pmatrix} = 2 \operatorname{\text{r}} (\mathbf{A})$
- D. $\operatorname{\text{r}} \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{B} \mathbf{A} & \mathbf{A}^{\mathrm{T}}\end{pmatrix} = 2 \operatorname{\text{r}} (\mathbf{A})$

<details data-answer>
<summary>点击查看答案</summary>

**答案**：$\mathrm{C}$

**考点**：分块矩阵求秩：左乘或右乘可逆的分块初等矩阵不改变秩，能把角块消成 $\mathbf{O}$ 的就化为分块对角阵、秩相加；消不掉的要举反例。另需实矩阵的结论 $\operatorname{\text{r}} (\mathbf{A}^{\mathrm{T}} \mathbf{A}) = \operatorname{\text{r}} (\mathbf{A})$。

**解答**：

本题四个选项的主对角块都是 $\mathbf{A}$ 与 $\mathbf{A}^{\mathrm{T}}$（或 $\mathbf{A}^{\mathrm{T}} \mathbf{A}$、$\mathbf{A} \mathbf{A}^{\mathrm{T}}$），它们的秩都等于 $\operatorname{\text{r}} (\mathbf{A})$，所以问题归结为「右上角那一块能不能消掉」。

**(A) 成立**．分块对角矩阵的秩等于两块秩之和：

$$
\operatorname{\text{r}} \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}} \mathbf{A}\end{pmatrix} = \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{A}^{\mathrm{T}} \mathbf{A}) = 2 \operatorname{\text{r}} (\mathbf{A}),
$$

末一步用了实矩阵的重要结论 $\operatorname{\text{r}} (\mathbf{A}^{\mathrm{T}} \mathbf{A}) = \operatorname{\text{r}} (\mathbf{A})$。（理由：$\mathbf{A}^{\mathrm{T}} \mathbf{A} \mathbf{x} = \mathbf{0} \Rightarrow \mathbf{x}^{\mathrm{T}} \mathbf{A}^{\mathrm{T}} \mathbf{A} \mathbf{x} = \left|\right| \mathbf{A} \mathbf{x} \left|\right|^2 = 0 \Rightarrow \mathbf{A} \mathbf{x} = \mathbf{0}$，反之显然，故两个齐次方程组同解，秩相同。这里 $\mathbf{A}$ 为实矩阵是关键。）

**(B) 成立**．右乘可逆矩阵 $\begin{pmatrix}\mathbf{E} & -\mathbf{B} \\ \mathbf{O} & \mathbf{E}\end{pmatrix}$（它是分块初等矩阵，行列式为 $1$）：

$$
\begin{pmatrix}\mathbf{A} & \mathbf{A} \mathbf{B} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}}\end{pmatrix} \begin{pmatrix}\mathbf{E} & -\mathbf{B} \\ \mathbf{O} & \mathbf{E}\end{pmatrix} = \begin{pmatrix}\mathbf{A} & -\mathbf{A} \mathbf{B} +\mathbf{A} \mathbf{B} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}}\end{pmatrix} = \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}}\end{pmatrix},
$$

故秩为 $\operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{A}^{\mathrm{T}}) = 2 \operatorname{\text{r}} (\mathbf{A})$。

**(D) 成立**．左乘可逆矩阵 $\begin{pmatrix}\mathbf{E} & \mathbf{O} \\ -\mathbf{B} & \mathbf{E}\end{pmatrix}$：

$$
\begin{pmatrix}\mathbf{E} & \mathbf{O} \\ -\mathbf{B} & \mathbf{E}\end{pmatrix} \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{B} \mathbf{A} & \mathbf{A}^{\mathrm{T}}\end{pmatrix} = \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ -\mathbf{B} \mathbf{A} +\mathbf{B} \mathbf{A} & \mathbf{A}^{\mathrm{T}}\end{pmatrix} = \begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{O} & \mathbf{A}^{\mathrm{T}}\end{pmatrix},
$$

秩同样是 $2 \operatorname{\text{r}} (\mathbf{A})$。

**(C) 不成立**．这里角块是 $\mathbf{B} \mathbf{A}$，而它左边的块是 $\mathbf{A}$、下边的块是 $\mathbf{A} \mathbf{A}^{\mathrm{T}}$：用第一块列右乘 $\mathbf{X}$ 去加，只能加出 $\mathbf{A} \mathbf{X}$，要消去须有 $\mathbf{A} \mathbf{X} = -\mathbf{B} \mathbf{A}$，即 $\mathbf{B} \mathbf{A}$ 的列都落在 $\mathbf{A}$ 的列空间里，这一般办不到。举反例：取 $n = 2$，

$$
\mathbf{A} = \begin{pmatrix}0 & 1 \\ 0 & 0\end{pmatrix}, \qquad \mathbf{B} = \begin{pmatrix}0 & 0 \\ 1 & 0\end{pmatrix},
$$

则 $\operatorname{\text{r}} (\mathbf{A}) = 1$，且

$$
\mathbf{B} \mathbf{A} = \begin{pmatrix}0 & 0 \\ 1 & 0\end{pmatrix} \begin{pmatrix}0 & 1 \\ 0 & 0\end{pmatrix} = \begin{pmatrix}0 & 0 \\ 0 & 1\end{pmatrix}, \qquad \mathbf{A} \mathbf{A}^{\mathrm{T}} = \begin{pmatrix}0 & 1 \\ 0 & 0\end{pmatrix} \begin{pmatrix}0 & 0 \\ 1 & 0\end{pmatrix} = \begin{pmatrix}1 & 0 \\ 0 & 0\end{pmatrix} .
$$

于是

$$
\begin{pmatrix}\mathbf{A} & \mathbf{B} \mathbf{A} \\ \mathbf{O} & \mathbf{A} \mathbf{A}^{\mathrm{T}}\end{pmatrix} = \begin{pmatrix}0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0\end{pmatrix},
$$

前三行是三个互不相同的单位行向量，线性无关，第四行为零，故其秩为 $3$，而 $2 \operatorname{\text{r}} (\mathbf{A}) = 2$，等式不成立。（也可看出 $\mathbf{B} \mathbf{A}$ 的第二列 $(0, 1)^{\mathrm{T}}$ 不在 $\mathbf{A}$ 的列空间 $\operatorname{\text{span}} \{(1, 0)^{\mathrm{T}}\}$ 中，正是消不掉的原因。）

**结论**：

（1）$\operatorname{\text{r}} \begin{pmatrix}\mathbf{M} & \mathbf{O} \\ \mathbf{O} & \mathbf{K}\end{pmatrix} = \operatorname{\text{r}} (\mathbf{M}) +\operatorname{\text{r}} (\mathbf{K})$；一般地 $\operatorname{\text{r}} \begin{pmatrix}\mathbf{M} & \mathbf{N} \\ \mathbf{O} & \mathbf{K}\end{pmatrix} \geq \operatorname{\text{r}} (\mathbf{M}) +\operatorname{\text{r}} (\mathbf{K})$。

（2）消角块的口诀：角块能写成「同行的块 $\times$ 某矩阵」就用列变换消，能写成「某矩阵 $\times$ 同列的块」就用行变换消。如 $\begin{pmatrix}\mathbf{A} & \mathbf{A} \mathbf{B} \\ \mathbf{O} & \mathbf{C}\end{pmatrix}$、$\begin{pmatrix}\mathbf{A} & \mathbf{O} \\ \mathbf{B} \mathbf{A} & \mathbf{C}\end{pmatrix}$ 都可化为分块对角。

（3）$\mathbf{A}$ 为实矩阵时 $\operatorname{\text{r}} (\mathbf{A}^{\mathrm{T}} \mathbf{A}) = \operatorname{\text{r}} (\mathbf{A} \mathbf{A}^{\mathrm{T}}) = \operatorname{\text{r}} (\mathbf{A}) = \operatorname{\text{r}} (\mathbf{A}^{\mathrm{T}})$。

**易错点**：

看到 $\mathbf{B} \mathbf{A}$ 与 $\mathbf{A}$ 都含 $\mathbf{A}$ 就以为一定能消。方向很要紧：$\mathbf{A} \mathbf{B}$ 与同一行的 $\mathbf{A}$ 配合（列变换可消），$\mathbf{B} \mathbf{A}$ 与同一列的 $\mathbf{A}$ 配合（行变换可消）；(C) 中 $\mathbf{B} \mathbf{A}$ 的同列块是 $\mathbf{A}^{\mathrm{T}}$ 所在位置换成了 $\mathbf{A} \mathbf{A}^{\mathrm{T}}$，行、列两条路都走不通。

</details>
:::

:::caution[易错提醒]
**消角块用的两个分块初等矩阵，记住长相就够**：右乘 $\begin{pmatrix}E & -B \\ O & E\end{pmatrix}$ 把**第一列块的倍数加到第二列块**上，左乘 $\begin{pmatrix}E & O \\ -B & E\end{pmatrix}$ 把**第一行块的倍数加到第二行块**上。两个都可逆（行列式为 $1$），所以不改变秩。**它们就是 45.1 里倍加型初等矩阵 $E(i, j(k))$ 的分块版本**，动作一模一样，只是元素换成了小块。

**秩的选择题只有两种动作：找反例、或用一条不等式一夹**。找反例的备选素材记住三组就够：$A = \begin{pmatrix}1 & 0 \\ 0 & 0\end{pmatrix}$、$B = \begin{pmatrix}0 & 0 \\ 0 & 1\end{pmatrix}$（秩相加型反例）；$A = E$、$B = O$（退化型）；$A = B$（等号型）。这三组能打掉本考点历年绝大多数错误选项。

至于**$\operatorname{\text{r}} (A, A B) = \operatorname{\text{r}} (A)$** 这条常用结论，**以它为主考点的那道真题（2018 三卷同题）现在记在 L46 名下**——它的标准解法要用“两个向量组互相线性表示则秩相同”，那是 L46 的语言。在本讲你只要接受这个结论：往 $A$ 右边添上 $A B$ 不会增加秩。
:::

<strong>进阶（数一重点）</strong>。性质 6（Sylvester）平时看着没用，一到**取等号**的场合就成了整道题的钥匙。下面这道 2025 数一给的条件正是 Sylvester 不等式的**连等号**形式，要你从“等号成立”倒推出四个结论中哪些必成立。

**Sylvester 不等式取等号**

:::note[题目 4（单选题）]
【难度 4/5】

设 $n$ 阶矩阵 $\mathbf{A}$，$\mathbf{B}$，$\mathbf{C}$ 满足 $\operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) = \operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) +2n$，给出下列四个结论：(1) $\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) +n = \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +\operatorname{\text{r}} (\mathbf{C})$；(2) $\operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +n = \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B})$；(3) $\operatorname{\text{r}} (\mathbf{A}) = \operatorname{\text{r}} (\mathbf{B}) = \operatorname{\text{r}} (\mathbf{C}) = n$；(4) $\operatorname{\text{r}} (\mathbf{A} \mathbf{B}) = \operatorname{\text{r}} (\mathbf{B} \mathbf{C}) = n$.其中正确的选项是

- A. (1) (2)
- B. (1) (3)
- C. (2) (4)
- D. (3) (4)

<details data-answer>
<summary>点击查看答案</summary>

**答案**：$\mathrm{A}$

**考点**：矩阵乘积的秩．题设给的是一个等号，而由西尔维斯特（Sylvester）不等式只能推出 $\operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) \leq \operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) +2n$，所以等号成立意味着链条上每一步不等号都被“挤成”等号．

**解答**：

<strong>关键不等式（西尔维斯特不等式）</strong>．对 $n$ 阶矩阵 $\mathbf{X}$，$\mathbf{Y}$，有

$$
\operatorname{\text{r}} (\mathbf{X}) +\operatorname{\text{r}} (\mathbf{Y}) -n \leq \operatorname{\text{r}} (\mathbf{X} \mathbf{Y}) .
$$

把它先用在 $\mathbf{X} = \mathbf{A} \mathbf{B}$，$\mathbf{Y} = \mathbf{C}$ 上，再用在 $\mathbf{X} = \mathbf{A}$，$\mathbf{Y} = \mathbf{B}$ 上，得一条不等式链：

$$
\begin{aligned}\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) & \geq \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) -n & \geq [\operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) -n] +\operatorname{\text{r}} (\mathbf{C}) -n & = \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) -2n = \operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) \text{，}\end{aligned}
$$

最后一步正是题设条件.链条的头尾相同，中间的两个 $\geq$ 只能全部取等号：

$$
\begin{aligned}\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) & = \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) -n \text{，} \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) & = \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) -n .\end{aligned}
$$

移项即得结论 (1)：$\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) +n = \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +\operatorname{\text{r}} (\mathbf{C})$，以及结论 (2)：$\operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +n = \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B})$，二者均正确.

**(3)、(4) 均不正确**．取

$$
\mathbf{A} = \mathbf{O} \text{，} \qquad \mathbf{B} = \mathbf{C} = \mathbf{E} \text{，}
$$

则 $\operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) = 0 +n +n = 2n$，而 $\mathbf{A} \mathbf{B} \mathbf{C} = \mathbf{O}$，$\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) +2n = 0 +2n = 2n$，题设条件满足.但此时 $\operatorname{\text{r}} (\mathbf{A}) = 0 \neq n$，(3) 不成立；$\operatorname{\text{r}} (\mathbf{A} \mathbf{B}) = 0 \neq n$，(4) 也不成立.（顺带验证：$\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) +n = n = \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +\operatorname{\text{r}} (\mathbf{C}) = 0 +n$，$\operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +n = n = \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) = 0 +n$，与 (1)(2) 相符.）

故正确的只有 (1)(2)，选 (A)；(B)(C)(D) 都含有已被上述反例否定的 (3) 或 (4).

**结论**：

两条秩的核心不等式（$\mathbf{A}$ 为 $m \times n$，$\mathbf{B}$ 为 $n \times s$）：

$$
\text{西尔维斯特：} \, \operatorname{\text{r}} (\mathbf{A}) +\operatorname{\text{r}} (\mathbf{B}) -n \leq \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) \leq \min \{\operatorname{\text{r}} (\mathbf{A}), \operatorname{\text{r}} (\mathbf{B})\} \text{，}
$$

$$
\text{弗罗贝尼乌斯：} \, \operatorname{\text{r}} (\mathbf{A} \mathbf{B}) +\operatorname{\text{r}} (\mathbf{B} \mathbf{C}) \leq \operatorname{\text{r}} (\mathbf{B}) +\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C}) .
$$

凡是题目把不等式写成等式，一律反推“链上每步都取等号”．

**易错点**：

容易误以为“三个秩加起来这么大，矩阵必须都满秩”．其实条件是相对的：$\mathbf{A}$ 的秩掉多少，只要 $\operatorname{\text{r}} (\mathbf{A} \mathbf{B} \mathbf{C})$ 跟着掉同样多，等式照样成立，所以 (3)(4) 这类“绝对满秩”的结论都站不住．

</details>
:::

:::caution[易错提醒]
<strong>“两边一夹”是秩的判定里最值钱的一个动作</strong>：上界用 $A B = O$ 或 $\operatorname{\text{r}} (A B) \leq \min$；下界用 $\operatorname{\text{r}} (A +B) \leq \operatorname{\text{r}} (A) +\operatorname{\text{r}} (B)$ 反向配凑（把 $E$ 或已知矩阵拆成两个的和）。经典例子：$A^2 = A \Rightarrow A(A -E) = O \Rightarrow \operatorname{\text{r}} (A) +\operatorname{\text{r}} (A -E) \leq n$，又 $n = \operatorname{\text{r}} (A +(E -A)) \leq \operatorname{\text{r}} (A) +\operatorname{\text{r}} (A -E)$，两边一夹得 $\operatorname{\text{r}} (A) +\operatorname{\text{r}} (A -E) = n$。这个结论本身要记住（L50 判幂等阵可对角化时直接用），但**不必按证明题的规格去练**——十七年没考过。
:::

:::caution[易错提醒]
**这个动作马上就有一道填空题在等着你**：2012 数一 13 问 $\operatorname{\text{r}} (E -\boldsymbol{\alpha} \boldsymbol{\alpha}^T)$，其中 $\boldsymbol{\alpha}$ 是 3 维单位列向量。记 $B = \boldsymbol{\alpha} \boldsymbol{\alpha}^T$，由 $\boldsymbol{\alpha}^T \boldsymbol{\alpha} = 1$ 得 $B^2 = B$，且 $\operatorname{\text{r}} (B) = 1$，这正是上面那个幂等的例子，代 $n = 3$ 直接得 $\operatorname{\text{r}} (E -B) = 3 -1 = 2$。**到 L49 回看这道题，还有更快的一条路**——那条路本讲不用，在这里你只需要把“$B^2 = B \Rightarrow \operatorname{\text{r}} (B) +\operatorname{\text{r}} (E -B) = n$”用熟。
:::

### 伴随矩阵的秩：只有三种可能

:::tip[伴随矩阵秩的三种情形]
设 $A$ 为 $n$ 阶方阵（$n \geq 2$），则

$$
\operatorname{\text{r}} (A^{\ast}) = \begin{cases}n & \operatorname{\text{r}} (A) = n \\ 1 & \operatorname{\text{r}} (A) = n -1 \\ 0 & \operatorname{\text{r}} (A) \leq n -2 .\end{cases}
$$
:::

:::caution[易错提醒]
**三条都要会现场说出理由，说得出就永远不会记反**：

- $\operatorname{\text{r}} (A) = n$：此时 $\left|A\right| \neq 0$，$A^{\ast} = \left|A\right| A^{-1}$ 是可逆矩阵与非零数的乘积，故 $\operatorname{\text{r}} (A^{\ast}) = n$。
- $\operatorname{\text{r}} (A) = n -1$：一方面 $\left|A\right| = 0$ 而 $A$ 至少有一个 $n -1$ 阶子式非零，即至少有一个代数余子式非零，所以 $A^{\ast} \neq O$，$\operatorname{\text{r}} (A^{\ast}) \geq 1$；另一方面 $A A^{\ast} = \left|A\right| E = O$，由性质 7 得 $\operatorname{\text{r}} (A) +\operatorname{\text{r}} (A^{\ast}) \leq n$，即 $\operatorname{\text{r}} (A^{\ast}) \leq 1$。**两边一夹**得 $\operatorname{\text{r}} (A^{\ast}) = 1$。
- $\operatorname{\text{r}} (A) \leq n -2$：$A$ 的所有 $n -1$ 阶子式全为零，即全部代数余子式为零，$A^{\ast} = O$。

中间那条是考得最多的，它正是上一段“两边一夹”的又一次登场。
:::

**真题演练**。下面这道 2026 数三给的条件是 $A^{\ast} = -2A$，问 $A^2$。**怎么从目标反推**：要算 $A^2$，就得把 $A^{\ast}$ 换成 $A^{-1}$——用 $A^{\ast} = \left|A\right| A^{-1}$，所以第一件事是定出 $\left|A\right|$。两边取行列式，左边 $\left|A^{\ast}\right| = \left|A\right|^{n-1} = \left|A\right|^2$，右边 $\left|-2A\right| = (-2)^3 \left|A\right|$，得到 $\left|A\right|^2 = -8 \left|A\right|$，**还剩 $\left|A\right| = 0$ 这一支要否掉**——这一步就用刚才的三分法：若 $\operatorname{\text{r}} (A) = 2$ 则 $\operatorname{\text{r}} (A^{\ast}) = 1$，但 $A^{\ast} = -2A$ 的秩等于 $\operatorname{\text{r}} (A) = 2$，矛盾；若 $\operatorname{\text{r}} (A) \leq 1$ 则 $A^{\ast} = O$，于是 $A = -\frac{1}{2} A^{\ast} = O$，与“$A$ 非零”矛盾。$\left|A\right|$ 定下来以后，回代一步就出答案。

**$A^{\ast} = k A$：两边取行列式定 $\left|A\right|$，用三分法否掉 $\left|A\right| = 0$**

:::note[题目 5（单选题）]
【难度 3/5】

$\mathbf{A}$ 为三阶非零矩阵，$\mathbf{A}^{\ast}$ 为 $\mathbf{A}$ 的伴随矩阵，$\mathbf{A}^{\ast} = -2 \mathbf{A}$，则 $\mathbf{A}^2 =$

- A. $\begin{pmatrix}-4 & 0 & 0 \\ 0 & -4 & 0 \\ 0 & 0 & -4\end{pmatrix}$
- B. $\begin{pmatrix}-4 & 0 & 0 \\ 0 & -4 & 0 \\ 0 & 0 & 4\end{pmatrix}$
- C. $\begin{pmatrix}-4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4\end{pmatrix}$
- D. $\begin{pmatrix}4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4\end{pmatrix}$

<details data-answer>
<summary>点击查看答案</summary>

**答案**：$\mathrm{D}$

**考点**：伴随矩阵的三把钥匙：$\mathbf{A} \mathbf{A}^{\ast} = \left|\mathbf{A}\right| \mathbf{E}$、$\left|\mathbf{A}^{\ast}\right| = \left|\mathbf{A}\right|^{\, n-1}$、以及 $\operatorname{\text{r}} (\mathbf{A}^{\ast})$ 与 $\operatorname{\text{r}} (\mathbf{A})$ 的对应关系。先定出 $\left|\mathbf{A}\right|$，再回代。

**解答**：

**第一步：先证 $\mathbf{A}$ 可逆**．

反设 $\left|\mathbf{A}\right| = 0$，则 $\operatorname{\text{r}} (\mathbf{A}) \leq 2$，分两种情形：

若 $\operatorname{\text{r}} (\mathbf{A}) = 2 = n -1$，由伴随矩阵的秩公式得 $\operatorname{\text{r}} (\mathbf{A}^{\ast}) = 1$；但 $\mathbf{A}^{\ast} = -2 \mathbf{A}$，其秩等于 $\operatorname{\text{r}} (\mathbf{A}) = 2$，矛盾。

若 $\operatorname{\text{r}} (\mathbf{A}) \leq 1 = n -2$，则 $\mathbf{A}$ 的所有二阶子式为零，即全部代数余子式为零，$\mathbf{A}^{\ast} = \mathbf{O}$，于是 $\mathbf{A} = -\frac{1}{2} \mathbf{A}^{\ast} = \mathbf{O}$，与 $\mathbf{A}$ 是非零矩阵矛盾。

故 $\left|\mathbf{A}\right| \neq 0$，$\mathbf{A}$ 可逆。

**第二步：定出 $\left|\mathbf{A}\right|$**．

对 $\mathbf{A}^{\ast} = -2 \mathbf{A}$ 两边取行列式。左边用 $\left|\mathbf{A}^{\ast}\right| = \left|\mathbf{A}\right|^{\, n-1} = \left|\mathbf{A}\right|^2$（$n = 3$），右边用 $\left|k \mathbf{A}\right| = k^n \left|\mathbf{A}\right|$：

$$
\left|\mathbf{A}\right|^2 = (-2)^3 \left|\mathbf{A}\right| = -8 \left|\mathbf{A}\right| .
$$

因 $\left|\mathbf{A}\right| \neq 0$，两边约去得 $\left|\mathbf{A}\right| = -8$。

**第三步：回代求 $\mathbf{A}^2$**．

由 $\mathbf{A}^{\ast} = \left|\mathbf{A}\right| \mathbf{A}^{-1} = -8 \mathbf{A}^{-1}$ 与题设 $\mathbf{A}^{\ast} = -2 \mathbf{A}$ 得

$$
-8 \mathbf{A}^{-1} = -2 \mathbf{A} \, \Longrightarrow \, \mathbf{A}^{-1} = \frac{1}{4} \mathbf{A} .
$$

两边左乘 $\mathbf{A}$：$\mathbf{E} = \frac{1}{4} \mathbf{A}^2$，即

$$
\mathbf{A}^2 = 4 \mathbf{E} = \begin{pmatrix}4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4\end{pmatrix} .
$$

**排除其余选项**．上面的推导表明 $\mathbf{A}^2$ 被唯一确定为 $4 \mathbf{E}$，故 (A)(B)(C) 都不对。其中 (A)(C) 还可一眼排除：$\left|\mathbf{A}^2\right| = \left|\mathbf{A}\right|^2 \geq 0$，而 (A)(C) 中矩阵的行列式分别为 $-64$、$-64$，为负数，不可能。

（存在性检验：取 $\mathbf{A} = \operatorname{\text{diag}} (2, 2, -2)$，则 $\left|\mathbf{A}\right| = -8$，$\mathbf{A}^{\ast} = -8 \mathbf{A}^{-1} = \operatorname{\text{diag}} (-4, -4, 4) = -2 \mathbf{A}$，条件满足，且 $\mathbf{A}^2 = 4 \mathbf{E}$，与结论一致。）

**结论**：

$n$ 阶矩阵 $\mathbf{A}$ 的伴随矩阵满足

$$
\mathbf{A} \mathbf{A}^{\ast} = \mathbf{A}^{\ast} \mathbf{A} = \left|\mathbf{A}\right| \mathbf{E}, \qquad \left|\mathbf{A}^{\ast}\right| = \left|\mathbf{A}\right|^{\, n-1}, \qquad \operatorname{\text{r}} (\mathbf{A}^{\ast}) = \begin{cases}n, & \operatorname{\text{r}} (\mathbf{A}) = n, \\ 1, & \operatorname{\text{r}} (\mathbf{A}) = n -1, \\ 0, & \operatorname{\text{r}} (\mathbf{A}) \leq n -2 .\end{cases}
$$

凡见 $\mathbf{A}^{\ast} = k \mathbf{A}$（或 $k \mathbf{A}^{\mathrm{T}}$）一类条件，标准动作就是「两边取行列式定 $\left|\mathbf{A}\right|$，再用 $\mathbf{A}^{\ast} = \left|\mathbf{A}\right| \mathbf{A}^{-1}$ 回代」。

**易错点**：

（1）跳过「$\mathbf{A}$ 可逆」的论证直接约去 $\left|\mathbf{A}\right|$。$\left|\mathbf{A}\right|^2 = -8 \left|\mathbf{A}\right|$ 本来还有 $\left|\mathbf{A}\right| = 0$ 这一支，必须用秩的关系把它否掉（否则会漏掉「$\mathbf{A}^2 = \mathbf{O}$」这种可能）。

（2）把 $\left|-2 \mathbf{A}\right|$ 算成 $-2 \left|\mathbf{A}\right|$。数乘提出来要带 $n$ 次方：$\left|-2 \mathbf{A}\right| = (-2)^3 \left|\mathbf{A}\right|$。

</details>
:::

:::caution[易错提醒]
**凡见 $A^{\ast} = k A$（或 $k A^T$）这类条件，标准动作固定**：两边取行列式定出 $\left|A\right|$，再用 $A^{\ast} = \left|A\right| A^{-1}$ 回代。**$\left|A\right| = 0$ 那一支永远要单独否掉**，否掉它的工具就是秩三分法——这也是这类题为什么归在“矩阵的秩”名下而不是伴随矩阵名下。同一条三分法还撑着 2024 数二 9（由 $A(A -A^{\ast}) = O$ 且 $A \neq A^{\ast}$ 定 $\operatorname{\text{r}} (A)$ 的取值），那道题要先用“矩阵没有消去律”反推出 $\left|A\right| = 0$，再落到 $A^2 = O$ 上压秩，作业里做。
:::

## 矩阵方程：本讲的大题所在

:::caution[易错提醒]
**权重说清楚**：本讲 2 个解答题位全部在这里，数一 5.0 分、数二 10.4 分、数三 10.4 分，只有 2 道独立题：2015 年（数二 22／数三 20）是整道大题，2022 数一 15 是填空版。**这是本编前半段唯一一个“必须会完整书写”的考点**，尽管十七年只落过一次。（另一道形态更特别的 2013 年三卷同题现在归 L48 第一节，理由见下。）
:::

:::tip[四类矩阵方程的求解方法]
- $A X = B$（$A$ 可逆）：$X = A^{-1} B$，实际操作用 $(A \mid B) \longrightarrow^{\text{行}} (E \mid A^{-1} B)$，**不要分别求 $A^{-1}$ 再相乘**。
- $X A = B$（$A$ 可逆）：$X = B A^{-1}$。转置化为上一种，或用列变换 $\binom{A}{B} \longrightarrow^{\text{列}} \binom{E}{B A^{-1}}$。
- $A X B = C$ 或更复杂：先**因式分解**，把 $X$ 挤到中间，化成上面两种。
- **$A$ 不可逆，或 $X$ 两侧都有又提不动**：改走“设元”路线——把 $X$ 按列拆开，$A X = B$ 变成若干个方程组 $A x_i = b_i$ 逐列求解；若连拆列都不行（如 $A X -X A = B$），就把 $X$ 的每个元素设成未知数，整个等式变成一个线性方程组。两条都归到 L48 第一节（含参数时要讨论）。
:::

:::caution[易错提醒]
**解矩阵方程的三步流程**：

1. **定形态**：$X$ 在左还是在右？左右都有就先分解。
2. **验可逆**：动手前先确认要求逆的那个矩阵行列式非零。含参数的题，这一步往往就是第（I）问。
3. **一次消元做完**：写成增广形式 $(A \mid B)$ 一路化到 $(E \mid X)$。

**第 3 步是拉分点**。先算 $A^{-1}$ 再乘 $B$，计算量是增广消元的两倍以上，而且两次机会出错。阅卷不看你用哪种方法，只看最后那个矩阵对不对。
:::

:::caution[易错提醒]
**什么时候设元、什么时候提公因子**？一句话分：**$X$ 只在一侧出现（或能提成 $P X Q$）就提公因子求逆；$X$ 两侧都有且提不动，就设元化方程组**。后者的代价是矩阵阶数不能大——真题里这么出的都是 2 阶（4 个未知数），再大就不合适了。

**设元那一路整条归 L48 第一节**：把 $X$ 的每个元素设成未知数之后，剩下的全是“讨论方程组何时有解、再写出全部解”的活，用的是增广矩阵、秩与通解结构，本讲还没有这套工具。**代表题是 2013 年三卷同题的 $A C -C A = B$**（$C$ 在左也在右、提不出公因子），它现在记在 **L48** 名下，到那一讲再做。本讲只处理**能提公因子**的那一类。
:::

:::caution[易错提醒]
<strong>“初等变换”与“矩阵方程”是同一件事的两种说法</strong>，这是本讲最重要的一次互译：

$$
A \longrightarrow^{\text{初等行变换}} B \Leftrightarrow \exists \, P \text{可逆}, \, P A = B; \qquad A \longrightarrow^{\text{初等列变换}} B \Leftrightarrow \exists \, Q \text{可逆}, \, A Q = B .
$$

出现“$A$ 可经初等列变换化为 $B$”这类说法，心里立刻翻译成“存在可逆矩阵 $Q$ 使 $A Q = B$”，题目就变成了一个矩阵方程。这类说法在 L47、L48 的大题里也常用，本讲先把互译练熟。另外注意：题目若只说“$A$ 与 $B$ 等价”，那是行列变换都允许，$P A Q = B$，此时只能推出 $\operatorname{\text{r}} (A) = \operatorname{\text{r}} (B)$。
:::

<strong>真题演练（因式分解型）</strong>。下面这道的第（II）问给的等式里 $X$ 出现了四次，看着无从下手。关键动作是**按 $X$ 的左右两侧分别提取公因子**，把 $X -X A^2 -A X +A X A^2 = E$ 整理成 $(E -A) X(E -A^2) = E$。这就是 L44 里说的“因式分解求逆”真正该练的地方。

**左右提公因子把 $X$ 挤到中间**

:::note[题目 6（解答题）]
【难度 3/5】

设矩阵 $\mathbf{A} = \begin{pmatrix}a & 1 & 0 \\ 1 & a & -1 \\ 0 & 1 & a\end{pmatrix}$，且 $\mathbf{A}^3 = \mathbf{O}$.

1. 求 $a$ 的值；
2. 若矩阵 $\mathbf{X}$ 满足 $\mathbf{X} -\mathbf{X} \mathbf{A}^2 -\mathbf{A} \mathbf{X} +\mathbf{A} \mathbf{X} \mathbf{A}^2 = \mathbf{E}$，其中 $\mathbf{E}$ 为 $3$ 阶单位矩阵，求 $\mathbf{X}$.

<details data-answer>
<summary>点击查看答案</summary>

**考点**：（I）由 $\mathbf{A}^3 = \mathbf{O}$ 取行列式得 $\left|\mathbf{A}\right| = 0$，解出参数；（II）四项分成两组提公因子，把方程整理成 $(\mathbf{E} -\mathbf{A}) \mathbf{X} (\mathbf{E} -\mathbf{A}^2) = \mathbf{E}$，再用幂零矩阵的求逆公式 $(\mathbf{E} -\mathbf{A})^{-1} = \mathbf{E} +\mathbf{A} +\mathbf{A}^2$。

**解答**：

<strong>（I）</strong>对 $\mathbf{A}^3 = \mathbf{O}$ 两边取行列式：$\left|\mathbf{A}\right|^3 = 0$，故 $\left|\mathbf{A}\right| = 0$。而

$$
\left|\mathbf{A}\right| = \begin{vmatrix}a & 1 & 0 \\ 1 & a & -1 \\ 0 & 1 & a\end{vmatrix} = a(a \cdot a -(-1) \cdot 1) -1 \cdot(1 \cdot a -(-1) \cdot 0) +0 = a(a^2 +1) -a = a^3,
$$

所以 $a^3 = 0$，即 $a = 0$。

反过来验证 $a = 0$ 确实满足条件：此时 $\mathbf{A} = \begin{pmatrix}0 & 1 & 0 \\ 1 & 0 & -1 \\ 0 & 1 & 0\end{pmatrix}$，

$$
\begin{aligned}\mathbf{A}^2 & = \begin{pmatrix}0 & 1 & 0 \\ 1 & 0 & -1 \\ 0 & 1 & 0\end{pmatrix} \begin{pmatrix}0 & 1 & 0 \\ 1 & 0 & -1 \\ 0 & 1 & 0\end{pmatrix} = \begin{pmatrix}1 & 0 & -1 \\ 0 & 0 & 0 \\ 1 & 0 & -1\end{pmatrix}, \mathbf{A}^3 & = \mathbf{A}^2 \mathbf{A} = \begin{pmatrix}1 & 0 & -1 \\ 0 & 0 & 0 \\ 1 & 0 & -1\end{pmatrix} \begin{pmatrix}0 & 1 & 0 \\ 1 & 0 & -1 \\ 0 & 1 & 0\end{pmatrix} = \mathbf{O} .\end{aligned}
$$

故 $a = 0$。（$\mathbf{A}^2$ 的算法：第 $i$ 行等于 $\mathbf{A}$ 的第 $i$ 行作组合系数去组合 $\mathbf{A}$ 的各行，如第一行 $(0, 1, 0)$ 取出 $\mathbf{A}$ 的第二行 $(1, 0, -1)$。）

<strong>（II）</strong>把方程左端前两项、后两项分别提公因子：

$$
\mathbf{X} -\mathbf{X} \mathbf{A}^2 -\mathbf{A} \mathbf{X} +\mathbf{A} \mathbf{X} \mathbf{A}^2 = \mathbf{X} (\mathbf{E} -\mathbf{A}^2) -\mathbf{A} \mathbf{X} (\mathbf{E} -\mathbf{A}^2) = (\mathbf{E} -\mathbf{A}) \mathbf{X} (\mathbf{E} -\mathbf{A}^2),
$$

故原方程即

$$
(\mathbf{E} -\mathbf{A}) \mathbf{X} (\mathbf{E} -\mathbf{A}^2) = \mathbf{E} .
$$

由 $\mathbf{A}^3 = \mathbf{O}$ 知

$$
(\mathbf{E} -\mathbf{A}) (\mathbf{E} +\mathbf{A} +\mathbf{A}^2) = \mathbf{E} -\mathbf{A}^3 = \mathbf{E}, \qquad (\mathbf{E} -\mathbf{A}^2) (\mathbf{E} +\mathbf{A}^2) = \mathbf{E} -\mathbf{A}^4 = \mathbf{E},
$$

所以 $\mathbf{E} -\mathbf{A}$ 与 $\mathbf{E} -\mathbf{A}^2$ 都可逆，且

$$
(\mathbf{E} -\mathbf{A})^{-1} = \mathbf{E} +\mathbf{A} +\mathbf{A}^2, \qquad (\mathbf{E} -\mathbf{A}^2)^{-1} = \mathbf{E} +\mathbf{A}^2 .
$$

于是先左乘 $(\mathbf{E} -\mathbf{A})^{-1}$、再右乘 $(\mathbf{E} -\mathbf{A}^2)^{-1}$：

$$
\mathbf{X} = (\mathbf{E} -\mathbf{A})^{-1} (\mathbf{E} -\mathbf{A}^2)^{-1} = (\mathbf{E} +\mathbf{A} +\mathbf{A}^2) (\mathbf{E} +\mathbf{A}^2) = \mathbf{E} +\mathbf{A} +2 \mathbf{A}^2 +\mathbf{A}^3 +\mathbf{A}^4 = \mathbf{E} +\mathbf{A} +2 \mathbf{A}^2 .
$$

代入 $\mathbf{A}$ 与 $\mathbf{A}^2$：

$$
\mathbf{X} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix} +\begin{pmatrix}0 & 1 & 0 \\ 1 & 0 & -1 \\ 0 & 1 & 0\end{pmatrix} +2 \begin{pmatrix}1 & 0 & -1 \\ 0 & 0 & 0 \\ 1 & 0 & -1\end{pmatrix} = \begin{pmatrix}3 & 1 & -2 \\ 1 & 1 & -1 \\ 2 & 1 & -1\end{pmatrix} .
$$

**检验**．$\mathbf{E} -\mathbf{A} = \begin{pmatrix}1 & -1 & 0 \\ -1 & 1 & 1 \\ 0 & -1 & 1\end{pmatrix}$，$\mathbf{E} -\mathbf{A}^2 = \begin{pmatrix}0 & 0 & 1 \\ 0 & 1 & 0 \\ -1 & 0 & 2\end{pmatrix}$，先算

$$
\mathbf{X} (\mathbf{E} -\mathbf{A}^2) = \begin{pmatrix}3 & 1 & -2 \\ 1 & 1 & -1 \\ 2 & 1 & -1\end{pmatrix} \begin{pmatrix}0 & 0 & 1 \\ 0 & 1 & 0 \\ -1 & 0 & 2\end{pmatrix} = \begin{pmatrix}2 & 1 & -1 \\ 1 & 1 & -1 \\ 1 & 1 & 0\end{pmatrix},
$$

再算

$$
(\mathbf{E} -\mathbf{A}) \left[\mathbf{X} (\mathbf{E} -\mathbf{A}^2)\right] = \begin{pmatrix}1 & -1 & 0 \\ -1 & 1 & 1 \\ 0 & -1 & 1\end{pmatrix} \begin{pmatrix}2 & 1 & -1 \\ 1 & 1 & -1 \\ 1 & 1 & 0\end{pmatrix} = \begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{pmatrix} = \mathbf{E},
$$

故 $\mathbf{X} = \begin{pmatrix}3 & 1 & -2 \\ 1 & 1 & -1 \\ 2 & 1 & -1\end{pmatrix}$ 正确（因 $\mathbf{E} -\mathbf{A}$、$\mathbf{E} -\mathbf{A}^2$ 可逆，解唯一）。

**结论**：

（1）若 $\mathbf{A}^m = \mathbf{O}$（幂零），则 $\mathbf{E} -\mathbf{A}$ 可逆，且 $(\mathbf{E} -\mathbf{A})^{-1} = \mathbf{E} +\mathbf{A} +\mathbf{A}^2 +\cdots +\mathbf{A}^{m-1}$；同理 $(\mathbf{E} +\mathbf{A})^{-1} = \mathbf{E} -\mathbf{A} +\mathbf{A}^2 -\cdots$。

（2）幂零矩阵的行列式必为 $0$：$\mathbf{A}^m = \mathbf{O} \Rightarrow \left|\mathbf{A}\right|^m = 0 \Rightarrow \left|\mathbf{A}\right| = 0$，且其特征值全为 $0$。含参数的幂零条件，第一步就是取行列式。

（3）四项型矩阵方程 $\mathbf{X} -\mathbf{X} \mathbf{P} -\mathbf{A} \mathbf{X} +\mathbf{A} \mathbf{X} \mathbf{P} = \mathbf{E}$ 一律整理成 $(\mathbf{E} -\mathbf{A}) \mathbf{X} (\mathbf{E} -\mathbf{P}) = \mathbf{E}$。

**易错点**：

（1）只由 $\left|\mathbf{A}\right| = a^3 = 0$ 得 $a = 0$ 就完事，不回代验证 $\mathbf{A}^3 = \mathbf{O}$。$\left|\mathbf{A}\right| = 0$ 只是必要条件，答题时应补一句验证。

（2）解 $(\mathbf{E} -\mathbf{A}) \mathbf{X} (\mathbf{E} -\mathbf{A}^2) = \mathbf{E}$ 时把左右逆的位置写反，得成 $\mathbf{X} = (\mathbf{E} -\mathbf{A}^2)^{-1} (\mathbf{E} -\mathbf{A})^{-1}$。矩阵乘法不交换，左边的因子只能用左乘它的逆去消、右边的只能用右乘。

</details>
:::

:::caution[易错提醒]
提公因子的**检查法**：分解完把括号乘开验一遍，四项要不多不少地回来。这一步做错，后面全白算。

另外记住 $A^3 = O$（幂零）这个条件的两个用处：一是 $\left|A\right|^3 = 0 \Rightarrow \left|A\right| = 0$，二是 $E -A$ 必可逆且 $(E -A)^{-1} = E +A +A^2$（等比求和，因为 $A^3 = O$ 把尾巴截断了）。第二条在真题里出现过不止一次，直接省掉一次求逆。
:::

## 本讲小结

1. 初等矩阵：左乘行变换、右乘列变换；行变换从右往左叠，反解时逐个求逆。全是选择题，代选项验证最快。
2. 秩的十条性质要背熟，但**练法是成组做选择题、逐条找反例**，不是写证明——这个考点十七年零解答题。
3. $A B = O$ 是信息量最大的条件：本讲用它的形式是 $\operatorname{\text{r}} (A) +\operatorname{\text{r}} (B) \leq n$；按列拆开就是 $A \boldsymbol{\beta}_j = \mathbf{0}$，到 L47 会看到那正是“$B$ 的列都是 $A \mathbf{x} = \mathbf{0}$ 的解”。
4. **伴随矩阵的秩只有 $n$、$1$、$0$ 三种**，中间那条靠“两边一夹”得来；见到 $A^{\ast} = k A$ 就先取行列式定 $\left|A\right|$，再用三分法否掉 $\left|A\right| = 0$。
5. 矩阵方程是本讲唯一的大题形态（十七年 1 次）。三步：定形态、验可逆、增广消元一次做完；$X$ 两侧都有又提不动，就设元化方程组——那一路整条在 L48。
6. <strong>“$A$ 经初等变换化为 $B$”$\Leftrightarrow$ “$P A = B$ 或 $A Q = B$”</strong>。这次互译打通了本讲的两个考点。

:::caution[易错提醒]
**按卷分配精力**：本讲是中等投入，别按重点讲的规格来，但内部侧重三卷不同。**数二、数三**：每年 2.6／2.0 分，重心在**初等变换**（24／19 分，是三卷里数二数三明显占优的一块），矩阵方程各 10.4 分是必须拿的大题分；秩只有 9／5 分——性质背熟能判定即可，2023 数一 5 那种难度 5.0 的题不必碰，但伴随秩三分法那两道（2024 数二 9、2026 数三 6）正好一卷一道，都要做。**数一**：每年 2.1 分，是三卷最低，但结构完全反过来——初等变换只有 8 分，而**秩 23 分是三卷最高**，且难题（难度 4–5）全部出在数一卷上——数一同学要把秩的不等式练到能随手举反例。三卷共同的动作：$(A \mid B) \to(E \mid X)$ 的增广消元，闭着眼睛也要写对。
:::

:::note[课后任务]
本讲 20 个选填题位才是主体，按考点成组做。初等矩阵那 6 道（2020 数一 5、2021 数二 10、2022 数二 16、2025 数二 9 是正文之外剩下的四道）连着做完，数二数三同学优先。秩那 8 道数一同学必须做完：2010 数一 5、2012 数一 13、2016 数二 14 是基础形态（2012 数一 13 正文已给过思路，动笔补完），2023 数一 5 是难度 5.0 的硬骨头、留到冲刺期，2025 数一 7 与正文那道 2021 数一 7 是“分块 $+$ 秩”的一对，做完前者再回头把正文那道补完；2024 数二 9 与 2026 数三 6 是伴随秩三分法的一对，一样配着做。2022 数一 15 是矩阵方程的填空版（因式分解求逆），顺手做掉；正文那道 2015 年的大题务必动笔重写一遍。两道“搬家”的题别在这里找：$\operatorname{\text{r}} (A, A B) = \operatorname{\text{r}} (A)$ 那道 2018 三卷同题与 $A C -C A = B$ 那道 2013 三卷同题现在都在 L48。
:::
