Skip to content
BetterDL

Double inversion

Also called: two inverters in series, bubble cancellation, double bubble, back-to-back inverters, cancelling bubbles

Inverting a signal twice gives back the original. Two NOT gates in a row, or two bubbles on one wire, cancel each other out.

Double inversion is the gate-level version of the involution law, = A. Flip a bit twice and it's back where it started.

It shows up in three places:

  • Inverter chains. Two NOT gates in series pass A through unchanged. In general, an even number of inverters passes A and an odd number gives .
  • Bubbles. Two bubbles on the same wire, one at a gate's output and one at the next gate's input, cancel out. This is the key move in bubble pushing.
  • Algebra. A bar over a bar on the same thing disappears, as in = .

Because a pair of inversions changes nothing, you can add a pair to any wire whenever it helps. That is exactly how an AND-OR circuit becomes nand nand logic: add two bubbles to each internal wire, then regroup them into the gates.

In hardware, two inverters in a row aren't useless. Every gate outputs a fresh, full-strength level, so back-to-back inverters act as a buffer that restores a weak signal or drives a large fan out.

Only inversions of the same signal cancel. Bars of different lengths are different operations: is not ; by De Morgan it is .

AY

Worked examples

Example

Five inverters in a row

A = 1 enters a chain of five NOT gates. What comes out?

  1. 1.

    Each pair of inverters cancels, so four of them do nothing overall.

  2. 2.

    One inverter is left over, so Y = = 0.

  3. 3.

    Step by step: 1 → 0 → 1 → 0 → 1 → 0. ✓

Example

Where a double bar cancels and where it doesn't

Simplify and .

  1. 1.

    : two bars over the same expression , so they cancel. Result: .

  2. 2.

    : the short bars sit on A and B, and the long bar sits on the product. They aren't over the same thing.

  3. 3.

    Use De Morgan instead: = = .

  4. 4.

    Both give here, but by different routes. Cancelling the bars directly would wrongly give .

Common mistakes

  • Cancelling bubbles that are on different wires.

  • Cancelling a long bar against short bars, as in turning into .

  • Assuming two inverters are pointless in hardware. They make a buffer that restores signal strength.

Practice Double inversion

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Double inversion is taught in Logic Gates.