EngineeringElectrical EngineeringMedium

Boolean Algebra

Also known as:Boolean LogicBinary AlgebraSwitching Algebra

Boolean algebra is a branch of algebra in which the variables can only take the values 0 (false) or 1 (true), and the operations are AND (conjunction, ·), OR (disjunction, +), and NOT (negation, ‾). It provides the mathematical framework for analysing and simplifying digital logic circuits, and is the theoretical foundation of computer science and digital electronics. Boolean expressions can be simplified using theorems and laws such as De Morgan's Theorems, the absorption law, and consensus theorem to reduce the number of logic gates required in a circuit.

Key Formula

NOT(A AND B) = NOT-A OR NOT-B (De Morgan's First Theorem)

LaTeX: \overline{A \cdot B} = \bar{A} + \bar{B} \quad \text{(De Morgan's First Theorem)}

SymbolMeaningUnit
A, BBoolean variables (can be 0 or 1)dimensionless (binary)
\cdotAND operation (logical conjunction)Boolean operator
+OR operation (logical disjunction)Boolean operator
\bar{A}NOT A (logical complement of A)Boolean operator

Worked Example

Problem

Simplify the Boolean expression Y = AB + AB̄ using Boolean algebra laws.

Solution

Step 1: Factor out A: Y = A(B + B̄). Step 2: Apply complement law: B + B̄ = 1. Step 3: Apply identity law: A × 1 = A. Step 4: Therefore Y = A. Step 5: Verification with truth table: A=0, B=0: Y = 0·0 + 0·1 = 0 = A ✓ A=0, B=1: Y = 0·1 + 0·0 = 0 = A ✓ A=1, B=0: Y = 1·0 + 1·1 = 1 = A ✓ A=1, B=1: Y = 1·1 + 1·0 = 1 = A ✓

Answer

Y = A (the expression simplifies to A)

Fundamental Laws and Theorems of Boolean Algebra

Law / TheoremAND FormOR FormDescription
Identity LawA · 1 = AA + 0 = AOperating with neutral element
Null LawA · 0 = 0A + 1 = 1Domination by 0 or 1
Idempotent LawA · A = AA + A = ARepeating same variable
Complement LawA · Ā = 0A + Ā = 1Variable with its complement
De Morgan's 1st Theorem̄(A · B) = Ā + B̄NAND → OR of complements
De Morgan's 2nd Theorem̄(A + B) = Ā · B̄NOR → AND of complements
Absorption LawA · (A + B) = AA + A · B = ASimplification by absorption

Interactive Tools

Wolfram Alpha — Boolean Simplification

Open Tool

Khan Academy — Boolean Logic

Open Tool

Brilliant.org — Boolean Algebra

Open Tool
Venn diagram illustrating Boolean AND, OR, and XOR operations using overlapping circles

Wikimedia Commons, CC BY-SA

Related Terms

Engineering

Logic Gate

A logic gate is a fundamental electronic circuit that performs a basic Boolean logic operation on one or more binary inputs (0 or 1) to produce a single binary output, forming the building blocks of all digital systems. The primary logic gates are AND, OR, NOT, NAND, NOR, XOR, and XNOR, each implementing a specific logical function defined by a truth table. Logic gates are implemented using transistors and are combined in large numbers to create complex digital circuits such as processors, memory units, and controllers.

Engineering

Transistor

A transistor is a semiconductor device with three terminals that can amplify electrical signals or act as an electronic switch by controlling current flow between two terminals using a small input signal at the third. The two main types are the Bipolar Junction Transistor (BJT), which is current-controlled, and the Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET), which is voltage-controlled. Transistors are the fundamental building blocks of modern electronics, with billions packed into a single integrated circuit chip.

Engineering

Superposition Theorem

The Superposition Theorem states that in any linear circuit with multiple independent sources, the response (voltage or current) at any element equals the algebraic sum of the responses caused by each independent source acting alone, with all other independent sources deactivated. Voltage sources are deactivated by replacing them with short circuits, while current sources are deactivated by replacing them with open circuits. This theorem greatly simplifies the analysis of circuits with multiple sources and applies only to linear systems.

Boolean algebra is named after George Boole (1815–1864), an English mathematician and logician who introduced the system in his 1847 work "The Mathematical Analysis of Logic" and expanded it in "An Investigation of the Laws of Thought" (1854). "Algebra" comes from Arabic "al-jabr" (reunion of broken parts), introduced to Europe through al-Khwarizmi's 9th-century work.

boolean-algebradigital-logicbinaryde-morgans-theoremlogic-simplificationelectrical-engineering