In set theory, one of the most fundamental operations is the union of sets. It is used to combine elements from multiple sets into a single set.
The union operation is widely applied in:
The union of two sets A and B is the set of all elements that belong to A, or B, or both.
A ∪ B = { x | x ∈ A or x ∈ B }
∪Let:
A = {1, 2, 3}
B = {3, 4, 5}
Then:
A ∪ B = {1, 2, 3, 4, 5}
✔ Note:
3 appears only onceA = {1, 2}
B = {3, 4}
A ∪ B = {1, 2, 3, 4}
✔ Since sets are disjoint, all elements are simply combined
A ∪ B = B ∪ A
(A ∪ B) ∪ C = A ∪ (B ∪ C)
A ∪ ∅ = A
A ∪ A = A
A ∪ U = U
Where U is the universal set.
A ∪ A' = U
✔ Union of a set and its complement gives the universal set
Number of elements in union:
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
A = {1, 2, 3}
B = {3, 4}
n(A ∪ B) = 3 + 2 − 1 = 4
Union is written as A ∪ B
Includes elements in A, B, or both
Follows important laws:
Cardinality formula:
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)