Logo
All chapters
Volume II: Digital Logic  ›  Boolean Algebra & Logic Gates

Boolean Functions

A Boolean function maps each input combination to an output of 0 or 1.

PrevTheorems & Properties
NextCanonical & Standard Forms

Description

A rule assigning a 0 or 1 output to every combination of input variables. It is the precise specification of what a combinational circuit must compute. Capture it as a truth table, an algebraic expression, or a gate network — interchangeably.

  • Expression: e.g. F = AB + C.
  • Truth table: output listed for all 2ⁿ input rows.
  • Circuit: gates wired to realize the expression.
  • F′ is found by applying DeMorgan throughout, or by swapping 0s/1s in the truth table.
  • What: A rule assigning a 0 or 1 output to every combination of input variables.
  • Why: It is the precise specification of what a combinational circuit must compute.
  • How: Capture it as a truth table, an algebraic expression, or a gate network — interchangeably.
  • Where: Every combinational design starts as a Boolean function.
  • When: At specification time, before choosing an implementation.
  • Analogy — A Boolean function is like a recipe's required outcome ('dish must be salty when X'); the expression and the circuit are two different kitchens that produce the same dish.

At a glance

What

A rule assigning a 0 or 1 output to every combination of input variables.

Why

It is the precise specification of what a combinational circuit must compute.

How

Capture it as a truth table, an algebraic expression, or a gate network — interchangeably.

Where

Every combinational design starts as a Boolean function.

When

At specification time, before choosing an implementation.

Think of it like…

A Boolean function is like a recipe's required outcome ('dish must be salty when X'); the expression and the circuit are two different kitchens that produce the same dish.

Three equivalent views

  • Expression: e.g. F = AB + C.
  • Truth table: output listed for all 2ⁿ input rows.
  • Circuit: gates wired to realize the expression.

Complement of a function

  • F′ is found by applying DeMorgan throughout, or by swapping 0s/1s in the truth table.

Example: F = AB + C

ABCF
0000
0011
0100
0111
1000
1011
1101
1111

Explore single-gate functions

▶ live simulator
A0B00YAND

Click a terminal (A/B) to toggle it · glowing wires carry a logic 1 · the lamp is output Y

ABY
000
010
100
111

The 5 Whys

  1. 1

    Why formalize a function? To specify a circuit unambiguously.

  2. 2

    Why multiple representations? Each view suits a different design step.

  3. 3

    Why is the truth table canonical? It lists behavior for every input — no ambiguity.

  4. 4

    Why simplify the expression? Smaller expressions → smaller circuits.

  5. 5

    Root cause: a function is the contract; the circuit is one of many valid implementations.

Cheat sheet

Working principle

  • Capture it as a truth table, an algebraic expression, or a gate network — interchangeably.
  • A rule assigning a 0 or 1 output to every combination of input variables.

Formulas & Boolean expressions

  • Expression: e.g. F = AB + C.
  • Truth table: output listed for all 2ⁿ input rows.
  • F′ is found by applying DeMorgan throughout, or by swapping 0s/1s in the truth table.

Key facts

  • Expression: e.g. F = AB + C.
  • F′ is found by applying DeMorgan throughout, or by swapping 0s/1s in the truth table.

Why it exists

  • Root cause: a function is the contract; the circuit is one of many valid implementations.
PrevTheorems & Properties
NextCanonical & Standard Forms