In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
is commutative if changing the order of the
operands does not change the result. It is a fundamental property of many binary operations, and many
mathematical proofs depend on it. Perhaps most familiar as a property of arithmetic, e.g. or , the property can also be used in more advanced settings. The name is needed because there are operations, such as
division and
subtraction, that do not have it (for example, ); such operations are ''not'' commutative, and so are referred to as noncommutative operations.
The idea that simple operations, such as the
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
and
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
of numbers, are commutative was for many centuries implicitly assumed. Thus, this property was not named until the 19th century, when new
algebraic structures started to be studied.
Definition
A
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
on a
set ''S'' is ''commutative'' if
for all
. An operation that is not commutative is said to be ''noncommutative''.
One says that ''commutes'' with or that and ''commute'' under
if
So, an operation is commutative if every two elements commute. An operation is noncommutative if there are two elements such that
This does not exclude the possibility that some pairs of elements commute.
Examples
Commutative operations

*
Addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
and
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
are commutative in most
number systems, and, in particular, between
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s,
integers,
rational numbers,
real numbers and
complex numbers. This is also true in every
field.
* Addition is commutative in every
vector space and in every
algebra.
*
Union and
intersection are commutative operations on
sets.
* "
And" and "
or" are commutative
logical operations.
Noncommutative operations
*
Division is noncommutative, since
.
Subtraction is noncommutative, since
. However it is classified more precisely as
anti-commutative, since
for every and .
Exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
is noncommutative, since
(see
y'' = ''yx''">Equation xy = yxEquation ''xy'' = ''yx''.
* Some
truth functions are noncommutative, since their
truth tables are different when one changes the order of the operands. For example, the truth tables for and are
:
*
Function composition is generally noncommutative. For example, if
and
. Then
and
*
Matrix multiplication of
square matrices of a given dimension is a noncommutative operation, except for matrices. For example:
* The vector product (or
cross product) of two vectors in three dimensions is
anti-commutative; i.e.,
.
Commutative structures
Some types of
algebraic structures involve an operation that does not require commutativity. If this operation is commutative for a specific structure, the structure is often said to be ''commutative''. So,
* a
commutative semigroup is a
semigroup whose operation is commutative;
* a
commutative monoid is a
monoid whose operation is commutative;
* a ''commutative group'' or
abelian group is a
group whose operation is commutative;
* a
commutative ring
In mathematics, a commutative ring is a Ring (mathematics), ring in which the multiplication operation is commutative. The study of commutative rings is called commutative algebra. Complementarily, noncommutative algebra is the study of ring prope ...
is a
ring whose
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
is commutative. (Addition in a ring is always commutative.)
However, in the case of
algebras, the phrase "
commutative algebra" refers only to
associative algebras that have a commutative multiplication.
History and etymology
Records of the implicit use of the commutative property go back to ancient times. The
Egyptians
Egyptians (, ; , ; ) are an ethnic group native to the Nile, Nile Valley in Egypt. Egyptian identity is closely tied to Geography of Egypt, geography. The population is concentrated in the Nile Valley, a small strip of cultivable land stretchi ...
used the commutative property of
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
to simplify computing
products.
Euclid is known to have assumed the commutative property of multiplication in his book
''Elements''.
[. Se]
Book VII, Proposition 5
in David E. Joyce's online edition of Euclid's ''Elements'' Formal uses of the commutative property arose in the late 18th and early 19th centuries when mathematicians began to work on a theory of functions. Nowadays, the commutative property is a well-known and basic property used in most branches of mathematics.

The first recorded use of the term ''commutative'' was in a memoir by
François Servois in 1814, which used the word ''commutatives'' when describing functions that have what is now called the commutative property. ''Commutative'' is the feminine form of the French adjective ''commutatif'', which is derived from the French noun ''commutation'' and the French verb ''commuter'', meaning "to exchange" or "to switch", a cognate of ''to commute''. The term then appeared in English in 1838. in
Duncan Gregory's article entitled "On the real nature of symbolical algebra" published in 1840 in the
Transactions of the Royal Society of Edinburgh.
See also
*
Anticommutative property
*
Canonical commutation relation (in quantum mechanics)
*
Centralizer and normalizer (also called a commutant)
*
Commutative diagram
*
Commutative (neurophysiology)
*
Commutator
*
Particle statistics (for commutativity in
physics
Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
)
*
Quasi-commutative property
*
Trace monoid
*
Commuting probability
Notes
References
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
{{Good article
Properties of binary operations
Elementary algebra
Rules of inference
Symmetry
Concepts in physics
Functional analysis