Skip to content

Commutativity

Definition

A binary operation ⋆\star on AA is commutative if

a⋆b=b⋆aa\star b=b\star a

for all a,b∈Aa,b\in A.


Interpretation

Commutativity says that the order of the two inputs does not matter: swapping aa and bb gives the same result.

Commutativity is about order, associativity about grouping, and neither implies the other. Subtraction has neither property. Composition of functions is associative but not commutative: for f(x)=x+1f(x)=x+1 and g(x)=2xg(x)=2x, (g∘f)(x)=2x+2(g\circ f)(x)=2x+2 while (f∘g)(x)=2x+1(f\circ g)(x)=2x+1. The average a⋆b=12(a+b)a\star b=\tfrac{1}{2}(a+b) is commutative but not associative: (0⋆0)⋆4=2(0\star0)\star4=2, while 0⋆(0⋆4)=10\star(0\star4)=1.

Commutativity is the condition that turns a group into an Abelian group, and both operations of a field are commutative. Without it, calculations need more care: the equations a⋆x=ba\star x=b and x⋆a=bx\star a=b may have different solutions. This returns later with the product of matrices, which is generally not commutative.


Key Results


Examples


Prerequisites

Sources

Aliases: commutative property, commutative law Symbols: element of

Last updated: 20 October 2026 03:02