TutreNews Learn

Boolean logic

Combined expressions

Goal: Evaluate expressions with three inputs and brackets · 10 min

Larger expressions are evaluated like arithmetic: brackets first, then NOT, then AND, then OR (AND binds more strongly, like × before +).

A truth table lists every combination of inputs: 2 inputs → 4 rows, 3 inputs → 8 rows. Count in binary: 000, 001, 010, … 111.

Strategy for (A AND B) OR C:

  1. add a helper column A AND B,
  2. then OR it with C.

Two expressions are equivalent if their output columns are identical in every row — that is how you prove a simplification is correct.

Worked example: A OR (A AND B)

  1. Rows A=0: A AND B = 0, so result 0.
  2. Rows A=1: result 1 regardless of B.
  3. Output column equals A — the expression simplifies to A (absorption).