0️⃣Boolean Algebra

Just like normal algebra, Boolean algebra uses letters to represent values and uses them as expressions. Boolean algebra uses the values TRUE and FALSE (i.e. 1 and 0).

Notation

Expression
Meaning

A, B, C, etc.

Used to represent an unknown value, just like x or y in normal algebra.

A\overline A

NOT A. An overline represents the NOT operation being applied to what is below the line.

ABA \cdot B

A AND B. The dot represents AND operation.

A+BA + B

A OR B. The plus sign represents OR operation.

Order of Precedence

The following list shows the order of precedence (Highest to Lowest):

  • Brackets

  • NOT

  • AND

  • OR

Boolean Identities

There are numerous Boolean identities that can help simplify Boolean expressions:

A0=0A \cdot 0 = 0
B1=BB \cdot 1 = B
CC=CC \cdot C = C
D+0=DD + 0 = D
E+1=1E + 1 = 1
F+F=FF + F = F
C=C\overline{\overline{C}} = C

De Morgan's Law

De Morgan's law can be very useful when simplifying logical expressions. It can be remembered by recalling the phrase:

Break the bar and change the sign

The "bar" refers to the overline representing the NOT sign and the sign refers to changing the dot or plus sign.

Example of using De Morgan's law on A+B\overline{A + B}:

  • Step 1: Break the bar A+B\overline{A} + \overline{B}

  • Step 2: Change the sign: AB\overline{A} \cdot \overline{B}

De Morgan's law can also be used in reverse, by changing the sign and building the bar. Following is an example of changing C+D\overline{C} + \overline{D}:

  • Step 1: Change the sign CD\overline{C} \cdot \overline{D}

  • Step 2: Build the bar CD\overline{C \cdot D}

Distributive Rules

Just like mathematics, you can expand and factorise Boolean expressions.

A(B+C)=AB+ACA \cdot (B + C) = A \cdot B + A \cdot C

Example Questions

Simplify the Boolean expression A+BAA + \overline{B\cdot A}
  1. Use De Morgan's Law to break bar A+B+AA + \overline{B} + \overline{A}

  2. Use A+A=1A + \overline{A} = 1 -> B+1\overline{B} + 1

  3. = 1

Simplify the Boolean expression CB+CBC \cdot B + \overline{C} \cdot B
  1. Factorise: B(C+C)B \cdot (C + \overline{C})

  2. =B(1)=B= B \cdot (1) = B

Last updated