A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Boolean Algebra

College Depth 68 in the knowledge graph ☐ I know this ☆ Set as goal
2,704topics build on this
310prerequisites beneath it
See this on the map →
Logical EquivalencesTruth Tables+1 more→→Arithmetic Logic Unit (ALU)Binary Adders: Half-Adders and Full-Adders+17 more
boolean-algebra boolean-functions de-morgan dnf cnf simplification

Core Idea

Boolean algebra is an algebraic structure with elements {0, 1} and operations AND (∧), OR (∨), and NOT (¬), satisfying axioms including commutativity, associativity, distributivity (each operation over the other), identity, and complementation. It is formally isomorphic to both propositional logic and set algebra. Every Boolean function can be expressed in disjunctive normal form (sum of minterms) or conjunctive normal form (product of maxterms). Simplification using De Morgan's laws, absorption, and idempotence reduces circuit complexity.

How It's Best Learned

Build truth tables for compound Boolean expressions, then simplify algebraically and verify the simplified form has the same table. Connect each algebraic law to its logical and set-theoretic counterpart. Use Karnaugh maps as a visual simplification tool for 2-to-4 variable functions.

Common Misconceptions

Explainer

You already know propositional logic from truth tables and logical equivalences. Boolean algebra takes those logical operations and treats them algebraically — like algebra over {0, 1} instead of the real numbers. The payoff is that you can simplify complex logical expressions the way you simplify polynomial expressions, reducing circuit complexity without ever building a full truth table.

The elements are {0, 1} (false and true) with three operations: AND (∧), OR (∨), and NOT (¬). The algebraic laws are richer than they first appear. Commutativity, associativity, and identity laws work as expected. The surprise is double distributivity: AND distributes over OR, but so does OR over AND. In ordinary arithmetic, multiplication distributes over addition but not the reverse. In Boolean algebra, both directions work. This symmetry — called the principle of duality — means every valid law has a dual obtained by swapping AND and OR (and swapping 0 and 1). Idempotence (A ∧ A = A) and complementation (A ∧ ¬A = 0) have no ordinary arithmetic analogues at all.

De Morgan's laws are the most important tools for simplification and the most frequently misapplied. ¬(A ∧ B) = ¬A ∨ ¬B, and ¬(A ∨ B) = ¬A ∧ ¬B. The critical pattern: when you push a NOT through a parenthesis, two things change simultaneously — the connective (AND becomes OR or vice versa) AND complements are added to each variable. Students who change only one thing get wrong answers. A reliable mnemonic: "break the bar, change the operation." Verify any application by checking a truth table with a small example.

Every Boolean function has a canonical form. Disjunctive Normal Form (DNF) writes the function as an OR of AND-terms — one term for each row of the truth table where the output is 1. Conjunctive Normal Form (CNF) is the dual: AND of OR-terms. From your study of set operations, you already have intuition here: DNF corresponds to a union of intersections, CNF to an intersection of unions. These normal forms let you convert any truth table into an algebraic expression mechanically and provide a reference for checking equivalence between expressions.

The direct application of all this is digital circuit design. Each AND and OR gate in a circuit corresponds to a Boolean operation; each NOT gate applies complementation. Simplifying a Boolean expression using absorption (A ∧ (A ∨ B) = A), idempotence, and De Morgan reduces the gate count in hardware — translating to cheaper, faster chips. For functions with 2–4 variables, Karnaugh maps provide a visual tool for spotting these simplifications by grouping adjacent 1s in a grid. The historical note: Boolean algebra was invented by George Boole in 1847 as pure logic, but found its defining application a century later when Claude Shannon showed in 1937 that electrical relay circuits obey exactly these axioms.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra

Longest path: 69 steps · 310 total prerequisite topics

Prerequisites (3)

Leads To (19)