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 proof
A mathematical proof is a deductive reasoning, deductive Argument-deduction-proof distinctions, argument for a Proposition, mathematical statement, showing that the stated assumptions logically guarantee the conclusion. The argument may use othe ...
s 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,
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s,
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (for example,
The set of all ...
s,
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s and
complex numbers. This is also true in every
field.
* Addition is commutative in every
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
and in every
algebra.
*
Union and
intersection are commutative operations on
sets.
* "
And" and "
or" are commutative
logical operation
In logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. Connectives can be used to connect logical formulas. For instance in the syntax of propositional logic, th ...
s.
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 table
A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, Boolean functions, and propositional calculus—which sets out the functional values of logical expressions on each of their functional arg ...
s 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
In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and ...
) 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
Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideal (ring theory), ideals, and module (mathematics), modules over such rings. Both algebraic geometry and algebraic number theo ...
" 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
Euclid (; ; BC) was an ancient Greek mathematician active as a geometer and logician. Considered the "father of geometry", he is chiefly known for the '' Elements'' treatise, which established the foundations of geometry that largely domina ...
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
In mathematics, the commutator gives an indication of the extent to which a certain binary operation fails to be commutative. There are different definitions used in group theory and ring theory.
Group theory
The commutator of two elements, ...
*
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