![]() |
VOOZH | about |
De Morgan's law in set theory defines the relationship between the union, intersection, and complements of the sets, and is given for both the complement of the union and the intersection of two sets. In set theory, there are two De Morgan's Laws that are:
Let's understand these laws in detail as below:
First De Morgan's law states that "The complement of the union of two sets is equal to the intersection of the complements of each set."
Let A and B be two sets, then mathematically First De Morgan's Law is given as:
(A βͺ B)' = A' β© B'
Where
It is also called De Morgan's Law of Union.
| Step | Explanation |
|---|---|
| Step 1: State the Law | De Morgan's Law includes two parts: Β¬(A βͺ B) = Β¬A β© Β¬B and Β¬(A β© B) = Β¬A βͺ Β¬B. |
| Step 2: Choose an Element | Let's prove Β¬(A βͺ B) = Β¬A β© Β¬B. Assume an element x that is not in A βͺ B. |
| Step 3: Understand the Assumption | If x is not in A βͺ B, then x is neither in A nor in B. |
| Step 4: Apply the Definition | By the definition of complement, if x is not in A and not in B, then x is in Β¬A and in Β¬B. |
| Step 5: Conclude the Proof | Since x is in both Β¬A and Β¬B, x is in Β¬A β© Β¬B. Thus, we've shown Β¬(A βͺ B) = Β¬A β© Β¬B. |
We need to prove, (A βͺ B)' = A' β© B'
Let X = (A βͺ B)' and Y = A' β© B'
Let p be any element of X, then p β X β p β (A βͺ B)'
β p β (A βͺ B)
β p β A or p β B
β p β A' and p β B'
β p β A' β© B'
β p β Y
β΄ X β Y . . . (i)
Again, let q be any element of Y, then q β Y β q β A' β© B'
β q β A' and q β B'
β q β A and q β B
β q β (A βͺ B)
β q β (A βͺ B)'
β q β X
β΄ Y β X . . . (ii)
From (i) and (ii) X = Y
(A βͺ B)' = A' β© B'
Also Read -Proof of De-Morganβs laws in boolean algebra
Venn Diagram for (A βͺ B)'
π Venn Diagram for (A βͺ B)'Venn Diagram for A' β© B'
π Venn Diagram for A' β© B'From both Diagrams, we can clearly say,
(A βͺ B)' = A' β© B'
That is the First De Morgan's Law.
Second, De Morgan's law states that "The complement of intersection of two sets is equal to the union of the complements of each set."
Let A and B be two sets, then mathematically First De Morgan's Law is given as:
(A β© B)' = A' βͺ B'
Where
It is also called De Morgan's Law of Intersection.
Second De Morgan's law: (A β© B)' = A' βͺ B'
Let X = (A β© B)' and Y = A' βͺ B'
Let p be any element of X, then p β X β p β (A β© B)'
β p β (A β© B)
β p β A or p β B
β p β A' or p β B'
β p β A' βͺ B'
β p β Y
β΄ X β Y --------------(i)
Again, let q be any element of Y, then q β Y β q β A' βͺ B'
β q β A' or q β B'
β q β A and q β B
β q β (A β© B)
β q β (A β© B)'
β q β X
β΄ Y β X --------------(ii)
From (i) and (ii) X = Y
(A β© B)' = A' βͺ B'
Venn Diagram for (A β© B)'
π Venn Diagram for (A β© B)'Venn diagram for A' βͺ B'
π Venn diagram for A' βͺ B'From both diagrams, we can clearly say
(A β© B)' = A' βͺ B'
That is the Second De Morgan's Law.
De Morgan's Law Boolean Algebra defines the relation between the OR, AND, and the complements of variables, and is given for both the complement of AND and OR of two values. In Boolean Algebra there are two De Morgan's Laws that are:
Let's understand these laws in detail as below:
First De Morgan's law states that "The complement of OR of two or more variables is equal to the AND of the complement of each variable."
Let A and B be two variables, then mathematically First De Morgan's Law is given as:
(A + B)' = A' . B'
Where
In context to logic gates and Boolean Algebra, De Morgan's Law states that "Both the logic gate circuits i.e., NOT gate is added to the output of OR gate, and NOT gate is added to the input of AND gate, are equivalent. These two logic gate circuits are given as follows:
The truth table for first De Morgan's Law is given as follows:
A | B | A + B | (A + B)' | A' | B' | A'. B' |
|---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 1 | 0 | 1 | 0 | 0 |
1 | 0 | 1 | 0 | 0 | 1 | 0 |
1 | 1 | 1 | 0 | 0 | 0 | 0 |
Second De Morgan's law states that "The complement of AND of two or more variables is equal to the OR of the complement of each variable."
Let A and B be two variables, then mathematically Second De Morgan's Law is given as:
(A . B)' = A' + B'
Where
In context to logic gates and Boolean Algebra, De Morgan's Law states that "Both the logic gate circuits i.e., NOT gate is added to the output of AND gate, and NOT gate is added to the input of OR gate, are equivalent. These two logic gate circuits are given as follows:
The truth table for the second De Morgan's Law is given as follows:
A | B | A . B | (A. B)' | A' | B' | A' + B' |
|---|---|---|---|---|---|---|
0 | 0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 1 | 1 |
1 | 1 | 1 | 0 | 0 | 0 | 0 |
In De Morgan's law for logic the below propositions are tautology:
βΌ (a β§ b) β‘ βΌ a β¨ βΌ b
βΌ (a β¨ b) β‘ βΌ a β§ βΌ b
Where,
Let's compile all the formulas for De Morgan's Law in the following list.
For set theory:
- (A βͺ B)' = A' β© B'
- (A β© B)' = A' βͺ B'
For Boolean Algebra:
- (A + B)' = A' . B'
- (A . B)' = A' + B'
For Logic:
- βΌ (a β§ b) β‘ βΌ a β¨ βΌ b
- βΌ (a β¨ b) β‘ βΌ a β§ βΌ b
Imagine you're at a pizza party, and you're told you can choose any toppings except for both mushrooms and olives together.
Your teacher says you cannot bring books about wizards or dragons into the classroom.
Your mom says you can't play outside if it's raining and cold at the same time.
Your friend says they don't want to watch a movie that is scary or boring.
Question 1: Given that U = {2, 3, 7, 8, 9}, A = {2, 7} and B = {2, 3, 9}. Prove De Morgan's Second Law.
Solution:
U = {2, 3, 7, 8, 9}, A = {2, 7} and B = {2, 3, 9}
To Prove: (A β© B)' = A' βͺ B'
(A β© B) = {2}
(A β© B)' = U - (A β© B) = {2, 3, 7, 8, 9} - {2}
(A β© B)' = {3, 7, 8, 9}
A' = U - A = {2, 3, 7, 8, 9} - {2, 7}
A' = {3, 8, 9}
B' = U - B = {2, 3, 7, 8, 9} - {2, 3, 9}
B' = {7, 8}
A' βͺ B' = {3, 8, 9} βͺ {7, 8}
A' βͺ B' = {3, 7, 8, 9}(A β© B)' = A' βͺ B'
Question 2: Given that U = {1, 4, 6, 8, 9}, A = {1, 9} and B = {4, 6, 9}. Prove De Morgan's First Law.
Solution:
U = {1, 4, 6, 8, 9}, A = {1, 9} and B = {4, 6, 9}
To Prove: (A βͺ B)' = A' β© B'
(A βͺ B) = {1, 4, 6, 9}
(A βͺ B)' = U - (A βͺ B) = {1, 4, 6, 8, 9} - {1, 4, 6, 9}
(A βͺ B)' = {8}
A' = U - A = {1, 4, 6, 8, 9} - {1, 9}
A' = {4, 6, 8}
B' = U - B = {1, 4, 6, 8, 9} - {4, 6, 9}
B' = {1, 8}
A' β© B' = {4, 6, 8} β© {1, 8}
A' β© B' = {8}
(A βͺ B)' = A' β© B'Hence Proved
Question 3: Simplify the Boolean Expression: Y = [(A + B).C]'
Solution:
Y = [(A + B).C]'
Applying De Morgan's law (A . B)' = A' + B'
Y = (A + B)' + C'
Applying De Morgan's law (A + B)' = A'. B'
Y = A'. B' + C'
Question 4: Simplify the Boolean Expression: X = [(A + B)' + C]'
Solution:
X = [(A + B)' + C]'
Applying De Morgan's law (A + B)' = A'. B'
X = [(A + B)']' . C'
X = (A + B). C'
Check this sources for more:
| Topic for Interlinking | Related to |
|---|---|
| Boolean Algebra | De Morgan's Law Boolean Algebra |
| Set Theory | De Morgan's Law in Set Theory |
| Logical Gates | De Morgan's Law of Logic |
| Discrete Mathematics | De Morgan's Law Discrete Math |
| Java Programming Examples | De Morgan's Law Java |
| Context | Example |
|---|---|
| Logic Puzzles | Puzzle: If it is not true that "It is raining and cold," what can we infer? Application of De Morgan's Law: We can infer that "It is not raining or it is not cold." This uses De Morgan's Law to simplify the negation of a conjunction into a disjunction. |
| Programming | Scenario: Checking if a number is neither positive nor even in a programming language. Code Snippet (Pseudocode): if !(number > 0 and number % 2 == 0) can be simplified using De Morgan's Law to if (number <= 0 or number % 2 != 0). This demonstrates how De Morgan's Law helps in simplifying conditional statements. |
| Mathematical Proofs | Statement: Prove that the complement of the intersection of two sets A and B is equal to the union of their complements. Application of De Morgan's Law: According to De Morgan's Law, (A β© B)' = A' βͺ B'. This shows how De Morgan's Law is used to simplify expressions in set theory. |
| Application Area | Description |
|---|---|
| Logical Reasoning | In logical puzzles or arguments, De Morgan's Law helps simplify complex negations. For instance, negating "All apples are red" to "Not all apples are red" implies "Some apples are not red." |
| Computer Science | De Morgan's Law is crucial in optimizing conditional statements in programming. It allows programmers to simplify complex logical conditions, making code more efficient and readable. |
| Electronic Circuit Design | In digital electronics, De Morgan's Law is used to design and simplify circuits. For example, it helps in converting AND gates into OR gates (and vice versa) using NOT gates, facilitating the creation of more efficient circuit layouts. |