# DeMorgan’s Laws – Explanation and Examples

In set theory, there exists a wide variety of sets. Some of the common types of sets discussed in our previous lessons include finite sets, infinite sets, universal sets, equal sets, and null sets. We also studied multiple set operations in-depth, including set union, set intersection, and set complement.

In set theory, apart from set operations and set types, some certified set laws exist which simplify the set operations. These laws are termed as DeMorgan’s laws.

Before diving into the concept of DeMorgan’s laws, we recommend you to go through our previous lectures first to solidify your concepts of the set union, set intersection, and set complement.

• What are DeMorgan’s laws?
• Recap of the set union.
• Recap of set intersection.
• Recap of set complement.
• Proof of DeMorgan’s laws.
• How to use DeMorgan’s laws?
• Examples.
• Practice problems.

Before moving forward, you may consider refreshing your knowledge on the following prerequisites:

## What are DeMorgan’s Laws?

As mentioned above, set theory is an amalgam of set operations and set types. The understanding of these multiple set operations and their inter-relationship can be quite intimidating for young mathematics enthusiasts. Therefore, to better understand and simplify the relationships between multiple set operations, DeMorgan’s laws are considered the best tools.

DeMorgan’s laws depict the relationship between the three fundamental set operations: the set union, set intersection, and the set complement. Depending on the inter-relationship between the set union and set intersection, two kinds of DeMorgan’s laws exist in set theory.

These laws are explained below.

#### Type 1 DeMorgan’s Law:

Type 1 DeMorgan’s law states that the complement of the union of any two sets say A and B, is equal to the intersection of their complements.

This type of DeMorgan’s law inter-relates any two sets’ union with their intersection via set complement operation. Consider any two finite sets, A and B. We can portray the relationship between the union and the intersection of these two sets A and B through the type 1 DeMorgan’s law, whose mathematical form is given below:

(A U B)’ = A’ ∩ B’

#### Type 2 DeMorgan’s Law:

The second type of DeMorgan’s law states that the complement of the intersection of any two sets says A and B, is equal to the union of their complements.

Type 2 DeMorgan’s law is opposed to the type 1 law. This law depicts the inter-relationship between the intersection and union of any two sets through set complement operation. Consider any two finite sets, namely A and B. Their intersection can be related to their union via the second type of DeMorgan’s law. The mathematical form of this type of law is given below:

(A ∩ B)’ = A’ U B.’

Before we delve into the proofs and examples of DeMorgan’s laws, let’s do a quick revision of the fundamental set operations.

## Recap of the Set Union

Although we have covered the set union’s topic in great detail in our previous lessons, here’s a quick recap of the set union to save you from any trouble.

The union of any two sets, say A and B, is a joint set containing the elements present in both A and B. The mathematical form of the set union in set theory is given below:

A U B

The union between any two sets is indicated by the symbol ‘U’. The concept of union is restricted to two sets and can also be extended to multiple sets joined by the symbol of union. The mathematical form of the union of multiple sets is given below:

A U B U C U D…

We can express the union between any two sets in pictorial form with Venn Diagrams’ aid. The union between any two sets, say A and B, is portrayed by shading the entire region of sets A and B. The Venn diagram for the union set operation between two sets A and B is given below:

Let’s solve an example to strengthen our concept of the set union.

Example 1

Consider the following two sets:

A = {5, 10, 15, 20}

B = {10, 20, 30, 40}

Find their union and draw the respective Venn diagram.

Solution

The union between the two sets A and B is given as:

A U B

The union is given as:

A U B = {5, 10, 15, 20} U {10, 20, 30, 40}

A U B = {5, 10, 15, 20, 30, 40}

This is the union of the two sets A and B.

The Venn diagram representation of their union is shown below:

The entire shaded region shows the union of the two sets, A and B.

## Recap of the Set Intersection

Much like the set union, we have also covered the topic of set intersection in great depth in our previous lessons. However, in this article, we will only be focussing on the quick recap of set intersection.

The intersection of any two sets, say A and B, are the common elements in both sets A and B. The mathematical form of the intersection between two sets, A and B, is given below:

A ∩ B

The intersection between two sets is opposite to the union. The union between the sets concentrates on both sets’ joint elements, but the intersection, on the other hand, is restricted to only the common elements between the sets.

The symbol of intersection in set theory is given as ‘∩’. The intersection operation is not only limited to two sets but can also be extended to multiple sets. The intersection between multiple sets is given as:

A ∩ B ∩ C ∩ D…

The intersection between any two sets, namely A and B, is depicted through Venn diagrams. The intersection between sets A and B is portrayed through the shaded region shared by the two sets A and B. The Venn diagram for the intersection operation is given below:

Let’s solve the same example to solidify our concept of set intersection.

Example 2

Consider the following two sets:

A = {5, 10, 15, 20}

B = {10, 20, 30, 40}

Find their intersection and draw the respective Venn diagram.

Solution

The intersection between two sets A and B is given as:

A ∩ B

The intersection is given as:

A ∩ B = {5, 10, 15, 20} ∩ {10, 20, 30, 40}

A ∩ B = {10, 20}

This shows the intersection between the two sets, A and B.

The Venn diagram representation of their intersection is given below:

The shaded region shows the intersection of the two sets, A and B.

## Recap of the Set Complement

The complement of a set is another vital set operation whose understanding is mandatory to understand the concept of DeMorgan’s laws. As we have extensively covered this topic before, we will only dive into the quick recap of this article’s set complement.

The complement of the set, let’s assume a set A, is defined as the difference between the universal set and the set A itself.

In the set theory realm, the universal set is the fundamental parent set, and all the other sets are the subsets of the universal set. The common notation for the universal set is denoted by the symbol ‘U’.

The difference between sets works like the mathematical operation of subtraction. The difference between any two sets, say A and B, is denoted by the subtraction sign. The mathematical expression of difference is given below:

A − B

Coming back to the definition of the set’s complement, it is the difference between the universal set and the set itself. It is denoted either by the symbol ( ‘ ). The mathematical expression for the complement of the set is given as:

A’ = U − A

We can also denote the complement of the set through the Venn diagram. The rectangular region shows the universal set U and the circular region shows the set A. The shaded region indicates the complement of A. The Venn diagram of the complement of a set is shown below:

Let’s solve an example to solidify the concept of the complement of a set.

Example 3

Find the complement of a set A = {5, 10, 15, 20} where the universal set is U = {x:x is a multiple of 5 and x<100}. Show the complement through the Venn diagram.

Solution

To solve this, let’s first simplify the sets. We can simplify the universal set as:

U = {5, 10, 15, 20, 25, …, 100}

The complement of the set A is given as:

A’ = U − A

A’ = {5, 10, 15, 20, 25, …, 100} − {5, 10, 15, 20}

A’ = {25, 30, 35, 40, …, 100}

Where A’ denoted the complement of A.

The Venn diagram for the complement of the set is given as:

The shaded region indicates the complement of A.

Now that we have revised our concepts of the set union, set intersection, and the set complement, let’s move onto the proofs of DeMorgan’s laws.

## Proof of the DeMorgan’s Laws

DeMorgan’s laws form the foundation of the inter-relation amongst the set operations in set theory. As stated above, the set operations involved in DeMorgan’s laws include union, intersection, and complement, so understanding these three set operations in a single mathematical statement can be overwhelming for the young mathematics fanatics. Therefore, it is necessary to evaluate these laws’ proofs for their ease and for developing a simplified understanding of DeMorgan’s laws.

Earlier, we divided DeMorgan’s laws into two types based on the inter-relation of union and intersection or vice versa. An easier approach for understanding the proofs is to evaluate the proofs individually for both the types of DeMorgan’s laws. That being said, let’s get right to the proofs.

There are two approaches to proving DeMorgan’s laws. One of them is the mathematical approach, and the other is the Venn Diagram approach. We will be evaluating the proofs of DeMorgan’s laws through both these approaches.

### Proof of Type 1 of DeMorgan’s Law

Type 1 of DeMorgan’s law depicts the inter-relation between the union of any two sets with their intersection through set complement operation. Type 1 states that the complement of the union of any two sets, namely A and B, is equal to the intersection of their complements.

The mathematical expression for the type 1 of DeMorgan’s law is given as:

(A U B)’ = A’ ∩ B.’

We will evaluate the proof through both the mathematical approach and the Venn diagram approach. Let’s first assess the proof through the mathematical approach.

#### Mathematical Approach:

For the mathematical approach, we will first consider the left-hand side, which is:

(A U B)’

Firstly, we will assume that there exists an element z in (A U B)’.

Mathematically, we can state this assumption as:

z ∈ (A U B)’

Based on the above assumption, we can state the following relations for the element z:

z ∉ (A U B)

And,

z ∉ A

Also,

z ∉ B

Excluding these relations, the only possibilities that exist for the element z are: