01 / 21
0 1

Boolean Algebra
Identities

Master the fundamental laws that simplify logical expressions: from identity and complement to De Morgan's theorems.

Discrete Math

What is Boolean Algebra?

Boolean algebra is an algebraic system operating on the set \({0, 1}\) with three fundamental operations: AND (conjunction, \(\cdot\)), OR (disjunction, \(+\)), and NOT (complement, \(\overline{A}\)).

AND: \( A \cdot B \)
Output is \(1\) only when both inputs are \(1\).
OR: \( A + B \)
Output is \(1\) when at least one input is \(1\).
NOT: \( \overline{A} \)
Flips the value: \(0 \to 1\) and \(1 \to 0\).

Why Do Identities Matter?

Boolean identities let you simplify complex logic expressions into fewer terms and fewer gates. This directly impacts real-world outcomes:

1
Circuit optimization: Fewer gates mean less hardware, lower cost, and faster chips.
2
Software efficiency: Simplified conditions run faster in programs and compilers.
3
Proof technique: Identities are the axioms you use to prove logical equivalences rigorously.

Identity & Null Laws

Identity Laws
\( A + 0 = A \)
\( A \cdot 1 = A \)

Adding \(0\) or multiplying by \(1\) leaves the variable unchanged.
Null Laws
\( A + 1 = 1 \)
\( A \cdot 0 = 0 \)

OR-ing with \(1\) always gives \(1\); AND-ing with \(0\) always gives \(0\).

Complement & Idempotent Laws

Complement
\( A + \overline{A} = 1 \)
\( A \cdot \overline{A} = 0 \)

A variable OR-ed with its complement is always \(1\); AND-ed is always \(0\).
Idempotent
\( A + A = A \)
\( A \cdot A = A \)

Repeating the same variable adds nothing new.
Involution
\( \overline{\overline{A}} = A \)

Double negation cancels out.

Commutative, Associative, Distributive

C
Commutative: \( A + B = B + A \) and \( A \cdot B = B \cdot A \). Order does not matter.
A
Associative: \( (A + B) + C = A + (B + C) \) and \( (A \cdot B) \cdot C = A \cdot (B \cdot C) \). Grouping does not matter.
D
Distributive: \( A \cdot (B + C) = A \cdot B + A \cdot C \) and \( A + (B \cdot C) = (A + B) \cdot (A + C) \).

Absorption Laws

Absorption 1
\( A + A \cdot B = A \)

If \(A\) is already present in the OR, adding \(A \cdot B\) is redundant.
Absorption 2
\( A \cdot (A + B) = A \)

If \(A\) is already present in the AND, the OR term collapses.

De Morgan's Theorems

Theorem 1
\( \overline{A + B} = \overline{A} \cdot \overline{B} \)
"Break the bar, change the sign" NOR → AND of complements Theorem 2
\( \overline{A \cdot B} = \overline{A} + \overline{B} \)
"Break the bar, change the sign" NAND → OR of complements

Generalized De Morgan's

De Morgan's theorems extend to any number of variables:

1
Break the bar over the entire expression.
2
Change the operator: every \(+\) becomes \(\cdot\) and every \(\cdot\) becomes \(+\).
3
Complement each individual term that was under the original bar.

Boolean vs Regular Algebra

Boolean Algebra Regular Algebra
Values \({0, 1}\) \(\mathbb{R}\) (all reals)
Idempotent \(A + A = A\) ✓ \(a + a = 2a\) ✕
Complement \(A + \overline{A} = 1\) ✓ No complement ✕
OR distributes over AND ✓ ✕ \(a+(b \cdot c) \neq (a+b)(a+c)\)
Absorption \(A + AB = A\) ✓ ✕

How to Simplify Step by Step

1
Apply De Morgan's to remove bars over grouped terms.
2
Apply involution \(\overline{\overline{A}} = A\) to cancel double complements.
3
Distribute using \(A(B+C) = AB + AC\) to expand or factor.
4
Apply complement \(A + \overline{A} = 1\) and identity \(A \cdot 1 = A\) to collapse terms.
5
Apply absorption \(A + AB = A\) and idempotent \(A + A = A\) for final cleanup.

Example 1: Basic Simplification

Simplify \( A \cdot B + A \cdot \overline{B} \).

1
Factor out \(A\): \( A(B + \overline{B}) \) [Distributive]
2
Complement law: \( B + \overline{B} = 1 \), so \( A \cdot 1 \) [Complement]
3
Identity law: \( A \cdot 1 = A \) [Identity]

Example 2: De Morgan's in Action

Simplify \( \overline{\overline{A} \cdot B} \).

1
De Morgan's: \( \overline{\overline{A} \cdot B} = \overline{\overline{A}} + \overline{B} \) [Theorem 2]
2
Involution: \( \overline{\overline{A}} = A \), giving \( A + \overline{B} \) [Involution]

Example 3: Multi-Step Simplification

Simplify \( A \cdot B + A \cdot \overline{B} \cdot C + \overline{A} \).

1
Factor \(A\): \( A(B + \overline{B} \cdot C) + \overline{A} \) [Distributive]
2
Boolean distribution: \( B + \overline{B}C = B + C \) [since \((B+\overline{B})(B+C) = 1 \cdot (B+C) = B+C\)]
3
Now: \( A(B + C) + \overline{A} = AB + AC + \overline{A} \) [Expand]
4
\( AB + \overline{A} = \overline{A} + B \) [Reduction: \(X + \overline{X}Y = X+Y\)]
5
Now: \( \overline{A} + B + AC \). Since \(\overline{A} + AC = \overline{A} + C\), the result is \( \overline{A} + B + C \) [\(\overline{X} + XY = \overline{X} + Y\)]

Common Mistakes

✕ Distributing the Bar Incorrectly
Writing \(\overline{A + B} = \overline{A} + \overline{B}\) instead of the correct \(\overline{A} \cdot \overline{B}\). Remember: swap the operator.
✕ Using Regular Algebra Rules
Treating \(A + A\) as \(2A\) or "canceling" terms. In Boolean: \(A + A = A\), not \(2A\).
✕ Forgetting the Second Distributive Law
Missing that \(A + BC = (A+B)(A+C)\) is valid. This has no real-number analogue and is easy to overlook.

Complete Identity Reference

Law OR Form AND Form
Identity \(A + 0 = A\) \(A \cdot 1 = A\)
Null \(A + 1 = 1\) \(A \cdot 0 = 0\)
Complement \(A + \overline{A} = 1\) \(A \cdot \overline{A} = 0\)
Idempotent \(A + A = A\) \(A \cdot A = A\)
Commutative \(A + B = B + A\) \(A \cdot B = B \cdot A\)
Distributive \(A + BC = (A+B)(A+C)\) \(A(B+C) = AB + AC\)
Absorption \(A + AB = A\) \(A(A+B) = A\)
De Morgan's \(\overline{A+B} = \overline{A} \cdot \overline{B}\) \(\overline{A \cdot B} = \overline{A}+\overline{B}\)

Question 1 of 5

Which Boolean identity does \( A + 1 = 1 \) represent?

Question 2 of 5

What is the simplified form of \( \overline{A + B} \) using De Morgan's theorem?

Question 3 of 5

Simplify \( A + A \cdot B \).

Question 4 of 5

Which expression is NOT a valid Boolean identity?

Question 5 of 5

Simplify \( \overline{\overline{A} + \overline{B}} \).