A set is a collection of distinct elements. For example, the set of natural numbers less than 5 can be written as:
A={0,1,2,3,4}
Universal Set
A universal set U is a set that contains all the objects under consideration. For example, if we are discussing the set of all integers, then:
U=Z
where Z represents the set of all integers.
Subset
A subset is a set where all its elements are also contained within another set. For example, if:
A={1,2,3}
then:
B={1,2}
is a subset of A, which is written as:
B⊆A
Unions of Sets
The union of two sets A and B is a set containing all elements that are in either A, B, or both. For example:
A={1,2,3}B={3,4,5}
The union of A and B is:
A∪B={1,2,3,4,5}
Intersection
The intersection of two sets A and B is a set containing all elements that are common to both A and B. For example:
A={1,2,3}B={2,3,4}
The intersection of A and B is:
A∩B={2,3}
Set Difference
Let A and B Be two sets. They are non empty. Then the Symmetric difference is defined as
A−B={x∣x∈A and x∈/B} Similarly, the set difference between B and A is: B−A={x∣x∈B and x∈/A}
Symmetric Difference
Let A and B be two non empty sets. Then the symmetric difference between A and B will be.
A⊕B={x∣x∈Aorx∈B}
Mathematically it can be represented with.
A⊕B=(A−B)∪(B−A)
Or
A⊕B=(A∪B)−(A∩B)
Powersets
The power set of a set ( S ) is the set of all possible subsets of ( S ), including the empty set and ( S ) itself. It is denoted by ( \mathcal{P}(S) ) or ( 2^S ).
Definition
If ( S ) is a set, then the power set of ( S ) is defined as:
P(S)={T∣T⊆S}
This means that ( \mathcal{P}(S) ) contains every subset ( T ) such that ( T ) is a subset of ( S ).
Example
Let ( S = {a, b} ). The power set of ( S ) is:
P(S)={∅,{a},{b},{a,b}}
Properties
Cardinality: The number of elements in the power set is ( 2^n ), where ( n ) is the number of elements in ( S ). For instance, if ( S ) has 2 elements, the power set will have ( 2^2 = 4 ) elements.
Inclusion: The empty set ( \emptyset ) and the set ( S ) itself are always included in the power set.
Subset Relationship: Every subset of ( S ) is an element of ( \mathcal{P}(S) ).
LaTeX Representation
In LaTeX, the power set is represented as:
\documentclass{article}\usepackage{amsmath}\begin{document}The power set of a set \( S \) is defined as:$$\mathcal{P}(S) = \{ T \mid T \subseteq S \}$$For example, if \( S = \{a, b\} \), then:$$\mathcal{P}(S) = \{ \emptyset, \{a\}, \{b\}, \{a, b\} \}$$If a set \( S \) has \( n \) elements, then the power set \( \mathcal{P}(S) \) has \( 2^n \) elements.\end{document}
Cardinality of a Set
The cardinality of a set refers to the number of elements in the set. For a finite set, this is simply the count of elements within the set. The cardinality of a set ( A ) is denoted by ( |A| ).
Example
For a set ( A ) defined as:
A={1,2,3}
The cardinality of ( A ) is:
∣A∣=3
This indicates that the set ( A ) contains 3 elements.
Partition
Let S be a non-empty set. A partition of S refers to the division of S into disjoint subsets such that the union of these subsets reconstructs the original set S.
In other words, a partition of S is a collection of non-empty subsets {S1,S2,…,Sn} such that:
Si∩Sj=∅ for all i=j (the subsets are pairwise disjoint).
⋃i=1nSi=S (the union of all subsets equals the original set S).
Example
Consider the set S={1,2,3,4}. One possible partition of S is:
{{1,2},{3,4}}
Here, the subsets {1,2} and {3,4} are disjoint and their union is S:
{1,2}∪{3,4}={1,2,3,4}=S
Properties of Sets
Idempotent Laws
For any set A:
A∪A=AA∩A=A
Domination Laws
For any set A and the universal set U:
A∪U=UA∩U=AA∪∅=AA∩∅=∅
Complement Laws
For any set A and its complement Ac:
A∪Ac=UA∩Ac=∅
De Morgan’s Laws
For any sets A and B:
(A∪B)c=Ac∩Bc(A∩B)c=Ac∪Bc
Distributive Laws
For any sets A, B, and C:
A∪(B∩C)=(A∪B)∩(A∪C)A∩(B∪C)=(A∩B)∪(A∩C)
Associative Laws
For any sets A, B, and C:
(A∪B)∪C=A∪(B∪C)(A∩B)∩C=A∩(B∩C)
Commutative Laws
For any sets A and B:
A∪B=B∪AA∩B=B∩A
Cartesian Product
The Cartesian product of two sets is a fundamental concept in set theory and mathematics. It refers to the set of all possible ordered pairs that can be formed by taking one element from each of the sets.
Definition
If A and B are two sets, then the Cartesian product of A and B, denoted by A×B, is defined as:
A×B={(a,b)∣a∈A and b∈B}
Here, (a,b) represents an ordered pair where a is an element from set A and b is an element from set B.
Example
Consider the sets A={1,2} and B={x,y}. The Cartesian product A×B is:
A×B={(1,x),(1,y),(2,x),(2,y)}
In this example, we form ordered pairs by pairing each element of A with each element of B.
Properties
Order Matters: The Cartesian product A×B is not the same as B×A. For example, A×B contains pairs where the first element is from A and the second is from B, while B×A contains pairs where the first element is from B and the second is from A.
Empty Set: If either A or B is an empty set, then their Cartesian product will also be empty. For instance, if A=∅, then A×B=∅ for any set B.
Associativity: The Cartesian product is associative, meaning that for three sets A, B, and C, the following holds:
(A×B)×C=A×(B×C)
However, the interpretation of the pairs differs.
Number of Elements: If A has m elements and B has n elements, then A×B will have m×n elements.
LaTeX Representation
In LaTeX, the Cartesian product is represented as:
\documentclass{article}\usepackage{amsmath}\begin{document}The Cartesian product of two sets \( A \) and \( B \) is defined as:$$A \times B = \{ (a, b) \mid a \in A \text{ and } b \in B \}$$For example, if \( A = \{1, 2\} \) and \( B = \{x, y\} \), then:$$A \times B = \{ (1, x), (1, y), (2, x), (2, y) \}$$\end{document}## References