Professional Documents
Culture Documents
GROUP “C”
Faheem Saeed
Roll No.101
BS IT 2nd (eve)
Q1:What is a Relation?
A relation is a relationship between sets of values. The relation is between the x-
values and y-values of ordered pairs.
The set of all x-values is called the domain, and the set of all y-values is called the
range.
Q2:Example of relations on sets
For Example;
• The first elements in the ordered pairs (the x-values), form the domain & The
second elements in the ordered pairs (the y-values), form the range. Only the
elements "used" by the relation constitute the range.
• This mapping shows a relation from set A into set B. This relation consists of the
ordered pairs ;
• (1,2), (3,2), (5,7), and (9,8).
• The domain is the set {1, 3, 5, 9}.
• The range is the set {2, 7, 8}.
• (Notice that 3, 5 and 6 are not part of the range.)
• The range is the dependent variable.
Q3:PROPERTIES OF RELATION
We will now look at some useful ways to classify relations.
A: Reflexive Relation
•A relation R in a set A is called reflexive if and only if for each element if a A,
(a, a)R .
Example :
C:Transitive Relation
It is Reflexive….. Yes
It is Symmetric ….No… Because (1, 3) exists and (3,1) is not exists.
It is Transitive….Yes
It is Anti symmetric …..Yes
• WHY IN BELOW SLIDE NO 19 CERTAIN FUNCTIONS ARE VALID ONTO AND WHILE OTHERS ARE
INVALID..EXPLAIN EACH.
Types of relations
One- to - one many –to - one
One- to - many
SPOT THE DIFFERENCE
FUNCTIONS NOT a FUNCTION/S
One- to - one
One- to - many
TO BE A FUNCTION OR NOT TO BE A FUNCTION
(4,12) (4,12)
(5,15) (4,15)
(6,18) (5,18)
(7,21) (5,21)
(8,24) (6,24)
Function Not a Function
10 2 10 2
3 3 3 3
4 4 5 4
7 8 7 7
5 2 5
Function Not a Function
-3 -6 -3 -6
-2 -1 -2 -1
-1 -0 -1 -0
0 3 0 3
1 15 1 15
Q6:TYPES OF FUNCTION:
• ONE TO ONE CORRESPONDENCE/BIJECTIVE FUNCTION:
• In mathematics, a bijection, bijective function or one-to-one correspondence is
a function between the elements of two sets, where each element of one set is
paired with exactly one element of the other set, and each element of the other
set is paired with exactly one element of the first set.
A bijective function, f: X → Y,
where set X is {1, 2, 3, 4} and
set Y is {A, B, C, D}. For
example, f(1) = D.
First Set: Domain( Second Set:
2nd Semester’s Correspondence: Range(set of positive
students) Each student’s Roll No. integers)
Faheem
101
Ahsan
114
Ahmad
119
Q6:TYPES OF FUNCTION:
• INVERSE FUNCTION :
• An inverse function is a function that "reverses" another function: if the
function f applied to an input x gives a result of y, then applying its inverse
function g to y gives the result x, and vice versa. I.E., F(x) = y if and only if g(y) = x.
EVERY FUNCTION IS A RELATION BUT ALL
RELATION ARE NOT FUNCTION
• f ( A ) = f ( a ) |a A = Range of f.
f ( A ) B.
Q7.DOMAIN, CODOMAIN, RANGE,
IMAGE & PREIMAGE OF A FUNCTION
For example:
A = {1,2}; B = {3,4}
A × B = {1,2} × {3,4} = {(1,3), (1,4), (2,3), (2,4)}
B × A = {3,4} × {1,2} = {(3,1), (3,2), (4,1), (4,2)}
A = B = {1,2}
A × B = B × A = {1,2} × {1,2} = {(1,1), (1,2), (2,1), (2,2)}
A = {1,2}; B = ∅
A × B = {1,2} × ∅ = ∅
B × A = ∅ × {1,2} = ∅
SELF QUIZ