Relations

Relation Algebra is the algebra of Sets that deals with a Set of finite relations that is closed under some operators. These operators work upon one or more relations.
In mathematics a relation is a set of ordered pairs and the symbol for the set is denoted by “”. There are some examples of relations,
(0, 2), (55, 21), (3, 50),
(0, 2), (2, 5), (3, 9),
A relation is a set of ordered pairs as said above and there is no matter about the Numbers that are in a relation. In short, any set of numbers would be called a relation so long as these numbers appears in pairs.
The Domain of a algebra relation is the set of all the first numbers arranged in the ordered pairs. In short the domain is all of the x values while The Range of a relation is the set of the second numbers that are arranged in the each pair or in other words it is the set of the ‘y’ values.
For example if we have a set of a relation as
S = (0,1), (2, 33), (40, 25),
Here domain of this relation is 0, 2, 40 and the range of the relation is 1, 33, 25.
Like the usual formula for the relation of the Position and time of a ball can be notices and the general formula that shows this relation is,
g (time) = position,
The term relation shows the relationship between the sets of information like consider about all the people in the class and their height. If the name of the students in the class and the height of the students are paired together then this is called a relation. In relations the pairs of names and heights are ordered that means names comes first and the other that is height comes second.
A function is a well mannered relation. All Functions are relations but not all relations are functions.
Relation algebra is an algebraic structure equipped with the Boolean operations of conjunction, dis-conjunction and negation, the Boolean constants, the relational operations and the converse in such a way that these operations and constants satisfy certain equations that constitutes algebra relations.
Relation algebra is equal to expressive power to relational Calculus and this result is named as Codd's theorem.

If there are three relations R1, R2, R3 are defined on set A = a, b, c as follows.
 R= (a, a), (a, b), (a, c), (b, b), (b, c), (c, a), (c, b), (c, c) ,
R2 = (a, b), (b, a), (a, c), (c, a),
R3 = (a, b), (b, c), (c, a)
Find whether R1, R2, Ris reflexive, symmetric and transitive?

Given that  (1) R= (a, a), (a, b), (a, c), (b, b), (b, c), (c, a), (c, b), (c, c),
                                       (2) R2 = (a, b), (b, a), (a, c), (c, a) ,
                                       (3) R3 = (a, b), (b, c), (c, a)
If we check the condition for reflexive i.e. a relation ‘R’ on Set ‘A’ is said to be reflexive if every element of ‘A’ is related to itself.
 
(1) Reflexive: - (a, a), (b, b), (c, c) ∊ R1. So we can say that relation R1 is reflexive.
 
Symmetric
: - Here we observe that (a, b) ∊ R1 but (b, a) ∉ R1. So relation Ris not symmetric on relation ‘A’.

Transitive: - Here we observe that (b, c) ∊ R1 and (c, a) ∊ Rbut (b, a) ∉ R1. So relation ‘R1’ is not transitive on relation ‘A’.

 (2) Reflexive: - (a, a), (b, b), (c, c) are not present in R2. So we can say that relation R1 is not reflexive.

Symmetric: - Here we observe that the order pair obtained by interchanging the components of ordered pairs in R2 is also in R2. So relation Ris symmetric on relation on ‘A’.

Transitive: - Here we observe that (a, b) ∊ R2 and (b, a) ∊ Rbut (a, a) ∉ R2. So relation Ris not transitive on relation ‘A’.

 (3) Reflexive: - (a, a), (b, b), (c, c) are not present in R3. So we can say that relation
           R3 is not reflexive.

Symmetric: - We observe that the (b, c) ∊ R3 but (c, a) ∉ R3. So relation Ris symmetric on relation on ‘A’.
 
Transitive: - We find that (a, b) ∊ R3 and (b, c) ∊ Rbut (a, c) ∉ R3. So relation Ris not transitive on relation ‘A’.

Show that the relation R on set A = 2, 3, 4 is given by R = (2, 2), (3, 3), (4, 4), (2, 3), (3, 4). Is reflexive but neither symmetric nor transitive?

The relation ‘R’ on Set A = 2, 3, 4 where,
                   R = (2, 2), (3, 3), (4, 4), (2, 3), (3, 4)
 Since 2, 3, 4 ∊ A and (2, 2), (3, 3), (4, 4) ∊ R i.e. for each a ∊ A, (a, a) ∊ R. So relation ‘R’ is reflexive.
 And we find that (2, 3) ∊ R but (3, 2) ∉ R.
 So relation ‘R’ is not symmetric.
 Also, (2, 3) ∊ R and (3, 4) ∊ R but (2, 4) ∉ R. So ‘R’ is not transitive.

If there are three relations R1, R2, R3 are defined on set A = 1, 2, 3 as follows.
R= (1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3),
R2 = (1, 2), (2, 1), (1, 3), (3, 1),
R3 = (1, 2), (2, 3), (3, 1)
Find whether R1, R2, Ris reflexive, symmetric and transitive?

Given that  (1) R=(1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3),
                                  (2) R2 = (1, 2), (2, 1), (1, 3), (3, 1),
                                  (3) R3 = (1, 2), (2, 3), (3, 1).
If we check the condition for reflexive i.e. a relation ‘R’ on Set ‘A’ is said to be reflexive if every element of ‘A’ is related to itself.
(1) Reflexive: - (1, 1), (2, 2), (3, 3) ∊ R1. So we can say that relation ‘R1’ is reflexive.
Symmetric: - Here we observe that (1, 2) ∊ R1 but (2, 1) ∉ R1. So relation ‘R1’ is not symmetric on relation ‘A’.
Transitive: - Here we observe that (2, 3) ∊ R1 and (3, 1) ∊ Rbut (2, 1) ∉ R1. So relation Ris not transitive on relation ‘A’.

(2) Reflexive: - (1, 1), (2, 2), (3, 3) are not present in R2. So we can say that relation ‘R1’ is not reflexive.
Symmetric: - Here we observe that the order pair obtained by interchanging the components of ordered pairs in R2 is also in R2. So relation Ris symmetric on relation on ‘A’.
Transitive: - Here we observe that (1, 2) ∊ R2 and (2, 1) ∊ Rbut (1, 1) ∉ R2. So relation R is not transitive on relation A.
 
(3) Reflexive :-( 1, 1), (2, 2), (3, 3) are not present in R3. So we can say that relation R3 is not reflexive.
 Symmetric: - We observe that the (2, 3) ∊ R3 but (3, 1) ∉ R3. So relation Ris symmetric on relation on ‘A’.
Transitive: -We find that (1, 2) ∊ R3 and (2, 3) ∊ Rbut (1, 3) ∉ R3. So relation Ris not transitive on relation A.

Show that the relation R on R defined as R = (p, q): p ≤ q, Is reflexive and transitive but not symmetric?

Given the relation R on R defined as R = (p, q): p ≤ q,
Here we have R = (p, q): p ≤ q, where p, q ∊
First we check reflexive condition:
Reflexivity: - For any a ∊ R, we have
               P ≤ P
     ⇒ (P, P) ∊ R for all P ∊ R.
     ⇒ So, ‘R’ is reflexive
.
 Symmetry: We find that (2, 3) ∊ R but (3, 2) ∉ R. so R is not symmetric.
 Transitivity: 
let (P, q) ∊ R and (q, r) ∊ R. then,
         ⇒      P ≤ q and q ≤ r
         ⇒      p ≤ r
         ⇒    (p, r) ∊ R, so ‘R’ is transitive. 

Find x and y, if (x + 3, 5) = (6, 2x + y)?

x + 3 = 6 and 2x + y = 5
Therefore x = 3 and 6 + y = 5
Therefore y = -1.

Let f: R«math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8594;«/mo»«/math»R be given by f(x) = x2 + 3 Find
(i) {x : f(x) = 28}
(ii) The pre-images of 39 and 2 under ‘f’.

(i) Given f(x) = 28 = x2 + 3
        x2 = 28 – 3 = 25

x =  «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«msqrt»«mn»25«/mn»«/msqrt»«/math» = 5
(ii)  To find f-1 (39) and f-1 (2)
f-1 (39) = x «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8658;«/mo»«/math» f (x) = 39 = x2 + 3
x2 = 39 – 3 = 36
x = «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«msqrt»«mn»36«/mn»«/msqrt»«/math» = 6
f-1 (2) = x «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8658;«/mo»«/math» f (x) = 2 = x2 + 3
x2 = 2 – 3 = -1
x = «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«msqrt»«mrow»«mo»-«/mo»«mn»1«/mn»«/mrow»«/msqrt»«/math»

Determine the domain and range of relation R defined by
R = {(x + 1, x + 5): x «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8712;«/mo»«/math» (0, 1, 2, 3, 4, 5)}?

R = {(1, 5), (2, 6), (3, 7), (4, 8), (5, 9), (6, 10)}
Domain of R = {1, 2, 3, 4, 5, 6}
Range of R = {5, 6, 7, 8, 9, 10}.

A = {1, 2, 3, 5} and B = {4, 6, 9}.  Define a relation R from A to B by R = {(x, y): the difference between x and y is odd, x «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8712;«/mo»«/math» A, y «math xmlns=¨http://www.w3.org/1998/Math/MathML¨»«mo»§#8712;«/mo»«/math» B}.  Write R in Roster form?

R = {(1, 4), (1, 6), (2, 9), (3, 4), (3, 6),
(5, 4), (5, 6)}

Math Topics