[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 Sets and Relations.
So, without further ado, let's get straight into it!
The Cartesian Product of two non-empty sets A and B (in that order), denoted by A x B, is the set of all ordered pairs, where the first member belongs to set A and the second member belongs to set B.
In set builder notation:
Each subset of A x B is called a (binary) relation R from set A to B. As such, if (x, y) ∈ R and R ⊆ A x B then x is related to y by R. If A = B then R ⊆ A x A is known as a relation on A.
A relation R is called a function when there's exactly one output for each input. In other words, there have to be no ordered pairs with the same first member and different second member.
For example, if A = {1, 3, 5} and B = {2, 4, 6} then the following would be valid relations for the cartesian product A x B:
Only the last one is also a function!
A relation is commonly denoted as R : A → B.
The set of all first members in the ordered pairs of R (the inputs) is known as the domain of relation, and commonly denoted by DOM (R).
The set of all second members in the ordered pairs of R (the outputs) is known as the range of the definition, and commonly denoted by RAN (R).
As such, if R : D → S, D would be the domain of definition and S the range of the relation.
Relations are classified into types depending on the properties they satisfy.
A relation R on set A is:
Consider the set A = { 1, 2, 3 }.
Valid relations of the form R : A → A are:
A function is commonly denoted as f : A → B.
Each element from set A is uniquely associated to an element in set B. The set A is called the Domain of the function, whilst the set B is called the Co-Domain of the function. The range of a function is the image of the domain, and thus a subset of the co-domain.
Functions are classified into types depending on properties they satisfy.
As such, a function f is:
The set cardinalities will be related in the following way:
Consider f : Z → N, f(x) = 2x + 1.
The function is injective but not surjective, because:
So, the range of function f is not the co-domain N but a subset of N.
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 continue on with more on Relations...
See ya!

Keep on drifting!