# 单位矩阵

单位矩阵是主对角线上全为1、其余位置全为0的方阵；用任何与之相容的矩阵乘以它，该矩阵都保持不变，恰如一个数乘以1一样。<sup>[1](https://courses.grainger.illinois.edu/cs357/fa2019/references/ref-5-special-matrices/)</sup><sup> • </sup><sup>[2](https://sites.ualberta.ca/~jsylvest/books/DLA1/section-inverses-concepts.html)</sup> \( n \) 阶单位矩阵记作 \( I_n \)，当从上下文可以看清阶数时，就简记为 \( I \)。<sup>[1](https://courses.grainger.illinois.edu/cs357/fa2019/references/ref-5-special-matrices/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | \( I_n \) 除对角线全为1外，其余元素全为0；例如 \( I_4 \) 就是对角线上全为1的4×4矩阵。<sup>[1](https://courses.grainger.illinois.edu/cs357/fa2019/references/ref-5-special-matrices/)</sup> |
| 单位元性质 | 对任意 \( m \times n \) 矩阵 \( A \)，有 \( I_m A = A = A I_n \)；\( I_m \) 是左单位元，\( I_n \) 是右单位元。<sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup> |
| 唯一性 | \( I_n \) 是 \( \mathbb{R}^{n \times n} \) 中矩阵乘法唯一的乘法单位元。<sup>[4](https://people.wou.edu/~beavers/Text341/Book%20Updated%2010-5-22/sectionMatrixAlgebra.html)</sup> |
| 克罗内克δ形式 | \( (I_n)_{ij} = \delta_{ij} \)，其中当 \( i = j \) 时 \( \delta_{ij} \) 等于1，否则等于0。<sup>[5](https://planetmath.org/kroneckerdelta)</sup><sup> • </sup><sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup> |
| 几何意义 | 单位矩阵代表使每个向量都保持原位的变换。<sup>[6](https://www.learnmathclass.com/linear-algebra/visual-tools/matrix-types)</sup> |
| 条件数 | \( \operatorname{cond}(I) = 1 \)，这是矩阵可能具有的最小条件数。<sup>[7](https://cs357.cs.illinois.edu/textbook/notes/condition.html)</sup> |
| 幂 | 对 \( n \) 阶方阵 \( A \)，有 \( A^0 = I_n \)。<sup>[8](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/matrices.html)</sup> |

## 定义与记号

主对角线上全为1、其余位置全为0的方阵称为单位矩阵。<sup>[9](https://sites.math.duke.edu/education/ccp/materials/engin/matrix/matr3.html)</sup> \( n \times n \) 单位矩阵记作 \( I_n \)：<sup>[1](https://courses.grainger.illinois.edu/cs357/fa2019/references/ref-5-special-matrices/)</sup>

\[ I_n = \begin{bmatrix} 1 & 0 & \cdots & 0 \\ 0 & 1 & \cdots & 0 \\ \vdots & & \ddots & \vdots \\ 0 & 0 & \cdots & 1 \end{bmatrix} \]

一种紧凑的定义方式要用到克罗内克δ \( \delta_{ij} \)，其定义为：若 \( i = j \) 则等于1，若 \( i \neq j \) 则等于0。单位矩阵就是由这个δ构成的矩阵，即 \( (I_n)_{ij} = \delta_{ij} \)。<sup>[5](https://planetmath.org/kroneckerdelta)</sup><sup> • </sup><sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup> 这个δ本身是通过卢瑟·普法勒·艾森哈特（Luther Pfahler Eisenhart）1926年的著作《黎曼几何》（*Riemannian Geometry*）进入文献的，此前利奥波德·克罗内克（Leopold Kronecker，1823–1891）曾在讲座中使用过它。<sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup>

由于单位矩阵是方阵，它只以方阵形式存在；不存在非方阵的单位矩阵。<sup>[10](https://apprize.best/programming/opengl_1/6.html)</sup>

## 乘法单位元

其定义性质是：单位矩阵充当乘法单位元。对任意 \( m \times n \) 矩阵 \( A \)，<sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup>

\[ I_m A = A = A I_n. \]

两端用的是不同的单位矩阵：\( I_m \) 是左乘法单位元，\( I_n \) 是右乘法单位元，其阶数必须与乘法相匹配。当 \( A \) 为方阵时，\( I_n \) 在两端都适用，并与 \( A \) 交换；事实上 \( I \) 的任意标量倍数都与 \( A \) 交换，不过也可能存在其他与之交换的矩阵。<sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup>

左单位元性质的证明来自δ结构。记 \( B = I_m A \)，则元素 \( b_{ij} = \sum_{k=1}^{m} \delta_{ik} a_{kj} = a_{ij} \)，因为所有 \( i \neq k \) 的项都消失了；因此 \( B = A \)，类似的论证给出右端的等式。<sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup>

**唯一性。** 在 \( \mathbb{R}^{n \times n} \) 中，\( I_n \) 是唯一满足对空间中所有 \( A \) 都有 \( AI = IA = A \) 的矩阵；它还固定每个向量，即 \( I b = b \)。<sup>[4](https://people.wou.edu/~beavers/Text341/Book%20Updated%2010-5-22/sectionMatrixAlgebra.html)</sup> 更一般地，在元素取自单位环的 \( n \times n \) 矩阵集合中，单位矩阵就是乘法单位元，它也是域 \( K \) 上的一般线性群 \( GL(n,K) \) 及其所有子群的单位元。<sup>[11](https://mathworld.wolfram.com/MultiplicativeIdentity.html)</sup> 并非每个乘法结构都包含它：行列式为零的 \( n \times n \) 矩阵集合对乘法封闭，却不包含单位矩阵。<sup>[11](https://mathworld.wolfram.com/MultiplicativeIdentity.html)</sup>

单位矩阵在乘法中的地位，正如零矩阵在加法中的地位，正是它使矩阵的乘法逆元概念有了意义。<sup>[2](https://sites.ualberta.ca/~jsylvest/books/DLA1/section-inverses-concepts.html)</sup> 方阵 \( A \) 称为可逆的（或非奇异的），当存在 \( B \) 使得 \( AB = BA = I_n \)，此时 \( B \) 记作 \( A^{-1} \)。<sup>[12](https://www.lancaster.ac.uk/~prendivs/accessible/math105/lecturenotes.tex/S3.SS1.html)</sup> 只有方阵才可能可逆。<sup>[12](https://www.lancaster.ac.uk/~prendivs/accessible/math105/lecturenotes.tex/S3.SS1.html)</sup> 有一个微妙之处使矩阵代数区别于普通数的代数：任何矩阵都可以通过减法消去而得到零矩阵，但矩阵并不总能通过除法消去而得到单位矩阵，因为逆矩阵未必存在。<sup>[2](https://sites.ualberta.ca/~jsylvest/books/DLA1/section-inverses-concepts.html)</sup>

## 作为线性变换

每个矩阵都编码一个线性变换，而单位矩阵就是使每个向量都保持原位的那个变换的矩阵。<sup>[6](https://www.learnmathclass.com/linear-algebra/visual-tools/matrix-types)</sup> 用 \( I \) 乘以一个向量，返回的向量不变：每个输出分量都是一个和，其中只有对角线上的1有贡献，于是 \( 1 \cdot x_1 + 0 \cdot x_2 + \cdots = x_1 \)，其他分量同理。<sup>[13](https://learnopengl.com/Transformations)</sup>

这种“不做任何事”的角色使 \( I \) 成为计算中的实用起点。在计算机图形学中，变换矩阵的构造从单位矩阵开始，再把缩放、旋转和平移操作复合到它上面；在OpenGL风格的代码中，4×4矩阵通常先初始化为单位矩阵，然后再施加变换，因为从全零矩阵出发会使后续每一步操作都产生零。<sup>[13](https://learnopengl.com/Transformations)</sup><sup> • </sup><sup>[14](https://learnopengl.com/Getting-started/Transformations)</sup> 在单位矩阵下绘制的物体看起来未经变换，位于原点，坐标轴与视点坐标系的坐标轴一致。<sup>[10](https://apprize.best/programming/opengl_1/6.html)</sup>

## 代数性质

若干标准事实直接由定义推出：

- **交换性。** \( I \) 与所有阶数匹配的方阵交换，这是矩阵乘法中少数几个有保证的交换情形之一，而矩阵乘法一般而言并不交换。<sup>[3](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)</sup><sup> • </sup><sup>[8](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/matrices.html)</sup>
- **幂。** 对方阵 \( A \)，幂由重复乘法定义，其中 \( A^0 = I_n \)，\( A^2 = AA \)，依此类推。<sup>[8](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/matrices.html)</sup>
- **转置。** 任何单位矩阵都等于它自己的转置。<sup>[10](https://apprize.best/programming/opengl_1/6.html)</sup>
- **秩。** \( n \times n \) 单位矩阵的秩为 \( n \)。<sup>[15](https://bobson.ludost.net/books/algo/book6/chap31.htm)</sup>
- **条件数。** 对任意矩阵，\( \operatorname{cond}(A) = \|A\| \, \|A^{-1}\| \geq \|AA^{-1}\| = \|I\| = 1 \)，所以 \( \operatorname{cond}(I) = 1 \) 是最小的可能条件数；单位矩阵是良态的，正交矩阵也具有这种最优条件数。<sup>[7](https://cs357.cs.illinois.edu/textbook/notes/condition.html)</sup>

单位矩阵同时也是对角矩阵（所有非对角元素为零）和置换矩阵（每行每列各有一个1），因此它是这两个矩阵族中最平凡的成员。<sup>[1](https://courses.grainger.illinois.edu/cs357/fa2019/references/ref-5-special-matrices/)</sup><sup> • </sup><sup>[16](https://coral.ise.lehigh.edu/~ted/files/ie170/lectures/Lecture26.pdf)</sup>

## 记号与历史

阿瑟·凯莱（Arthur Cayley）在1858年的《矩阵论回忆录》（*Memoir on the theory of matrices*）中首次给出矩阵的抽象定义，他把单位矩阵写作1，把零矩阵写作0；约瑟夫·韦德伯恩（Joseph Wedderburn）在《矩阵讲义》（*Lectures on Matrices*，1934）中以及麦克达菲（MacDuffee）都使用了 \( I \) 和 \( O \)。<sup>[17](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/matrices/)</sup><sup> • </sup><sup>[18](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup> 现代惯例是用阶数作下标 \( I_n \)，在同时涉及多个矩阵阶数时保持阶数明确，而许多教材在上下文已确定时省略下标。<sup>[4](https://people.wou.edu/~beavers/Text341/Book%20Updated%2010-5-22/sectionMatrixAlgebra.html)</sup><sup> • </sup><sup>[8](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/matrices.html)</sup>

## References

1. [Special Matrices, CS 357, University of Illinois](https://courses.grainger.illinois.edu/cs357/fa2019/references/ref-5-special-matrices/)
2. [Section 5.3 Concepts: Inverses, DLA Concepts, University of Alberta](https://sites.ualberta.ca/~jsylvest/books/DLA1/section-inverses-concepts.html)
3. [8. Matrix Algebra, MATH METHODS (FIU)](https://faculty.fiu.edu/~boydj/mathecon/math08.pdf)
4. [Matrix Algebra, Western Oregon University textbook](https://people.wou.edu/~beavers/Text341/Book%20Updated%2010-5-22/sectionMatrixAlgebra.html)
5. [Kronecker delta, PlanetMath](https://planetmath.org/kroneckerdelta)
6. [Special Matrices, Learn Math Class](https://www.learnmathclass.com/linear-algebra/visual-tools/matrix-types)
7. [Condition Numbers, CS 357 Textbook, University of Illinois](https://cs357.cs.illinois.edu/textbook/notes/condition.html)
8. [3.3. Matrices, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/matrices.html)
9. [Matrix Operations, Part 3, Duke University](https://sites.math.duke.edu/education/ccp/materials/engin/matrix/matr3.html)
10. [Math for 3D Graphics, OpenGL SuperBible, Sixth Edition](https://apprize.best/programming/opengl_1/6.html)
11. [Multiplicative Identity, Wolfram MathWorld](https://mathworld.wolfram.com/MultiplicativeIdentity.html)
12. [3.1 Identity matrices and inverses, MATH 105, Lancaster University](https://www.lancaster.ac.uk/~prendivs/accessible/math105/lecturenotes.tex/S3.SS1.html)
13. [LearnOpenGL, Transformations](https://learnopengl.com/Transformations)
14. [LearnOpenGL, Getting started: Transformations](https://learnopengl.com/Getting-started/Transformations)
15. [Introduction to Algorithms, Chapter 31: Matrix Operations](https://bobson.ludost.net/books/algo/book6/chap31.htm)
16. [IE170 Lecture 26, Lehigh University](https://coral.ise.lehigh.edu/~ted/files/ie170/lectures/Lecture26.pdf)
17. [Earliest Uses of Symbols for Matrices and Vectors, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Miller/mathsym/matrices/)
18. [Matrices and determinants, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)

---
*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 › Structured and special matrix classes

Copyright 2026 Edgepedia

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

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

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