Binary operation

A function *:S×S→S combining two elements of S into one
Binary operation

Let SS be a . A binary operation on SS is a

 ⁣:S×SS, *\colon S\times S \to S,

where S×SS\times S is the . Thus, for each (a,b)S×S(a,b)\in S\times S, the value aba*b is an element of SS.

Binary operations are the basic input for algebraic structures (groups, rings, etc.), where one adds axioms such as associativity or commutativity.

Examples:

  • Addition + ⁣:Z×ZZ+\colon\mathbb{Z}\times\mathbb{Z}\to\mathbb{Z} is a binary operation.
  • Matrix multiplication on the set of n×nn\times n real matrices is a binary operation.
  • Subtraction on N\mathbb{N} is not a binary operation on N\mathbb{N} if N\mathbb{N} does not contain negatives (not closed).