# 方阵

方阵是行数与列数相同的矩阵，即数字排成的 \( n \times n \) 网格。方阵在线性代数中占据特殊地位：该学科的若干最重要工具——包括行列式、迹、特征多项式与逆矩阵——都只对方阵有定义。<sup>[1](https://math.mit.edu/~poonen/03/notes.pdf)</sup><sup> • </sup><sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup>

| 关键事实 | 详情 |
|---|---|
| 形状 | 一个 \( n \times n \) 方阵有 \( n^2 \) 个元素，它们全都影响该矩阵作为线性变换 \( x \mapsto Ax \) 的行为。<sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup> |
| 迹 | 迹 \( \operatorname{tr}(A) \) 是对角线元素之和；它是线性的，并且尽管矩阵乘法不满足交换律，仍有 \( \operatorname{tr}(AB) = \operatorname{tr}(BA) \)。<sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup> |
| 行列式 | 行列式 \( \det(A) \) 只对方阵有定义；它满足 \( \det(AB) = \det(A)\det(B) \) 与 \( \det(A^T) = \det(A) \)。<sup>[1](https://math.mit.edu/~poonen/03/notes.pdf)</sup><sup> • </sup><sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup> |
| 逆矩阵的方阵性 | 只有方阵才可能可逆：一个有逆矩阵的矩阵，其行数与列数必须相同。<sup>[3](https://math.libretexts.org/%40api/deki/pages/161303/pdf/2.3%253A%2BElementary%2BMatrices.pdf?stylesheet=default)</sup> |
| 凯莱–哈密顿定理 | 每个方阵都满足自身的特征方程，即一个次数与方阵阶数相同的代数方程；凯莱证明了 2 × 2 情形并验证了 3 × 3 情形，哈密顿证明了 4 × 4 情形，弗罗贝尼乌斯于 1878 年证明了一般定理。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> |
| 数值求解 | 在标准的线性方程组问题 \( Ax = b \) 中，系数矩阵 \( A \) 是一个 \( n \) 阶方阵，实际求解时采用带部分主元选取的 LU 分解。<sup>[5](https://www.netlib.org/lapack/lug/node38.html)</sup> |

## 方阵性为何重要

矩阵表示线性变换：一个将 \( n \) 维空间映到 \( m \) 维空间的变换，其矩阵有 \( n \) 列、\( m \) 行。<sup>[6](https://math.mit.edu/~djk/18_022/chapter16/section01.html)</sup> 方阵情形 \( m = n \)，即变换把空间映到自身的情形。只有在这种情形下，变换才能按两种顺序自由复合：于是对同一空间上的变换 \( A \) 与 \( B \)，可以构造 \( B(A(v)) \)，记作 \( BAv \)，而复合的矩阵就是矩阵乘积 \( BA \)。<sup>[6](https://math.mit.edu/~djk/18_022/chapter16/section01.html)</sup> 这种对乘法封闭的性质，使 \( n \times n \) 矩阵的集合本身成为一个代数对象，而不只是一种记账工具。

同样的封闭性也解释了哪些标量量得以存在。行列式是从方阵到实数的一个函数，其刻画来自它在行变换下的行为：把一行替换为它加上另一行的倍数，行列式不变；把一行乘以 \( c \)，行列式乘以 \( c \)；交换两行，行列式乘以 \( -1 \)；单位矩阵的行列式为 1。<sup>[7](https://math.libretexts.org/Courses/Irvine_Valley_College/Math_26%3A_Introduction_to_Linear_Algebra/02%3A_Linear_Transformations_and_Matrix_Algebra/2.05%3A_Determinants-_Definition/2.5.01%3A_Definition_of_Determinant)</sup> 由于行变换只以非零因子缩放行列式，行化简绝不会改变行列式是否为零，这正是行列式成为可逆性实用判据的原因。<sup>[7](https://math.libretexts.org/Courses/Irvine_Valley_College/Math_26%3A_Introduction_to_Linear_Algebra/02%3A_Linear_Transformations_and_Matrix_Algebra/2.05%3A_Determinants-_Definition/2.5.01%3A_Definition_of_Determinant)</sup> 行列式还有几何解读：它是变换缩放体积的因子，并且是乘性的：\( \det(BA) = \det(B)\det(A) \)。<sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup><sup> • </sup><sup>[6](https://math.mit.edu/~djk/18_022/chapter16/section01.html)</sup> 一个推论是：表示某个变换的矩阵，其行列式与计算所用的基无关；它是变换本身的性质。<sup>[6](https://math.mit.edu/~djk/18_022/chapter16/section01.html)</sup>

**迹**是两个经典标量不变量中较简单的一个。对于

\[ A = \begin{pmatrix} 2 & 3 & -4 \\ 1 & -1 & 0 \\ 7 & 5 & -9 \end{pmatrix} \]

其迹为 \( \operatorname{tr}(A) = 2 + (-1) + (-9) = -8 \)。<sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup> 它只依赖于对角线元素，对其自变量是线性的，并满足循环恒等式 \( \operatorname{tr}(AB) = \operatorname{tr}(BA) \)。<sup>[2](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)</sup>

## 可逆性与线性方程组

方阵情形也是典型问题 \( Ax = b \) 的舞台，其中 \( A \) 是系数矩阵，\( b \) 是右端项，\( x \) 是未知解。LAPACK 库是稠密线性代数的标准软件，它在该问题中假定 \( A \) 是一个 \( n \) 阶方阵，并先把 \( A \) 分解为三角矩阵的乘积来求解：对一般矩阵即带部分主元选取的 LU 分解，\( A = PLU \)。<sup>[5](https://www.netlib.org/lapack/lug/node38.html)</sup> 其文档指出，显式计算逆矩阵很少有必要，也不推荐用它来解线性方程组；分解与回代即可完成工作。<sup>[8](https://www.netlib.org/lapack/lug/node26.html)</sup>

## 特征值与特征多项式

每个方阵 \( A \) 都联系着一个数 \( \det A \)，更一般地联系着一个特征多项式，其根是 \( A \) 的特征值。<sup>[1](https://math.mit.edu/~poonen/03/notes.pdf)</sup> 特征多项式本身就是一个行列式 \( \det(A - xI) \)，计算它的代价（至多相差常数因子）与用已知最快算法相乘两个方阵大致相当。<sup>[9](https://arxiv.org/abs/2010.04662)</sup>

凯莱–哈密顿定理是凯莱 1858 年回忆录的主要结果，它断言每个方阵都满足自身的特征方程。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/science/article/pii/0315086078900526)</sup> 凯莱对 2 × 2 矩阵证明了它，并验证了 3 × 3 情形，还写道他认为没有必要对一般情形进行正式证明；哈密顿此前通过四元数证明了 4 × 4 情形，而弗罗贝尼乌斯于 1878 年给出第一个一般证明，同时慷慨地把结果归功于凯莱。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

## 历史

“矩阵”一词随詹姆斯·约瑟夫·西尔维斯特（James Joseph Sylvester，1814–1897）进入数学，这位英国律师兼数学家于 1850 年首次使用该词，并把矩阵定义为一个矩形的项排列，由它可以构造出其中所含方阵的行列式。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup><sup> • </sup><sup>[11](https://mathshistory.st-andrews.ac.uk/Chronology/23/)</sup> 西尔维斯特结识了阿瑟·凯莱（Arthur Cayley，1821–1895），这位同行律师与他一样对数学感兴趣，凯莱很快看出了这个概念的意义：到 1853 年，他已发表一篇短记，首次给出矩阵的逆。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

**凯莱 1858 年的回忆录**是该学科的奠基文献。他的《矩阵论回忆录》包含矩阵的第一个抽象定义，说明此前为二次型与线性变换研究的系数阵列是一般概念的特例，并定义了具有加法、乘法、标量乘法与逆的矩阵代数。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 西尔维斯特评价说，这部回忆录开启了“第二代数”的统治。<sup>[12](https://en.wikisource.org/wiki/Page%3AA_History_of_Mathematics_%281893%29.djvu/343)</sup> 数值线性代数的史家把西尔维斯特 1851 年的论文与凯莱 1858 年的回忆录视为矩阵历史的起点，同时指出有些矩阵性质在矩阵被正式定义之前就已被证明，因为这门学科源于古代解线性方程组的方法、行列式理论，以及十九世纪初关于二次型与双线性型中线性替换的工作。<sup>[13](https://epubs.siam.org/doi/book/10.1137/1.9781611977233)</sup> 更早一些，哥特霍尔德·爱森斯坦（Gotthold Eisenstein）在 1844 年已把线性替换视为构成一个代数，对线性方程组之间的符号方程施用通常的乘法、除法与幂运算规则，唯一的告诫是因子的次序不可改变。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

十九世纪后期的工作补全了结构理论。卡米尔·若尔当（Camille Jordan）的标准形出现在他 1870 年的《替换与代数方程论》中；费迪南德·格奥尔格·弗罗贝尼乌斯（Ferdinand Georg Frobenius）1878 年论述线性替换与双线性型时没有使用“矩阵”一词，却证明了关于标准矩阵的结果，定义了矩阵的秩与正交矩阵，并证明了一般凯莱–哈密顿定理；西尔维斯特于 1884 年定义了方阵的零度。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 直到 1896 年，弗罗贝尼乌斯在了解到凯莱的回忆录之后，才自己采用“矩阵”一词。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 矩阵理论成为数学中被完全接受的一部分，比行列式理论要慢；它作为本科课题取得今日的主要地位，靠的是马克西姆·博歇（Maxime Bôcher）的《高等代数引论》（1907）、特恩布尔与艾特肯在 1930 年代颇有影响的教科书，以及莱昂·米尔斯基（Leon Mirsky）的《线性代数引论》（1955）。<sup>[4](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>

## 例子

图论提供了矩阵幂的一个具体用途。简单有限图的邻接矩阵是一个对称的 \( (0,1) \)-矩阵，迹为零，而其平方 \( A^2 = (s_{ij}) \) 具有这样的性质：\( s_{ij} \) 计数从顶点 \( i \) 到顶点 \( j \) 的长度为二的游走。<sup>[14](https://arxiv.org/abs/1207.3122)</sup>

## References

1. [Bjorn Poonen, 18.03 Lecture Notes, Spring 2025, MIT](https://math.mit.edu/~poonen/03/notes.pdf)
2. [Matrices and Linear Systems, Introduction to ODEs and Linear Algebra, University of Minnesota Duluth](https://www.d.umn.edu/~mhampton/ODELA/Matrices/)
3. [Elementary Matrices, Mathematics LibreTexts](https://math.libretexts.org/%40api/deki/pages/161303/pdf/2.3%253A%2BElementary%2BMatrices.pdf?stylesheet=default)
4. [Matrices and determinants, MacTutor History of Mathematics, University of St Andrews](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)
5. [LAPACK Users' Guide, Linear Equations](https://www.netlib.org/lapack/lug/node38.html)
6. [Matrices and Linear Transformations, MIT 18.022](https://math.mit.edu/~djk/18_022/chapter16/section01.html)
7. [Definition of Determinant, Mathematics LibreTexts](https://math.libretexts.org/Courses/Irvine_Valley_College/Math_26%3A_Introduction_to_Linear_Algebra/02%3A_Linear_Transformations_and_Matrix_Algebra/2.05%3A_Determinants-_Definition/2.5.01%3A_Definition_of_Determinant)
8. [LAPACK Users' Guide, Linear Equations driver routines](https://www.netlib.org/lapack/lug/node26.html)
9. [Deterministic computation of the characteristic polynomial in the time of matrix multiplication, arXiv](https://arxiv.org/abs/2010.04662)
10. [Cayley's anticipation of a generalised Cayley-Hamilton theorem, Historia Mathematica via ScienceDirect](https://www.sciencedirect.com/science/article/pii/0315086078900526)
11. [Chronology for 1850–1860, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Chronology/23/)
12. [A History of Mathematics (1893), Wikisource](https://en.wikisource.org/wiki/Page%3AA_History_of_Mathematics_%281893%29.djvu/343)
13. [A Journey through the History of Numerical Linear Algebra, SIAM Publications](https://epubs.siam.org/doi/book/10.1137/1.9781611977233)
14. [The Square of Adjacency Matrices, arXiv](https://arxiv.org/abs/1207.3122)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/square-matrix

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