Lably
Skip to content

Binary operation

Mathematical operation with two operands

  • 2 min read
  • 2 chapters

Related on Lably

Through Mathematics, Ordered pair and Operation (mathematics)

Some definitions require the two inputs and the output to be elements of the same set.

Binary operations are usually written using infix notation such as a⋆b rather than by functional notation of the form f(a,b). Multiplication and exponentiation are frequently written without operator, but with exponents as superscript.

In abstract algebra, a binary operation on a set S is a mapping of the elements of the Cartesian product S×S to S: f:S×S→S.

If the mapping is total, (S,f) is a magma. However, if f is a partial mapping, then f is a partial binary operation, which can be one of the operations in a partial algebra on S, such as the partial groupoid (S,f).

A binary operation f on a set S may be viewed as a ternary relation on S, that is, the set of triples (a,b,f(a,b)) in S×S×S for all a and b in S.

Binary operations are the keystone of most structures that are studied in algebra, in particular in semigroups, monoids, groups, rings, fields, and vector spaces.

Examples

Arithmetic operations like addition (a+b), subtraction (a−b), and multiplication (a×b or, using juxtaposition, ab) are binary operations on numbers. Division (a/b or a÷b) is only a partial binary operation on the set of rational numbers and the set of real numbers, because division by zero is undefined, but a (total) binary operation on the set of positive real numbers.

Union (X∪Y), intersection (X∩Y), and set difference (X∖Y) are binary operations on sets. There are 16 binary operations on binary variables, such as 'AND', 'OR', and 'XOR'.

If a broad definition of "binary operation" is used, such that the inputs and output do not have to be from the same set, then scalar multiplication (av→) is an binary operator from a scalar and a vector to a vector, and dot product (u→⋅v→) is a binary operator from two vectors to a scalar.

Function composition (g∘h) is a binary operation on compatible functions.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Topics in mathematics