Boolean Algebra: operators, identities, simplification and equivalence
Notation and the three operators
Boolean algebra works with variables taking only the values 0 and 1, and three operations. Throughout, we write + for OR, · for AND (often omitted, so xy means x · y), and a prime for complement, so x′ is NOT x.
The notation deliberately borrows from ordinary arithmetic, and that is both helpful and dangerous. x · (y + z) = xy + xz holds exactly as it does for numbers. But Boolean algebra has a second distributive law with no arithmetic counterpart:
x + y·z = (x + y)·(x + z)
OR distributes over AND. Forgetting this costs you half the available simplifications, and assuming numeric intuition transfers wholesale causes the rest of the errors.
The identities worth knowing cold
Name | With + | With · |
|---|---|---|
Identity | x + 0 = x | x · 1 = x |
Domination | x + 1 = 1 | x · 0 = 0 |
Idempotence | x + x = x | x · x = x |
Complement | x + x′ = 1 | x · x′ = 0 |
Absorption | x + xy = x | x(x + y) = x |
De Morgan | (x + y)′ = x′y′ | (xy)′ = x′ + y′ |
Every row is a pair, and that is not a coincidence. The duality principle says that swapping every + with · and every 0 with 1 turns any valid identity into another valid identity.
Learning one column gets you the other for free, and duality is a fast way to check that a remembered identity has not been garbled.
De Morgan's laws: the operator must flip too
These are the most frequently misapplied rules in the subject. Complementing a sum gives a product of complements, and complementing a product gives a sum of complements:
(p + q)′ = p′ · q′ (p · q)′ = p′ + q′
Complementing the literals while leaving the operator unchanged is the classic error. Check it on a single case: with p = 1, q = 0, (p + q)′ = 1′ = 0, while the incorrect p′ + q′ = 0 + 1 = 1. One substitution is enough to expose it.
To complement a compound expression, work outward from the top-level operator, apply De Morgan at each level, and finish with double complements cancelled: x″ = x.
Simplifying: a worked method
Look for a factorisation that creates a complement pair or an absorption, then apply the identity.
Example 1. Simplify a + a′b. Distributing OR over AND gives (a + a′)(a + b) = 1 · (a + b) = a + b. Worth memorising in its own right, since it appears constantly.
Example 2. Simplify (a + b)(a′ + b). Expanding: aa′ + ab + a′b + bb = 0 + ab + a′b + b. Factoring b out of the remaining terms gives b(a + a′ + 1) = b · 1 = b.
Alternatively, factor b out at the start using the second distributive law: (a + b)(a′ + b) = b + aa′ = b + 0 = b, which is faster and shows the second distributive law earning its place.
A useful heuristic: whenever a variable and its complement both appear, look for the factorisation that puts them together, because x + x′ = 1 and xx′ = 0 are where terms actually disappear.
Truth tables settle equivalence
Algebraic manipulation proves equivalence when it succeeds, but failing to find a derivation proves nothing. A truth table is decisive in both directions: n variables give 2n rows, and two expressions are equivalent precisely when their columns agree in every row.
To show expressions are not equivalent you do not need the whole table, one differing row is a complete disproof, and quoting that row is the expected form of the answer.
Example. Verify p → q ≡ p′ + q. Rows (p, q) = (0,0): 1 and 1. (0,1): 1 and 1. (1,0): 0 and 0. (1,1): 1 and 1. All four agree, so the equivalence holds, which is how implication is rewritten in Boolean form in the first place.
Two habits make truth tables reliable: list the rows in a fixed binary counting order so none is skipped, and build intermediate columns for subexpressions rather than evaluating a long expression in one step.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Simplify (x + y)·(x + y′) to its simplest form, naming the Boolean identity used at each step.
Here + is OR, · is AND and a prime denotes complement.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Use a truth table to decide whether x·(y + z) and x·y + z are equivalent.
If they are not, give a specific assignment of x, y and z at which they differ, and state both values.