Binary Operation — Definition, Formula & Examples
A binary operation is a rule that takes exactly two elements from a set and combines them to produce a single element from the same set. Addition on the integers is a familiar example: you put in two integers and get one integer back.
A binary operation on a set is a function that assigns to each ordered pair a unique element . The requirement that always lands back in is called closure.
Key Formula
Where:
- = The binary operation (a general symbol; could also be written as +, ·, ∘, etc.)
- = The underlying set on which the operation is defined
- = The set of all ordered pairs of elements from S
How It Works
To verify that a rule qualifies as a binary operation on a set , check three things: (1) the rule accepts exactly two inputs from , (2) it produces exactly one output, and (3) that output is also in . If any pair of elements from can produce a result outside , the rule is not a binary operation on that set. Once you have a valid binary operation, you can investigate further properties like associativity, commutativity, and the existence of identity or inverse elements.
Worked Example
Problem: Determine whether subtraction is a binary operation on the set of natural numbers .
Step 1: Pick two elements from the set and apply the rule. Let and .
Step 2: Check whether the result is in the set. Since , closure fails.
Step 3: Because at least one pair of natural numbers produces a result outside , subtraction is not a binary operation on .
Answer: Subtraction is not a binary operation on because it does not satisfy closure.
Why It Matters
Binary operations are the starting point for defining groups, rings, and fields in abstract algebra. Every time you study symmetry in physics, error-correcting codes in computer science, or cryptographic algorithms, you are working with binary operations and the algebraic structures built on them.
Common Mistakes
Mistake: Forgetting to check closure — assuming any familiar arithmetic rule is automatically a binary operation on any set.
Correction: Always verify that the output stays within the specified set. Division on the integers, for instance, fails because .
