Boolean Laws & Theorems

Boolean algebra gives us a small set of rules for rewriting logic expressions without changing what they do. Using them, you can take a long expression and shrink it to a simpler one, which means a circuit with fewer gates, lower cost and less delay. Every rule here can be proved with a truth table, so you never have to take any of them on trust.

In this lesson you will learn the main laws and theorems and apply them step by step to simplify expressions. You should know the basic gates and truth tables from the earlier lessons.

Learning objectives

After this lesson you will be able to:

  • State the basic laws of Boolean algebra and recognise them in an expression.
  • Use the duality principle to find the matching form of a law.
  • Apply De Morgan's laws to complement a sum or a product.
  • Simplify expressions using absorption, redundancy and consensus.
  • Verify a simplification with a truth table.

The basic laws

The table lists the standard laws. Every row has two forms, and each one is the dual of the other: swap AND with OR, and swap 0 with 1, and the first form turns into the second. This is the duality principle, and it means you get two laws for the price of one. In the table, AND is written with a dot or by writing the variables side by side.

Law First form Dual form
Identity A + 0 = A A . 1 = A
Null (domination) A + 1 = 1 A . 0 = 0
Idempotent A + A = A A . A = A
Complement A + A' = 1 A . A' = 0
Commutative A + B = B + A AB = BA
Associative (A + B) + C = A + (B + C) (AB)C = A(BC)
Distributive A(B + C) = AB + AC A + BC = (A + B)(A + C)
Absorption A + AB = A A(A + B) = A
De Morgan (AB)' = A' + B' (A + B)' = A'B'
Redundancy (A + A'B) A + A'B = A + B A(A' + B) = AB

One more law applies to a single variable: complementing twice gives the original back, so (A')' = A. This is called involution.

De Morgan's laws

De Morgan's laws are the most useful rules for turning one gate into another. They say:

  • (AB)' = A' + B'. The complement of a product is the sum of the complements.
  • (A + B)' = A'B'. The complement of a sum is the product of the complements.

In words: break the bar over the expression, and change AND to OR (or OR to AND). These laws work for any number of variables. For example, (ABC)' = A' + B' + C'. They explain why a NAND gate behaves like an OR gate with inverted inputs, and why a NOR gate behaves like an AND gate with inverted inputs.

The consensus theorem

The consensus theorem removes a redundant term:

AB + A'C + BC = AB + A'C

The term BC is the "consensus" of AB and A'C. Whenever BC would be 1, one of the other two terms is already 1: if A = 1 then AB covers it, and if A = 0 then A'C covers it. So BC can be dropped. Its dual form is (A + B)(A' + C)(B + C) = (A + B)(A' + C).

Example 1: simplify with the basic laws

Simplify F = AB + AB'.

  1. Factor out A using the distributive law: F = A(B + B').
  2. Apply the complement law, B + B' = 1: F = A . 1.
  3. Apply the identity law: F = A.

Result: F = A. The two gates and the inverter all disappear. You can prove it with the truth table generator by comparing the columns for AB + AB' and A.

Example 2: using De Morgan's law

Simplify F = (A + BC')' into a sum of products.

  1. Apply De Morgan to the outer bar: F = A'(BC')'.
  2. Apply De Morgan to the inner bar: (BC')' = B' + C, because C'' = C. So F = A'(B' + C).
  3. Distribute: F = A'B' + A'C.

Result: F = A'B' + A'C. This is a sum of products, so it can be built with two AND gates and one OR gate.

Example 3: the idempotent trick

Simplify F = ABC + ABC' + AB'C + A'BC. This is the majority function, and it looks like it has no obvious common factor. The idempotent law lets us copy a term as many times as we like, because ABC = ABC + ABC + ABC.

  1. Use ABC three times and group each copy with a different neighbour: F = (ABC + ABC') + (ABC + AB'C) + (ABC + A'BC).
  2. In each pair, factor out the shared variables and apply B + B' = 1, C + C' = 1 and A + A' = 1. This gives AB + AC + BC.

Result: F = AB + AC + BC. It matches the majority function from the lesson on truth tables.

Common mistakes

  • Breaking only part of the bar in De Morgan. (AB)' is A' + B', not A'B'.
  • Forgetting to change the operator. Changing the variables to complements is not enough; AND becomes OR and OR becomes AND.
  • Treating A + BC as (A + B)C. The first one equals (A + B)(A + C), which is a different expression.
  • Cancelling A and A' too early. A + A' = 1, but A . A' = 0. Check which operator you have.
  • Not checking the result. Always verify a simplification with a truth table, since one wrong step ruins the answer.

Practice problems

Check each result with the Boolean calculator.

  1. Simplify AB + AB'C.

    Answer: AB + AC. Factor out A: A(B + B'C), then use B + B'C = B + C.

  2. Use De Morgan's law to expand (A'B + C)' into a sum of products.

    Answer: AC' + B'C'. You can also leave it as (A + B')C'.

  3. Simplify (A + B)(A + C).

    Answer: A + BC, by the second distributive law.

  4. Simplify AB + A'C + BC.

    Answer: AB + A'C, by the consensus theorem.

Frequently asked questions

What is the duality principle? If you swap AND with OR and 0 with 1 in a true Boolean identity, you get another true identity. This halves the number of laws you need to learn.

How do I know when an expression is fully simplified? Simplify until no law removes a term or a literal. For a guaranteed minimal sum of products, use a Karnaugh map or the Quine-McCluskey method, which find the best answer systematically.

Are Boolean laws the same as ordinary algebra? Many are, such as the commutative and associative laws. But some are different: A + A = A, A + 1 = 1, and A + BC = (A + B)(A + C) all fail in ordinary arithmetic.

Next: put these laws to work with the lesson on SOP and POS forms, which shows the two standard ways of writing a function.