Boolean Algebra
The algebra of two-valued logic — the mathematical engine behind every digital circuit's behavior.
A single transistor can't do arithmetic — but wire enough of them together with the right logic, and you get a processor. The rules governing that logic were written down in 1854, long before the first computer existed.
The three operations
Boolean algebra, introduced by George Boole in 1854, operates on a two-element set: {0, 1}. There are exactly three fundamental operations:
AND (multiplication): written A·B or simply AB. The result is 1 only if both inputs are 1. Think of switches in series — current flows only when all switches are closed.
OR (addition): written A+B. The result is 1 if at least one input is 1. Think of switches in parallel — current flows if any switch is closed.
NOT (complement / inversion): written as A with an overbar (Ā) or A' (prime). It flips the value: NOT 0 = 1, NOT 1 = 0.
These three operations are sufficient to express any logical relationship in digital systems. Every logic gate and every digital circuit — no matter how complex — is built from combinations of these primitives.
Fundamental laws
Boolean algebra obeys a set of laws that look familiar from ordinary algebra — but with important differences. Here are the ones you need to know by heart:
Identity, complement, idempotent, and absorption
Beyond the three structural laws above, several single-variable identities are essential for simplification:
De Morgan's theorems
De Morgan's theorems are two of the most powerful tools in Boolean algebra. They describe how to push a NOT through a parenthesized group, swapping AND for OR (or vice versa) and complementing each variable:
Worked example: algebraic simplification
Let's put these laws to work. Consider the Boolean function:
- Group the first two terms and factor out A: AB + AB' = A(B + B').
- Apply the complement law (B + B' = 1): A(B + B') = A · 1.
- Apply the identity law (A · 1 = A): A · 1 = A. So AB + AB' simplifies to just A.
- Substitute back: F = A + A'B.
- Apply the distributive law in the OR-over-AND form: X + YZ = (X + Y)(X + Z). Here X = A, Y = A', Z = B, so A + A'B = (A + A')(A + B).
- Apply the complement law (A + A' = 1): (A + A')(A + B) = 1 · (A + B).
- Apply the identity law (1 · X = X): 1 · (A + B) = A + B.
- The simplified result is F = A + B.
Why simplification matters
The original expression F = AB + AB' + A'B required three AND gates, one OR gate (with three inputs), and one NOT gate. The simplified form F = A + B needs just a single OR gate. Fewer gates means less silicon area, lower power consumption, shorter propagation delay, and lower cost — which is exactly why Boolean algebraic simplification is a core skill in digital design.
In practice, engineers use systematic methods like Karnaugh maps and the Quine-McCluskey algorithm to minimize expressions with many variables, but the algebraic approach shown here builds the intuition those methods rely on.
- Evaluate each term: AB = 1·0 = 0.
- AC' = 1·(NOT 1) = 1·0 = 0, since C = 1 means C' = 0.
- B'C = (NOT 0)·1 = 1·1 = 1, since B = 0 means B' = 1.
- Sum the terms: F = 0 + 0 + 1 = 1.
- By De Morgan's theorem: (A·B)' = A' + B'.
- A' = NOT 1 = 0, and B' = NOT 1 = 0.
- A' + B' = 0 + 0 = 0.
- Verify directly: A·B = 1·1 = 1, so (A·B)' = NOT 1 = 0.
Check your understanding
- Boolean algebra operates on two values (0 and 1) with three operations: AND (·), OR (+), and NOT (overbar or prime).
- The commutative, associative, and distributive laws hold — note that OR distributes over AND (A + BC = (A+B)(A+C)), which has no analogue in ordinary algebra.
- Key identities include: A+0=A, A·1=A (identity), A+A'=1, A·A'=0 (complement), A+A=A, A·A=A (idempotent), and A+AB=A (absorption).
- De Morgan's theorems — (A+B)' = A'·B' and (AB)' = A'+B' — let you transform between AND/OR forms by breaking the complement bar.
- Algebraic simplification (e.g., AB+AB'+A'B → A+B) reduces gate count, which means smaller, faster, cheaper circuits.