Boolean algebra

Comprehensive study notes, diagrams, and exam preparation for Boolean algebra.

Boolean Algebra

Definition

Boolean algebra is a branch of algebra that deals with variables whose values are limited to two states, typically 0 and 1 or false and true, and with logical operations such as AND, OR, and NOT. It was developed by George Boole, and it is used to simplify logic expressions and design digital systems.

A Boolean variable can take only one of two values:

0

  • = false, off, low, or no

1

  • = true, on, high, or yes

Boolean algebra follows specific laws and rules that make it possible to combine, reduce, and evaluate logical expressions.


Main Content

1. Basic Boolean Values and Variables

  • A Boolean variable represents a logical state and can have only two possible values: 0 or 1. This binary nature is what makes Boolean algebra suitable for digital systems, where electrical signals are often interpreted as on/off states.
  • Boolean variables are commonly written as uppercase letters such as A, B, C, where each letter stands for a logical condition. For example, if A = 1, it may mean “the switch is ON,” and if A = 0, it may mean “the switch is OFF.”

Example:
If a lamp turns on only when a switch is pressed, the switch state can be represented by a Boolean variable:

  • Switch not pressed = 0
  • Switch pressed = 1

This simple representation allows complex systems to be modeled using logic.


2. Boolean Operations

  • The three fundamental Boolean operations are AND, OR, and NOT. These operations combine or modify Boolean values according to strict rules.

AND operation: The result is 1 only if all inputs are 1.
Example:

  • 1 AND 1 = 1
  • 1 AND 0 = 0
  • 0 AND 1 = 0
  • 0 AND 0 = 0

OR operation: The result is 1 if at least one input is 1.
Example:

  • 1 OR 1 = 1
  • 1 OR 0 = 1
  • 0 OR 1 = 1
  • 0 OR 0 = 0

NOT operation: The result is the opposite of the input.
Example:

  • NOT 1 = 0
  • NOT 0 = 1

Boolean expressions are written using these operations. For instance,
A + B often means OR,
A · B means AND,
A' or ¬A means NOT.


3. Laws and Theorems of Boolean Algebra

  • Boolean algebra has several important laws that help simplify expressions and make logical analysis easier. These laws are essential in designing efficient circuits and reducing the number of components used.

Identity Law

  • A + 0 = A
  • A · 1 = A

Null Law

  • A + 1 = 1
  • A · 0 = 0

Idempotent Law

  • A + A = A
  • A · A = A

Complement Law

  • A + A' = 1
  • A · A' = 0

Commutative Law

  • A + B = B + A
  • A · B = B · A

Associative Law

  • (A + B) + C = A + (B + C)
  • (A · B) · C = A · (B · C)

Distributive Law

  • A · (B + C) = A·B + A·C
  • A + (B · C) = (A + B) · (A + C)

De Morgan’s Laws

  • (A · B)' = A' + B'
  • (A + B)' = A' · B'

These laws are used to transform complex expressions into simpler equivalent forms. For example:

  • Expression: A + A·B
  • Using distributive ideas: A(1 + B) = A
  • So the simplified result is A

This kind of simplification is extremely valuable in logic circuit design.


Working / Process

1. Identify the logical variables and operations

Determine which inputs are Boolean variables and which operations connect them. For example, a problem may involve conditions like “student is present AND assignment is submitted.”

2. Apply Boolean laws or evaluate the truth values

Use truth tables, logical rules, or algebraic laws to compute the result or simplify the expression. For example, if A = 1 and B = 0, then A · B = 0 and A + B = 1.

3. Simplify the expression and interpret the result

Reduce the logic expression to its simplest form using laws such as complement, distributive, or De Morgan’s theorem. Then explain the meaning in practical terms, such as circuit output or decision outcome.

Example of simplification:

Using distributive law:

Since:

So:

Thus, the simplified form is:

This process reduces complexity and saves resources in digital systems.


Advantages / Applications

Simplifies logical expressions

Boolean algebra makes complicated logic easier to understand and reduce, which is useful in mathematics, circuit design, and algorithm development.

Used in digital circuit design

It is the foundation of logic gates, flip-flops, adders, multiplexers, and processors. Engineers use Boolean algebra to design efficient circuits with fewer gates and less power consumption.

Supports decision-making in computing and programming

Conditions in programming languages, search engines, databases, and control systems often rely on Boolean logic. For example, an if statement may check whether A AND B is true before executing code.

Common real-world applications include:

  • Digital electronics
  • Computer architecture
  • Programming conditions
  • Control systems
  • Database queries
  • Artificial intelligence decision rules

Summary

  • Boolean algebra is a logic-based mathematical system for working with 0 and 1.
  • It uses operations like AND, OR, and NOT to form and simplify expressions.
  • It is essential for understanding digital circuits and logical decision-making.

Important terms to remember

  • Boolean variable, logical operation, truth table, logic gate, De Morgan’s laws