# 变换矩阵

变换矩阵是表示有限维向量空间之间线性变换的矩阵：一旦为定义域和陪域选定了基，用矩阵乘以向量的坐标列，便得到变换后向量的坐标。同一个变换在不同的基下通常有不同的矩阵，因此变换矩阵既编码了映射本身，也编码了用来描述它的坐标选择。

| 关键事实 | 细节 |
|---|---|
| 定义 | 对于线性变换 \( T: V \to W \)，设 \( \mathcal{B} \) 是 \( V \) 的有序基，\( \mathcal{C} \) 是 \( W \) 的有序基，则矩阵 \( M \) 对每个 \( v \in V \) 满足 \( [T(v)]_{\mathcal{C}} = M [v]_{\mathcal{B}} \)<sup>[1](https://math.libretexts.org/Courses/De_Anza_College/Linear_Algebra%3A_A_First_Course/07%3A_Vector_Spaces/7.11%3A_The_Matrix_of_a_Linear_Transformation)</sup> |
| 列规则 | \( L: \mathbb{R}^n \to \mathbb{R}^m \) 的标准矩阵的第 \( j \) 列是 \( L(\mathbf{e}_j) \)，即第 \( j \) 个标准基向量的像<sup>[2](https://courses.math.wichita.edu/math511/ch6/3/LinearTransformationsAsMatrices.html)</sup> |
| 基变换 | 基变换矩阵 \( C_{B,C} \) 非奇异，且满足 \( C_{B,C}^{-1} = C_{C,B} \)<sup>[3](https://linear.pugetsound.edu/jsmath/0290/fcla-jsmath-2.90li58.html)</sup> |
| 复合 | 对于有序基 \( B_1, B_2, B_3 \)，复合的矩阵可分解为 \( M_{B_3 B_1}(ST) = M_{B_3 B_2}(S) M_{B_2 B_1}(T) \)<sup>[4](https://opentext.uleth.ca/Math3410/sec-matrix-of-transformation.html)</sup> |
| 秩-零化度 | 对于 \( T: V \to W \)，若 \( V \) 有限维，则 \( \dim V = \dim \ker T + \dim \operatorname{im} T \)<sup>[5](https://sites.lsa.umich.edu/kesmith/wp-content/uploads/sites/1309/2024/06/217DefinitionsBOOKorderFeb15.pdf)</sup> |
| 图形学形式 | 一个 4×4 齐次矩阵可同时表示缩放、旋转、错切和平移，其中旋转位于左上 3×3 块，平移位于右上 3×1 块<sup>[6](https://www.khronos.org/opengl/wiki_opengl/index.php/Coordinate_Transformations)</sup><sup> • </sup><sup>[7](https://ntrs.nasa.gov/api/citations/19800024585/downloads/19800024585.pdf?attachment=true)</sup> |
| 数值警告 | 条件数接近 \( 10^d \) 意味着求逆或解方程的结果通常损失约 \( d \) 位有效数字<sup>[8](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/matrcond.htm)</sup> |

## 矩阵如何表示变换

线性变换 \( T: V \to W \) 由它在基上的取值决定：若 \( \mathcal{B} = \{v_1, \ldots, v_n\} \) 是 \( V \) 的有序基，\( \mathcal{C} \) 是 \( W \) 的有序基，则 \( T \) 的矩阵的第 \( j \) 列就是 \( T(v_j) \) 在 \( \mathcal{C} \) 下表示的坐标向量<sup>[1](https://math.libretexts.org/Courses/De_Anza_College/Linear_Algebra%3A_A_First_Course/07%3A_Vector_Spaces/7.11%3A_The_Matrix_of_a_Linear_Transformation)</sup>。对于 \( \mathbb{R}^n \) 和 \( \mathbb{R}^m \) 的标准基，这意味着第 \( j \) 列就是 \( L(\mathbf{e}_j) \)，其中 \( \mathbf{e}_j \) 是第 \( j \) 个标准基向量<sup>[2](https://courses.math.wichita.edu/math511/ch6/3/LinearTransformationsAsMatrices.html)</sup>。这个构造既是一条定理，也是一个算法：在每个基向量上求变换的值，再把结果按列堆叠起来。

这种表示在两个方向上都是忠实的。有限维空间之间的每个线性映射都给出一个矩阵，而每个 \( m \times n \) 矩阵都通过左乘定义一个线性映射。一旦固定了基，这种表示还把映射的结构翻译成矩阵语言：\( L \) 的核对应其矩阵的零空间，\( L \) 的像对应列空间<sup>[9](https://ximera.osu.edu/linearalgebra/textbook/linearTransformations/matrixRepresentation)</sup>。秩-零化度定理于是写作 \( \dim V = \dim \ker T + \dim \operatorname{im} T \)，即源空间的维数分解为 \( A\mathbf{x} = \mathbf{0} \) 的解空间维数与各列张成空间的维数<sup>[5](https://sites.lsa.umich.edu/kesmith/wp-content/uploads/sites/1309/2024/06/217DefinitionsBOOKorderFeb15.pdf)</sup>。

## 对基的依赖

矩阵是变换连同所选基的性质，而不是变换本身的性质。选择能显现特征向量的基，正是对角化简化变换矩阵的方式。

**基变换。** 在同一空间的两个基 \( B \) 与 \( C \) 之间转换坐标的矩阵，是恒等变换在定义域取 \( B \)、陪域取 \( C \) 时的矩阵；它的第 \( i \) 列是 \( B \) 的第 \( i \) 个基向量在 \( C \) 下表示的坐标向量<sup>[3](https://linear.pugetsound.edu/jsmath/0290/fcla-jsmath-2.90li58.html)</sup>。这个矩阵总是可逆的，其逆矩阵是反方向的基变换矩阵<sup>[3](https://linear.pugetsound.edu/jsmath/0290/fcla-jsmath-2.90li58.html)</sup>。将基串联起来，矩阵便复合：\( P_{B \leftarrow D} = P_{B \leftarrow C} P_{C \leftarrow D} \)<sup>[10](https://interactivetextbooks.tudelft.nl/linear-algebra/Chapter4/ChangeOfBasis.html)</sup>。

对于变换 \( T: \mathbb{R}^n \to \mathbb{R}^m \)，若它在两对基下的矩阵分别为 \( A \) 和 \( A' \)，则两种表示通过 \( A' = P_{C' \leftarrow C} \, A \, P_{B \leftarrow B'} \) 相联系，即用基变换矩阵作共轭<sup>[10](https://interactivetextbooks.tudelft.nl/linear-algebra/Chapter4/ChangeOfBasis.html)</sup>。对于单个空间上的算子，这退化为相似关系，而在相似变换下不变的量——例如变换的秩——不依赖于所选的基<sup>[4](https://opentext.uleth.ca/Math3410/sec-matrix-of-transformation.html)</sup>。

**复合。** 矩阵乘法的构造方式使得复合的矩阵等于矩阵的乘积：\( M_{B_3 B_1}(ST) = M_{B_3 B_2}(S) M_{B_2 B_1}(T) \)<sup>[4](https://opentext.uleth.ca/Math3410/sec-matrix-of-transformation.html)</sup>。这个事实常被反过来使用，作为乘法规则本身的动机，否则该规则看起来可能显得任意<sup>[4](https://opentext.uleth.ca/Math3410/sec-matrix-of-transformation.html)</sup>。

## 几何与计算中的变换

在计算机图形学、机器人学和导航中，变换矩阵承载着几何意义。一个 4×4 矩阵可以表示三维空间中任何可能的线性变换，多个变换通过矩阵相乘来组合，顺序很重要，因为先缩放再平移与先平移再缩放是不同的<sup>[6](https://www.khronos.org/opengl/wiki_opengl/index.php/Coordinate_Transformations)</sup>。

**齐次坐标。** 平移严格来说不是线性的，因为它不固定原点，所以单纯的 3×3 矩阵无法表示它。齐次坐标通过追加第四个坐标（通常设为 1）来解决这个问题，于是缩放、旋转、错切和平移都纳入一次 4×4 矩阵乘法<sup>[6](https://www.khronos.org/opengl/wiki_opengl/index.php/Coordinate_Transformations)</sup>。在机器人学的形式中，左上 3×3 子矩阵 \( R \) 是旋转矩阵，其各列是旋转后坐标系在原坐标系下表示的单位向量；右上 3×1 子矩阵 \( p \) 给出新坐标系原点的位置；最后一行是三个零和一个一<sup>[7](https://ntrs.nasa.gov/api/citations/19800024585/downloads/19800024585.pdf?attachment=true)</sup>。

**主动与被动解读。** 同样的旋转矩阵形状可以有四种解读：旋转角为 \( +\theta \) 的主动旋转、旋转角为 \( -\theta \) 的主动旋转，以及坐标系 \( A \to B \) 或 \( B \to A \) 之间的被动转换，因为反方向的被动矩阵互为转置。决定采用哪种含义的是上下文，而非矩阵本身。机器人学、导航和航空航天文献几乎总是使用被动旋转，其中矩阵将本体坐标系与世界坐标系联系起来并作用于坐标；而计算机图形学和游戏引擎几乎总是使用主动旋转，其中矩阵移动模型<sup>[11](https://ttk4130.github.io/reference-frames.html)</sup>。

## 数值使用

当变换矩阵用于解方程、求逆或计算行列式时，其条件数限定了可达到的精度。一条经验法则是：若条件数约为 \( 10^d \)，结果通常比输入数据少约 \( d \) 位有效数字；条件数高的矩阵称为病态矩阵，条件数低的称为良态矩阵<sup>[8](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/matrcond.htm)</sup>。病态方程组可能导致解发散，一种标准的补救方法是截断非常小的奇异值，这以去除相应约束为代价改善条件数<sup>[12](https://www.nist.gov/system/files/documents/2017/05/09/blakestad2010thesis.pdf)</sup>。

## 历史

“矩阵”一词由詹姆斯·约瑟夫·西尔维斯特（James Joseph Sylvester）于 1850 年引入，他把矩阵定义为一个长方形的项排列，从中可以提取所含方阵的行列式<sup>[13](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>。阿瑟·凯莱（Arthur Cayley）是西尔维斯特 1851 年回到英格兰后结识的律师同行，他看出了这个概念的意义，截至 1853 年已发表了一篇给出矩阵求逆的短文，并在 1858 年发表了《矩阵理论回忆录》（*Memoir on the theory of matrices*），其中包含矩阵的第一个抽象定义<sup>[13](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>。历史学家将理论的创立归功于凯莱，因为他发表了关于该主题的最早的阐述性文章，包括一篇用法文撰写、1855 年发表在德国期刊上的导论性论文<sup>[14](https://mathshistory.st-andrews.ac.uk/Biographies/Cayley/)</sup>。

后来的工作填补了变换矩阵如今所依托的理论。费迪南德·格奥尔格·弗罗贝尼乌斯（Ferdinand Georg Frobenius）1878 年关于线性替换与双线性型的论文——显然是在不知道凯莱工作的情况下写成的——证明了关于作为等价类代表的标准形矩阵的结果，定义了矩阵的秩和正交矩阵，并证明了一个矩阵满足其自身特征方程这一普遍结果<sup>[13](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>。西尔维斯特在 1884 年研究不变量（某些变换下不变的属性）时定义了方阵的零化度<sup>[13](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)</sup>。更深的根源还要更早：矩阵的历史汲取了自古以来的线性方程组求解工作、行列式理论，以及十九世纪初对二次型和双线性型中变量线性变换的研究，因此矩阵的某些性质在矩阵被正式定义之前就已确立<sup>[15](https://epubs.siam.org/doi/book/10.1137/1.9781611977233)</sup>。

## References

1. [The Matrix of a Linear Transformation, LibreTexts (De Anza College)](https://math.libretexts.org/Courses/De_Anza_College/Linear_Algebra%3A_A_First_Course/07%3A_Vector_Spaces/7.11%3A_The_Matrix_of_a_Linear_Transformation)
2. [LinearTransformationsAsMatrices, Wichita State University Math 511](https://courses.math.wichita.edu/math511/ch6/3/LinearTransformationsAsMatrices.html)
3. [Section CB: Change of Basis, A First Course in Linear Algebra](https://linear.pugetsound.edu/jsmath/0290/fcla-jsmath-2.90li58.html)
4. [The matrix of a linear transformation, University of Lethbridge Math 3410](https://opentext.uleth.ca/Math3410/sec-matrix-of-transformation.html)
5. [Linear Algebra definitions, University of Michigan Math 217](https://sites.lsa.umich.edu/kesmith/wp-content/uploads/sites/1309/2024/06/217DefinitionsBOOKorderFeb15.pdf)
6. [Coordinate Transformations, OpenGL Wiki, Khronos Group](https://www.khronos.org/opengl/wiki_opengl/index.php/Coordinate_Transformations)
7. [NASA technical report on homogeneous transformation matrices (NTRS 19800024585)](https://ntrs.nasa.gov/api/citations/19800024585/downloads/19800024585.pdf?attachment=true)
8. [Matrix Condition Number, NIST Dataplot Reference Manual](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/matrcond.htm)
9. [Matrix representations of transformations, Ximera (Ohio State University)](https://ximera.osu.edu/linearalgebra/textbook/linearTransformations/matrixRepresentation)
10. [Change of basis, TU Delft Linear Algebra interactive textbook](https://interactivetextbooks.tudelft.nl/linear-algebra/Chapter4/ChangeOfBasis.html)
11. [Reference frames, TTK4130 Modelling and Simulation, NTNU](https://ttk4130.github.io/reference-frames.html)
12. [Blakestad thesis on poorly conditioned matrix equations, NIST](https://www.nist.gov/system/files/documents/2017/05/09/blakestad2010thesis.pdf)
13. [Matrices and determinants, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Matrices_and_determinants/)
14. [Arthur Cayley biography, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Cayley/)
15. [A Journey through the History of Numerical Linear Algebra, SIAM](https://epubs.siam.org/doi/book/10.1137/1.9781611977233)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Vector spaces and linear maps

Copyright 2026 Edgepedia

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

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

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