Boolean Algebra: Fundamental laws of Boolean Algebra(Part 2)
Boolean Algebra Explained – Complete Beginner Guide (Part 2)
In Part 1, you learned the basics of Boolean Algebra, including Boolean variables, constants, logical operators (AND, OR, NOT), truth tables, and the relationship between Boolean Algebra and logic gates.
In this part, we will explore the fundamental laws of Boolean Algebra. These laws are essential because they help simplify complex Boolean expressions, reduce hardware requirements, and improve the efficiency of digital circuits.
Boolean Laws Explained
Boolean laws are mathematical rules used to simplify logical expressions. These rules are widely applied in digital circuit design, programming, computer architecture, and networking.
1. Identity Law
Definition
The Identity Law states that adding 0 or multiplying by 1 does not change the value of a Boolean variable.
Formulas
A + 0 = A
A · 1 = A
Example
If:
A = 1
Then:
1 + 0 = 1
1 · 1 = 1
Real-World Example
Suppose a security system checks whether an employee ID is valid.
Adding an unnecessary "always false" condition (0) does not affect the original result.
2. Null Law
Definition
The Null Law states that:
A + 1 = 1
A · 0 = 0
Explanation
OR with 1 always gives 1.
AND with 0 always gives 0.
Example
1 + 1 = 1
0 + 1 = 1
1 · 0 = 0
0 · 0 = 0
Practical Example
If an emergency override switch is always ON, the machine starts regardless of other inputs.
3. Idempotent Law
Definition
Repeating the same variable does not change its value.
Formulas
A + A = A
A · A = A
Example
1 + 1 = 1
0 · 0 = 0
Practical Example
Checking the same password twice produces the same authentication result as checking it once.
4. Complement Law
Definition
Every Boolean variable has a complement.
Formulas
A + A' = 1
A · A' = 0
Where:
A'
means NOT A.
Example
If
A = 1
then
A' = 0
1 + 0 = 1
1 · 0 = 0
Practical Example
A light cannot be simultaneously ON and OFF.
5. Involution Law
Definition
Applying the NOT operator twice returns the original value.
Formula
(A')' = A
Example
A = 1
NOT A = 0
NOT (NOT A) = 1
Practical Example
Locking and then unlocking a phone returns it to its original accessible state.
6. Commutative Law
Definition
Changing the order of variables does not change the result.
Formulas
A + B = B + A
A · B = B · A
Example
1 + 0 = 0 + 1
1 · 0 = 0 · 1
Practical Example
Whether Employee A enters before Employee B or vice versa, both must still be authenticated.
7. Associative Law
Definition
Grouping of variables does not affect the result.
Formulas
(A + B) + C = A + (B + C)
(A · B) · C = A · (B · C)
Example
(1 + 0) + 1
=
1 + (0 + 1)
=
1
Real-World Example
When multiple security checks are grouped differently, the final decision remains unchanged.
8. Distributive Law
Definition
Similar to algebra, multiplication distributes over addition and vice versa.
Formulas
A(B + C)
=
AB + AC
A + BC
=
(A + B)(A + C)
Example
A = 1
B = 0
C = 1
1(0+1)
=
1
1·0 + 1·1
=
0+1
=
1
Practical Example
Digital circuit designers use this law to simplify logic circuits before implementation.
9. Absorption Law
Definition
Certain redundant terms can be eliminated.
Formulas
A + AB = A
A(A + B) = A
Example
A=1
B=0
1+1·0
=
1
Why It Matters
This law reduces unnecessary logic gates, making hardware cheaper and faster.
10. De Morgan's Theorems
De Morgan's Theorems are among the most important concepts in Boolean Algebra.
They allow AND operations to be converted into OR operations and vice versa.
First Theorem
(A · B) = A' + B'
Meaning:
NOT (A AND B)
equals
NOT A OR NOT B
Second Theorem
(A + B) = A' · B'
Meaning:
NOT (A OR B)
equals
NOT A AND NOT B
Example
Suppose
A = 1
B = 0
Then
(A·B)'
=
(1·0)'
=
0'
=
1
Now, verify using De Morgan's theorem.
A'+B'
=
0+1
=
1
Both sides are equal.
Real-World Example
Suppose a company grants server access only when both:
Employee Card is valid.
Biometric is verified
Using De Morgan's theorem helps security engineers redesign logical conditions more efficiently.
Duality Principle
One unique feature of Boolean Algebra is the Duality Principle.
It states that every Boolean expression has a corresponding dual expression obtained by:
Replacing OR (+) with AND (·)
Replacing AND (·) with OR (+)
Replacing 0 with 1
Replacing 1 with 0
Example
Original
A+0=A
Dual
A·1=A
This principle simplifies theorem verification and digital circuit analysis.
Boolean Expression Simplification
Boolean laws help reduce complex expressions into simpler ones.
Example 1
Simplify:
A+A
Using Idempotent Law
Answer:
A
Example 2
Simplify
A+A'
Using the Complement Law
Answer
1
Example 3
Simplify
A+AB
Using the Absorption Law
Answer
A
Example 4
Simplify
(A+B)'
Using De Morgan's Theorem
Answer
A'·B'
Why Simplification is Important
Boolean simplification provides several benefits:
Reduces the number of logic gates.
Lowers hardware cost.
Decreases power consumption.
Improves processing speed.
Makes digital circuits easier to troubleshoot.
Enhances system reliability.
Real-World Example
Imagine designing an automatic parking gate.
Conditions:
RFID Card = A
Vehicle Registered = B
Security Approval = C
Original expression:
AB + AC
Using the Distributive Law:
A(B+C)
This simplified expression requires fewer logic gates, making the control system faster and more efficient.
Mini Summary
Boolean laws provide systematic rules for simplifying logical expressions. Engineers use the laws of Identity, Null, Idempotence, Complement, Involution, Commutativity, Associativity, Distributivity, Absorption, and De Morgan to reduce circuit complexity, improve efficiency, and optimise digital system performance.
Quick Revision Notes
Identity Law: A + 0 = A, A · 1 = A
Null Law: A + 1 = 1, A · 0 = 0
Idempotent Law: A + A = A
Complement Law: A + A' = 1
Involution Law: (A')' = A
Commutative Law: A + B = B + A
Associative Law: (A + B) + C = A + (B + C)
Distributive Law: A(B + C) = AB + AC
Absorption Law: A + AB = A
De Morgan's Theorems: Convert AND to OR and OR to AND using complements.
Boolean simplification reduces hardware cost and improves performance.
Part 2 Conclusion
In this section, you explored the fundamental laws of Boolean Algebra that are used to simplify logical expressions and optimise digital circuits. These laws are indispensable for Computer Science students, digital electronics engineers, and competitive exam aspirants because they form the basis of circuit optimisation and logical reasoning.
In Part 3, we will study Boolean Algebra applications, Logic Circuit Design, Karnaugh Maps (K-Map) Introduction, Computer Architecture, Programming, Networking, Real-World Applications, Advantages, Limitations, Best Practices, Common Mistakes, Interview Questions, and Competitive Exam MCQs.
Author Bio
About the Author
The author is a Computer Science and Cybersecurity content writer focused on creating beginner-friendly educational resources for students, networking professionals, cybersecurity enthusiasts, and competitive exam aspirants. Areas of expertise include Network Security, Cybersecurity Fundamentals, Operating Systems, DBMS, Computer Networks, and Emerging Security Technologies.
References
Recommended resources for further learning:
NIST Cybersecurity Framework
Cybersecurity and Infrastructure Security Agency (CISA)
RFC Security Standards
Cisco Security Documentation
Fortinet Security Guides
Palo Alto Networks Documentation
Comments
Post a Comment