# 基变换

基变换是把向量坐标和线性映射的矩阵从一个基转换到向量空间的另一个基。向量本身不变，变的只是它的描述。转换用一个可逆矩阵完成，即基变换矩阵，它的列是写于旧基下的新基向量。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 对于 \( \mathbf{K}^n \) 的基 \( \mathcal{B} = (e_i) \) 和 \( \mathcal{B}' = (e'_j) \)，从 \( \mathcal{B} \) 到 \( \mathcal{B}' \) 的基变换矩阵 \( P \) 的元素 \( p_{i,j} \) 由 \( e'_j = p_{1,j} e_1 + \dots + p_{n,j} e_n \) 定义；它的列是写于旧基下的新基向量。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> |
| 坐标转换 | 若 \( X' \) 是向量 \( u \) 在 \( \mathcal{B}' \) 中的坐标，则 \( X = PX' \) 是同一 \( u \) 在 \( \mathcal{B} \) 中的坐标。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> |
| 可逆性 | \( P \) 可逆，从 \( \mathcal{B}' \) 回到 \( \mathcal{B} \) 的基变换矩阵是 \( P^{-1} \)。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> |
| 线性映射的矩阵 | 若 \( A \) 是 \( f \colon \mathbf{K}^n \to \mathbf{K}^n \) 在 \( \mathcal{B} \) 中的矩阵，\( A' \) 是它在 \( \mathcal{B}' \) 中的矩阵，则 \( A' = P^{-1}AP \)（等价地 \( A = PA'P^{-1} \)）。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> |
| 解释 | \( P \) 是恒等映射关于基对 \( (\mathcal{B}', \mathcal{B}) \) 的矩阵，即 \( P = \mathrm{Mat}_{\mathcal{B}',\mathcal{B}}(\mathrm{id}) \)。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> |

## 基变换矩阵

设 \( \mathcal{B} = (e_1, \dots, e_n) \) 和 \( \mathcal{B}' = (e'_1, \dots, e'_n) \) 是 \( \mathbf{K}^n \) 的两个基。每个新基向量都是旧基向量的线性组合，\( e'_j = p_{1,j} e_1 + \dots + p_{n,j} e_n \)，系数 \( p_{i,j} \) 放在矩阵 \( P \) 的列中。这就是从 \( \mathcal{B} \) 到 \( \mathcal{B}' \) 的基变换矩阵，有时写作 \( P_{\mathcal{B}}^{\mathcal{B}'} \)。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup>

**转换坐标。** 若向量 \( u \) 在 \( \mathcal{B}' \) 中的坐标为 \( X' = (X'_1, \dots, X'_n) \)，即 \( u = \sum_j X'_j e'_j \)，则列向量 \( X = PX' \) 包含同一 \( u \) 在 \( \mathcal{B} \) 中的坐标。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> 乘法的方向是常见的困惑来源：用旧基表示的新基向量构成的矩阵，把新坐标转换为旧坐标。<sup>[2](https://homepage.physics.uiowa.edu/~pkaaret/2018f_p4905/L19.html)</sup>

因为 \( P \) 等于恒等映射 \( \mathrm{id} \) 关于左侧 \( \mathcal{B}' \)、右侧 \( \mathcal{B} \) 的矩阵，而恒等映射是双射，所以 \( P \) 可逆。反方向的基变换矩阵是 \( P^{-1} \)。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup>

## 基变换公式

对于线性映射 \( f \colon \mathbf{K}^n \to \mathbf{K}^n \)，设它在 \( \mathcal{B} \) 中的矩阵为 \( A \)，在 \( \mathcal{B}' \) 中的矩阵为 \( A' \)，则两个矩阵由

\[ A = P A' P^{-1}, \qquad A' = P^{-1} A P. \]

相联系。该公式来自映射的复合：要把 \( f \) 作用于以 \( \mathcal{B}' \) 坐标给出的向量，先用 \( P \) 转换为 \( \mathcal{B} \) 坐标，应用 \( A \)，再用 \( P^{-1} \) 转换回 \( \mathcal{B}' \) 坐标。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> 同样的关系对抽象向量空间上的映射 \( T \colon V \to V \) 成立，其中 \( P \) 是两个基之间恒等映射的矩阵。<sup>[3](https://www.lancaster.ac.uk/~prendivs/accessible/math220/MATH220-Complete-Notes-2017.tex/Ch4.S7.html)</sup> 对于不同空间之间的映射 \( T \colon V \to W \)，在 \( V \) 和 \( W \) 中分别作基变换，恒等式 \( T = \mathrm{id}_W \circ T \circ \mathrm{id}_V \) 给出相应的四矩阵公式。<sup>[4](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S21.html)</sup>

由 \( A' = P^{-1}AP \) 联系的矩阵称为相似矩阵；它们表示不同基下的同一线性映射，并共享特征值、行列式和秩。

## 一个算例

取 \( \mathcal{B} \) 为 \( \mathbf{R}^2 \) 的标准基，\( \mathcal{B}' = (e'_1, e'_2) \)，其中 \( e'_1 = (1,1) \)，\( e'_2 = (1,-1) \)。基变换矩阵及其逆为

\[ P = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix}, \qquad P^{-1} = \begin{bmatrix} \tfrac{1}{2} & \tfrac{1}{2} \\ \tfrac{1}{2} & -\tfrac{1}{2} \end{bmatrix}. \]

标准基下坐标为 \( (5,1) \) 的向量在 \( \mathcal{B}' \) 中的坐标为 \( (3,2) \)，因为 \( P^{-1}\begin{bmatrix}5\\1\end{bmatrix} = \begin{bmatrix}3\\2\end{bmatrix} \)。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup>

现在设 \( f \) 在 \( \mathcal{B}' \) 中具有对角矩阵 \( A' = \begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix} \)。在标准基下它的矩阵为

\[ A = P A' P^{-1} = \begin{bmatrix} \tfrac{3}{2} & -\tfrac{1}{2} \\ -\tfrac{1}{2} & \tfrac{3}{2} \end{bmatrix}. \]

该矩阵在 \( \mathcal{B}' \) 中比在标准基下简单得多，因此用 \( f \) 进行计算在 \( \mathcal{B}' \) 中更有利。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup> 这是一般原理：在一个基下看起来复杂的线性变换，在合适的基下可能变得容易理解，例如沿过原点的一条直线的反射，在与该直线对齐的基下变成简单的符号变化。<sup>[5](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/MATH0005_lecture_notes.pdf)</sup><sup> • </sup><sup>[6](https://interactivetextbooks.tudelft.nl/linear-algebra/Chapter4/ChangeOfBasis.html)</sup>

## 记号与约定

教科书对基变换矩阵方向的定义各不相同。巴黎-萨克雷讲义定义 \( P \) 使得 \( X = PX' \) 把新坐标转换为旧坐标；代尔夫特量子物理讲义定义 \( P_{B \to C} \)，使其第 \( j \) 列包含 \( B \) 基向量 \( \vb_j \) 相对于 \( C \) 的坐标，给出 \( A^{(C)} = P A^{(B)} P^{-1} \)；纽约市立大学讲义把类似对象称为过渡矩阵 \( \mathrm{Rep}_B^{B'} \)，并写作 \( [\vec v]_{B'} = \mathrm{Rep}_B^{B'}\,[\vec v]_B \)。<sup>[1](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)</sup><sup> • </sup><sup>[7](https://interactivetextbooks.tudelft.nl/mqp-v2/basis-transformations.html)</sup><sup> • </sup><sup>[8](https://pressbooks.cuny.edu/mat5600linearalgebra/chapter/coordinates-and-change-of-basis/)</sup>

## 应用

**选择方便的基。** 基变换的主要实际用途是用容易的矩阵替换困难的矩阵。由奥古斯丁-路易·柯西于1826年在特征值研究中引入的对角化，以及1870年的若尔当标准形，都说明合适的基能使映射的矩阵尽可能简单。<sup>[9](https://people.math.harvard.edu/~knill/teaching/math21b2001/history/index.html)</sup>

**物理学。** 用张量语言说，基变换是坐标变换的原型。晶体的极化张量 \( \alpha_{ij} \) 有九个分量，联系电场与极化，当坐标系改变时按确定方式变换，而物理极化 \( \mathbf{P} \) 不变；同样的变换规则一般地定义笛卡尔张量。<sup>[10](https://www.feynmanlectures.caltech.edu/II_31.html)</sup><sup> • </sup><sup>[11](https://galileoandeinstein.phys.virginia.edu/7010/CM_23_Rigid_Body_Motion.html)</sup>

**数值线性代数。** 相似变换是特征值软件的工作工具。LAPACK用于非对称特征值问题的例程可选地应用平衡变换，用对角矩阵 \( D \) 把 \( A \) 替换为 \( D A D^{-1} \)，使行和列的范数更接近，并降低所计算特征值和特征向量的条件数。<sup>[12](https://www.netlib.org/lapack/explore-html/d4/d42/zgeevx_8f_source.html)</sup>

**信号与图像压缩。** 在吉尔伯特·斯特朗的麻省理工学院线性代数课程中，基变换与图像压缩一起讲授：压缩信号或图像正是一种基变换，即把数据表示在一个基中，其中大多数系数小到可以丢弃。<sup>[13](https://live.ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/46108efb43dcf33e989eb5e101fcf9b5_MIT18_06S10_L31.pdf)</sup>

## References

1. [Chapter 3: Change of Basis, Linear Algebra Complements, Université Paris-Saclay](https://www.imo.universite-paris-saclay.fr/~bruno.duchesne/enseignement/complements_algebre_lineaire/change-of-basis.html)
2. [Lecture #19, Applied Linear Algebra, University of Iowa](https://homepage.physics.uiowa.edu/~pkaaret/2018f_p4905/L19.html)
3. [4.G Change of basis matrices, MATH220 Linear Transformations, Lancaster University](https://www.lancaster.ac.uk/~prendivs/accessible/math220/MATH220-Complete-Notes-2017.tex/Ch4.S7.html)
4. [4.21 Change of basis, MATH0005 Algebra 1, University College London](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S21.html)
5. [MATH0005 lecture notes PDF, University College London](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/MATH0005_lecture_notes.pdf)
6. [4.3 Change of basis, Linear Algebra, TU Delft](https://interactivetextbooks.tudelft.nl/linear-algebra/Chapter4/ChangeOfBasis.html)
7. [6. Basis transformations, Mathematics for Quantum Physics, TU Delft](https://interactivetextbooks.tudelft.nl/mqp-v2/basis-transformations.html)
8. [Coordinates and Change of Basis, Linear Algebra: Lecture Notes, CUNY](https://pressbooks.cuny.edu/mat5600linearalgebra/chapter/coordinates-and-change-of-basis/)
9. [About the history of linear algebra, Harvard Math 21b](https://people.math.harvard.edu/~knill/teaching/math21b2001/history/index.html)
10. [The Feynman Lectures on Physics Vol. II Ch. 31: Tensors](https://www.feynmanlectures.caltech.edu/II_31.html)
11. [Rigid Body Motion, University of Virginia](https://galileoandeinstein.phys.virginia.edu/7010/CM_23_Rigid_Body_Motion.html)
12. [LAPACK: SRC/zgeevx.f Source File, Netlib](https://www.netlib.org/lapack/explore-html/d4/d42/zgeevx_8f_source.html)
13. [18.06 Linear Algebra Transcript, Lecture 31, MIT OpenCourseWare](https://live.ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/46108efb43dcf33e989eb5e101fcf9b5_MIT18_06S10_L31.pdf)

---
*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 › 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/change-of-basis

English original: https://www.edgepedia.org/change-of-basis
