Boolean algebra is the math of 0 and 1 behind every gate. This page lists the commutative, associative, distributive and De Morgan laws, and shows how to use them to cut the number of gates by hand.
The commutative and associative laws let you reorder and regroup terms freely; the distributive law A times (B plus C) equals A times B plus A times C is how you expand or factor a sum of products. These three handle most everyday reshaping of a logic expression without redrawing the truth table.
De Morgan is the key that flips a term: the complement of A and B is not A or not B, and the complement of A or B is not A and not B. Use it to push inverters inward so a NAND-only or NOR-only build stays cheap and the bill of materials drops one part type.
Before opening a Karnaugh map, simplify by hand: absorb A times B into A, drop redundant terms such as A and B or not A and C or B and C. Hand rules clear most of the fat fast, leaving only the tight part for the map.
| Law | Expression | Memory aid |
|---|---|---|
| Commutative | A+B=B+A, A·B=B·A | Order free |
| Associative | (A+B)+C=A+(B+C) | Group free |
| Distributive | A·(B+C)=A·B+A·C | Times over plus |
| De Morgan | (A·B)̄=Ā+ B̄ | Bar splits to plus |
| Absorption | A+A·B=A | Extra absorbed |
| Redundancy | A·B+Ā·C+B·C=A·B+Ā·C | Drop duplicate |
Simplification is not showmanship; it buys fewer ICs, less board area and lower power. Memorise the laws before editing live logic rather than redrawing truth tables each time.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Gate symbols per GB/T 4728 and IEC 60617. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.