20 min read
De Morgan's Theorems
Break the bar and change the sign — how to remove a NOT from over a whole AND or OR.
The Two Theorems
Augustus De Morgan, a British mathematician, described two rules for a NOT bar that covers a whole expression:
- — a NAND is the same as OR-ing the inverted inputs.
- — a NOR is the same as AND-ing the inverted inputs.
A memory phrase: "Break the bar, change the sign." When you split a long bar into short bars, AND becomes OR and OR becomes AND.
Proof by Truth Table
| Proving NOT(A·B) = NOT A + NOT B | ||||||
|---|---|---|---|---|---|---|
Using De Morgan to Simplify
| A | B | P | R | X |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 |
Putting It All Together: a Three-Input Circuit
Assignment questions often give a circuit with three inputs and NOT gates, and ask you to simplify it and check with a truth table. You need three skills together: circuit to expression, the laws, and De Morgan. Here is the complete method on a circuit of our own.
| A | B | C | P | R | S | X |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 0 | 1 | 1 |
The redundancy rule is very useful: , and the same with the bar swapped, . Proof with the second distributive law: .
The trick in step 2: look for a group that appears twice — once with a bar and once without. Here appears in both terms, so treat it as one letter Y. Then finish with De Morgan to remove the long bar.
Practice
More lessons in Boolean Algebra and Logic Gates · Next: From a Real Problem to a Circuit · Previous: Simplifying Boolean Expressions
