Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Binary operation

From Wikipedia, the free encyclopedia
Mathematical operation with two operands
Not to be confused withBitwise operation.
A binary operation{\displaystyle \circ } is a rule for combining the argumentsx{\displaystyle x} andy{\displaystyle y} to producexy{\displaystyle x\circ y}

Inmathematics, abinary operation ordyadic operation is a rule for combining twoelements (calledoperands) to produce another element. More formally, a binary operation is anoperation ofarity two.

More specifically, abinary operation on aset is abinary function that maps everypair of elements of the set to an element of the set. Examples include the familiararithmetic operations likeaddition,subtraction,multiplication, set operations like union, complement, intersection. Other examples are readily found in different areas of mathematics, such asvector addition,matrix multiplication, andconjugation in groups.

A binary function that involves several sets is sometimes also called abinary operation. For example,scalar multiplication ofvector spaces takes a scalar and a vector to produce a vector, andscalar product takes two vectors to produce a scalar.

Binary operations are the keystone of moststructures that are studied inalgebra, in particular insemigroups,monoids,groups,rings,fields, andvector spaces.

Terminology

[edit]

More precisely, a binary operation on asetS{\displaystyle S} is amapping of the elements of theCartesian productS×S{\displaystyle S\times S} toS{\displaystyle S}:[1][2][3]

f:S×SS.{\displaystyle \,f\colon S\times S\rightarrow S.}

Iff{\displaystyle f} is not afunction but apartial function, thenf{\displaystyle f} is called apartial binary operation. For instance, division is a partial binary operation on the set of allreal numbers, because one cannotdivide by zero:a0{\displaystyle {\frac {a}{0}}} is undefined for every real numbera{\displaystyle a}. In bothmodel theory and classicaluniversal algebra, binary operations are required to be defined on all elements ofS×S{\displaystyle S\times S}. However,partial algebras[4] generalizeuniversal algebras to allow partial operations.

Sometimes, especially incomputer science, the term binary operation is used for anybinary function.

Properties and examples

[edit]

Typical examples of binary operations are theaddition (+{\displaystyle +}) andmultiplication (×{\displaystyle \times }) ofnumbers andmatrices as well ascomposition of functions on a single set.For instance,

Many binary operations of interest in both algebra and formal logic arecommutative, satisfyingf(a,b)=f(b,a){\displaystyle f(a,b)=f(b,a)} for all elementsa{\displaystyle a} andb{\displaystyle b} inS{\displaystyle S}, orassociative, satisfyingf(f(a,b),c)=f(a,f(b,c)){\displaystyle f(f(a,b),c)=f(a,f(b,c))} for alla{\displaystyle a},b{\displaystyle b}, andc{\displaystyle c} inS{\displaystyle S}. Many also haveidentity elements andinverse elements.

The first three examples above are commutative and all of the above examples are associative.

On the set of real numbersR{\displaystyle \mathbb {R} },subtraction, that is,f(a,b)=ab{\displaystyle f(a,b)=a-b}, is a binary operation which is not commutative since, in general,abba{\displaystyle a-b\neq b-a}. It is also not associative, since, in general,a(bc)(ab)c{\displaystyle a-(b-c)\neq (a-b)-c}; for instance,1(23)=2{\displaystyle 1-(2-3)=2} but(12)3=4{\displaystyle (1-2)-3=-4}.

On the set of natural numbersN{\displaystyle \mathbb {N} }, the binary operationexponentiation,f(a,b)=ab{\displaystyle f(a,b)=a^{b}}, is not commutative since,abba{\displaystyle a^{b}\neq b^{a}} (cf.Equation xy = yx), and is also not associative sincef(f(a,b),c)f(a,f(b,c)){\displaystyle f(f(a,b),c)\neq f(a,f(b,c))}. For instance, witha=2{\displaystyle a=2},b=3{\displaystyle b=3}, andc=2{\displaystyle c=2},f(23,2)=f(8,2)=82=64{\displaystyle f(2^{3},2)=f(8,2)=8^{2}=64}, butf(2,32)=f(2,9)=29=512{\displaystyle f(2,3^{2})=f(2,9)=2^{9}=512}. By changing the setN{\displaystyle \mathbb {N} } to the set of integersZ{\displaystyle \mathbb {Z} }, this binary operation becomes a partial binary operation since it is now undefined whena=0{\displaystyle a=0} andb{\displaystyle b} is any negative integer. For either set, this operation has aright identity (which is1{\displaystyle 1}) sincef(a,1)=a{\displaystyle f(a,1)=a} for alla{\displaystyle a} in the set, which is not anidentity (two sided identity) sincef(1,b)b{\displaystyle f(1,b)\neq b} in general.

Division (÷{\displaystyle \div }), a partial binary operation on the set of real or rational numbers, is not commutative or associative.Tetration (↑↑{\displaystyle \uparrow \uparrow }), as a binary operation on the natural numbers, is not commutative or associative and has no identity element.

Notation

[edit]

Binary operations are often written usinginfix notation such asab{\displaystyle a\ast b},a+b{\displaystyle a+b},ab{\displaystyle a\cdot b} or (byjuxtaposition with no symbol)ab{\displaystyle ab} rather than by functional notation of the formf(a,b){\displaystyle f(a,b)}. Powers are usually also written without operator, but with the second argument assuperscript.

Binary operations are sometimes written using prefix or postfix notation, both of which dispense with parentheses. They are also called, respectively,Polish notationab{\displaystyle \ast ab} andreverse Polish notationab{\displaystyle ab\ast }.

Binary operations as ternary relations

[edit]

A binary operationf{\displaystyle f} on a setS{\displaystyle S} may be viewed as aternary relation onS{\displaystyle S}, that is, the set of triples(a,b,f(a,b)){\displaystyle (a,b,f(a,b))} inS×S×S{\displaystyle S\times S\times S} for alla{\displaystyle a} andb{\displaystyle b} inS{\displaystyle S}.

Other binary operations

[edit]

For example,scalar multiplication inlinear algebra. HereK{\displaystyle K} is afield andS{\displaystyle S} is avector space over that field.

Also thedot product of two vectors mapsS×S{\displaystyle S\times S} toK{\displaystyle K}, whereK{\displaystyle K} is a field andS{\displaystyle S} is a vector space overK{\displaystyle K}. It depends on authors whether it is considered as a binary operation.

See also

[edit]

Notes

[edit]
  1. ^Rotman 1973, pg. 1
  2. ^Hardy & Walker 2002, pg. 176, Definition 67
  3. ^Fraleigh 1976, pg. 10
  4. ^George A. Grätzer (2008).Universal Algebra (2nd ed.). Springer Science & Business Media. Chapter 2. Partial algebras.ISBN 978-0-387-77487-9.

References

[edit]
  • Fraleigh, John B. (1976),A First Course in Abstract Algebra (2nd ed.), Reading: Addison-Wesley,ISBN 0-201-01984-1
  • Hall, Marshall Jr. (1959),The Theory of Groups, New York: Macmillan
  • Hardy, Darel W.;Walker, Carol L. (2002),Applied Algebra: Codes, Ciphers and Discrete Algorithms, Upper Saddle River, NJ: Prentice-Hall,ISBN 0-13-067464-8
  • Rotman, Joseph J. (1973),The Theory of Groups: An Introduction (2nd ed.), Boston: Allyn and Bacon

External links

[edit]
General
Theorems
(list),
paradoxes
Logics
Traditional
Propositional
Predicate
Set theory
Types
ofsets
Maps,
cardinality
Theories
Formal
systems

(list),
language,
syntax
Example
axiomatic
systems

(list)
Proof theory
Model theory
Computability
theory
Related
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Binary_operation&oldid=1325442106"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp