Skip to content
Study Hall
Lesson 5 of 5Electronics and Digital Logic
Unit 4 · Lesson 5 of 5

Boolean Algebra and Simplification

The rules for manipulating logic expressions, De Morgan's theorems, and why simplifying saves real money.

3 min read10 practice questionsAsk AI about this →

Key things to remember

  1. 1 and — there is no 2 in Boolean algebra.
  2. 2, , , .
  3. 3Absorption: .
  4. 4De Morgan: and .
  5. 5Inverting an expression inverts each variable AND swaps the operator.
  6. 6AND binds more tightly than OR, exactly as × binds more tightly than +.
  7. 7Always verify a simplification with a truth table.

Boolean algebra is ordinary algebra's stranger cousin: the variables can only be 0 or 1, and there are only three operations. It matters because a circuit and an expression are the same object written two ways. Simplify the expression and you have simplified the circuit — fewer gates, less power, less heat, lower cost, and fewer things to go wrong. On a chip produced a million times, removing one gate is a real saving.

The laws

LawOR formAND form
IdentityA + 0 = AA · 1 = A
Null / AnnulmentA + 1 = 1A · 0 = 0
IdempotentA + A = AA · A = A
ComplementA + A′ = 1A · A′ = 0
CommutativeA + B = B + AA · B = B · A
Associative(A+B)+C = A+(B+C)(A·B)·C = A·(B·C)
DistributiveA + (B·C) = (A+B)·(A+C)A · (B+C) = A·B + A·C
AbsorptionA + A·B = AA · (A+B) = A
Double negation(A′)′ = A—
The one law that is not like ordinary algebra
, not . And , not . There is no number 2 in Boolean algebra — + means OR, so "A or A" is just A, and "A or true" is always true. The AND-side rules (, ) feel more familiar, which is exactly why the OR-side ones get missed.

De Morgan's theorems

Break the bar, change the sign.(A · B)′ = A′ + B′NOT(A AND B) is the same as (NOT A) OR (NOT B)"the alarm is off unless both sensors trip" = "the alarm is off if either sensor is quiet"(A + B)′ = A′ · B′NOT(A OR B) is the same as (NOT A) AND (NOT B)Check it by writing both truth tables — all four rows must match.Why it matters: NAND gates alone can build any circuit, so chips are cheaper if you convert everything to NAND.
Fig 1Break the bar, change the sign.
Inverting a whole expression inverts each variable AND swaps AND for OR.

De Morgan's theorems are the most-used rules in the whole topic, and the most-misapplied. The error is inverting the variables but leaving the operator alone — writing , which is simply false. Test it: with A = 1, B = 0, the left side is while the wrong right side is . One counterexample is enough to disprove it, and checking one row takes ten seconds.

The plain-English version
"It is not true that both happened" means "at least one of them did not happen". "It is not true that either happened" means "neither happened". Read your expression out loud in words and De Morgan becomes obvious rather than mechanical.

Simplification in practice

  1. Expand any brackets using the distributive law, to get a sum of AND terms.
  2. Look for a variable that appears in two terms, and factor it out.
  3. Apply the complement law: any bracket containing becomes 1.
  4. Apply identity and absorption to remove what is left.
  5. Verify with a truth table. If the original and simplified expressions do not match on every row, you made an error.
Always verify
A simplified expression that does not match the original is worse than no simplification at all, because it looks finished. Building the truth table for both takes two minutes and is the only proof that the two circuits behave identically.

Why this earns its place

Consider . As written, that is two AND gates, one inverter and one OR gate — four gates. Factor out A to get , then apply the complement law to get , and the identity law to get simply . Four gates become a wire. The output never depended on B at all, which the original expression hid completely.

ABefore simplification
  • 4 gates, 2 chips
  • Propagation delay through three levels
  • More power, more board area, more to fail
BAfter simplification
  • A single wire
  • No delay
  • Nothing to fail

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Simplify .
Example 2
Use De Morgan's theorems to simplify .
Example 3
Simplify and state which law you used.

Where marks get lost

  • Writing . De Morgan requires swapping the operator too.
  • Writing . There is no 2 — OR of a value with itself is the value.
  • Forgetting and treating it like arithmetic addition.
  • Ignoring precedence: means , not .
  • Applying De Morgan to only part of an expression while a bar still spans the rest.
  • Declaring a simplification finished without verifying it against a truth table.

Flashcards 10

+ 6 more

Practice

1
Which is the correct application of De Morgan's theorem to ?
2
Simplify .
3
Simplify .
4
What does simplify to?
5
Evaluate when A = 1 and B = 0.
6
Simplify .
7
How many gates does need after full simplification?
8
Match each expression to its simplified form.
  1. A.
  2. B.
  3. C.
9
Why does simplifying a Boolean expression matter in a real product?
10
Order these simplification steps for .
  1. 1Apply the complement law to
  2. 2Verify the result with a truth table
  3. 3Apply the identity law to
  4. 4Factor out the common variable A

Spot a mistake on this page? Let us know