De Morgan’s Laws are fundamental principles in Boolean algebra and set theory, providing rules for transforming logical expressions. These laws are essential for simplifying and manipulating Boolean expressions, which have significant applications in digital circuit design, computer science, and engineering. This article provides a detailed proof of De Morgan’s Laws in Boolean algebra.
De-Morgan’s Laws
De Morgan’s Laws state that the complement of the conjunction (AND) of two variables is equal to the disjunction (OR) of their complements, and the complement of the disjunction (OR) of two variables is equal to the conjunction (AND) of their complements. Mathematically, the laws are expressed as:
1. [Tex]\overline{A \cdot B} = \overline{A} + \overline{B}
[/Tex]
2. [Tex]\overline{A + B} = \overline{A} \cdot \overline{B}
[/Tex]
Proof of De Morgan’s Laws
Statements:
1. (x + y)‘ = x‘.y‘
2. (x.y) = x‘ + y‘
Proof:
Here, we need to prove that the two propositions complement each other. We know that
A + A’ = 1
and
A.A‘ = 0
which are annihilation laws. Thus if we prove these conditions for the above statements of the laws then we shall prove that they are complements of each other.
For statement 1:
We need to prove that:
[Tex]LHS: (x+y)+x’.y’ =(x+y).(x+x’)+x’.y’
[/Tex]
and
[Tex]=x.x+x.y+y.x’+x’.y’=x+x.y+y.x’+x’.y’
[/Tex]
Case 1.
[Tex]=x+x.y+x’.(y+y’)
[/Tex][Tex]=x+x.y+x’=x+x’+x.y
[/Tex][Tex] =1+x.y=1=RHS
[/Tex]
{Using distributive property}
[Tex] (x’.y’).(x+y)=0
[/Tex][Tex]LHS: (x’.y’).(x+y)=x.(x’y’)+y.(x’.y’)
[/Tex][Tex]=x.0+0.x’=0=RHS
[/Tex]
Hence proved.
Case 2.
[Tex]x.y+(x’+y’)=1
[/Tex][Tex]x.y.(x’+y’)=0
[/Tex][Tex]x.y+(x’+y’)=1
[/Tex]
Hence proved.
For statement 2:
We need to prove that:
[Tex] LHS: x.y+(x’+y’)=(x+x’+y’).(y+x’+y’)
[/Tex]
and
[Tex]=(1+y’).(1+x’)=1=RHS
[/Tex]
Case 1.
[Tex]x.y.(x’+y’)=0
[/Tex][Tex]LHS: (x.y).(x’+y’)=x.x’.y+x.y.y’
[/Tex]
{We know that A+BC=(A+B).(A+C)}
[Tex]=0=RHS
[/Tex]
Hence proved.
Case 2.
Hence Proved. This proves the De-Morgan’s theorems using identities of Boolean Algebra.
Proof of De-Morgan’s law of boolean algebra using Truth Table:
1) (x+y)’= x’. y’
x
| y
| x+y
| (x+y)’
| x’
| y’
| x’. y’
|
|
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
|
Hence the first De-morgan law of boolean algebra is proved (x+y)’= x’. y’
2) (x.y)’=x’+y’
x
| y
| x.y
| (x.y)’
| x’
| y’
| x’ + y’
|
|
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
|
Hence the second De-morgan law of boolean algebra is proved (x.y)’=x’+y’
Solved Examples
1).Using De Morgan’s Laws, simplify the following expression:
NOT(A OR (B AND C))
Solution :
NOT(A OR (B AND C))
Answer: (NOT A) AND (NOT B OR NOT C)
2).Prove that the following expressions are equivalent using De Morgan’s Laws:
(NOT A AND NOT B) OR (NOT A AND C) = NOT A AND (NOT B OR C)
Solution :
(NOT A AND NOT B) OR (NOT A AND C) = NOT A AND (NOT B OR C)
Answer: This is correct.
Proof: NOT A AND (NOT B OR C)
= (NOT A AND NOT B) OR (NOT A AND C) [Using distributive law]
3).In a digital circuit, you have an AND gate followed by a NOT gate. Using De Morgan’s Laws, how can you represent this using only OR and NOT gates?
Solution :
AND gate followed by NOT gate using only OR and NOT gates
Answer: Use NOT gates on each input, then feed these into an OR gate.
NOT(A AND B) = (NOT A) OR (NOT B)
4).Simplify the following Boolean expression using De Morgan’s Laws:
NOT(A AND B AND C)
Solution :
NOT(A AND B AND C)
Answer: (NOT A) OR (NOT B) OR (NOT C)
5).In computer networking, a firewall rule allows traffic that is “not from subnet A and not destined for port 80”. Express this rule in terms of positive conditions using De Morgan’s Laws.
Solution :
F = NOT(X OR Y OR Z)
Answer: F = (NOT X) AND (NOT Y) AND (NOT Z)
6).Prove or disprove: NOT(A XOR B) = (NOT A) XOR (NOT B)
Solution :
“Not from subnet A and not destined for port 80”
Answer: From any subnet except A AND destined for any port except 80
7).Simplify the following expression using De Morgan’s Laws:
NOT(A OR NOT(B AND C))
Solution :
NOT(A XOR B) = (NOT A) XOR (NOT B)
Answer: This is false.
NOT(A XOR B) = (A AND B) OR (NOT A AND NOT B)
But (NOT A) XOR (NOT B) = (NOT A AND B) OR (A AND NOT B)
8).In digital logic, how would you use De Morgan’s Laws to convert a NOR gate into an equivalent combination of AND and NOT gates?
Solution :
NOT(A OR NOT(B AND C))
Answer: (NOT A) AND (B AND C)
9).Given the Boolean expression NOT(A OR (NOT B AND C)), use De Morgan’s Laws to express this using only AND and NOT operations.
Solution :
Convert NOR gate to AND and NOT gates
Answer: A NOR B = NOT(A OR B) = (NOT A) AND (NOT B)
So, invert both inputs, then AND them.
10).Given the Boolean function F = NOT(X OR Y OR Z), express F using only AND gates and inverters (NOT gates).
Solution :
NOT(A OR (NOT B AND C))
Answer: (NOT A) AND (B OR NOT C)
Practice Problems
1. Simplify: NOT(A AND (B OR C))
2. Prove that NOT(A OR B OR C) = (NOT A) AND (NOT B) AND (NOT C)
3. Convert the expression (A NAND B) to use only OR and NOT gates.
4. Simplify: NOT(NOT A OR (B AND NOT C))
5. In a computer program, you need to check if a number is not between 1 and 10 inclusive. Express this condition using De Morgan’s Laws.
6. Prove or disprove: NOT(A AND B) XOR C = (NOT A OR NOT B) XOR C
7. Simplify the Boolean expression: NOT((A AND B) OR (NOT A AND C))
8. Given F = NOT(X AND Y AND Z), express F using only OR gates and inverters.
9. In a digital circuit, you have a NOR gate followed by a NOT gate. Simplify this using De Morgan’s Laws.
10. Express the following using only AND and NOT operations:
NOT(A OR (B AND NOT C) OR (NOT A AND D))
Applications in Engineering
1. Digital Circuit Design
De Morgan’s Laws are used extensively in digital circuit design to simplify Boolean expressions and logic gates, optimizing circuit layouts and reducing costs.
2. Computer Science
In computer science, De Morgan’s Laws are used in algorithms and programming to simplify logical expressions, making code more efficient and readable.
3. Set Theory
In set theory, De Morgan’s Laws describe the relationships between union, intersection, and complement of sets, providing a foundation for various mathematical operations.
4. Control Systems
In control systems, De Morgan’s Laws help in designing and analyzing logic controllers, ensuring correct and efficient system behavior.
5. Data Mining
In data mining, De Morgan’s Laws are applied to simplify queries and logical conditions, improving the performance of data retrieval and analysis processes.
Conclusion – Proof of De-Morgan’s Laws in Boolean Algebra
De Morgan’s Laws are fundamental principles in Boolean algebra, providing essential tools for simplifying and manipulating logical expressions. Their applications in digital circuit design, computer science, set theory, control systems, and data mining highlight their importance in various engineering and mathematical fields.
FAQs on Proof of De-Morgan’s Laws in Boolean Algebra
What are De Morgan’s Laws?
De Morgan’s Laws state that the complement of the conjunction (AND) of two variables is equal to the disjunction (OR) of their complements, and vice versa.
How are De Morgan’s Laws used in digital circuit design?
They are used to simplify Boolean expressions and logic gates, optimizing circuit layouts and reducing costs.
Related Articles
De Morgan’s Law – Theorem, Proofs, Formula & Examples
Proofs for the derivatives of eˣ and ln(x) – Advanced differentiation
Please Login to comment...