[Image 1]
Hey it's a me again @drifter1!
Today we continue with Mathematics, and more specifically the branch of "Discrete Mathematics", in order to get into Binary Operations.
So, without further ado, let's get straight into it!
For a non-empty set A a binary operation is a function of the form f : A x A → A. The two domains and the co-domain are the same exact set A. So, basically a binary operation is any rule that combines two elements (operands) in order to produce another element. For example, the arithmetic operations of addition, subtraction and multiplication are all binary operations on the set of integers.
The same logic can also be extended towards vector addition and matrix multiplication, by considering so called n-ary operations of the form f : A x A x ... x A → A.
Any binary operation can also be represented by a table of all possible combinations and their corresponding results. Considering the set of natural numbers, the binary operation of addition "+" can be represented by the table:
Binary operations may also satisfy lots of properties...
For a non-empty set A and binary operation "*" on A, the binary operation satisfies closure when the result of the binary operation a * b ∈ A. Of course a, b ∈ A. For example, addition on the set of integers is a closed operation.
For a non-empty set A and binary operation "*" on A, the binary operation satisfies associativity if for every a, b, c ∈ A:
For a non-empty set A and binary operation "*" on A, the binary operation satisfies commutativity if for every a, b ∈ A, a * b = b * a.
For a non-empty set A and binary operation "*" on A, the binary operation satisfies distributivity if for every a, b, c ∈ A:
which are the left and right distributivity respectively.
For a non-empty set A and binary operation "*" on A, the binary operation satisfies the identity property if for every a ∈ A there exists an element e ∈ A, so that:
which are known as the right and left identities respectively.
For a non-empty set A and binary operation "*" on A, the binary operation satisfies the inverse property if for every a ∈ A there exists an element b ∈ A, so that:
which are known as the right and left inverse respectively.
For a non-empty set A and binary operation "*" on A, the binary operation satisfies the idempotent property if for every a ∈ A : a * a = a.
For a non-empty set A and binary operation "*" on A, the binary operation satisfies the cancellation property if for every a, b, c ∈ A:
which are the left and right cancellation respectively.
Mathematical equations used in this article, have been generated using quicklatex.
Block diagrams and other visualizations were made using draw.io.
And this is actually it for today's post!
Next time we will start talking about Group Theory, where such binary operations are used.
See ya!

Keep on drifting!