Intermediate

Boolean Algebra

AicademyAicademy
·A-Level Computer Science·AQA 7517·6 min
4.6.5 Boolean algebra

Boolean Algebra Fundamentals

Boolean algebra provides a set of rules for manipulating logical expressions. Just as ordinary algebra lets you simplify , Boolean algebra lets you simplify logic circuits — fewer gates, cheaper hardware, faster operation.

Notation:

OperationSymbolMeaning
AND or both true
ORat least one true
NOT or inverse
XORexactly one true

In Boolean algebra, variables take only two values: 0 (false) and 1 (true).

Boolean Identities

These laws hold for any Boolean expression and can be applied in any order.

Identity laws (neutral elements)

Multiplying by 1 (AND with 1) leaves the variable unchanged. Adding 0 (OR with 0) leaves it unchanged.

Null/Domination laws

AND with 0 always gives 0. OR with 1 always gives 1.

Idempotent laws

AND-ing or OR-ing a variable with itself returns the same variable.

Complement laws

A variable AND its inverse is always 0. A variable OR its inverse is always 1.

Double negation

Inverting twice returns the original value.

Commutative laws

Associative laws

Distributive laws

Absorption laws

The second term is absorbed because already determines the result.

De Morgan's Laws

De Morgan's laws relate AND to OR through negation. They are among the most useful laws for simplifying complex Boolean expressions.

In words:

  • The NOT of an AND = the OR of the NOTs
  • The NOT of an OR = the AND of the NOTs

Verification by truth table for :

ABA·B
0001111
0101101
1001011
1110000

Application: NAND is , which equals by De Morgan's first law. So a NAND gate can be replaced by OR gate with inverted inputs — useful when designing with limited gate types.

Simplifying Boolean Expressions

The goal is to reduce the number of terms and operations in an expression, which corresponds to using fewer gates in a circuit.

Strategy:

  1. Identify terms that match a known identity
  2. Apply the identity to simplify
  3. Repeat until no further simplification is possible

Worked example 1

Simplify :

Worked example 2

Simplify :

Worked example 3

Simplify :

Worked example 4

Simplify :

This simplification means that a circuit computing can be replaced with just the single variable — a significant reduction.

Worked example 5 — using De Morgan's law

Simplify :

Apply De Morgan's second law to the outer NOT:

Want more lessons like this one?

Generate lessons on anything you study. Free account, no card needed.

Start generating

Simplification: Circuit Reduction

Boolean simplification directly reduces hardware. Each term saved removes one logic gate.

Worked example — simplify and draw:

Original expression:

Step 1 — factor the first two terms:

Expression is now:

Step 2 — apply distributive law:

Simplified:

Original: 7 gates (3 ANDs, 2 NOTs, 2 ORs). Simplified: 1 gate (one OR).

Confirming by truth table:

ABABABA+B
001100000
011000111
100101011
110010011

Truth table matches — simplification is correct.

Common Exam Mistakes

1. Applying De Morgan's law incorrectly to three or more variables

De Morgan's laws apply to two terms at a time: (extended form). Changing only some terms — or failing to flip the operator — is a common error. Every term is negated AND the operator flips.

2. Forgetting to flip the operator

— the AND becomes OR. — the OR becomes AND. A very common mistake is writing (negating terms but keeping the AND). This is wrong.

3. Applying absorption without verifying the form

Absorption () applies when one term is a subset of another. It does not apply to (no common factor). Check that the simpler term appears as a factor before applying absorption.

4. Confusing simplification steps

Show each step with the law used. In exam answers, each line should reference one law. Jumping multiple steps in one line causes marks to be lost if the intermediate result is wrong.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set — personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Logic Gates and Circuits

Next

CPU Architecture and the Stored Program Concept

Related lessons

6 Slides

Lesson

Logic Gates and Circuits

A-Level Computer Science · AQA 7517

10 hours ago

6 Slides

Lesson

Processor Components and the Fetch-Execute Cycle

A-Level Computer Science · AQA 7517

10 hours ago