# 可逆矩阵

**可逆矩阵**是方阵 \( A \)，存在另一个同尺寸矩阵 \( A^{-1} \)，使得 \( A \cdot A^{-1} = A^{-1} \cdot A = I_n \)，即单位矩阵；\( A^{-1} \) 称为 \( A \) 的逆矩阵，而没有逆矩阵的方阵称为奇异矩阵。<sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup> 可逆性是“非零数有倒数”这一事实在矩阵中的类比，并且它等价于该矩阵及其所定义的线性变换的一长串其他性质。<sup>[2](https://mathworld.wolfram.com/InvertibleMatrixTheorem.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 若某个 \( A^{-1} \) 满足 \( A \cdot A^{-1} = A^{-1} \cdot A = I_n \)，则 \( A \) 可逆；逆矩阵唯一。<sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup> |
| 行列式判别法 | 在域上，方阵可逆当且仅当其行列式非零；方阵仅在行列式恰好为零时才是奇异的。<sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup> |
| 等价条件 | 与单位矩阵行等价、有 \( n \) 个主元位置、\( A\mathbf{x} = \mathbf{0} \) 只有平凡解、列线性无关、对每个 \( \mathbf{b} \) 都有 \( A\mathbf{x} = \mathbf{b} \) 的唯一解，以及变换 \( \mathbf{x} \mapsto A\mathbf{x} \) 是一一变换，全都等价于可逆性。<sup>[2](https://mathworld.wolfram.com/InvertibleMatrixTheorem.html)</sup> |
| 环上的情形 | 在有单位元的交换环上，\( A \) 可逆当且仅当 \( \det(A) \) 在环中可逆，且 \( A^{-1} = (\det A)^{-1} \cdot \operatorname{adj} A \)；行列式非零并不够。<sup>[3](https://sites.millersville.edu/bikenaga/linear-algebra/determinants-properties/determinants-properties.html)</sup> |
| 模算术情形 | \( \mathbb{Z}/(m) \) 上的 2 × 2 矩阵有逆矩阵，当且仅当其行列式在 \( \mathbb{Z}/(m) \) 中可逆；例如一个行列式在模10下为8的矩阵不可逆，尽管 8 非零。<sup>[4](https://kconrad.math.uconn.edu/blurbs/ugradnumthy/modarith.pdf)</sup> |
| 数值实践 | 软件库建议不要显式构造逆矩阵：LAPACK 指出这很少必要，也不推荐用于求解线性系统；MATLAB 推荐使用反斜杠运算符 \( A \backslash b \)，而不是 \( \operatorname{inv}(A) \cdot b \)。<sup>[5](https://www.netlib.org/lapack/lug/node26.html)</sup><sup> • </sup><sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup> |
| 历史 | 西尔维斯特（Sylvester）于1850年首创“矩阵”一词；凯莱（Cayley）到1853年发表了首个矩阵的逆，并在其1858年《矩阵论回忆录》（Memoir on the theory of matrices）中给出了用行列式表示逆矩阵的显式构造。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> |

## 定义与基本性质

定义要求两个乘积 \( A \cdot A^{-1} \) 与 \( A^{-1} \cdot A \) 都等于单位矩阵。对于域上的方阵，单侧逆会自动在另一侧也成立，因此只需找到满足 \( AB = I \) 或 \( BA = I \) 的 \( B \)。<sup>[7](https://prime.pages.ewi.tudelft.nl/openlabook-published/Appendices/InverseMatrixTheorem.html)</sup> 逆矩阵若存在则唯一：若 \( B \) 与 \( C \) 都是 \( A \) 的逆矩阵，则 \( B = B \cdot I = B(AC) = (BA)C = C \)。<sup>[8](https://planetmath.org/invertiblematrix)</sup>

可逆性在乘积下表现良好。若 \( A \) 与 \( B \) 是同尺寸的可逆矩阵，则 \( AB \) 可逆，且 \( (AB)^{-1} = B^{-1} \cdot A^{-1} \)，即因子顺序颠倒。

## 可逆矩阵定理

**可逆矩阵定理**把 \( n \times n \) 矩阵 \( A \) 可逆的众多等价条件汇集为一个陈述。对于 \( n \times n \) 矩阵，以下各项等价：<sup>[2](https://mathworld.wolfram.com/InvertibleMatrixTheorem.html)</sup><sup> • </sup><sup>[7](https://prime.pages.ewi.tudelft.nl/openlabook-published/Appendices/InverseMatrixTheorem.html)</sup>

1. \( A \) 可逆。
2. \( A \) 行等价于 \( n \times n \) 单位矩阵 \( I_n \)。
3. \( A \) 有 \( n \) 个主元位置。
4. 方程 \( A\mathbf{x} = \mathbf{0} \) 只有平凡解 \( \mathbf{x} = \mathbf{0} \)。
5. \( A \) 的列构成线性无关集。
6. \( A \) 的列张成 \( \mathbb{R}^n \)。
7. 对 \( \mathbb{R}^n \) 中的每个 \( \mathbf{b} \)，方程 \( A\mathbf{x} = \mathbf{b} \) 有唯一解。
8. 线性变换 \( \mathbf{x} \mapsto A\mathbf{x} \) 是一一（且满射）的。
9. \( \det(A) \neq 0 \)。
10. \( 0 \) 不是 \( A \) 的特征值。
11. \( A \) 可分解为初等矩阵的乘积 \( A = E_1 \cdots E_k \)。

该定理只适用于方阵。<sup>[9](https://webspace.ship.edu/jehamb/ela/lecture25.html)</sup> 它的实际效力在于这些陈述同真同假：对可逆矩阵，它们全为真；对不可逆矩阵，它们全为假。因此，只要任一条件不成立，例如行列式为零或零空间非平凡，就排除了可逆性。<sup>[10](https://textbooks.math.gatech.edu/ila/invertible-matrix-thm.html)</sup>

## 计算逆矩阵

两种经典构造给出逆矩阵。伴随矩阵公式表示为

\[ A^{-1} = (\det A)^{-1} \cdot \operatorname{adj} A, \]

其中 \( \operatorname{adj} A \) 由 \( A \) 的代数余子式构成。凯莱于1858年用行列式给出了这一构造。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 该公式对小矩阵（约 3 × 3 或更小）实用，但对更大的矩阵，行化简所用的步骤更少。<sup>[3](https://sites.millersville.edu/bikenaga/linear-algebra/determinants-properties/determinants-properties.html)</sup> 行化简法把将 \( A \) 化为 \( I_n \) 的运算同时施加于一个相邻的单位矩阵；所得结果就是 \( A^{-1} \)。<sup>[11](https://ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter32/section03.html)</sup>

在浮点软件中，求逆建立在分解之上：MATLAB 的 `inv` 对输入矩阵进行 LU 分解；若矩阵为埃尔米特矩阵，则进行 LDL 分解；然后求解线性系统以获得逆矩阵。<sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup> SciPy 的 `linalg.inv` 对奇异输入抛出错误，对病态输入发出警告，并接受对称正定矩阵或三角矩阵等结构提示，以选择专用求解器。<sup>[12](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.inv.html)</sup>

**为何避免显式逆矩阵。** 先构造 \( A^{-1} \) 再相乘来求解 \( A\mathbf{x} = \mathbf{b} \)，比直接求解该系统更慢且精度更低。在一项 MATLAB 基准测试中，对条件数为 \( 10^{10} \) 的 500 × 500 矩阵，反斜杠运算符 \( A \backslash b \) 所用时间约为 \( \operatorname{inv}(A) \cdot b \) 的一半，且产生的残差为 \( 3.9285 \times 10^{-15} \)，而显式逆矩阵路线为 \( 5.1611 \times 10^{-7} \)；LAPACK 用户指南（LAPACK Users' Guide）指出，很少有必要显式计算逆矩阵，当然也不推荐把它作为求解线性系统的手段。<sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup><sup> • </sup><sup>[5](https://www.netlib.org/lapack/lug/node26.html)</sup> 当矩阵缩放不良或接近奇异时，精度也会下降，因此各库提供 `rcond` 和 `cond` 等条件数检查。<sup>[1](https://www.mathworks.com/help/matlab/ref/inv.html)</sup>

## 环与模算术中的逆矩阵

在有单位元的一般交换环上，行列式判别法改变形式：\( A \) 可逆当且仅当 \( \det(A) \) 是环中的单位，此时 \( A^{-1} = (\det A)^{-1} \cdot \operatorname{adj} A \)。<sup>[3](https://sites.millersville.edu/bikenaga/linear-algebra/determinants-properties/determinants-properties.html)</sup> 行列式非零并不充分，因为非零非单位元不能求逆。例如在 \( \mathbb{Z}_6 \) 上，以 (5, 3) 和 (1, 1) 为行的矩阵行列式为 2，而 2 在 \( \mathbb{Z}_6 \) 中不可逆，因此该矩阵尽管行列式非零，却不可逆。<sup>[3](https://sites.millersville.edu/bikenaga/linear-algebra/determinants-properties/determinants-properties.html)</sup>

同样的区分支配着 \( \mathbb{Z}/(m) \) 上的矩阵。元素取自 \( \mathbb{Z}/(m) \) 的 2 × 2 矩阵有逆矩阵，当且仅当其行列式在 \( \mathbb{Z}/(m) \) 中可逆；此时逆矩阵由与实数情形相同的公式给出。<sup>[4](https://kconrad.math.uconn.edu/blurbs/ugradnumthy/modarith.pdf)</sup> 当 \( m \) 为素数时，每个非零剩余类都可逆，因此实线性代数中熟悉的“非零行列式”规则仍然适用；当 \( m \) 为合数时则不适用。<sup>[4](https://kconrad.math.uconn.edu/blurbs/ugradnumthy/modarith.pdf)</sup>

## 应用

**密码学。** 希尔密码（Hill cipher）由莱斯特·S·希尔（Lester S. Hill）于1929年提出，它把字母块对应的数字向量乘以密钥矩阵并对26取模来加密；密钥矩阵必须在模26下可逆，以便接收方计算其逆矩阵并解密。<sup>[13](https://www.cs.uri.edu/cryptography/classical-ciphers/hill/article.html)</sup> 可逆性要求正是上述环条件：密钥的行列式必须与模互素。<sup>[14](https://www.cfm.brown.edu/people/dobrush/cs52/Mathematica/Part7/cryptography.html)</sup>

**坐标变换。** 在控制理论与计算机图形学中，坐标变换 \( \bar{\mathbf{x}} = T\mathbf{x} \) 要求 \( T \) 非奇异，以便在坐标系之间来回转换；变换后的系统矩阵变为 \( TAT^{-1} \)、\( TB \) 和 \( CT^{-1} \)。<sup>[15](https://courses.grainger.illinois.edu/ece486/sp2026/documentation/handbook/lec20.html)</sup> 图形管线同样使用逆矩阵来撤销变换，例如从移动视点渲染时，把视图矩阵取为模型矩阵的逆矩阵。<sup>[16](https://courses.grainger.illinois.edu/cs418/fa2024/text/math2.html)</sup>

## 历史

行列式的研究远早于矩阵：柯西（Cauchy）关于行列式的决定性论文于1812年在法国研究院（French Institute）宣读，而雅可比（Jacobi）1841年的三篇论著以算法定义使行列式广为人知。<sup>[17](https://www.nationalacademies.org/read/11540/chapter/14)</sup><sup> • </sup><sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 西尔维斯特于1850年首次使用“矩阵”一词，将其定义为一个长方形的项排列，并由此从其中所含的方阵得到各种行列式。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 凯莱与西尔维斯特都在伦敦从事律师工作时结识了后者，很快看出这一概念的意义：到1853年，他已发表一篇注记，首次给出矩阵的逆；其1858年《矩阵论回忆录》包含矩阵的第一个抽象定义、一个具有加法、乘法、标量乘法与逆的矩阵代数，以及用行列式表示逆矩阵的显式构造。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup><sup> • </sup><sup>[17](https://www.nationalacademies.org/read/11540/chapter/14)</sup>

弗罗贝尼乌斯（Frobenius）1878年关于线性替换与双线性型的工作证明了一般形式的凯莱-哈密顿定理，定义了矩阵的秩，并引入了正交矩阵，尽管他尚未使用“矩阵”一词，而且似乎并不知道凯莱的工作。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 矩阵理论通过博歇尔（Bôcher）的《高等代数导论》（Introduction to higher algebra，1907）和米尔斯基（Mirsky）的《线性代数导论》（An introduction to linear algebra，1955）等教材，成为本科课程并达到今日的重要地位。<sup>[6](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

## References

1. [inv - Matrix inverse, MATLAB documentation](https://www.mathworks.com/help/matlab/ref/inv.html)
2. [Invertible Matrix Theorem, Wolfram MathWorld](https://mathworld.wolfram.com/InvertibleMatrixTheorem.html)
3. [Determinants - Properties, Bruce Ikenaga, Millersville University](https://sites.millersville.edu/bikenaga/linear-algebra/determinants-properties/determinants-properties.html)
4. [Modular Arithmetic, Keith Conrad, University of Connecticut](https://kconrad.math.uconn.edu/blurbs/ugradnumthy/modarith.pdf)
5. [Linear Equations, LAPACK Users' Guide](https://www.netlib.org/lapack/lug/node26.html)
6. [Matrices and determinants, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)
7. [The inverse matrix theorem, Linear Algebra, TU Delft](https://prime.pages.ewi.tudelft.nl/openlabook-published/Appendices/InverseMatrixTheorem.html)
8. [Invertible matrix, PlanetMath](https://planetmath.org/invertiblematrix)
9. [Elementary Linear Algebra, Lecture 25: The Invertible Matrix Theorem, Shippensburg University](https://webspace.ship.edu/jehamb/ela/lecture25.html)
10. [The Invertible Matrix Theorem, Interactive Linear Algebra, Georgia Tech](https://textbooks.math.gatech.edu/ila/invertible-matrix-thm.html)
11. [The Inverse of a Matrix, MIT OCW 18.013A](https://ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter32/section03.html)
12. [scipy.linalg.inv, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.inv.html)
13. [Hill Cipher, University of Rhode Island cryptography course](https://www.cs.uri.edu/cryptography/classical-ciphers/hill/article.html)
14. [Hill Method, Brown University CS52 notes](https://www.cfm.brown.edu/people/dobrush/cs52/Mathematica/Part7/cryptography.html)
15. [ECE 486 Control Systems, Lecture 20: Coordinate Transformations, University of Illinois](https://courses.grainger.illinois.edu/ece486/sp2026/documentation/handbook/lec20.html)
16. [Homogeneous Vectors and Transformations, CS 418, University of Illinois](https://courses.grainger.illinois.edu/cs418/fa2024/text/math2.html)
17. [Unknown Quantity: A Real and Imaginary History of Algebra, John Derbyshire, National Academies Press](https://www.nationalacademies.org/read/11540/chapter/14)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; 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/invertible-matrix

English original: https://www.edgepedia.org/invertible-matrix
