A truth table lists the output of a Boolean expression for every possible combination of input values. Therefore, the expression states the logic symbolically, while the truth table demonstrates its complete input-output behaviour.
How the Relationship Works
A Boolean expression combines binary variables using logical operators such as NOT, AND, and OR. For example, consider:
Here, is true only when is true and is false. Its truth table is:
With input variables, a complete truth table contains rows. Since this example has two inputs, it requires rows.
| Direction | Method |
|---|---|
| Boolean expression to truth table | List every input combination, evaluate operations in the correct order, and calculate the final output. |
| Truth table to Boolean expression | Identify rows where the output is , write an AND term for each row, and connect those terms using OR. |
The reverse process is often expressed in sum-of-products form. For each row where , include every input variable in an AND term: use the variable itself when its value is and its negation when its value is . Then OR the row terms together. If several rows produce , this first expression may be simplified using Boolean laws without changing its truth table. This provides a systematic expression directly from the output column.
For the table above, the only output of occurs when and , producing .
A common misconception is that each truth table has only one possible expression. In fact, different but logically equivalent expressions can produce the same output column. For example, and have identical truth tables.
Exam Technique
For A1.2 Data representation and computer logic, an examiner may ask you to construct a truth table or determine an expression from one. Include every input combination, show useful intermediate columns, and apply NOT before AND, then OR, unless brackets change the order.