# 交换律

交换律是二元运算的一种性质：交换两个输入的顺序永远不会改变结果。具体地说，对于集合 \( S \) 上的二元运算 \( \bullet \)，如果对一切 \( a \in S \) 和 \( b \in S \) 都有 \( a \bullet b = b \bullet a \)，则该运算满足交换律<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup>。数的加法与乘法是我们熟悉的例子；减法和除法则不满足交换律<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/intermediate-algebra-2e/pages/1-5-properties-of-real-numbers)</sup>。

| 关键事实 | 细节 |
|---|---|
| 定义 | 二元运算 \( \bullet : S \times S \to S \) 满足交换律，当且仅当对一切 \( a, b \in S \) 都有 \( a \bullet b = b \bullet a \)<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup> |
| 可交换运算 | 整数的加法、自然数（以及实数）的乘法都满足交换律<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/intermediate-algebra-2e/pages/1-5-properties-of-real-numbers)</sup> |
| 不可交换运算 | 减法（\( 5-2=3 \)，但 \( 2-5=-3 \)）和除法（\( 12 \div 3 \neq 3 \div 12 \)）不满足交换律<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/intermediate-algebra-2e/pages/1-5-properties-of-real-numbers)</sup> |
| 矩阵乘法 | 对适当选取的方阵，\( A \times B \neq B \times A \)，因此矩阵乘法不满足交换律<sup>[3](https://www.uib.no/en/rg/algebraisk-geometri/57980/6-commutative-versus-noncommutative-systems)</sup> |
| 与结合律不同 | 交换律关心两个输入的先后顺序；结合律关心三个元素的组合方式，即 \( (xy)z = x(yz) \)；一个运算可以具备其中一种性质而不具备另一种<sup>[4](https://math.umd.edu/~pbrosnan/notes/ugalg/sect0008.html)</sup> |
| 早期记载 | 欧几里得《几何原本》第七卷命题16陈述了数的乘法的交换性，\( ab = ba \)<sup>[5](https://www.euclids-elements.org/elements/books/bookVII/propositions/propVII16/)</sup> |
| 浮点数 | IEEE 浮点数的加法与乘法满足交换律，但不满足结合律<sup>[6](https://math.nyu.edu/inmemoriam/donev/Teaching/SciComp-Fall2015/Lecture-IEEE.handout.pdf)</sup> |

## 形式定义

该定义是针对二元运算陈述的，所谓二元运算，就是映射 \( \bullet : S \times S \to S \)，它把集合 \( S \) 中元素的每个有序对对应到 \( S \) 中的另一个元素<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup>。当对一切 \( a \in S \) 和一切 \( b \in S \) 都有 \( a \bullet b = b \bullet a \) 时，该运算满足交换律；这里的量词至关重要，因为只要有一对元素满足 \( a \bullet b \neq b \bullet a \)，就足以说明该运算不满足交换律<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup>。

在抽象代数中，同一性质是针对原群（magma）来表述的。原群是配备了一个二元运算的集合：如果对一切 \( x, y \in M \) 都有 \( xy = yx \)，则原群 \( M \) 是可交换的<sup>[4](https://math.umd.edu/~pbrosnan/notes/ugalg/sect0008.html)</sup>。记号也随这一性质而定：当一个可交换运算用加法形式写成 \( (m,n) \mapsto m+n \) 时，单位元传统上记作 \( 0 \)；对于非交换运算，则改用符号 \( e \) 或 \( 1 \)，而且符号 \( + \) 从不用于不满足交换律的运算<sup>[4](https://math.umd.edu/~pbrosnan/notes/ugalg/sect0008.html)</sup>。

## 数上的可交换运算与不可交换运算

对于整数，加法与乘法满足交换律：\( 2+7 = 7+2 = 9 \)，并且一般地，对实数 \( a \) 和 \( b \) 有 \( a+b = b+a \) 与 \( a \cdot b = b \cdot a \)<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/intermediate-algebra-2e/pages/1-5-properties-of-real-numbers)</sup>。减法不满足该性质，反例 \( 5-2 = 3 \) 与 \( 2-5 = -3 \) 即可说明；除法同样不满足，因为 \( 12 \div 3 \neq 3 \div 12 \)<sup>[1](https://mat112.uncg.edu/HTML/secbinopcom.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/intermediate-algebra-2e/pages/1-5-properties-of-real-numbers)</sup>。

交换律与结合律相互独立。结合律是指对一切 \( x, y, z \) 都有 \( (xy)z = x(yz) \)<sup>[4](https://math.umd.edu/~pbrosnan/notes/ugalg/sect0008.html)</sup>。\( 2 \times 2 \) 实矩阵集合上的李括号，定义为 \( [A,B] = AB - BA \)，就是一个既不满足交换律也不满足结合律的运算；适当选取矩阵 \( A \)、\( B \)、\( C \) 时，\( [[A,B],C] \) 是零矩阵，而 \( [A,[B,C]] \) 不是<sup>[4](https://math.umd.edu/~pbrosnan/notes/ugalg/sect0008.html)</sup>。

## 数字之外

矩阵乘法是熟悉对象上非交换运算的标准例子。对于整数，\( a \times b = b \times a \)，因子的顺序无关紧要；对于矩阵，对适当选取的矩阵计算 \( A \times B \) 与 \( B \times A \) 会得到不同的结果，因此这种乘法不满足交换律<sup>[3](https://www.uib.no/en/rg/algebraisk-geometri/57980/6-commutative-versus-noncommutative-systems)</sup>。

这一区别把数学理论分成了两大门类。交换代数系统——多项式便构成这样的系统——与几何对象密切相关，这种关系在代数几何中得到研究，在那里代数性质与几何性质相互映照。非交换系统与几何的联系则更为外在，往往通过作用于几何对象而产生对称性的运算来实现；现代理论物理中的大部分代数都是非交换的<sup>[3](https://www.uib.no/en/rg/algebraisk-geometri/57980/6-commutative-versus-noncommutative-systems)</sup>。

## 历史

这一性质在古代就已被明确记载。欧几里得《几何原本》第七卷命题16陈述了形式数乘法的交换性，\( ab = ba \)，该命题在本书后文中被使用，包括命题 VII.18<sup>[5](https://www.euclids-elements.org/elements/books/bookVII/propositions/propVII16/)</sup>。现代对《几何原本》的概述同样把 VII.16 列为数的乘法的交换性，\( mn = nm \)<sup>[7](https://www.cs.clarku.edu/~djoyce/java/elements/trip.html)</sup>。

## 计算与学习中的交换律

浮点运算保持了交换律，却失去了结合律。IEEE 浮点数的加法与乘法满足交换律但不满足结合律，因为每次运算后的舍入使结果依赖于计算的组合方式<sup>[6](https://math.nyu.edu/inmemoriam/donev/Teaching/SciComp-Fall2015/Lecture-IEEE.handout.pdf)</sup>。这就是为什么重新排列浮点数求和的括号会改变答案，而交换两个加数的位置却不会。

这一性质也是算术学习中的一个里程碑。在《共同核心州立标准》中，三年级学生把乘法的交换律作为一种策略来运用：知道 \( 6 \times 4 = 24 \) 就能立刻得到 \( 4 \times 6 = 24 \)<sup>[8](https://www.thecorestandards.org/Math/Content/3/OA/B/5/)</sup>。发展研究发现，这一概念相对于其他加法概念的掌握程度并不均衡：在三、四、五年级儿童中，对单位元与相反数的理解较强，对交换律与逆运算的理解居中，对等价性与结合律的理解较弱<sup>[9](https://www.sciencedirect.com/science/article/pii/S0022096516302442)</sup>。针对幼儿园和一年级学生的课堂研究观察到，他们对交换律的理解最为浅陋，有些儿童即使经过教学也只表现出工具性理解<sup>[10](https://www.terc.edu/publications/kindergarten-and-first-grade-students-understandings-and-representations-of-arithmetic-properties/)</sup>。

## References

1. [Section 13.5 Commutativity, MAT 112, University of North Carolina at Greensboro](https://mat112.uncg.edu/HTML/secbinopcom.html)
2. [1.5 Properties of Real Numbers, Intermediate Algebra 2e, OpenStax](https://openstax.org/books/intermediate-algebra-2e/pages/1-5-properties-of-real-numbers)
3. [Commutative versus noncommutative systems, Algebraic Geometry research group, University of Bergen](https://www.uib.no/en/rg/algebraisk-geometri/57980/6-commutative-versus-noncommutative-systems)
4. [UMD 403: Undergraduate Algebra, Binary Operations, University of Maryland](https://math.umd.edu/~pbrosnan/notes/ugalg/sect0008.html)
5. [Euclid's Elements, Book VII, Proposition 16](https://www.euclids-elements.org/elements/books/bookVII/propositions/propVII16/)
6. [Roundoff Errors, IEEE Arithmetic, lecture handout, Courant Institute, New York University](https://math.nyu.edu/inmemoriam/donev/Teaching/SciComp-Fall2015/Lecture-IEEE.handout.pdf)
7. [Euclid's Elements, A Quick Trip, Clark University](https://www.cs.clarku.edu/~djoyce/java/elements/trip.html)
8. [Common Core State Standards, Grade 3, Operations & Algebraic Thinking, standard 3.OA.B.5](https://www.thecorestandards.org/Math/Content/3/OA/B/5/)
9. [Robinson, K. M., Dubé, A. K., Beatch, J.-A. (2017). Children's understanding of additive concepts. Journal of Experimental Child Psychology](https://www.sciencedirect.com/science/article/pii/S0022096516302442)
10. [Kindergarten and First-Grade Students' Understandings and Representations of Arithmetic Properties, TERC](https://www.terc.edu/publications/kindergarten-and-first-grade-students-understandings-and-representations-of-arithmetic-properties/)

---
*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: 物质世界与数学 › 数学与统计学 › 数与代数 › Arithmetic and number systems › Elementary and formal arithmetic › Properties and laws of arithmetic

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/commutative-property

English original: https://www.edgepedia.org/commutative-property
