Basic Boolean Algebra

Boolean algebra is a branch of mathematics that deals with variables that can have only two values: TRUE (1) or FALSE (0). Developed by George Boole in the 19th century, it forms the foundation of digital logic design, computer circuits, and programming. In computing, Boolean operations are implemented directly in hardware using logic gates.

Basic Boolean Operations

NOT (Negation)

The NOT operation inverts the value: TRUE becomes FALSE, and FALSE becomes TRUE.

ANOT A
01
10

AND (Conjunction)

The AND operation is TRUE only if both inputs are TRUE.

ABA AND B
000
010
100
111

OR (Disjunction)

The OR operation is TRUE if at least one input is TRUE.

ABA OR B
000
011
101
111

XOR (Exclusive OR)

The XOR operation is TRUE only if exactly one input is TRUE.

ABA XOR B
000
011
101
110

Derived Operations

NAND (NOT AND)

NAND is the negation of AND. It is functionally complete—any Boolean function can be built using only NAND gates.

NOR (NOT OR)

NOR is the negation of OR. Like NAND, it is also functionally complete.

Key Laws and Theorems

Commutative Laws

A AND B = B AND A
A OR B = B OR A

Associative Laws

(A AND B) AND C = A AND (B AND C)
(A OR B) OR C = A OR (B OR C)

Distributive Laws

A AND (B OR C) = (A AND B) OR (A AND C)
A OR (B AND C) = (A OR B) AND (A OR C)

Identity Laws

A AND 1 = A
A OR 0 = A

De Morgan's Theorems

NOT (A AND B) = (NOT A) OR (NOT B)
NOT (A OR B) = (NOT A) AND (NOT B)

Applications

Boolean algebra is used to simplify digital circuits, design logic gates in CPUs, implement conditional statements in programming (e.g., if A and B), create search engine queries, and model decision-making processes. Mastering these basics is essential for understanding how computers perform logical operations at the lowest level.

Back to Misc


Copyright 2026 - MicroBasement