Boolean algebra is the algebra of binary variables. Variables take only two values — and — and the operations are AND (), OR (), and NOT (). Every digital circuit’s behavior can be written as a Boolean expression and simplified using its laws.

The point of working in Boolean algebra is reducing a logic expression to fewer gates. A circuit with two terms after simplification is faster, smaller, and cheaper than one with eight, even if both compute the same function.


Logical operations

The three basic operations, plus the derived ones:

In digital logic, is often written as multiplication ( or ), and is written as addition (). Don’t confuse this with arithmetic — in Boolean algebra, since both operands being true makes the OR true.


Laws

The laws come in dual pairs related by the duality principle: swap every with and every with , and a true law stays true.

Identity

Annihilation (domination)

Complementation

The second identity is heavily used: any expression OR’d with the missing case completes to . That’s how the Karnaugh Map grouping rule works — it absorbs a variable.

Involution

Two negations cancel. In circuits, a NOT followed by a NOT is wire.

Idempotence

Boolean variables don’t have powers — AND’d with itself is just .

Commutativity

Associativity

Distributivity

The OR-over-AND form () is the one that surprises people coming from arithmetic — it has no analog in regular algebra.

Absorption

If is in there, the smaller term wins.

Minimization (redundancy)

The cases for and are exhaustive — together they cover everything, so drops out.

Consensus

The third term is implied by the first two and can be dropped.

De Morgan’s laws

How you push a negation through a parenthesis. These are the workhorses of converting between NAND/NOR forms and AND/OR forms.


Useful simplification identities

A few shortcuts that come up constantly when minimizing:

If a set of minterms covers every possible input combination, their OR is :

These come from the laws above but it’s faster to recognize them as patterns than to derive them every time.