Operations Examples
Basic Set Operations
1. Union (A ∪ B)
The union of two sets and is the set of all elements that are in OR OR both.
Example:
A = {1, 2, 3}, B = {3, 4, 5}
2. Intersection (A ∩ B)
The intersection is the set of elements common to both AND .
Example:
A = {1, 2, 3}B = {3, 4, 5}
3. Difference (A - B)
The difference is the set of elements in but not in .
Example:
A = {1, 2, 3}, B = {3, 4, 5}
4. Symmetric Difference (A △ B)
The symmetric difference is the set of elements in either or , but not in both.
Example:
A = {1, 2, 3}, B = {3, 4, 5}
5. Complement (A′ or Aᶜ)
The complement of is the set of all elements not in , relative to a universal set .
Example:
Let U = {1, 2, 3, 4, 5},
6. Subsets
A set is a subset of () if every element of is also in .
Example:
,
7. Powerset (P(A))
The powerset of is the set of all subsets of .
Example:
Each operation helps us analyze relationships between sets, such as finding common elements (intersection), combining sets (union), or exploring all possible groupings (powerset).