Lecture 5 - Boolean Algebra
Lecture 5 - Boolean Algebra
Dr Abhijit Barthakur
Cotton University
SOME USEFUL LAWS OF BOOLEAN ALGEBRA:
• Commutative law: 𝐴+𝐵 =𝐵+𝐴
𝐴. 𝐵 = 𝐵. 𝐴
• Distributive law: 𝐴. 𝐵 + 𝐶 = 𝐴. 𝐵 + 𝐴. 𝐶
• Absorptive laws: 𝐴 + 𝐴𝐵 = 𝐴
𝐴. 𝐴 + 𝐵 = 𝐴
Laws of respective gates:
OR gate: AND gate:
𝐴+0=𝐴 𝐴. 0 = 0
𝐴+1 =1 𝐴. 1 = 𝐴
𝐴+𝐴=𝐴 𝐴. 𝐴 = 𝐴
𝐴+𝐴=1 𝐴. 𝐴 = 0
Boolean Expression Boolean Algebra Law or Rule
A+1=1 Annulment
A+0=A Identity
A.1=A Identity
A.0=0 Annulment
A+A=A Idempotent
A.A=A Idempotent
A+𝐴=1 Complement
A.𝐴=0 Complement
𝐴. 𝐵= 𝐴 + 𝐵 de Morgan’s Theorem
Boolean identities:
• 𝐴. 𝐴 + 𝐵 = 𝐴. 𝐵
• 𝐴 + 𝐴. 𝐵 = 𝐴 + 𝐵
• 𝐴 + 𝐵 𝐴 + 𝐶 = 𝐴𝐶 + 𝐴𝐵
• 𝐴 + 𝐵 𝐵 + 𝐶 𝐶 + 𝐴 = 𝐴𝐵 + 𝐵𝐶 + 𝐶𝐴
• 𝐴 + 𝐵𝐶 = 𝐴 + 𝐵 𝐴 + 𝐶
• 𝐴𝐵𝐶 + 𝐴𝐵𝐶 + 𝐴𝐵𝐶 = 𝐵 𝐴 + 𝐶
Question1: Verify the following Boolean
identities:
• (i) 𝐴𝐵𝐶 + 𝐴𝐵𝐶 + 𝐴𝐵𝐶 = 𝐴𝐶 + 𝐴𝐵𝐶
• (ii) 𝐴𝐵 + 𝐴𝐵 = 𝐴
• (iii) 𝐴𝐶 + 𝐴𝐵𝐶 = 𝐴𝐶
• (iv) 𝐴𝐵 + 𝐴 + 𝐴𝐵 = 0
• (v) 𝐴. 𝐴𝐵 . 𝐵. 𝐴𝐵 = 𝐴𝐵 + 𝐴𝐵
Question2. Simplify the following Boolean
expressions:
• (i) 𝐴𝐵𝐶 + 𝐴𝐵. 𝐶 + 𝐴𝐵𝐶 + 𝐴𝐵𝐶
• (ii) 𝐴𝐵 + 𝐴 + 𝐵 + 𝐴𝐶
• (iii) 𝐴 + 𝐵 𝐴 + 𝐵 𝐴 + 𝐵
• (iv) 𝐴 + 𝐵 + 𝐴 + 𝐶 𝐵 + 𝐶
• (v) 𝐴. 𝐵. 𝐶 + 𝐴. 𝐵𝐶 + 𝐴𝐵𝐶 + ABC
Solved example1: Simplify: 𝐶 + 𝐵𝐶:
Expression Rule(s) Used
𝐶 + 𝐵𝐶 Original Expression
𝐶+ 𝐵+𝐶 De Morgan's Law.
𝐴 + 𝐶 𝐴 𝐷 + 𝐷 + 𝐴𝐶 + 𝐶 Distributive.
(A + C)A + AC + C Complement, Identity.
A((A + C) + C) + C Commutative, Distributive.
A(A + C) + C Associative, Idempotent.
AA + AC + C Distributive.
A + (A + 1)C Idempotent, Identity, Distributive.
A+C Identity, twice.
Solved example4: Simplify: 𝐴 𝐴 + 𝐵 + 𝐵 + 𝐴𝐴 𝐴 + 𝐵
Expression Rule(s) used
𝐴 𝐴 + 𝐵 + 𝐵 + 𝐴𝐴 𝐴 + 𝐵 Original expression
𝐴𝐴 + 𝐴𝐵 + 𝐵 + 𝐴 𝐴 + 𝐵 + 𝐴 𝐵 Idempotent (AA to A), then Distributive, used twice.
𝐴𝐵 + 𝐵 + 𝐴 𝐴 + 𝐵 + 𝐴 𝐵 Complement, then Identity. (Strictly speaking, we also used the
Commutative Law for each of these applications.)
𝐴𝐵 + 𝐵𝐴 + 𝐴𝐴 + 𝐵𝐵 + 𝐴𝐵 Distributive, two places
𝐴𝐵 + 𝐵𝐴 + 𝐴 + 𝐴𝐵 Idempotent (for the A's), then Complement and Identity to
remove BB.
𝐴𝐵 + 𝐴𝐵 + 𝐴. 1 + 𝐴𝐵 Commutative, Identity; setting up for the next step.
𝐴𝐵 + 𝐴 𝐵 + 1 + 𝐵 Distributive.
𝐴𝐵 + 𝐴 Identity, twice (depending how you count it).
𝐴 + 𝐴𝐵 Commutative.
𝐴+𝐴 𝐴+𝐵 Distributive.
A+B Complement, Identity.
Solved example 5: Simplify the circuit
• Solution: The Boolean equation of the circuit is: Q=AB+BC(B+C)