Skip to content
LearnTronics menu

LearnTronics

Deriving De Morgan's Laws Without a Truth Table

Tutorial Index

De Morgan without building a truth table

Truth tables are excellent for checking a result, but they are not the only way to understand or prove De Morgan's laws.

NOT (A AND B) “They are not both true.” means NOT A OR NOT B “At least one is false.” NOT (A OR B) “Neither is true.” means NOT A AND NOT B “Both are false.”

First theorem in ordinary language

Start with:

~(A • B)

This says, “It is not true that A and B are both true.”

If they are not both true, then at least one must be false:

~A + ~B

So:

~(A • B) = ~A + ~B

Second theorem in ordinary language

Start with:

~(A + B)

This says, “Neither A nor B is true.” Therefore A is false and B is false:

~(A + B) = ~A • ~B

A Boolean-algebra proof of one theorem

Let:

F = A + B

and propose:

X = ~A • ~B

To show X is the complement of F, it is enough to show two things:

F•X = 0    and    F + X = 1
(A+B)(~A•~B)
= A•~A•~B + B•~A•~B
= 0 + 0 = 0

Now the OR condition:

(A+B) + (~A•~B)
= [(A+B)+~A] • [(A+B)+~B]    (Boolean distributive law)
= (A+~A+B) • (A+B+~B)
= 1 • 1 = 1

Therefore ~A•~B is the complement of A+B, so:

~(A+B) = ~A•~B
Useful memory rule: when a NOT moves through parentheses, invert each term and swap AND ↔ OR.

Try these yourself

NOT(A AND B) can be said in ordinary language as: NOT (A AND B) “They are not both true.” means NOT A OR NOT B “At least one is false.” NOT (A OR B) “Neither is true.” means NOT A AND NOT B “Both are false.”
If it is not true that both are true, then at least one must be false.
Which is equivalent to ~(A + B)?
If neither A nor B is true, then both A and B are false: ~(A+B)=~A•~B.
In the algebraic proof, why do we show X•F=0 and X+F=1?
A complement of F must AND with F to give 0 and OR with F to give 1.