Boolean Algebra — Definition, Formula & Examples
Boolean algebra is a branch of algebra where variables take only two values — true (1) or false (0) — and are combined using the operations AND, OR, and NOT.
A Boolean algebra is an algebraic structure consisting of a set with two binary operations (meet and join ), a unary operation (complement ), and two identity elements (0 and 1), satisfying the commutative, associative, distributive, identity, and complement laws.
Key Formula
Where:
- = Boolean variables, each equal to 0 or 1
- = AND operation
- = OR operation
How It Works
You manipulate Boolean expressions using a small set of laws, much like simplifying algebraic expressions with real numbers. The AND operation () returns 1 only when both inputs are 1. The OR operation () returns 1 when at least one input is 1. The NOT operation () flips 0 to 1 and 1 to 0. Key laws include De Morgan's laws: and . You can verify any Boolean identity by testing all possible input combinations in a truth table.
Worked Example
Problem: Simplify the Boolean expression: A ∧ (A ∨ B).
Apply the distributive law: Distribute A over the OR inside the parentheses.
Apply the idempotent law: Since A AND A always equals A, replace that term.
Apply the absorption law: The absorption law states that A ∨ (A ∧ B) = A, because if A is 1 the whole expression is 1 regardless of B, and if A is 0 both terms are 0.
Answer: The simplified expression is .
Why It Matters
Boolean algebra is the mathematical foundation of digital circuit design — every logic gate in a computer chip implements a Boolean operation. It is also central to database queries, programming conditionals, and any discrete mathematics or computer science course.
Common Mistakes
Mistake: Assuming AND distributes over OR the same way multiplication distributes over addition, but forgetting that OR also distributes over AND.
Correction: In Boolean algebra, both distributive laws hold: AND . The second has no analogue in ordinary algebra.
