Resources For Teachers For Tutors For Students & Parents Pricing
Year 11 Maths - Specialist (Unit 1 and Unit 2) Logic and algorithms

Logic gates and circuit simplification

20 practice questions 0 video lessons Theory + worked examples

Master logic gates and circuit simplification in Year 11 VCE Specialist Mathematics. Logic gates — AND, OR, NOT, NAND, NOR and XOR — are the building blocks of digital circuits, each described by a truth table and a Boolean expression. It sits in the Algebra, number and structure area of study of the VCE Mathematics Study Design (VCAA), within the Logic and algorithms topic of Unit 1.

You will learn to find the output of a combinational circuit, write the Boolean expression a circuit computes, and simplify it using the laws of Boolean algebra — including De Morgan's laws — to build the same output with fewer gates.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Logic gates are the building blocks of digital circuits: each gate takes one or two binary inputs (\(0\) or \(1\)) and produces a single output. In Year 11 Specialist Mathematics you describe a gate by its truth table and Boolean expression, trace the output of a small circuit, write the expression a circuit computes, and simplify circuits using the laws of Boolean algebra.

A logic gate acts on Boolean values — each input and output is either \(1\) (true) or \(0\) (false). A truth table lists the output for every possible combination of inputs, and a Boolean expression records the same rule in symbols.

The six standard gates are:

  • AND \((A\land B)\): output \(1\) only when both inputs are \(1\).
  • OR \((A\lor B)\): output \(1\) when at least one input is \(1\) (inclusive or); it is \(0\) only for \((0,0)\).
  • NOT \((\overline A)\): a single-input inverter — it outputs the opposite bit.
  • NAND \((\overline{A\land B})\): not-and — an AND gate followed by an inverter, so it outputs \(0\) only for \((1,1)\).
  • NOR \((\overline{A\lor B})\): not-or — an OR gate followed by an inverter, so it outputs \(1\) only for \((0,0)\).
  • XOR \((A\oplus B)\): exclusive-or — output \(1\) exactly when the two inputs differ.

On a circuit diagram each gate has its own symbol. AND has a flat back with a rounded nose; OR has a curved back and a pointed nose; NOT is a triangle. A small bubble on the output turns AND into NAND, OR into NOR, and marks the inverting tip of a NOT gate. XOR is an OR shape with an extra curved line across its back.

A combinational circuit wires several gates together. Signals flow left to right: the outputs of early gates become the inputs of later ones, and the final wire is the circuit’s output. Simplifying a circuit means rewriting its Boolean expression with the laws of Boolean algebra so the same output is produced by fewer gates.

Logic-gate circuitAn AND gate with inputs A and B and output Y. AND A B Y
An AND gate — flat back, rounded nose. Output \(A\land B\) is \(1\) only when both inputs are \(1\).
Logic-gate circuitAn OR gate with inputs A and B and output Y. OR A B Y
An OR gate — curved back, pointed nose. Output \(A\lor B\) is \(1\) when at least one input is \(1\).
Logic-gate circuitA NOT gate (inverter) with input A and output Y. NOT A Y
A NOT gate (inverter) — a triangle with an output bubble. Output \(\overline A\) is the opposite of the input.
Logic-gate circuitAn XOR gate with inputs A and B and output Y. XOR A B Y
An XOR gate — the OR shape with a back arc. Output \(A\oplus B\) is \(1\) exactly when the inputs differ.
Logic-gate circuitA NAND gate with inputs A and B and output Y. NAND A B Y
A NAND gate — an AND with an output bubble. The bubble inverts, so \(\overline{A\land B}\) is \(0\) only for \((1,1)\).
Logic-gate circuitA NOR gate with inputs A and B and output Y. NOR A B Y
A NOR gate — an OR with an output bubble, giving \(\overline{A\lor B}\), which is \(1\) only for \((0,0)\).
Logic-gate circuitAn AND gate on A and B feeding an OR gate together with input C, output Y. AND OR A B C Y
A small combinational circuit: inputs \(A\) and \(B\) feed an AND gate, whose output is combined with \(C\) in an OR gate, giving \((A\land B)\lor C\).

Each gate is defined by a Boolean expression and, equivalently, by its truth table. Writing \(\land\) for AND, \(\lor\) for OR, an overline for NOT and \(\oplus\) for XOR:

\[ A\land B,\quad A\lor B,\quad \overline A,\quad \overline{A\land B},\quad \overline{A\lor B},\quad A\oplus B \]
AB¯

The truth tables of the two-input gates over all four input combinations, with the single-input NOT gate alongside:

\(A\)\(B\)\(A\land B\)\(A\lor B\)\(\overline{A\land B}\)\(\overline{A\lor B}\)\(A\oplus B\)
0000110
0101101
1001101
1111000
\(A\)\(\overline A\)
01
10

Laws of Boolean algebra

These identities let you rewrite an expression without changing its output. Each holds for every value of \(A\), \(B\), \(C\):

  • Identity: \(A\land 1=A\), \(A\lor 0=A\).
  • Annihilator: \(A\land 0=0\), \(A\lor 1=1\).
  • Complement: \(A\land\overline A=0\), \(A\lor\overline A=1\).
  • Idempotent: \(A\land A=A\), \(A\lor A=A\).
  • Distributive: \(A\land(B\lor C)=(A\land B)\lor(A\land C)\) and \(A\lor(B\land C)=(A\lor B)\land(A\lor C)\).
  • Absorption: \(A\lor(A\land B)=A\) and \(A\land(A\lor B)=A\).
  • De Morgan: \(\overline{A\land B}=\overline A\lor\overline B\) and \(\overline{A\lor B}=\overline A\land\overline B\).
AB¯=A¯B¯
De Morgan flips the operator. Complementing a bracket swaps \(\land\leftrightarrow\lor\) and complements each variable: \(\overline{A\land B}=\overline A\lor\overline B\), not \(\overline A\land\overline B\). Forgetting to change the operator is the most common slip.

Working with logic gates and circuits

To build a gate’s truth table (or read off its expression):

  1. List every input combination. Two inputs give four rows: \((0,0),(0,1),(1,0),(1,1)\).
  2. Apply the gate rule to each row to fill in the output column.

To find the output of a circuit for given inputs:

  1. Substitute the input values on the left.
  2. Evaluate gate by gate, left to right, carrying each gate’s output forward as an input to the next.
  3. The value on the final wire is the circuit’s output.

To find the expression a circuit computes, trace the signal left to right, writing the Boolean expression at each gate’s output until you reach the final wire.

To simplify a circuit (produce the same output with fewer gates):

  1. Write the Boolean expression the circuit computes.
  2. Apply the laws of Boolean algebra — absorption, distributive, complement and De Morgan — to reach the simplest equivalent expression.
  3. Redraw the circuit from the simplified expression; it needs fewer (sometimes zero) gates.
Always check against the truth table. Two expressions are equivalent precisely when they give the same output for all input combinations, so a quick truth-table check confirms a simplification.
Example 1 — Output of a single AND gate
For the AND gate shown, with inputs \(A\) and \(B\) and output \(Y\), find \(Y\) when (i) \(A=0,\ B=1\); (ii) \(A=1,\ B=0\); (iii) \(A=1,\ B=1\).
Solution

An AND gate outputs \(1\) only when both inputs are \(1\).

(i) \(A=0,\ B=1\):

\(Y\)\(=\)\(0 \land 1\)
\(=\)\(0\)

(ii) \(A=1,\ B=0\):

\(Y\)\(=\)\(1 \land 0\)
\(=\)\(0\)

(iii) \(A=1,\ B=1\):

\(Y\)\(=\)\(1 \land 1\)
\(=\)\(1\)

\(Y=0\) for both \((0,1)\) and \((1,0)\); \(Y=1\) only for \((1,1)\).

Logic-gate circuitA single AND gate with inputs A and B and output Y. AND A B Y
Example 2 — Expression of an AND into a NOT
The circuit shown feeds an AND gate into a NOT gate. Which Boolean expression does the circuit compute?
Solution

Work left to right — the AND output is inverted by the NOT gate:

\(\text{AND output}\)\(=\)\(A \land B\)
\(\text{NOT of that}\)\(=\)\(\overline{A \land B}\)

The circuit computes \(\overline{A \land B}\) — this is a NAND (not-and) gate.

Logic-gate circuitAn AND gate with inputs A and B whose output feeds a NOT gate. AND NOT A B Y
Example 3 — Expression a circuit computes
In the circuit shown, inputs \(A\) and \(B\) enter an AND gate whose output is combined with input \(C\) in an OR gate. Which Boolean expression does the circuit compute?
Solution

Trace each gate, then combine:

\(\text{AND gate}\)\(=\)\(A \land B\)
\(\text{OR with } C\)\(=\)\((A \land B) \lor C\)

The circuit computes \((A \land B) \lor C\).

Logic-gate circuitAn AND gate on A and B feeding an OR gate together with input C. AND OR A B C Y
Example 4 — Output and expression of a NOT into an OR
In the circuit shown, input \(A\) passes through a NOT gate before entering an OR gate with input \(B\); the output is \(Y\). Find \(Y\) when (i) \(A=1,\ B=0\); (ii) \(A=0,\ B=0\); and (iii) state the expression the circuit computes.
Solution

(i) \(A=1,\ B=0\) — invert \(A\) first, then OR with \(B\):

\(\overline A\)\(=\)\(\overline{1} = 0\)
\(Y\)\(=\)\(0 \lor 0\)
\(=\)\(0\)

(ii) \(A=0,\ B=0\):

\(\overline A\)\(=\)\(\overline{0} = 1\)
\(Y\)\(=\)\(1 \lor 0\)
\(=\)\(1\)

(iii) Expression computed:

\(Y\)\(=\)\(\overline A \lor B\)

(i) \(Y=0\); (ii) \(Y=1\); (iii) the circuit computes \(\overline A \lor B\).

Logic-gate circuitInput A through a NOT gate, then an OR gate with input B. NOT OR A B Y
Example 5 — Simplifying with the absorption law
A circuit computes \(Y = A \lor (A \land B)\), built from one AND gate and one OR gate. Simplify it, and state how many gates the simplified circuit needs.
Solution

Factor out \(A\); the bracket is absorbed (absorption law):

\(A \lor (A \land B)\)\(=\)\((A \land 1) \lor (A \land B)\)
\(=\)\(A \land (1 \lor B)\)
\(=\)\(A \land 1\)
\(=\)\(A\)

\(Y = A\): the output is just the wire \(A\), so the simplified circuit needs \(0\) gates.

Example 6 — Simplifying with the distributive and complement laws
A circuit computes \((A \land B) \lor (A \land \overline B)\). Use Boolean algebra to rewrite it as a single expression.
Solution

Factor out the common \(A\), then use \(B \lor \overline B = 1\):

\((A \land B) \lor (A \land \overline B)\)\(=\)\(A \land (B \lor \overline B)\)
\(=\)\(A \land 1\)
\(=\)\(A\)

The circuit is equivalent to \(A\) alone — no gates are needed.

Common pitfalls

Ignoring the inverting bubble. The small bubble on a gate’s output flips the result: NAND is not AND, and NOR is not OR. A NAND outputs \(0\) only for \((1,1)\); a NOR outputs \(1\) only for \((0,0)\).
Treating OR as exclusive. The OR gate is inclusive: \(1\lor 1=1\). If you want an output of \(1\) only when the inputs differ, that is XOR, \(A\oplus B\), not OR.
De Morgan without flipping the operator. \(\overline{A\land B}=\overline A\lor\overline B\) — the \(\land\) becomes \(\lor\). Writing \(\overline A\land\overline B\) is wrong; that equals \(\overline{A\lor B}\) instead.
Reading a circuit in the wrong direction. Signals flow left to right. Evaluate the earliest gates first and carry their outputs forward; do not start from the output wire.
Forgetting that “simplify” means fewer gates. A simplification such as \(A\lor(A\land B)=A\) removes gates entirely. Always redraw the circuit from the simplified expression and confirm the output is unchanged with a truth table.

Frequently asked questions

What is a logic gate?

A logic gate is a component that takes one or two binary inputs (each \(0\) or \(1\)) and produces a single binary output according to a fixed rule. The six standard gates are AND, OR, NOT, NAND, NOR and XOR, and each is described by a truth table and a Boolean expression.

What is the difference between AND and NAND?

NAND is “not-and”: it is an AND gate followed by an inverter, shown by a bubble on the output. So \(\overline{A\land B}\) is the exact opposite of \(A\land B\) — it outputs \(0\) only for \((1,1)\) and \(1\) for every other input.

What does an XOR gate do?

An XOR (exclusive-or) gate outputs \(1\) exactly when its two inputs differ, and \(0\) when they are equal. In AND/OR/NOT form, \(A\oplus B=(A\land\overline B)\lor(\overline A\land B)\).

How do I find the Boolean expression a circuit computes?

Trace the signal from left to right. Write the expression at the output of each gate, using earlier outputs as the inputs of later gates, until you reach the final wire. For example, an AND gate feeding an OR gate with a third input \(C\) computes \((A\land B)\lor C\).

What are De Morgan's laws?

They relate the complement of a bracket to the complements of its parts: \(\overline{A\land B}=\overline A\lor\overline B\) and \(\overline{A\lor B}=\overline A\land\overline B\). The operator flips between \(\land\) and \(\lor\), and every variable is complemented.

How do I simplify a circuit?

Write the Boolean expression the circuit computes, then apply the laws of Boolean algebra — absorption, distributive, complement and De Morgan — to reach the simplest equivalent expression. Redraw the circuit from that expression; it will use fewer gates while giving the same output.