Set and Relations
Set and Relations
Set and Relations
For example:
A-The natural number is a set and writes N={1,2,3,….}
B-The real numbers between 1 and 0 are set and written {x: 1 < x < 0}
C-( A university student over twenty years old )is a set .
D-(reddish colors) This is not a set as color selection here is a matter of discretion.
E- “Tall students” This is not a set , since we did not specify the height that if a
person exceeds it, he is considered tall.
symbols of set and elements
Example: S = {1, 2, 3}
then 3 ∈ S and 4 ∉ S.
Representation of sets:
1-Tabulation method:
Examples:
1- A={a, b, c, h, e }
2- N={1, 2, 3, 4,……. }
2 -Rule method:
Examples:
A ={ x: x∈ N, 3≤ x< 11 }={3,4,5,6,7,8,9,10}
For two sets A and B we say that A is a subset of B if each element of A is also an element of B .
In formal notation A ⊂ B if for all x∈A we have x ∈ B .
Example
If A = {a, b, c} then A has eight different subsets:
∅ {a} {b} {c} {a, b, c}
{a, b} {a, c} {b, c}
Notice :that A ⊂ A and in fact each set is a subset of itself.
The empty set ∅ is a subset of every set .
B = {1,2} , A = {1,2,3,4}
B⊂A
A⊄B
Equality of sets
Two sets are equal if and only if each is a subset of the other. In symbolic
notation:
(A = B) ⇔ (A ⊂ B) ∧ (B ⊂ A)
{ a, b, c, d, e ,f } = { f, a, d ,b ,e ,c }
The empty Set
The empty set is a set containing no objects. It is written as a pair of curly braces
with nothing inside {} or by using the symbol ∅.
Example
•The set of odd numbers that is divisible by 2 is an empty set.
•The group of university students under the age of 12 is an empty set.
Theory
An empty group is a subset of any empty set
The universal set
The universal set is the set of all possible elements.
For example:
❑If we want to talk about the faculties of a particular university, the university is
the universal set, while the faculties are considered a subset set. For example,
theoretical colleges are a set, practical colleges are a set, and colleges whose
students exceed a certain number are a third set.
❑Example of odd numbers, even numbers, prime numbers, and numbers that are
divisible by a certain number, so the universal set is the set of natural numbers
N= {1,2,3,4,…..}
➢ The universal set is usually denoted by the symbol S
Operations on sets:
A ∪ B={x: x ∈A or x ∈B}
The solution:
A ∪ B={1,2,3,4,5,}
The Intersection
The intersection of two sets A and B is the collection of all elements that are in
both sets. It is written A ∩ B. Using curly brace notation
A = {6, 8, 10, 12, 14, 16}, B = {9, 12, 15, 18, 21, 24} The intersection of these 2 sets can be expressed as,
A ∩ B Let us identify the common elements of the given sets.
The solution:
A ∩ B = {12}
Example (3) :
A∩B=φ
Example (4):
A ∩ B ={2,4,6,8,10,12,14,16,18}∩{3,6,9,12,15,18} = {6,12,18}
The Difference:
The difference of two sets A and B is the collection of objects in
A that are not in B . The difference is written A – B In curly brace
notation.
A – B= {x: x ∈A and x ∉B}
A − B = {x : (x ∈ A) ∧ (x ∉ B )}
Solution:
A− B= { 1,3,5,7}
B− A= { 2,4,6,8 }
Exampl (2)
If A = {2,5,6,7,10} and B = {2,5,8,9,10}, then find A – B and B – A.
Solution:
Given,
A = {2,5,6,7,10}
B = {2,5,8,9,10}
A – B = {6,7} since the elements 6, 7 are there in A but not in B.
Similarly, B – A = {8,9}, since the elements 8 and 9 belong to B and not to A.
Also, we can show that A – B ≠ B – A.
Symmetric Difference:
The symmetric difference of two sets A and B is the set of elements that are in one and only
one of the sets. The symmetric difference is written A ∆ B. In curly brace notation:
A ∆ B={(A − B ) ∪ (B − A)}
Example:
Suppose A={1,3,5,7,9} and B={2,4,6,8,9}
Find A ∆ B and B ∆ A .
Solution:
A ∆ B={1,3,5,7, 2,4,6,8, }
B ∆ A ={1,3,5,7, 2,4,6,8, }
The complement
The compliment of a set B is the collection of elements in the universal set that
are not in B. The compliment is written . In curly brace notation
B’= {x : (x ∈ S) ∧ (x ∉ B)} OR B’ = S -B
Venn Diagrams:
A Venn diagram is a way of depicting the relationship
between sets. Each set is shown as a circle and circles
overlap if the sets intersect.
Example :
The following are Venn diagrams for the intersection and
union of two sets. The shaded parts of the diagrams are the
intersections and unions respectively.