Lecture 2 & 3
Lecture 2 & 3
Definition 1.1. Let A and B be two sets. Consider the pair (a, b), in which the first
component is from the set A and the second component is from the set B. Then (a, b)
is called an ordered pair. In an ordered pair the order in which the two elements are
written is important. Hence, (a, b) and (b, a) are different ordered pairs. Also, we notice
that
(a, b) = (c, d) ⇐⇒ a = c and b = d.
Remark 1.2. In general, (a, b) 6= (b, a).
Definition 1.3. For any two nonempty sets A and B. The Cartesian product of A and
B is denoted by A × B, is the set of all possible ordered pairs (a, b) such that a ∈ A and
b ∈ B. Symbolically, we write
A × B = {(1, a), (2, a), (2, a), (2, b)} and B × A = {(a, 1), (a, 2), (b, 1), (b, 2)}
(ii) In general, A × B 6= B × A.
(iii) A2 = A × A.
Given three sets A, B and C we can construct many Cartesian products from them:
for instance, the set A × D, where D = B × C; the set E × C, where E = A × B; and also
the set of all ordered triples (a, b, c) where a ∈ A, b ∈ B, and c ∈ C. These give us three
distinct sets, yet here also, we feel that these sets must be closely related. Of course, we
can continue this process with more and more sets. In general, the idea of a product of
sets can be extended to any finite number of sets in similar fashion. Thus, the Cartesian
product of n sets A1 , A2 , ..., An is given by
n
Y
A1 , A2 , · · · , An = Ai = {(a1 , a2 , · · · , an ) | a1 ∈ A1 , a2 ∈ A2 , · · · an ∈ An }.
i=1
2
2 Relations and Functions
The set of elements (a, a) in A × A is called the diagonal of A × A. This perticular set
A × A gives new name called ‘relation’ and generates many important properties. We
begin with a definition.
Definition 2.1. Let A and B be two nonempty sets. A binary relation or simply, a
relation from A → B is a subset of A × B.
3
In this notation, an element x is called the independent variable and y is called the
dependent variable, since the value of y will depend on the value of x. The element f (x)
in B is called the image of x under f or value of f at x. In definition of a function, the
set A is called the domain of f , and the set f (A) = {f (x)|x ∈ A} is called the range of
f . The range of f is a subset of B, i.e., f (A) ⊆ B. The set B is said to be codomain or
range set of f .
Example 2.4. Let A = {1, 2, 3}, B = {a, b} and R = {(1, a), (1, b), (2, b)}. Since we
have
A × B = {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}.
Here we see that R ⊆ A × B and hence R is relation from A to B. Further, we write
Example 2.5. Let A = {1, 2, 3}, B = {a, b} and R = {(1, b), (1, c), (a, b)}. Then R is
not a relation from A to B, since R 6⊆ A × B.
Example 2.6. Consider Q, the set of rational numbers and R is the relation ‘is less than
(<)’. Then, clearly 2R4 (since 2 < 4), but 4R2. This means (2, 4) ∈ R, but (4, 2) 6∈ R.
Hence, R ⊆ Q × Q.
Example 2.7. Let N, the set of natural numbers and R is the relation ‘is multiple of ’.
Then, clearly 9R3, since (9, 3) ∈ R i.e., 9 is multiple of 3. However, 3R9 6∈ R. Hence,
R ⊆ N × N.
Exercise 2.8. Let N be the set of natural numbers and R the relation {(a, a2 )| a ∈ N}.
State whether the following are true or false:
Exercise 2.9. Let A = {1, 2, 4} and B = {4, 8} be two sets. Next, let R is a relation
from A to B such that R = {(1, 4), (1, 8), (2, 4), (2, 8), (4, 8)}. Is R is relation ? If answer
is yes, then find the relation.
Soultion: Given A = {1, 2, 4}, B = {4, 8} and R = {(1, 4), (1, 8), (2, 4), (2, 8), (4, 8)}.
(i): To check R is relation or not
Here it is clear that R ⊆ A × B and hence R is relation from A to B.
4
Remark 2.10. Let A be a nonempty set. Then, a subset f of A × A is a function
f : A → A if and only if each a ∈ A appears as the first component in exactly one ordered
pair in f .
Exercise 2.11. Let X = {1, 2, 3, 4} be a set of four elements. Determine whether OR
not each relation is a function from X → X?
(i) f = {(2, 3), (1, 4), (2, 1), (3, 2), (4, 4)}
(iii) h = {(2, 1), (3, 4), (1, 4), (2, 1), (4, 4)}.
Soultion: To check about part (i). Given, f = {(2, 3), (1, 4), (2, 1), (3, 2), (4, 4)}. Here we
see that two different ordered pairs (2, 3) and (2, 1) have the same numver 2 as their first
component. Therefore, f is NOT function.
To check (iii). Given, h = {(2, 1), (3, 4), (1, 4), (2, 1), (4, 4)}. In this function 2 appered
twice but in same ordered pair (2, 1) and (2, 1) respectively. That is, 2 appeared exactly
in ordered pair (2, 1). Hence, h is function.
Let A and B be two finite sets consist of n and m elements. Then we have
|A × B| = |A|.|B| = n.m,
where A = number of elements in A. Therefore, total number of relation from A to B is
2nm .
Remark 3.2. Let A and B be two nonempty sets and R be a relation from A to B.
(i) (a., b) ∈ R ⇐⇒ (b, a) ∈ R−1 .
(ii) dom (R−1 ) = range (R), and range (R−1 ) = dom (R).
5
Example 3.3. Let A = {1, 2, 3}, and B = {a, b} be two sets. Consider R =
{(1, a), (1, b), (2, b)} is relation from A to B. Then, the inverse relation R−1 is given
by
and
the range(R−1 ) = {1, 2}.
Exercise 3.4. Let R = {(1, −1), (2, 0), (3, 1), (5, 3)} be a relation. Then
Soultion: Given R = {(1, −1), (2, 0), (3, 1)(5, 3)}. Then, we have
Hence, by the definition of domain and range of the inverse relation, we obtain