In Boolean algebra, DeMorgan's Theorems are fundamental rules that describe how negation (NOT operation) interacts with conjunction (AND operation) and disjunction (OR operation). These theorems are very useful when simplifying Boolean expressions, particularly when dealing with complex logical circuits or conditions.
DeMorgan's Theorems consist of two key laws:
The First DeMorgan's Theorem:
The Second DeMorgan's Theorem:
Let’s break down each of the theorems with examples to understand how they work.
This theorem states that the negation of an AND operation is the same as the OR operation of the negated operands.
Let’s take the Boolean expression ¬(A · B).
Suppose A = 1 and B = 0.
A · B = 1 · 0 = 0A · B, we get ¬(0) = 1.Now, according to DeMorgan's Theorem:
¬A = 0 (because A is 1),¬B = 1 (because B is 0).¬A + ¬B = 0 + 1 = 1.As we see, both methods result in the same value, confirming that:
This theorem states that the negation of an OR operation is the same as the AND operation of the negated operands.
Let’s take the Boolean expression ¬(A + B).
Suppose A = 1 and B = 0.
A + B = 1 + 0 = 1A + B, we get ¬(1) = 0.Now, according to DeMorgan's Theorem:
¬A = 0 (because A is 1),¬B = 1 (because B is 0).¬A · ¬B = 0 · 1 = 0.Again, both methods give the same result, confirming that:
We can use truth tables to further verify the validity of DeMorgan's laws.
| 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 |
As we see, the values for ¬(A · B) and ¬A + ¬B are the same for all combinations of A and B, confirming the first DeMorgan's theorem.
| 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 |
Again, the values for ¬(A + B) and ¬A · ¬B match in all cases, confirming the second DeMorgan's theorem.
Simplifying Boolean Expressions:
Designing Digital Circuits:
Complementing Logic:
DeMorgan's Theorems are powerful tools in Boolean algebra for simplifying logical expressions and designing digital circuits. They tell us how negations interact with AND and OR operations and allow us to switch between these operations when necessary. Understanding these laws is essential for anyone working with logic circuits, Boolean expressions, or even computer programming when dealing with conditional statements and negations.
Open this section to load past papers