DeMorgan’s laws involve the complement of the union of sets or the complement of the intersection of sets.
Complement of the union of sets
Let’s investigate the union of two arbitrary sets, A and B. If we want to compute the complement of this union, that is, (A∪B), its intuitive to explore if it can be computed by taking the union of A and B, that is, (A∪B)=?A∪B. We can delve into this further with the following example.
Let’s assume that U={0,1,2,3,4,5,6,7,8,9}, A={2,4,6}, and B={1,3,5,7}. From this we can derive the following:
A={0,1,3,5,7,8,9}
B={0,2,4,6,8,9}
A∪B={1,2,3,4,5,6,7}
(A∪B)={0,8,9}
A∪B={0,1,2,3,4,5,6,7,8,9}
Therefore, we can conclude that (A∪B)=A∪B.
Here, DeMorgan’s first law can help us find a solution. According to DeMorgan’s first law, considering that A and B are arbitrary sets, (A∪B)=A∩B.
Let’s see the argument for why this is true. We first show that (A∪B)⊆(A∩B).