What is Boolean Algebra?

Boolean algebra is a branch of mathematics where variables only have two possible values: 0 (false) and 1 (true). It was invented by George Boole in 1847 — nearly a century before computers existed — and later applied to digital circuits by Claude Shannon in 1937.

The practical value is enormous: with Boolean algebra, you can take a complex multi-gate circuit and prove it's equivalent to a much simpler one, saving transistors, power, and money.

The Three Basic Operations

Notation warning: In Boolean algebra, + means OR (not arithmetic addition) and · means AND (often omitted, so AB = A AND B). Context matters!

The Laws of Boolean Algebra

These identities are always true and form the toolkit for simplification:

Identity Laws
A + 0 = A
A · 1 = A
Null Laws
A + 1 = 1
A · 0 = 0
Idempotent Laws
A + A = A
A · A = A
Complement Laws
A + Ā = 1
A · Ā = 0
Commutative Laws
A + B = B + A
A · B = B · A
Associative Laws
(A+B)+C = A+(B+C)
(AB)C = A(BC)
Distributive Laws
A(B+C) = AB+AC
A+BC = (A+B)(A+C)
Absorption Laws
A + AB = A
A(A + B) = A

De Morgan's Theorems

These two theorems are perhaps the most important tools in circuit design. They let you convert AND into OR (and vice versa) while distributing a NOT:

  Theorem 1:  NOT(A AND B)  =  NOT A  OR  NOT B
              ¬(A · B) = Ā + B̄

  Theorem 2:  NOT(A OR B)   =  NOT A  AND  NOT B
              ¬(A + B) = Ā · B̄

In plain English: "Break the bar, change the operation."

Practical use: NAND and NOR gates naturally implement De Morgan equivalences. Replacing AND+NOT with a single NAND gate reduces component count — De Morgan tells you it's safe to do so.

Simplification Walkthrough

Let's simplify: F = AB + AB̄ step by step.

📝 Step-by-step simplification

F = AB + AB̄Start
F = A(B + B̄)Distributive Law: factor out A
F = A · 1Complement Law: B + B̄ = 1
F = AIdentity Law: A · 1 = A

A two-gate circuit (AND + OR) reduces to a single wire. This is the power of algebra.

Karnaugh Maps (K-Maps)

Karnaugh maps are a visual method for simplifying Boolean expressions. Minterms (1s) that are physically adjacent on the map can be grouped and eliminated. The larger the group, the more variables cancel out.

2-variable K-Map for F = AB + ĀB + AB̄

B=0
B=1
A=0
0
1
A=1
1
1

The three 1s can be grouped: pair AB+AB̄ (row A=1) simplifies to A; pair ĀB+AB (column B=1) simplifies to B. Combined: F = A + B.

K-Map grouping rules

Check Your Understanding

Test your Boolean algebra skills — select the correct simplified expression for each question.