# title=Fundamental Hardware Elements of Computers: Simplifying boolean equations

 ← Boolean algebra Simplifying boolean equations Boolean identities →

A common question is to give you a complex boolean equation, which you will then have to work out a simpler exact equivalent. This is useful when you are designing circuits and want to minimise the number of gates you are using or make circuits that only use particular types of gates. To simplify boolean equations you must be familiar with two methods. You can normally use either, but try to master both:

• Truth tables
• Boolean algebra - identities and De Morgans Law
Example: Simplifying boolean equations with Truth Tables

Draw the truth table for the following:

${\displaystyle (A.B)+A}$


We are going to solve this using a truth table and we need to break the problem down into its component parts:

As the equation uses A and B list the different values they can take (4 in total)

${\displaystyle A}$ ${\displaystyle B}$
0 0
0 1
1 0
1 1

Next we are going to work out the brackets first: ${\displaystyle A.B}$ and add this to our truth table

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle A.B}$
0 0 0
0 1 0
1 0 0
1 1 1

Finally we will OR this result (${\displaystyle A.B}$) with A to find ${\displaystyle (A.B)+A}$, the final column of the truth table

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle A.B}$ ${\displaystyle (A.B)+A}$
0 0 0 0
0 1 0 0
1 0 0 1
1 1 1 1

Now that our truth table is complete, look at the final column, is there a simpler way of writing this? Why aye! The final column is true when, and only when, A is true, it doesn't require B's input at all. So we can simplify to A telling us that:

${\displaystyle (A.B)+A=A}$

Example: Simplifying boolean equations with Truth Tables

Let's look at another example

${\displaystyle {\overline {A.{\overline {B}}}}}$


We first of all need to break down the equation into its component parts. Starting off with A and B we the work out ${\displaystyle {\overline {B}}}$, then ${\displaystyle A.{\overline {B}}}$ and finally ${\displaystyle {\overline {A.{\overline {B}}}}}$.

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {\overline {B}}}$ ${\displaystyle A.{\overline {B}}}$ ${\displaystyle {\overline {A.{\overline {B}}}}}$
0 0
1
0
1
0 1
0
0
1
1 0
1
1
0
1 1
0
0
1

This can be simplified to ${\displaystyle {\overline {A}}+B}$ telling us that: ${\displaystyle {\overline {A.{\overline {B}}}}={\overline {A}}+B}$. How did we jump to this conclusion? Let's take a look at all the places where the result is true:

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {\overline {A.{\overline {B}}}}}$
0 0
1
0 1
1
1 0
0
1 1
1

We need to get a combination of A, B that gives the result shown above. We can see that whenever A is false (${\displaystyle {\overline {A}}}$)the answer is true:

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {\overline {A.{\overline {B}}}}}$
0 0
1
0 1
1
1 0
0
1 1
1

We can also see that whenever the B value is true then the answer is also true:

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {\overline {A.{\overline {B}}}}}$
0 0
1
0 1
1
1 0
0
1 1
1

So we know that we need to combine ${\displaystyle {\overline {A}}withB}$ to get an equation solving all cases.

If we AND them ${\displaystyle {\overline {A}}.B}$ this only gives us one of the scenarios, so that's not the answer.

If we OR them ${\displaystyle {\overline {A}}+B}$ then this gives us three answers, matching all the responses above. This is our solution.

Exercise: Simplifying boolean equations with Truth Tables

Give a simplified boolean description, ?, for the following truth tables:

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle ?}$
0 0 0
0 1 1
1 0 0
1 1 1

${\displaystyle B}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle ?}$
0 0 0
0 1 0
1 0 0
1 1 1

${\displaystyle A.B}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle ?}$
0 0 1
0 1 1
1 0 1
1 1 1

${\displaystyle 1}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle ?}$
0 0 1
0 1 0
1 0 1
1 1 1

${\displaystyle A+{\overline {B}}}$

Simplify the following boolean equations using truth tables:

${\displaystyle ({\overline {A.B}}).A}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {A.B}}$ ${\displaystyle {\overline {A.B}}}$ ${\displaystyle {\overline {A.B}}.A}$
0 0
0
1
0
0 1
0
1
0
1 0
0
1
1
1 1
1
0
0

This can be simplified to: ${\displaystyle A.{\overline {B}}}$

${\displaystyle ({\overline {A.B}})+A}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {A.B}}$ ${\displaystyle {\overline {A.B}}}$ ${\displaystyle {\overline {A.B}}+A}$
0 0
0
1
1
0 1
0
1
1
1 0
0
1
1
1 1
1
0
1

The answer in all cases is a plain ${\displaystyle 1}$

${\displaystyle (A.{\overline {B}})+B}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {\overline {B}}}$ ${\displaystyle (A.{\overline {B}})}$ ${\displaystyle (A.{\overline {B}})+B}$
0 0
1
0
0
0 1
0
0
1
1 0
1
1
1
1 1
0
0
1

This can be simplified to: ${\displaystyle {\overline {{\overline {A}}.{\overline {B}}}}}$ OR ${\displaystyle A+B}$ (because of De Morgan's Laws)

${\displaystyle {\overline {B}}+A.B}$

Remember that we deal with the AND before the OR, meaning we can read the equation as: ${\displaystyle {\overline {B}}+(A.B)}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle (A.B)}$ ${\displaystyle {\overline {B}}}$ ${\displaystyle {\overline {B}}+(A.B)}$
0 0
0
1
1
0 1
0
0
0
1 0
0
1
1
1 1
1
0
1

This can be simplified to: ${\displaystyle A+{\overline {B}}}$

${\displaystyle ({\overline {A}}+{\overline {B}}).B}$

${\displaystyle A}$ ${\displaystyle B}$ ${\displaystyle {\overline {A}}}$ ${\displaystyle {\overline {B}}}$ ${\displaystyle ({\overline {A}}+{\overline {B}})}$ ${\displaystyle ({\overline {A}}+{\overline {B}}).B}$
0 0
1
1
1
0
0 1
1
0
1
1
1 0
0
1
1
0
1 1
0
0
0
0

This can be simplified to: ${\displaystyle {\overline {A}}.B}$