# 旋转（数学）

在数学中，旋转是欧几里得空间的一种保持距离与定向的变换；在平面上，它是绕原点逆时针转过一个角度的转动；在三维空间中，它由一根轴和一个角度来描述。n 维空间的旋转构成特殊正交群 SO(n)，即行列式为 1 的正交矩阵所构成的群。<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义群 | SO(n) = {A ∈ GL\(_n\)(R) : A\(^T\)A = I, det A = 1}，即 R\(^n\) 的保定向等距变换<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup> |
| 平面旋转 | 逆时针旋转角度 \( \theta \) 的矩阵为 \( \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix} \)<sup>[2](https://math.libretexts.org/Bookshelves/Linear_Algebra/Linear_Algebra_with_Applications_%28Nicholson%29/02%3A_Matrix_Algebra/2.06%3A_Linear_Transformations)</sup> |
| 维数 | SO(n) 是维数为 \( n(n-1)/2 \) 的连通紧致李群；因此 SO(3) 有三个自由度<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup> |
| 欧拉旋转定理 | 刚体任何保持一点不动的位移，都等价于绕通过该定点的一根轴的一次旋转<sup>[3](https://link.springer.com/chapter/10.1007/978-981-19-1983-1_6)</sup> |
| 常见三维表示 | 旋转矩阵、欧拉角、轴角对、单位四元数<sup>[4](https://doaj.org/article/7759d06bdd9347649274c2e643959cd1)</sup> |
| 四元数形式 | 单位四元数（四个参数、一个约束）编码一个旋转，通过 \( v' = q\,v\,q^{*} \) 作用，无奇异性<sup>[5](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)</sup> |
| 双重覆盖 | 特殊酉群 SU(2) 是 SO(3) 的万有覆盖和双重覆盖<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup> |

## 旋转群

旋转矩阵是满足 AA\(^T\) = I 且 det A = 1 的方阵 A；这类矩阵在乘法和求逆下封闭，因此构成一个群，即特殊正交群 SO(n)。<sup>[6](https://mathworld.wolfram.com/SpecialOrthogonalMatrix.html)</sup> 行列式条件将旋转与反射区分开来：正交矩阵的行列式或为 1 或为 −1，而包含单位元的行列式为 1 的分支由保定向变换组成。<sup>[7](https://mathworld.wolfram.com/OrthogonalGroup.html)</sup> 特别地，SO(2) 由平面旋转组成，SO(3) 是三维空间的旋转群。<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup>

SO(n) 是维数为 \( n(n-1)/2 \) 的连通紧致李群，因此平面上的旋转由一个数确定，空间旋转由三个数确定。它的李代数是实反对称矩阵构成的空间，即无穷小旋转。<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup> 对于 n ≥ 3，当 n 为奇数时群中心是平凡的，当 n 为偶数时群中心为 {±I}。<sup>[1](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)</sup>

## 平面上的旋转

逆时针旋转 \( R_{\theta} : \mathbb{R}^2 \to \mathbb{R}^2 \) 转过角度 \( \theta \)，是一个线性变换，其矩阵由它对标准基向量的作用确定：\( R_{\theta}(\mathbf{e}_1) = (\cos\theta, \sin\theta) \)，\( R_{\theta}(\mathbf{e}_2) = (-\sin\theta, \cos\theta) \)。<sup>[2](https://math.libretexts.org/Bookshelves/Linear_Algebra/Linear_Algebra_with_Applications_%28Nicholson%29/02%3A_Matrix_Algebra/2.06%3A_Linear_Transformations)</sup>

**复合即角度相加。** 先旋转 \( \phi \) 再旋转 \( \theta \) 就是旋转 \( \theta + \phi \)，因此 \( R_{\theta+\phi} = R_{\theta} \circ R_{\phi} \)。将相应的矩阵相乘并比较元素，便得到加法恒等式 \( \cos(\theta+\phi) = \cos\theta\cos\phi - \sin\theta\sin\phi \) 和 \( \sin(\theta+\phi) = \sin\theta\cos\phi + \cos\theta\sin\phi \)，这两个基本恒等式是大部分三角学得以推导的出发点。<sup>[2](https://math.libretexts.org/Bookshelves/Linear_Algebra/Linear_Algebra_with_Applications_%28Nicholson%29/02%3A_Matrix_Algebra/2.06%3A_Linear_Transformations)</sup> 旋转 \( \pi \) 将每个向量 \( \mathbf{x} \) 送到 \( -\mathbf{x} \)。<sup>[2](https://math.libretexts.org/Bookshelves/Linear_Algebra/Linear_Algebra_with_Applications_%28Nicholson%29/02%3A_Matrix_Algebra/2.06%3A_Linear_Transformations)</sup>

## 三维空间中的旋转

**欧拉旋转定理**指出，刚体任何有一个定点不动的位移，都是绕通过该点某根轴的一次旋转，这一结果归功于莱昂哈德·欧拉（Leonhard Euler）。<sup>[3](https://link.springer.com/chapter/10.1007/978-981-19-1983-1_6)</sup> 该定理是轴角图景的基础：一个空间旋转由归一化的轴向量和一个角度确定，相应的矩阵可以写成由四元数旋转算子 \( v' = q\,v\,q^{*} \) 导出的罗德里格斯公式形式。<sup>[8](https://arxiv.org/abs/2511.04452)</sup>

由于 SO(3) 是三维的但弯曲，没有任何单一的三参数描述能无缺陷地覆盖它，工业界和学术界广泛使用若干种表示：旋转矩阵、欧拉角、旋转轴角、单位四元数，而二维旋转则用角度和单位复数表示。<sup>[4](https://doaj.org/article/7759d06bdd9347649274c2e643959cd1)</sup> 欧拉角是三维旋转最常见的表示，它将一个姿态描述为绕指定轴的三次相继旋转，习惯上即车辆的俯仰、偏航和滚转。<sup>[3](https://link.springer.com/chapter/10.1007/978-981-19-1983-1_6)</sup><sup> • </sup><sup>[5](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)</sup> 旋转矩阵没有歧义，但除了行列式条件之外，其行或列还须满足六个非线性约束。<sup>[5](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)</sup>

## 四元数与万向节死锁

**万向节死锁**是三参数描述的失效模式。在俯仰–偏航–滚转约定下，当三次欧拉旋转中的第二次达到 ±90° 时，两根旋转轴重合，一个局部自由度丢失；欧拉角仍然可以指定任意姿态，每个角度三元组也确定唯一一个姿态，但一个姿态并不总对应唯一一组欧拉角；没有任何单一的全局三参数描述能在没有此类奇异性的情况下表示旋转。<sup>[9](https://upcommons.upc.edu/server/api/core/bitstreams/5e5edbc3-4983-4887-be52-fe731b52272b/content)</sup><sup> • </sup><sup>[19](https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/9579/sicm_edition_2.zip/chapter002.html)</sup> 同样的缺陷普遍地困扰着欧拉角参数化，这就是为什么必须经过这些位置的跟踪与姿态控制系统对欧拉构型的选择十分敏感。<sup>[10](https://open.uct.ac.za/handle/11427/33222)</sup>

单位四元数避免了这个问题。威廉·罗恩·哈密顿（William Rowan Hamilton）在寻求复数的一种推广时发现，三分量代数不可能，但四分量的可行，四元数由此诞生。<sup>[5](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)</sup> 绕单位轴旋转角度 \( a \) 对应一个单位四元数，旋转后的向量由三明治乘积 \( v' = q\,v\,q^{*} \) 给出。<sup>[8](https://arxiv.org/abs/2511.04452)</sup> 从单位四元数到 SO(3) 的映射连续且无奇异性，但是二对一的：q 与 −q 描述同一个旋转，因此欧拉参数与旋转之间构成一个非奇异的二对一映射。<sup>[8](https://arxiv.org/abs/2511.04452)</sup><sup> • </sup><sup>[11](https://www.sciencedirect.com/science/article/pii/0094114X86900844)</sup> 这种冗余是轻微的：三个自由度用四个参数加一个约束，而正交矩阵则需要六个非线性约束。<sup>[5](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)</sup>

代数上的回报是实用的。单位四元数使复合旋转、计算平均、插值、对旋转空间采样以及表示取向上的密度都变得容易，并且它们允许将旋转空间可视化为四维空间中的单位球面 S\(_3\)，并将对径点等同。<sup>[5](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)</sup> 在航天器姿态确定和机械臂运动学中，四元数代数与欧拉参数相结合，简化了多重旋转与旋转参考系的代数运算。<sup>[11](https://www.sciencedirect.com/science/article/pii/0094114X86900844)</sup> 表示之间的转换仍然是误差的来源：从旋转矩阵到其欧拉参数的转换直截了当，但反向计算在数值上很微妙，而凯莱分解已被认定为从矩阵计算四元数最稳健的方法。<sup>[12](https://www-iri.upc.es/publications/show/2083)</sup>

## 高维空间中的旋转

在 n 维中，轴的概念发生了变化。旋转在一个二维平面内作用，并固定其正交补，即一个 (n−2) 维子空间，欧拉旋转定理推广到 n 维空间，成为关于位移后的正交轴与刚性旋转的最短序列之间关系的陈述。<sup>[13](https://www.researchgate.net/publication/254199657_On_the_Rigid_Rotation_Concept_in_n-Dimensional_Spaces)</sup> 因此，n 维旋转的一般处理将旋转限制在更大空间内的一个二维平面上。<sup>[14](https://info.usherbrooke.ca/pmjodoin/cours/ift603/mml-book.pdf)</sup> 由于可以同时存在若干个相互正交的平面，偶数维中的复合可以不保持任何非零点不动，这是一种在三维中没有对应物的行为。<sup>[13](https://www.researchgate.net/publication/254199657_On_the_Rigid_Rotation_Concept_in_n-Dimensional_Spaces)</sup>

## 应用

旋转及其表示出现在一切必须存储、传递或估计取向的地方。在晶体学中，旋转矩阵和平移向量描述对称操作，并帮助确定空间群，而取向矩阵将晶体的坐标系与衍射仪的坐标系联系起来。<sup>[15](https://www.iucr.org/what-we-do/education/pamphlets/rotation-matrices-and-translation-vectors-in-crystallography)</sup><sup> • </sup><sup>[16](https://dictionary.iucr.org/Orientation_matrix)</sup> 在机器人学与航空航天中，姿态控制方法建立在由偏差欧拉角、误差四元数、轴角对和取向误差矩阵导出的误差指标之上，每一种在奇异构型附近的行为都不同。<sup>[17](https://journals.sagepub.com/doi/abs/10.1177/0142331218773519?download=true)</sup> 在用于路径规划的位姿表示中，对物体位置和取向的完整描述，将笛卡尔平移与旋转矩阵（齐次变换）或四元数（位姿）结合起来。<sup>[18](https://www.nist.gov/ctl/smart-connected-systems-division/networked-control-systems-group/pose-mathematics-path-planning)</sup>

## References

1. [Special Orthogonal Group, Wolfram MathWorld](https://mathworld.wolfram.com/SpecialOrthogonalGroup.html)
2. [Linear Transformations, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Linear_Algebra/Linear_Algebra_with_Applications_%28Nicholson%29/02%3A_Matrix_Algebra/2.06%3A_Linear_Transformations)
3. [Mathematical Building Blocks: From Geometry to Quaternions to Bayesian, Springer Nature](https://link.springer.com/chapter/10.1007/978-981-19-1983-1_6)
4. [Rotation Representations and Their Conversions, IEEE Access via DOAJ](https://doaj.org/article/7759d06bdd9347649274c2e643959cd1)
5. [Quaternions: what are they, and why do we need to know?, Acta Crystallographica A (IUCr)](https://journals.iucr.org/a/issues/2020/05/00/me6092/index.html)
6. [Special Orthogonal Matrix, Wolfram MathWorld](https://mathworld.wolfram.com/SpecialOrthogonalMatrix.html)
7. [Orthogonal Group, Wolfram MathWorld](https://mathworld.wolfram.com/OrthogonalGroup.html)
8. [A quaternionic approach to teaching 3D rotations and the resolution of gimbal lock, arXiv](https://arxiv.org/abs/2511.04452)
9. [Thesis on rotation representations and gimbal lock, Universitat Politècnica de Catalunya](https://upcommons.upc.edu/server/api/core/bitstreams/5e5edbc3-4983-4887-be52-fe731b52272b/content)
10. [Comparison of body rotations using Euler angles and quaternions, University of Cape Town](https://open.uct.ac.za/handle/11427/33222)
11. [Euler parameters and the use of quaternion algebra in the manipulation of finite rotations: A review, Mechanism and Machine Theory](https://www.sciencedirect.com/science/article/pii/0094114X86900844)
12. [A survey on the computation of quaternions from rotation matrices, Institut de Robòtica i Informàtica Industrial](https://www-iri.upc.es/publications/show/2083)
13. [On the Rigid Rotation Concept in n-Dimensional Spaces, Texas A&M University](https://www.researchgate.net/publication/254199657_On_the_Rigid_Rotation_Concept_in_n-Dimensional_Spaces)
14. [Mathematics for Machine Learning, Cambridge University Press](https://info.usherbrooke.ca/pmjodoin/cours/ift603/mml-book.pdf)
15. [Rotation matrices and translation vectors in crystallography, IUCr](https://www.iucr.org/what-we-do/education/pamphlets/rotation-matrices-and-translation-vectors-in-crystallography)
16. [Orientation matrix, Online Dictionary of Crystallography](https://dictionary.iucr.org/Orientation_matrix)
17. [Comparative study of attitude control methods based on Euler angles, quaternions, angle–axis pairs and orientation matrices, SAGE](https://journals.sagepub.com/doi/abs/10.1177/0142331218773519?download=true)
18. [Pose Mathematics for Path Planning, NIST](https://www.nist.gov/ctl/smart-connected-systems-division/networked-control-systems-group/pose-mathematics-path-planning)
19. [Structure and Interpretation of Classical Mechanics: Chapter 2](https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/9579/sicm_edition_2.zip/chapter002.html)

---
*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: 物质世界与数学 › 数学与统计学 › 几何学与拓扑学 › Analytic and coordinate geometry

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/rotation-mathematics

English original: https://www.edgepedia.org/rotation-mathematics
