Professional Documents
Culture Documents
Module 2 DGST
Module 2 DGST
• Objects: Objects constituting a set are called its elements and we express the fact that ais an element of a set S,
symbolically as a ∈ S.(Pronounce as a belongs to S).,
• Since “object” is very general in scope, an element of a set may be letters, numbers or any symbol ordered pairs, or
even a set itself. Sets are denoted by capita letters A, B,C etc and its element by small letters a,b,c …Sets are either
be written by enumerating at its elements(listing method) or by a rule (rule method or set builder method)or by
statement method.
• (a) There are no particular order in a set, since it is only a collection of
elements i.e. A = [1,2,3] and B= [2,3,1] are both the same set. we say A= B.
• (b): Repetition of element in a set, since an element is taken only once i.e. A=
{1,2,2,3} and B = {1,2,3} are both the same sets.
• Representation of a Set
A set can be represented by various methods. 2 common methods used for representing set:
∅ Empty Set.
U Universal Set.
N The set of all natural numbers.
Q, Q0, Q+ The sets of rational, non- zero rational, +ve rational numbers respectively.
R, R0, R+ The set of real, non-zero real, +ve real number respectively.
• Cardinality of a Sets:
• The total number of unique elements in the set is called the cardinality of
the set. The cardinality of the countably infinite set is countably infinite.
• Examples:
• 1. Let P = {k, l, m, n}
The cardinality of the set P is 4.
• 2. Let A is the set of all non-negative even integers, i.e.
A = {0, 2, 4, 6, 8, 10......}.
• As A is countably infinite set hence the cardinality.
Types of Sets Theory
• 1: Finite Set : A set with finite number of elements.
For example, A={x ∈ N, 3<x<9}
A={4,5,6,7,8}
• 2: Infinite Set : A set which contains infinite number of elements.
For example, A={x: x ∈ N, x is a multiple of 2}
A={2,4,6,8….}
• 3: Null Set/Empty Set/Void Set : A set which contains no elements.It is
denoted by ∅ or { }
∅ = { x : x ≠ x }, this set is empty, since there is no element which is not equal to itself.
For example, a = a, 2 = 2.
• 4: Singleton Set/Unit Set : A set which has only one element .
For example, S={a }
• 5: Universal Set : A set which consists of all the elements of the considering sets is said to be the Universal set
for those sets.
It is generally denoted by U or S.
• For example : Consider the following sets,
• A = {a, b, c, d, e} ; B = {x, y, z} and
• U = {a, b, c, d, e, f, g, h, w, x, y, z}
Here, U is the universal set for A and B, since U contains all the elements of A and B.
.6: Equal Sets –: When two sets consists of exactly same elements, whether in the same order, they are said to be
equal.
In other words, if each element of the set A is an element of the set B and each element of B is an element of A,
the sets A and B are called equal, i.e., A = B.
• For example, A = {1,2,3,4,5} and B = {1,5,2,4,3} , then A = B.
• 7: Equivalent Sets –: If the cardinalities of two sets are equal, they are called equivalent
sets.
• Example: If A= {1, 2, 6} and B= {p, q, r}, they are equivalent as cardinality of A is
equal to the cardinality of B. i.e. |A|=|B|=3
9: Overlapping Sets –: Two sets that have at least one common element are called overlapping sets.
• Example : If A = (3, 5, 7), B = (3, 5, 7, 9) than A ⊆ B since every element of A is also an element of B. But
B ⊄ A since 9 ∈ B while 9 ∉ A
• 11: Proper Subset –
If B is a subset of A and B ≠ A, then B is said to be proper subset of A. In other words, if each element of B
is an element of A and there is at least one element of A which is not an element of B, then B is said to be a
proper subset of A. “Is proper subset of” is symbolically represented by ⊂.
• Also, the empty set ∅ is a proper subset of every set except itself.
•
• 2. Intersection of Sets: Intersection of two sets A and B is the set of all
those elements which belong to both A and B and is denoted by A ∩ B.
A ∩ B = {x: x ∈ A and x ∈ B}
• Example: Let A = {11, 12, 13}, B = {13, 14, 15}
A ∩ B = {13}.
•
•
• 3. Difference of Sets: The difference of two sets A and B is a set of all
those elements which belongs to A but do not belong to B and is
denoted by A - B.
A - B = {x: x ∈ A and x ∉ B}
• Example: Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6} then
• A - B = {1,2} and B - A = {5, 6}
•
• 4. Complement of a Set: The Complement of a Set A is a set of all those
elements of the universal set which do not belong to A and is denoted by Ac.
•
Algebra of Sets
• Sets under the operations of union, intersection, and complement satisfy various laws (identities)
which are listed in Table .
c c c c c c
De Morgan's Laws (a) (A ∪B) =A ∩ B (b) (A ∩B) =A ∪ B
Solution:
X *Y = {(1, 8), (2, 8), (3, 8), (1, 9), (2, 9), (3, 9)}
Now we find the complement relation R from X x Y
• R = {(3, 8), (2, 9)}
Representation of Relations
• Relations can be represented in many ways. Some of which are as
follows:
• 1. Relation as a Matrix: Let P = [a1,a2,a3,.......am] and Q = [b1,b2,b3......bn] are
finite sets, containing m and n number of elements respectively. R is a relation
from P to Q. The relation R can be represented by m x n matrix M = [Mij], defined
as
• Mij = 0 if (ai,bj) ∉ R
1 if (ai,bj )∈ R
• Example Let P = {1, 2, 3, 4}, Q = {a, b, c, d}
• R = {(1, a), (1, b), (1, c), (2, b), (2, c), (2, d)}.
• The matrix of relation R is shown as fig:
• 2. Relation as a Directed Graph: There is another way of picturing a
relation R when R is a relation from a finite set to itself.
• Example
1.A = {1, 2, 3, 4}
2.R = {(1, 2) (2, 2) (2, 4) (3, 2) (3, 4) (4, 1) (4, 3)}
• 3. Relation as an Arrow Diagram: If P and Q are finite sets and R is a
relation from P to Q. Relation R can be represented as an arrow diagram
as follows.
• Draw two ellipses for the sets P and Q. Write down the elements of P and
elements of Q column-wise in two ellipses. Then draw an arrow from the
first ellipse to the second ellipse if a is related to b and a ∈ P and b ∈ Q.
• Example
1.Let P = {1, 2, 3, 4} , Q = {a, b, c, d}
R = {(1, a), (2, a), (3, a), (1, b), (4, b), (4, c), (4, d)
• 4. Relation as a Table: If P and Q are finite sets and R is a relation from
P to Q. Relation R can be represented in tabular form.
• Make the table which contains rows equivalent to an element of P and
columns equivalent to the element of Q. Then place a cross (X) in the
boxes which represent relations of elements on set P to set Q.
• Example
1.Let P = {1, 2, 3, 4} ,Q = {x, y, z, k}
R = {(1, x), (1, y), (2, z), (3, z), (4, k)}.
• The tabular form of relation as shown in fig:
Types of Relations
• 1. Reflexive Relation: A relation R on set A is said to be a reflexive if (a,
a) ∈ R for every a ∈ A.
• Example 1:
• If A = {1, 2, 3, 4} then R = {(1, 1) (2, 2), (1, 3), (2, 4), (3, 3), (3, 4), (4, 4)}.
Is a relation reflexive?
• Solution: The relation is reflexive as for every a ∈ A. (a, a) ∈ R, i.e. (1,
1), (2, 2), (3, 3), (4, 4) ∈ R.
• Example2:
• If A = {1, 2, 3, 4} then R1 = {(1, 1) (1, 2), (2, 1), (2, 2), (3, 1), (4, 4)}. Is a
relation reflexive?
• Relation R2 is not reflexive because the ordered pair (3,3) is not in R2
• 2. Irreflexive Relation: A relation R on set A is said to be irreflexive if
(a, a) ∉ R for every a ∈ A
• Example: Let A = {1, 2, 3,4} and R = {(1, 2), (2, 1), (3, 3), (4, 4)}. Is the
relation R irreflexive?
• Solution: The relation R is not irreflexive because (3,3) and(4,4) is
there in R
But R1={(1,2), (2,1)} is irreflexive because a ∈A, (a,a) ∉ R1
• 3. Symmetric Relation: A relation R on set A is said to be symmetric if (a,
b) ∈ R ⟺ (b, a) ∈ R.
• Example: Let A = {1, 2, 3} and R = {(1, 1), (2, 2), (1, 2), (2, 1), (2, 3), (3,
2)}. Is a relation R symmetric or not?
• Solution: The relation is symmetric as for every (a, b) ∈ R, we have (b, a)
∈ R, i.e., (1, 2), (2, 1), (2, 3), (3, 2) ∈ R.
Example1: Let A = {1, 2, 3} and R = {(1, 2), (2, 1), (1, 1), (2, 2)}. Is the
relation transitive?
• Solution: The relation R is transitive as for every (a, b) (b, c) belong to
R, we have (a, c) ∈ R i.e , (1, 2) (2, 1) ∈ R ⇒ (1, 1) ∈ R.
Example: Let A={1,2,3}
• R1={(1,1), (2,2)} Yes
• R2= { (1,2), (2,3)} No
• R3= { } Yes
• R4= {(1,1), (1,2),(2,1)} Yes
• 6. Asymmetric Relation: A relation R on a set A is called an
Asymmetric Relation if for every (a, b) ∈ R implies that (b, a)
does not belong to R.
• Example: A={ 1,2,3,4}
• R1= {(1,1), (1,2), (1,3)} is not an asymmetric relation because of(1,1)
R2={(1,2),(1,3),(2,3)} is an asymmetric relation
• 7. Identity Relation: Identity relation I on set A is reflexive, transitive
and symmetric. So identity relation I is an Equivalence Relation.
•A B A B
•
A
1
A 1
B
2
B 2
C
3
3
D
Domain, Co-Domain, and Range of a Function:
• Domain of a Function: Let f be a function from P to Q. The set P is
called the domain of the function f.
• Co-Domain of a Function: Let f be a function from P to Q. The set Q is
called Co-domain of the function f.
• Range of a Function: The range of a function is the set of picture of its
domain. In other words, we can say it is a subset of its co-domain. It is
denoted as f (domain).
• If f: P → Q, then f (P) = {f(x): x ∈ P} = {y: y ∈ Q | ∃ x ∈ P, such that f (x) =
y}.
• Image of a Function: If(a,b) ∈ f, then f(a) =b, so ‘b’ is called the image
of ‘a’
• Pre-image of a Function: ‘a’ is called pre-image of ‘b’
Example: Find the Domain, Co-Domain, and Range of function .
Let x = {1, 2, 3, 4}
y = {a, b, c, d, e}
f = {(1, b), (2, a), (3, d), (4, c)
Solution:
Domain of function: {1, 2, 3, 4}
Range of function: {a, b, c, d}
Co-Domain of function: {a, b, c, d, e}
Pre-image: {1,2,3,4} and Image : { 1a,b,c,d}
Representation of a Function
• The two sets P and Q are represented by two circles. The function f: P
→ Q is represented by a collection of arrows joining the points which
represent the elements of P and corresponds elements of Q
• Example1:
1.Let X = {a, b, c} and Y = {x, y, z} and f: X → Y such that
2. f= {(a, x), (b, z), (c, x)}
• Then f can be represented diagrammatically as follows
• Example2: Let X = {x, y, z, k} and Y = {1, 2, 3, 4}. Determine which of the
following functions. Give reasons if it is not. Find range if it is a function.
1.f = {(x, 1), (y, 2), (z, 3), (k, 4)
2.g = {(x, 1), (y, 1), (k, 4)
3.h = {(x, 1), (x, 2), (x, 3), (x, 4)
4.l = {(x, 1), (y, 1), (z, 1), (k, 1)}
5.d = {(x, 1), (y, 2), (y, 3), (z, 4), (z, 4)}.
• Solution:
1.It is a function. Range (f) = {1, 2, 3, 4}
2.It is not a function because every element of X does not relate with some
element of Y i.e., Z is not related with any element of Y.
3.h is not a function because h (x) = {1, 2, 3, 4} i.e., element x has more
than one image in set Y.
4.d is not a function because d (y) = {2, 3} i.e., element y has more than
image in set Y
Types of Functions
• 1. Injective (One-to-One) Functions: A function ’f’ from set ‘A’ to set ‘B’
is one to one if no two elements in ‘A’ are mapped to same elements in
‘B’
• Note: x=y
• x<=y
• 2. Surjective (Onto) Functions: A function ‘f’ from set ‘A’ to set ‘B’ is
Onto if each elements in ‘B’ are mapped to atleast one element of’A’
• It is a Surjective Function, as every element of B is the image of some A
• Note: a=b or a<=b
In an Onto Function, Range is equal to Co-Domain.
•
• Example: Consider, A = {1, 2, 3, 4}, B = {a, b, c} and f = {(1, b), (2, a), (3,
c), (4, c)}.
• 3. Bijective (One-to-One Onto) Functions: A function which is both
injective (one to - one) and surjective (onto) is called bijective (One-to-
One Onto) Function.
• Note: |A|=|B|
Example:
• Example: Let A={1,2,3}, B={s,t} and C={x,y} and f: A-->B,defined as f(1)=s,f(2)=s,f(3)=t and g:B-->C is defined as
g(s)=x,g(t)=y,
• then, gof: A-->C is defined by
•
• (gof) (1) = g(f(1)) = g(s) =x
• (gof) (2) = g(f(2)) = g(s) =x
• (gof) (3) = g(f(3)) = g(t) =y
• The composition of functions f(x) and g(x) where g(x) is acting first is represented by f(g(x)) or (f ∘
g)(x). It combines two or more functions to result in another function. In the composition of functions,
the output of one function that is inside the parenthesis becomes the input of the outside function. i.e.,
• In f(g(x)), g(x) is the input of f(x).
• In g(f(x)), f(x) is the input of g(x).
• We can understand this using the following figure:
•
• i.e., to find f(g(x)) (which is read as "f of g of x"), we have to find g(x) first
and then we substitute the result in f(x).
• Symbol of Composition of Functions
• The symbol of the composition of functions is ∘. It can also be
shown without using this symbol but by using the brackets. i.e.,
• (f ∘ g)(x) = f(g(x)) and is read as "f of g of x". Here, g is the inner
function and f is the outer function.
• (g ∘ f)(x) = g(f(x)) and is read as "g of f of x". Here, f is the inner
function and g is the outer function.
• Notes:
• 1) f: A →B g: B →C
• Range of f ⊆ Dom of g (for g o f)
• Solution:
• for f o f(x) =f (f(x))
• = f(x^2 -3x+2) let X
• X^2 -3X+2
• (x^2-3x+2)^2-3(x^2-3x+2)+2
• f o f(x) = x^4 -6x^3 +10x^2-3x
Consider the function f(x) = 2x-3. Find a formula for the composition functions
(i) 𝑓 2 = 𝑓 𝑜 𝑓 𝑎𝑛𝑑
(ii) ) 𝑓 3 = 𝑓 𝑜 𝑓 𝑜 𝑓
• Soln:
• (i) (f o f) (x) = f (f(x))
• = f(2x-3)
• = 2(2x-3)-3
• = 4x-6-3
• = 4x-9
• (i) (f o f o f) (x) = f (f(f(x)) )
• = f(f(2x-3)) = f(4x-9)
• = 2(4x -9)-3
• = 8x-18-3
• = 8x-21
Consider the function f(x) = 2x-3 and g(x) = x^2 + 3x + 5. Find a formula for the composition function
(i) g o f
(ii) f o g
• Soln:
• (i) g o f(x) = g(f(x))
• = g(2x-3)
• = (2x-3)^2 +3(2x-3)+5
• = 4x^2 -12x +9 + 6x -9 +5
• = 4x^2 -6x +5
• (ii) f o g(x) = f(g(x))
• = f(x^2 +3x +5)
• = 2 (x^2 +3x +5) -3
• = 2x^2 +6x +10 -3
• = 2x^2 + 6x + 7
Identity Functions
• The function f is called the identity function if each element of set A has
an image on itself i.e. f (a) = a ∀ a ∈ A.
• It is denoted by I.
• Example: Consider, A = {1, 2, 3, 4, 5} and f: A → A such that
1. f = {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)}.
• The function f is an identity function as each element of A is mapped
onto itself. The function f is a one-one and onto
Invertible (Inverse) Functions
• A function f: X → Y is invertible if and only if it is a bijective function.
• Consider the bijective (one to one onto) function f: X → Y. As f is a one to one, therefore, each
element of X corresponds to a distinct element of Y. As f is onto, there is no element of Y which is not
the image of any element of X, i.e., range = co-domain Y.
• The inverse function for f exists if f-1 is a function from Y to X.
• Example: Consider, X = {1, 2, 3}
1. Y = {k, l, m} and f: X→Y such that
2. f = {(1, k), (2, m), (3, l)
• The inverse function of f is shown in fig:
•