Sub topic 4
Duality and De Morgan's Laws
Prerequisites and notation
This chapter assumes that you can use Boolean variables, truth tables, and the basic gates AND, OR, and NOT. We use:
+for OR·or adjacency for AND'for NOT, soA'means NOTA0for false and1for true
Duality and De Morgan's laws let you transform Boolean expressions without changing the function they represent.
The principle of duality
The dual of a Boolean expression is formed by making both substitutions:
- Replace every
+with·, and every·with+. - Replace every
0with1, and every1with0.
Variables and complements remain unchanged. For example:
| Expression | Dual |
|---|---|
| `A + 0 = A` | `A · 1 = A` |
| `A + 1 = 1` | `A · 0 = 0` |
| `A + A' = 1` | `A · A' = 0` |
| `A + AB = A` | `A(A + B) = A` |
The duality principle says that if a Boolean identity is true, its dual is also true. This does not mean that an expression and its dual always have the same output. Instead, duality gives a second valid identity from the first one.
For example, the identity A + AB = A is absorption. Its dual, A(A + B) = A, is also absorption.
De Morgan's laws
De Morgan's laws describe how NOT moves across a group of variables:
(A + B)' = A' · B'(A · B)' = A' + B'
In words:
- NOT of an OR is the AND of the NOTs.
- NOT of an AND is the OR of the NOTs.
The complement applies to every variable inside the parentheses, and the operator changes. For three variables:
(A + B + C)' = A'B'C'
(ABC)' = A' + B' + C'
A truth table verifies the first law:
| A | B | `(A + B)'` | `A'B'` |
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 0 |
The outputs match for every input combination, so the expressions are equivalent.
Useful transformations
De Morgan's laws are especially useful when converting between SOP and POS forms or when designing a circuit with only NAND or only NOR gates.
For example:
F = (A + BC)'
Apply De Morgan's law to the outer complement:
F = A' · (BC)'
Apply it again to BC:
F = A'(B' + C')
The same rules work backward:
A'B' = (A + B)'
A' + B' = (AB)'
Exercise
Exercise
Simplify (A + BC)' using De Morgan's laws.
Show answer
(A + BC)' = A'(BC)' = A'(B' + C').