# 秩（线性代数）

矩阵的**秩**是由其各列张成的向量空间的维数，等价地，也是由其各行张成的空间的维数；这两个维数总是相等的。秩衡量一个矩阵携带多少独立信息：一个秩为 \( r \) 的 \( m \times n \) 矩阵将 \( n \) 维输入映射到 \( r \) 维的输出集合上，且 \( r \le \min(m, n) \)。<sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup> 这一概念由费迪南德·格奥尔格·弗罗贝尼乌斯（Ferdinand Georg Frobenius）在其1878年关于线性替换与双线性型的工作中引入，他在研究标准形时用到了它。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 矩阵 \( A \) 的行空间与列空间的共同维数，记作 rank(\( A \))；零空间的维数称为零度。<sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup> |
| 界 | 对 \( m \times n \) 矩阵，\( 0 \le \operatorname{rank}(A) \le \min(m, n) \)；秩达到此最大值的矩阵称为满秩矩阵。<sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup> |
| 秩–零度 | 对线性映射 \( T: V \to W \)，\( \dim \operatorname{Im}(T) + \dim \operatorname{Ker}(T) = \dim V \)；对有 \( n \) 列的矩阵，秩 + 零度 = \( n \)。<sup>[3](https://www.math.hkust.edu.hk/~ivanip/teaching/LinearAlgebraB/LectureNotes.pdf)</sup> |
| 子式刻画 | 秩是最大的非零子式的阶数，即行列式非零的最大 \( k \times k \) 子矩阵的阶数。<sup>[4](https://nhigham.com/2021/02/23/matrix-rank-relations/)</sup> |
| 数值计算 | 软件将秩计算为高于某一容差的奇异值个数；MATLAB 的默认容差为 \( \max(\operatorname{size}(A)) \cdot \varepsilon(\|A\|) \)。<sup>[5](https://www.mathworks.com/help/matlab/ref/rank.html)</sup> |
| 历史 | 弗罗贝尼乌斯于1878年定义了秩；西尔维斯特于1884年定义了方阵的零度。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> |
| 优化难度 | 在凸集上最小化矩阵的秩在计算上是 NP 难的。<sup>[6](https://authors.library.caltech.edu/records/9cq09-1zw04)</sup> |

## 等价定义

秩的若干种刻画可以互换使用，而它们的等价性本身就是线性代数的一条定理。

**列空间与行空间。** \( A \) 的列空间是其各列的所有线性组合构成的集合，这恰好就是输出 \( A\mathbf{x} \) 的集合；其维数即列秩。行空间由各行类似地定义。\( A \) 的行空间就是 \( A^T \) 的列空间，而列秩等于行秩这一定理可由 rank(\( A \)) = rank(\( A^T \)) 推出。<sup>[3](https://www.math.hkust.edu.hk/~ivanip/teaching/LinearAlgebraB/LectureNotes.pdf)</sup><sup> • </sup><sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup> 由于这一相等关系，无需任何限定语：“秩”是明确无歧义的。

**主元。** 化为阶梯形的行化简给出一种实用的计数方法：秩就是主元的个数，即 \( A\mathbf{x} = \mathbf{0} \) 的通解中首变量的个数，而零度则是该解中自由参数的个数。<sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup> 阶梯形的主元行构成行空间的一组基，而原矩阵的主元列构成其列空间的一组基。<sup>[7](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_08-31/Ch3.html)</sup>

**子式。** \( k \) 阶子式是由选取 \( k \) 行与 \( k \) 列所形成的 \( k \times k \) 子矩阵的行列式。秩等于使某个子式非零的最大阶数 \( k \)；对 \( n \times n \) 方阵，秩为 \( n \) 与 \( \det(A) \ne 0 \) 是同一陈述。<sup>[4](https://nhigham.com/2021/02/23/matrix-rank-relations/)</sup><sup> • </sup><sup>[7](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_08-31/Ch3.html)</sup> 这一刻画主要具有理论价值，因为检验所有子式远比行化简昂贵，但它是诸如“多项式矩阵 \( A(x) \) 的秩除在有限多个使其下降的点外为常数”这类结果的基础。<sup>[7](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_08-31/Ch3.html)</sup>

## 秩–零度定理与四个子空间

秩–零度定理，有时被称为线性代数基本定理，指出对有限维空间 \( V \) 上的线性映射 \( T: V \to W \)，

\[ \dim \operatorname{Im}(T) + \dim \operatorname{Ker}(T) = \dim V. \]

用矩阵表述，对 \( m \times n \) 矩阵 \( A \)，rank(\( A \)) + nullity(\( A \)) = \( n \)。<sup>[3](https://www.math.hkust.edu.hk/~ivanip/teaching/LinearAlgebraB/LectureNotes.pdf)</sup><sup> • </sup><sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup> 该定理连接了理论的两个核心对象：零空间，即 \( A\mathbf{x} = \mathbf{0} \) 的解集；以及列空间，即使得 \( A\mathbf{x} = \mathbf{b} \) 相容的右端项 \( \mathbf{b} \) 的集合。<sup>[8](https://math.libretexts.org/Courses/University_of_California_Irvine/Linear_Algebra_%28Math_3A_UCI%29/01%3A_Systems_of_Linear_Equations/1.07%3A_Basis_and_Dimension/1.7.03%3A_Rank_and_Nullity)</sup>

麻省理工学院数学荣休教授吉尔伯特·斯特朗（Gilbert Strang）围绕秩为 \( r \) 的矩阵 \( A \) 的四个基本子空间来组织这一主题：列空间 \( C(A) \) 与行空间 \( C(A^T) \)，二者的维数均为 \( r \)；以及零空间 \( N(A) \) 与左零空间 \( N(A^T) \)，维数分别为 \( n - r \) 与 \( m - r \)。<sup>[9](https://math.mit.edu/~gs/linearalgebra/ila5/linearalgebra5_3-5.pdf)</sup> 因此，秩一举确定了全部四个子空间的维数。在 \( \mathbb{R}^n \) 中，行空间与零空间是正交补，其维数之和为 \( n \)；在 \( \mathbb{R}^m \) 中，列空间与左零空间亦然。<sup>[9](https://math.mit.edu/~gs/linearalgebra/ila5/linearalgebra5_3-5.pdf)</sup>

## 代数性质

秩在标准矩阵运算下表现出可预测的行为：

- 转置不改变秩：rank(\( A \)) = rank(\( A^T \))。<sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup>
- 乘法不能增加秩：rank(\( AB \)) \( \le \) min(rank \( A \), rank \( B \))，因为 \( AB \) 的各列是 \( A \) 的各列的线性组合，而其各行是 \( B \) 的各行的线性组合。<sup>[9](https://math.mit.edu/~gs/linearalgebra/ila5/linearalgebra5_3-5.pdf)</sup>
- 乘以可逆矩阵精确保持秩不变。<sup>[9](https://math.mit.edu/~gs/linearalgebra/ila5/linearalgebra5_3-5.pdf)</sup>
- 对 \( n \times n \) 矩阵，可逆矩阵定理汇集了诸等价条件：\( A \) 可逆当且仅当其各列构成 \( \mathbb{R}^n \) 的一组基，其秩为 \( n \)，且其零度为 0。<sup>[3](https://www.math.hkust.edu.hk/~ivanip/teaching/LinearAlgebraB/LectureNotes.pdf)</sup>
- 每个秩 1 矩阵可分解为 \( A = \mathbf{u}\mathbf{v}^T \)，即一列乘一行；更一般地，秩为 \( r \) 的矩阵容许秩分解 \( A = CF \)，其中 \( C \in \mathbb{R}^{m \times r} \)，\( F \in \mathbb{R}^{r \times n} \)。<sup>[1](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)</sup>

## 历史

矩阵论的许多标准结果在矩阵本身成为研究对象之前就已出现。詹姆斯·约瑟夫·西尔维斯特（James Joseph Sylvester）1851年的论文与阿瑟·凯莱（Arthur Cayley）1858年的《矩阵论回忆录》——后者给出了矩阵的第一个抽象定义——通常被视为该领域历史的起点。<sup>[10](https://epubs.siam.org/doi/10.1137/1.9781611977233.ch1)</sup> 弗罗贝尼乌斯1878年的论文《论线性替换与双线性型》包含了矩阵秩的定义，用于其关于标准形的工作，同时还包含正交矩阵的定义以及矩阵满足自身特征方程的一般证明。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 西尔维斯特在研究矩阵不变量时，于1884年将方阵的零度 \( n(A) \) 定义为使 \( A \) 的所有 \( n - i + 1 \) 阶子式均为零的最大 \( i \)，并证明了界 \( \max\{n(A), n(B)\} \le n(AB) \le n(A) + n(B) \)。<sup>[2](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

## 计算与数值秩

在精确算术中，行化简或子式计数可确定秩。浮点计算则不同：舍入使精确的零变得罕见，因此软件报告的是数值秩，即高于某一容差的奇异值个数。MATLAB 的 `rank` 函数使用奇异值分解，统计大于 \( \max(\operatorname{size}(A)) \cdot \varepsilon(\|A\|) \) 的奇异值，其中 \( \varepsilon \) 为机器精度；SVD 方法比其他替代方法开销更大，但被描述为最可靠的方法。<sup>[5](https://www.mathworks.com/help/matlab/ref/rank.html)</sup> 容差至关重要：一个对角元为 10、25、34 和 \( 10^{-15} \) 的 4×4 对角矩阵，在默认容差下数值秩为 3，而当容差设为 \( 10^{-16} \) 时秩为 4。<sup>[5](https://www.mathworks.com/help/matlab/ref/rank.html)</sup> 揭示秩的 QR 分解为估计奇异值和识别秩提供了一种更廉价的替代方案。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0024379525004707)</sup> 对于寻找秩为 \( r = \operatorname{rank}(A) \) 的矩阵的一组 \( r \) 个线性无关列，随机化算法达到大约 \( O(|A| + r^{\omega}) \) 次域运算，其中 \( |A| \) 为非零元个数，\( \omega < 2.38 \) 为矩阵乘法指数。<sup>[12](https://arxiv.org/abs/1203.6705)</sup>

## 应用

**低秩逼近。** 奇异值分解将矩阵写成 \( A = \sum_{i=1}^{r} \sigma_i \mathbf{u}_i \mathbf{v}_i^T \)，其中奇异值 \( \sigma_1 \ge \cdots \ge \sigma_r > 0 \)。埃卡特–杨定理指出，将此和在第 \( k \) 项后截断，得到 \( A \) 在谱范数与弗罗贝尼乌斯范数下均最优的秩 \( k \) 逼近，误差为

\[ \min_{\operatorname{rank}(B) \le k} \|A - B\|_2 = \sigma_{k+1}, \qquad \min_{\operatorname{rank}(B) \le k} \|A - B\|_F = \sqrt{\sum_{j > k} \sigma_j^2}. \]

<sup>[13](https://mathworld.wolfram.com/Eckart-YoungTheorem.html)</sup> 米尔斯基（Mirsky）将最优性推广到每一个酉不变范数。<sup>[14](https://www.andrew.cmu.edu/course/18-661/readings/math4ml.pdf)</sup> 低秩逼近减少了存储矩阵所需的数据，同时保留了其大部分信息，而计算此类逼近的随机化算法如今已成为数据分析与科学计算中的标准工具。<sup>[14](https://www.andrew.cmu.edu/course/18-661/readings/math4ml.pdf)</sup><sup> • </sup><sup>[15](https://epubs.siam.org/doi/abs/10.1137/090771806)</sup>

**控制理论。** 在状态空间控制中，线性系统 \( \dot{x} = Ax + Bu \) 可控当且仅当其可控性矩阵 \( [B \; AB \; \cdots \; A^{n-1}B] \) 满秩，而可观测性则通过由 \( A \) 与 \( C \) 构造的相应可观测性矩阵的秩来检验。<sup>[16](https://eceweb1.rutgers.edu/~gajic/psfiles/chap5.pdf)</sup> 这些秩检验由鲁道夫·E·卡尔曼（Rudolf E. Kálmán）于1960年引入，它们决定了状态反馈与估计在根本上所能达到的极限。<sup>[17](https://www.cambridge.org/core/books/principles-of-linear-systems/controllability-and-observability-of-linear-systems/24893287CA89B87AB1DB0B4E385089C0)</sup>

**秩最小化。** 在约束下寻找秩最小的矩阵，即秩最小化问题，出现在控制、系统辨识、统计学与信号处理中，且已知在计算上是 NP 难的；凸优化提供了启发式的求解方法。<sup>[6](https://authors.library.caltech.edu/records/9cq09-1zw04)</sup>

## References

1. [Rank (Sage Tutorial, Brown University)](https://www.cfm.brown.edu/people/dobrush/am34/sage/rank.html)
2. [Matrices and determinants, MacTutor History of Mathematics, University of St Andrews](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)
3. [Linear Algebra B Lecture Notes, HKUST](https://www.math.hkust.edu.hk/~ivanip/teaching/LinearAlgebraB/LectureNotes.pdf)
4. [Matrix Rank Relations, Nick Higham](https://nhigham.com/2021/02/23/matrix-rank-relations/)
5. [rank – Rank of matrix, MATLAB documentation, MathWorks](https://www.mathworks.com/help/matlab/ref/rank.html)
6. [Rank minimization and applications in system theory, Fazel, Hindi, and Boyd, CaltechAUTHORS](https://authors.library.caltech.edu/records/9cq09-1zw04)
7. [Linear Algebra Done Wrong, Chapter 3: Determinants, Sergei Treil, Brown University](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_08-31/Ch3.html)
8. [Rank and Nullity, Mathematics LibreTexts](https://math.libretexts.org/Courses/University_of_California_Irvine/Linear_Algebra_%28Math_3A_UCI%29/01%3A_Systems_of_Linear_Equations/1.07%3A_Basis_and_Dimension/1.7.03%3A_Rank_and_Nullity)
9. [Introduction to Linear Algebra, 5th edition, Section 3.5, Gilbert Strang, MIT](https://math.mit.edu/~gs/linearalgebra/ila5/linearalgebra5_3-5.pdf)
10. [A Journey through the History of Numerical Linear Algebra, Chapter 1, SIAM](https://epubs.siam.org/doi/10.1137/1.9781611977233.ch1)
11. [Estimating a matrix's singular values with interpolative decompositions, Linear Algebra and its Applications](https://www.sciencedirect.com/science/article/pii/S0024379525004707)
12. [Fast Matrix Rank Algorithms and Applications, arXiv](https://arxiv.org/abs/1203.6705)
13. [Eckart-Young Theorem, Wolfram MathWorld](https://mathworld.wolfram.com/Eckart-YoungTheorem.html)
14. [Low-rank approximation, Math for ML, Carnegie Mellon University](https://www.andrew.cmu.edu/course/18-661/readings/math4ml.pdf)
15. [Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix Decompositions, SIAM Review](https://epubs.siam.org/doi/abs/10.1137/090771806)
16. [Controllability and Observability, Rutgers ECE lecture notes](https://eceweb1.rutgers.edu/~gajic/psfiles/chap5.pdf)
17. [Controllability and observability of linear systems, Principles of Linear Systems, Cambridge University Press](https://www.cambridge.org/core/books/principles-of-linear-systems/controllability-and-observability-of-linear-systems/24893287CA89B87AB1DB0B4E385089C0)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Matrix theory › Matrix operations and matrix algebra

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/rank-linear-algebra

English original: https://www.edgepedia.org/rank-linear-algebra
