Options  |  About
Boolean Algebra

As most people are well aware, mathematical expressions are used to make computations and other math problems simpler and smaller. Boolean Algebra is used to do the same thing, except it does it with logic circuits instead of other mathematical problems.

The first thing that needs to be known for Boolean algebra is the meaning of the various signs. There are three of these, all deriving from the three basic gates. They are AND, OR and NOT.

The AND operation is also known as conjunction. It gives the product of two binary bits. Using A and B as inputs, it would be written as AB or sometimes A·B. This of course means that A is multiplied by B, which is exactly how an AND gate functions.

The OR operation is also known as disjunction. This operation gives the sum of two binary bits. Again, using A and B as inputs, it would be written as A + B, which is how an OR gate functions. NOTE, the "+" does necessarily mean the same thing that it does in normal mathematics we are all used to. In Boolean algebra, it stands for OR. For example, 1 + 1 would equal to 1, not 10, the binary equivalent of two. If either of the inputs is 1, the output is 1. The NOT operation is also known as negation. This operation gives the opposite of a single term. For example, the negation of A is written as . While the negation of AB would be . We can relate the AND, OR and NOT operations to the corresponding gates:


AND Truth Table OR Truth Table NOT Truth Table
A·B = Y A + B = Y = Y
0 · 0 = 0 0 + 0 = 0 0 negated = 1
0 · 1 = 0 0 + 1 = 1
1 · 0 = 0 1 + 0 = 1 1 negated = 0
1 · 1 = 1 1 + 1 = 1



Logic Gates and their Boolean Expressions

All of the logic gates have a Boolean expression. To show you how Boolean algebra works further, here are some examples of gates and their Boolean expressions:



Logic Gate Name Symbol Boolean Expression
AND Y = A·B
OR Y = A + B
NOT Y =
NAND Y =
NOR Y = +
AND with one of two inverted inputs Y = + B
OR with one of two inverted inputs Y = ·B



Making A Truth Table with an Equation

When given an equation, it is easy to create a truth table for the equation. Here is an example of how it is done, with the expression Y = ·B. We plug in all the possible values for A and B, and record the values of Y:


1. A = 0, B = 0
Y = ·B
Y = 1· 0
Y = 0
2. A = 0, B = 1
Y = ·B
Y = 1·1
Y = 1
3. A = 1, B = 0
Y = ·B
Y = 0·0
Y = 0
4. A = 1, B = 1
Y = ·B
Y = 0·1
Y = 0

Once this is done, We organize it in a truth table:

Input Output
A B Y
0 0 0
0 1 1
1 0 0
1 1 0

Back Forward
Back Forward

Gates of Creation // Basic Hardware // Boolean Algebra