Set, Relations and Function - Basics
Set, Relations and Function - Basics
NDA
Set - well-defined collection of objects
Representation of a Set
Types of Sets
Empty of Null Set
A set consisting of no element is called the empty set or null set or void set.
Symbol - ∅ or { }.
Important Notes of Empty Set
Empty Set is also a Finite Set
Singleton Set
A set which has only one element
Equivalent Sets (A ≈ B )
Two finite sets A and B are said to be equivalent if they contain the same number of
elements.
If A and B are equivalent sets , then n(A) = n(B)
Condition for a equivalent Set: n(A) = n(B)
Subset A ⊆ B
If every element of A is also an element of B, then A is called a subset of B then, A ⊆ B.
Condition for the two sets A and B is to be a Subset: n(A) ≤ n(B)
Proper Subset A ⊂ B
If A is a subset of B and A≠B, then A is called a proper subset of B and we write A ⊂ B
Disjoint Set - A ∩ B = ∅
Addition: A ∪ B = B ∪ A and A ∩ B = B ∩ A
Commutative Property
Addition: A ∪ (B ∪ C) = (A ∪ B) ∪ C and A ∩ (B ∩ C) = (A ∩ B) ∩ C
Associative Property
U′ = ∅
(A′)′ = A
∅′ = U
Union of a Set
A∪ A = A
Important Facts;
A∪ ∅ = A
A ∪ U = U where A is any subset of universal set U
A ⊆ A ∪ B and B ⊆ A ∪ B
A ∪ B = B ∪ A (union of two sets is commutative)
Intersection of a set
Important Facts;
A∩∅ = ∅
A∩A = A
A ∩ B ⊆ A and A ∩ B ⊆ B
A ∩ U = A where A is any subset of universal set U
Difference of Set
Important Facts;
A′ = U – A
A–A=∅
A – B = A ∩ B′
Elementary mathematics –Set, Relations and Functions
NDA
A–∅=A
A – B = A and B – A = B if A ∩ B = ∅
A–B=B–A +A=B
AΔA=∅
Important Facts;
A Δ B = {x : x ∈ A ∪ B and x ∉ A ∩ B}
AΔB = BΔA
A Δ B = (A ∪ B) – (A ∩ B)
B ⊂ A, then A ∪ B = A and A ∩ B = B
Common facts of a Set
If A = B then, A ∪ B = A ∩ B
Let n(A) = p and n(B) = q then
Minimum of n(A∪B) = max {p, q}
Maximum of n(A∪B) = p + q
Minimum of n(A∩B) = 0
Maximum of n(A∩B) = min{p, q}
---------------------------------------
De Morgan’s Laws of Difference
A – (B ∪ C) = (A – B) ∩ (A – C)
A – (B ∩ C) = (A – B) ∪ (A – C)
(A ∪ B)’ = A’ ∪ B’
De Morgan’s Law of complementation
(A ∩ B)’ = A’ ∩ B’
n(A ∪ B ∪ C)
Elementary mathematics –Set, Relations and Functions
NDA
Cartesian Product (A × B)
Set of all possible ordered pairs between the elements of A and B such that the first
coordinate is an element of A and the second coordinate is an element of B. It is also
called Cross Product.
Note;
Domain of R ⊆ A
Co-domain of R = B
Range of R ⊆ B .
f n(A ) = p , n(B) = q , then the total number of relations that exist from A to B is
2pq .
Function: A relation f between two non-empty sets X and Y is called a function from X
to Y if, for each x ∈ X there exists only one y ∈ Y such that (x, y) ∈ f . That is,
f ={(x,y)| for all x ∈ X, y ∈Y }.
Domain: X
Co-Domain: Y
If f (a) = b, then b is called ‘image’ of a under f and a is called a ‘pre-image’ of b
Range: The set of all images of the elements of X under the function
Note;
f X: Y is a function only if , every element in the domain of f has an image and the
image is unique.
If A and B are finite sets such that n(A) = p , n(B) = q then the total number of
functions that exist from A to B is q power p.
All the elements of a function should have images but, all the elements of a
relation is not necessary to have images like functions.
Elementary mathematics –Set, Relations and Functions
NDA
Representation of a function
Set of ordered Pairs - f (x) = { (x,y) | y = (f x), x ∈ A }
Table Form
x 1 ……..
F(x) a ……..
Arrow Diagram
Graph
Types of Functions;
One to One Function -
Distinct elements of A have distinct images in B. It is also called as Injection
Onto Function -
The range of f is equal to the co-domain of f. It is also called Surjection
Note: Range of f is its Co-domain ( = B) .
Elementary mathematics –Set, Relations and Functions
NDA
Into Function -
At least one of the element in B which is not the image of any element of A.
Note: Range of f is proper subset of co-domain (⊂ B)
A one – one and onto function is also called a one – one correspondence.
Bijection -
If a function is both onto and one-one then, it is called Bijection
Condition: n(A) = n(B)
Identity Function -
The function f A: --- B, where B = A
Note: Identity function is a one to one function
Elementary mathematics –Set, Relations and Functions
NDA
Real Valued Function -
Range of f is a subset of the set of all real numbers ∈ R
Composition of Functions
Let, f A: B and g B: C be two functions then, the composition of f and g denoted by
g o f (x) = g ( f(x) ) x ∈ A
Cryptography