Skip to content

Boolean Algebra and De Morgan's Laws

1.4.3 Boolean algebra · Paper 1 · 7 flashcards · 8 questions

Boolean expressions can be simplified using algebraic rules, making circuits cheaper and faster.

Boolean Algebra Laws

Key Point
Law familyOR formAND form
IdentityA ∨ 0 = AA ∧ 1 = A
NullA ∨ 1 = 1A ∧ 0 = 0
IdempotentA ∨ A = AA ∧ A = A
ComplementA ∨ ¬A = 1A ∧ ¬A = 0
Involution¬¬A = A—
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

De Morgan's Laws

Key Point
Original expressionEquivalent expressionIn words
¬(A ∧ B)¬A ∨ ¬BNOT (A AND B) = (NOT A) OR (NOT B)
¬(A ∨ B)¬A ∧ ¬BNOT (A OR B) = (NOT A) AND (NOT B)
Memory trick: Break the bar, change the sign.
Worked Example
Worked Example: Simplifying a Boolean Expression

Simplify: Q = A ∧ B ∨ A ∧ ¬B ∨ ¬A ∧ B

Step 1: Factor out common terms
Q = A ∧ (B ∨ ¬B) ∨ ¬A ∧ B

Step 2: Apply complement law (B + B̅ = 1)
Q = A ∧ 1 ∨ ¬A ∧ B

Step 3: Apply identity law (A.1 = A)
Q = A ∨ ¬A ∧ B

Step 4: Apply absorption (or expand and simplify)
Q = A ∨ ¬A ∧ B
= (A ∨ ¬A) ∧ (A ∨ B) [Distributive law]
= 1 ∧ (A ∨ B) [Complement law]
= A ∨ B [Identity law]

Answer: Q = A ∨ B (much simpler circuit!)

The Rules Named in the Specification

The specification names five rules, and a question can ask for one of them by name. Double negation is the rule the table above calls involution.

Key Point
RuleWhat it saysUsed to
De Morgan's Laws¬(A ∧ B) ≡ ¬A ∨ ¬B and ¬(A ∨ B) ≡ ¬A ∧ ¬BRemove a NOT from around a bracket, or put one in
DistributionA ∧ (B ∨ C) ≡ (A ∧ B) ∨ (A ∧ C) and A ∨ (B ∧ C) ≡ (A ∨ B) ∧ (A ∨ C)Multiply out a bracket, or take out a common term
Association(A ∧ B) ∧ C ≡ A ∧ (B ∧ C) and (A ∨ B) ∨ C ≡ A ∨ (B ∨ C)Move or remove brackets when the operators are all the same
CommutationA ∧ B ≡ B ∧ A and A ∨ B ≡ B ∨ AChange the order of the terms
Double negation¬¬A ≡ ACancel two NOTs
Worked Example
Worked Example: Applying a Named Rule
ExpressionRule usedResult
¬A ∧ ¬BDe Morgan's Law¬(A ∨ B)
¬(¬A ∨ B)De Morgan's Law, then double negation¬¬A ∧ ¬B, which is A ∧ ¬B
(A ∧ B) ∨ (A ∧ ¬C)DistributionA ∧ (B ∨ ¬C)
(A ∨ B) ∧ (A ∨ ¬C)DistributionA ∨ (B ∧ ¬C)
B ∧ ACommutationA ∧ B
(A ∧ B) ∧ CAssociationA ∧ (B ∧ C)
Exam Tip
When a question says to explain which rule is used at each step, write the name of the rule next to every line of working, not only beside the final answer.

Defining a Problem with Boolean Logic

A problem described in words can be written as a Boolean expression.

  • 1.
    Give each condition a letter, and the result a letter such as Q.
  • 2.
    Replace "and" with ∧, "or" with ∨ and "not" with ¬.
  • 3.
    Put brackets round the conditions that belong together.
Worked Example
Worked Example: From a Description to an Expression

A greenhouse heater switches on when the temperature is low and either the timer is on or the override button is pressed. It never switches on while the window is open.
LetterCondition
AThe temperature is low
BThe timer is on
CThe override button is pressed
DThe window is open
QThe heater switches on
Answer: Q = A ∧ (B ∨ C) ∧ ¬D

The brackets are needed. Without them, A ∧ B ∨ C ∧ ¬D would be read as (A ∧ B) ∨ (C ∧ ¬D), because AND is worked out before OR.