SlideShare a Scribd company logo
1 of 31
Download to read offline
Basic Engineering
Truth Tables and Boolean Algebra
F Hamer, R Horan & M Lavelle
The aim of this document is to provide a short,
self assessment programme for students who
wish to acquire a basic understanding of the
fundamentals of Boolean Algebra through the
use of truth tables.
Copyright c

 2005 Email: chamer, rhoran, mlavelle@plymouth.ac.uk
Last Revision Date: May 18, 2005 Version 1.0
Table of Contents
1. Boolean Algebra (Introduction)
2. Conjunction (A ∧ B)
3. Disjunction (A ∨ B)
4. Rules of Boolean Algebra
5. Quiz on Boolean Algebra
Solutions to Exercises
Solutions to Quizzes
The full range of these packages and some instructions,
should they be required, can be obtained from our web
page Mathematics Support Materials.
Section 1: Boolean Algebra (Introduction) 3
1. Boolean Algebra (Introduction)
Boolean algebra is the algebra of propositions. Propositions will be
denoted by upper case Roman letters, such as A or B, etc. Every
proposition has two possible values: T when the proposition is true
and F when the proposition is false.
The negation of A is written as ¬A and
read as “not A”. If A is true then ¬A is
false. Conversely, if A is false then ¬A is
true. This relationship is displayed in the
adjacent truth table.
A ¬A
T F
F T
The second row of the table indicates that if A is true then ¬A is false.
The third row indicates that if A is false then ¬A is true. Truth tables
will be used throughout this package to verify that two propositions
are logically equivalent. Two propositions are said to be logically
equivalent if their truth tables have exactly the same values.
Section 1: Boolean Algebra (Introduction) 4
Example 1
Show that the propositions A and ¬(¬A) are logically equivalent.
Solution
From the definition of ¬ it follows that if
¬A is true then ¬(¬A) is false, whilst if
¬A is false then ¬(¬A) is true. This is
encapsulated in the adjacent truth table.
A ¬A ¬(¬A)
T F T
F T F
From the table it can be seen that when A takes the value true, the
proposition ¬(¬A) also takes the value true, and when A takes the
value false, the proposition ¬(¬A) also takes the value false. This
shows that A and ¬(¬A) are logically equivalent, since their logical
values are identical.
Logical equivalence may also be written as an equation which, in this
case, is
A = ¬(¬A) .
Section 2: Conjunction (A ∧ B) 5
2. Conjunction (A ∧ B)
If A and B are two propositions then the “conjunction” of A and B,
written as A ∧ B, and read as “A and B ”, is the proposition which is
true if and only if both of A and B are true. The truth table for
this is shown.
There are two possible values for
each of the propositions A, B, so
there are 2 × 2 = 4 possible assign-
ments of values. This is seen in the
truth table. Whenever truth tables
are used, it is essential that every
possible value is included.
A B A ∧ B
T T T
T F F
F T F
F F F
Truth table for A ∧ B
Example 2 Write out the truth table for the proposition (A∧B)∧C.
Solution The truth table will now contain 2 × 2 × 2 = 8 rows, cor-
responding to the number of different possible values of the three
propositions. It is shown on the next page.
Section 2: Conjunction (A ∧ B) 6
In the adjacent table, the
first three columns con-
tain all possible values for
A, B and C. The values
in the column for A ∧ B
depend only upon the first
two columns. The val-
ues of (A ∧ B)∧C depend
upon the values in the
third and fourth columns.
A B C A ∧ B (A ∧ B) ∧ C
T T T T T
T T F T F
T F T F F
T F F F F
F T T F F
F T F F F
F F T F F
F F F F F
Truth table for (A ∧ B) ∧ C
Exercise 1. (Click on the green letters for the solutions.)
(a) Write out the truth table for A ∧ (B ∧ C).
(b) Use example 2 and part (a) to prove that
(A ∧ B) ∧ C = A ∧ (B ∧ C) .
Section 3: Disjunction (A ∨ B) 7
3. Disjunction (A ∨ B)
If A and B are two propositions then the “disjunction” of A and B,
written as A ∨ B, and read as “A or B ”, is the proposition which is
true if either A or B, or both, are true. The truth table for this is
shown.
As before, there are two possi-
ble values for each of the propo-
sitions A and B, so the number
of possible assignments of values
is 2 × 2 = 4 . This is seen in the
truth table.
A B A ∨ B
T T T
T F T
F T T
F F F
Truth table for A ∨ B
Example 3 Write out the truth table for the proposition (A∨B)∨C.
Solution The truth table will contain 2×2×2 = 8 rows, correspond-
ing to the number of different possible values of the three propositions.
It is shown on the next page.
Section 3: Disjunction (A ∨ B) 8
In the adjacent table, the
first three columns con-
tain all possible values for
A, B and C. The values
in the column for A ∨ B
depend only upon the first
two columns. The val-
ues of (A ∨ B)∨C depend
upon the values in the
third and fourth columns.
A B C A ∨ B (A ∨ B) ∨ C
T T T T T
T T F T T
T F T T T
T F F T T
F T T T T
F T F T T
F F T F T
F F F F F
Truth table for (A ∨ B) ∨ C
Exercise 2. (Click on the green letters for the solutions.)
(a) Write out the truth table for A ∨ (B ∨ C).
(b) Use example 3 and part (a) to show that
(A ∨ B) ∨ C = A ∨ (B ∨ C) .
Section 3: Disjunction (A ∨ B) 9
Exercise 3. Write out the truth tables for the following propositions.
(Click on the green letters for the solutions.)
(a) ¬(A ∧ B), (b) (¬A) ∧ B, (c) (¬A) ∧ (¬B),(d) (¬A) ∨ (¬B),
Quiz Using the results of exercise 3, which of the following is true?
(a) (¬A) ∧ B = (¬A) ∨ (¬B), (b) ¬(A ∧ B) = (¬A) ∨ (¬B),
(c) ¬(A ∧ B) = (¬A) ∧ (¬B), (d) (¬A) ∧ B = (¬A) ∧ (¬B).
Exercise 4. Write out the truth tables for the following propositions.
(Click on the green letters for the solutions.)
(a) A ∧ (B ∨ C), (b) (A ∧ B) ∨ C, (c) (A ∧ B) ∨ (A ∧ C).
Quiz Using the results of exercise 4, which of the following is true?
(a) A ∧ (B ∨ C) = (A ∧ B) ∨ C, (b) A∧(B∨C) = (A∧B)∨(A∧C),
(c) (A∧B)∨C = (A∧B)∨(A∧C),(d) None of these.
The three different operations ¬ , ∧ , and ∨ , (“not”, “and” and “or”),
form the algebraic structure of Boolean algebra. What remains to be
determined is the set of rules governing their interactions.
Section 4: Rules of Boolean Algebra 10
4. Rules of Boolean Algebra
(1a) A ∧ B = B ∧ A
(1b) A ∨ B = B ∨ A
(2a) A ∧ (B ∧ C) = (A ∧ B) ∧ C
(2b) A ∨ (B ∨ C) = (A ∨ B) ∨ C
(3a) A ∧ (B ∨ C) = (A ∧ B) ∨ (A ∧ C)
(3b) A ∨ (B ∧ C) = (A ∨ B) ∧ (A ∨ C)
(4a) A ∧ A = A
(4b) A ∨ A = A
(5a) A ∧ (A ∨ B) = A
(5b) A ∨ (A ∧ B) = A
(6a) A ∧ ¬A = F
(6b) A ∨ ¬A = T
(7) ¬(¬A) = A
(8a) ¬(A ∧ B) = (¬A) ∨ (¬B)
(8a) ¬(A ∨ B) = (¬A) ∧ (¬B)
Section 4: Rules of Boolean Algebra 11
The following comments on these rules are useful:
All the rules can be verified by using truth tables.
Any rule labelled (a) can be obtained from the corresponding rule
labelled (b) by replacing ∧ with ∨ and ∨ with ∧ , and vice versa.
Rules (1a) and (1b) can easily be shown to be true.
Rules (2a) and (2b) were proved in exercises 1 and 2 respectively.
Rule (3a) was proved in exercise 3 and the quiz immediately following.
Rules (3a) and (3b) are called the distributive rules.
Rule (8a) was proved in exercise 4 and the quiz immediately following.
Rules (8a) and (8b) are called De Morgan’s laws.
Rule (2a) means that A ∧ B ∧ C have the same meaning given by
A ∧ (B ∧ C) or (A ∧ B) ∧ C. Similarly for A ∨ B ∨ C from (2b).
Section 4: Rules of Boolean Algebra 12
Exercise 5. Use truth tables to prove the following propositions.
(Click on the green letters for the solutions.)
(a) A∨(B∧C) = (A∨B)∧(A∨C), (b) A ∧ (A ∨ B) = A,
(c) ¬(A ∨ B) = ¬(A) ∧ ¬(B), (d) F ∨ X = X,
(e) [A ∧ ((¬A) ∨ B)] ∨ B = B.
Truth tables are useful for proving that two expressions are equivalent
but, often, the same result is easier to obtain using Boolean algebra.
Example 4 Simplify the expression [A ∧ (¬A ∨ B)] ∨ B.
Solution
Using (3a),
A ∧ (¬A ∨ B) = (A ∧ ¬A) ∨ (A ∧ B) = F ∨ (A ∧ B) , by (6a) ,
= A ∧ B , by ex 5(d) .
Thus [A ∧ (¬A ∨ B)] ∨ B = (A ∧ B) ∨ B = B , by (5b) ,
confirming the result of exercise 5(e), above.
Section 5: Quiz on Boolean Algebra 13
5. Quiz on Boolean Algebra
Begin Quiz In each of the following, choose the simplified version of
the given expression. (Use either truth tables, or Boolean algebra to
simplify the expression.)
1. (A ∧ ¬C) ∨ (A ∧ B ∧ C) ∨ (A ∧ C).
(a) T, (b) F, (c) A ∧ B, (d) A.
2. [A ∧ B] ∨ [A ∧ ¬B] ∨ [(¬A) ∧ B] ∨ [(¬A) ∧ (¬B)].
(a) A ∧ B, (b) A ∨ B, (c) T, (d) F.
3. (A ∧ B ∧ C) ∨ (¬A) ∨ (¬B) ∨ (¬C).
(a) T, (b) F, (c) A ∧ B, (d) A ∧ C.
End Quiz
Solutions to Exercises 14
Solutions to Exercises
Exercise 1(a)
The truth table for A ∧ (B ∧ C) is constructed as follows:
In the first three columns,
write all possible values
for the propositions A , B
and C, and use these to
calculate the values in the
fourth column. The final
column is found by taking
the “conjunction” of the
first and fourth columns.
A B C B ∧ C A ∧ (B ∧ C)
T T T T T
T T F F F
T F T F F
T F F F F
F T T T F
F T F F F
F F T F F
F F F F F
Click on the green square to return
Solutions to Exercises 15
Exercise 1(b)
The logical equivalence of the propositions (A∧B)∧C and A∧(B∧C)
can be seen by comparing their truth tables. The former is given in
example 2 and the latter in exercise 1(a). These truth tables are
identical, so
(A ∧ B) ∧ C = A ∧ (B ∧ C) .
Click on the green square to return
Solutions to Exercises 16
Exercise 2(a)
The truth table for A ∨ (B ∨ C) is shown below:
The first three columns
contain all possible values
for the propositions A, B
and C. The fourth col-
umn represents the “dis-
junction” (B ∨ C) and
the last column shows the
“disjunction” of elements
from the first and fourth
columns.
A B C (B ∨ C) A ∨ (B ∨ C)
T T T T T
T T F T T
T F T T T
T F F F T
F T T T T
F T F T T
F F T T T
F F F F F
Click on the green square to return
Solutions to Exercises 17
Exercise 2(b)
To prove the logical equivalence
(A ∨ B) ∨ C = A ∨ (B ∨ C)
compare the truth tables for both of these propositions. The former
is given in example 3 and the latter in exercise 2(a). These truth
tables are identical and therefore (A ∨ B) ∨ C = A ∨ (B ∨ C).
Click on the green square to return
Solutions to Exercises 18
Exercise 3(a)
The truth table for the proposition ¬(A ∧ B) is given below.
The adjacent truth table
contains 2×2 = 4 rows cor-
responding to all possible
values for the propositions
A and B.
A B A ∧ B ¬(A ∧ B)
T T T F
T F F T
F T F T
F F F T
Click on the green square to return
Solutions to Exercises 19
Exercise 3(b)
The truth table for the proposition (¬A) ∧ B is given below.
In the adjacent truth table
the third column contains
the “negation” of a given
proposition A and the last
column represents its “con-
junction” with the proposi-
tion B.
A B ¬A (¬A) ∧ B
T T F F
T F F F
F T T T
F F T F
Click on the green square to return
Solutions to Exercises 20
Exercise 3(c)
The truth table for the proposition (¬A) ∧ (¬B) is given below.
In the truth table the third
and fourth columns con-
tain the “negation” of the
propositions A and B re-
spectively, the last column
is the “conjunction” of ¬A
and ¬B.
A B ¬A ¬B (¬A) ∧ (¬B)
T T F F F
T F F T F
F T T F F
F F T T T
Click on the green square to return
Solutions to Exercises 21
Exercise 3(d)
The truth table for the proposition (¬A) ∨ (¬B) is below.
In this truth table the
third and fourth columns
contain the “negation” of
propositions A and B re-
spectively, while the last
column is the “disjunction”
of ¬A and ¬B.
A B ¬A ¬B (¬A) ∨ (¬B)
T T F F F
T F F T T
F T T F T
F F T T T
Click on the green square to return
Solutions to Exercises 22
Exercise 4(a)
The truth table for the proposition A ∧ (B ∨ C) is below.
In the adjacent table, the
first three columns contain
all 8 possible values for
propositions A, B and C.
The fourth column shows
the “disjunction” of B and
C, while the last one is
A ∧ (B ∨ C).
A B C B ∨ C A ∧ (B ∨ C)
T T T T T
T T F T T
T F T T T
T F F F F
F T T T F
F T F T F
F F T T F
F F F F F
Click on the green square to return
Solutions to Exercises 23
Exercise 4(b)
The truth table for the proposition (A ∧ B) ∨ C is below.
The first three columns
contain all possible values
for propositions A, B and
C. The fourth column
shows the “conjunction”
of A and B, while the last
one is (A ∧ B) ∨ C.
A B C A ∧ B (A ∧ B) ∨ C
T T T T T
T T F T T
T F T F T
T F F F F
F T T F T
F T F F F
F F T F T
F F F F F
Click on the green square to return
Solutions to Exercises 24
Exercise 4(c)
The truth table for the proposition (A ∧ B) ∨ (A ∧ C) is below.
The fourth and
fifth columns
show the “con-
junction” of A
and B, and A
and C, respec-
tively. The final
column is the
“disjunction” of
these.
A B C A ∧ B A ∧ C (A ∧ B) ∨ (A ∧ B)
T T T T T T
T T F T F T
T F T F T T
T F F F F F
F T T F F F
F T F F F F
F F T F F F
F F F F F F
Click on the green square to return
Solutions to Exercises 25
Exercise 5(a) The truth tables for A∨(B ∧C) and (A∨B)∧(A∨C)
are given below.
A B C A ∨ (B ∧ C)
T T T T
T T F T
T F T T
T F F T
F T T T
F T F F
F F T F
F F F F
A B C (A ∨ B) ∧ (A ∨ C)
T T T T
T T F T
T F T T
T F F T
F T T T
F T F F
F F T F
F F F F
Comparing them shows that
A ∨ (B ∧ C) = (A ∨ B) ∧ (A ∨ C) .
Click on the green square to return
Solutions to Exercises 26
Exercise 5(b)
The truth table for (A ∨ B) is given below.
A B A ∨ B A ∧ (A ∨ B)
T T T T
T F T T
F T T F
F F F F
Comparing the first and the last columns above shows that
A ∧ (A ∨ B) = A .
Click on the green square to return
Solutions to Exercises 27
Exercise 5(c)
The truth table for ¬(A ∨ B) and ¬(A) ∧ ¬(B) are given below.
A B ¬(A ∨ B)
T T F
T F F
F T F
F F T
A B (¬A) ∧ (¬B)
T T F
T F F
F T F
F F T
The truth tables are identical so these propositions are logically equiv-
alent, i.e.
¬(A ∨ B) = ¬(A) ∧ ¬(B) .
Click on the green square to return
Solutions to Exercises 28
Exercise 5(d)
For an arbitrary proposition X, the “disjunction” of X and “false”
(i.e. the proposition F) has the following truth table.
F X F ∨ X
F T T
F F F
Therefore the relation
F ∨ X = X
is correct.
Click on the green square to return
Solutions to Exercises 29
Exercise 5(e)
For any two propositions A and B, construct the following truth table:
A B (¬A) ∨ B A ∧ ((¬A) ∨ B) [A ∧ ((¬A) ∨ B)] ∨ B
T T T T T
T F F F F
F T T F T
F F T F F
Comparing the last column with the second one we find that
[A ∧ ((¬A) ∨ B)] ∨ B = B .
Click on the green square to return
Solutions to Quizzes 30
Solutions to Quizzes
Solution to Quiz:
The truth tables from exercise 3(a) and exercise 3(d) are, respectively,
A B ¬(A ∧ B)
T T F
T F T
F T T
F F T
A B (¬A) ∨ (¬B)
T T F
T F T
F T T
F F T
Since these are identical, it follows that
¬(A ∧ B) = (¬A) ∨ (¬B) .
End Quiz
Solutions to Quizzes 31
Solution to Quiz:
The truth tables below are from exercise 4(a) and exercise 4(c), re-
spectively.
A B C A ∧ (B ∨ C)
T T T T
T T F T
T F T T
T F F F
F T T F
F T F F
F F T F
F F F F
A B C (A ∧ B) ∨ (A ∧ B)
T T T T
T T F T
T F T T
T F F F
F T T F
F T F F
F F T F
F F F F
From these, it can be seen that
A ∧ (B ∨ C) = (A ∧ B) ∨ (A ∧ C) .
End Quiz

More Related Content

What's hot

Geometry Section 4-2
Geometry Section 4-2Geometry Section 4-2
Geometry Section 4-2Jimbo Lamb
 
Boolean Algebra and Logic Smiplification
Boolean Algebra and Logic SmiplificationBoolean Algebra and Logic Smiplification
Boolean Algebra and Logic Smiplificationsamantha rathnayake
 
8.3 show that a quadrilateral is a parallelogram
8.3 show that a quadrilateral is a parallelogram8.3 show that a quadrilateral is a parallelogram
8.3 show that a quadrilateral is a parallelogramdetwilerr
 
maths sample paper 2012 class 09
maths sample paper 2012 class 09maths sample paper 2012 class 09
maths sample paper 2012 class 09aditya36
 
Geometry Section 4-3
Geometry Section 4-3Geometry Section 4-3
Geometry Section 4-3Jimbo Lamb
 
Rbse solutions for class 10 maths chapter 10 locus ex 10.1
Rbse solutions for class 10 maths chapter 10 locus ex 10.1Rbse solutions for class 10 maths chapter 10 locus ex 10.1
Rbse solutions for class 10 maths chapter 10 locus ex 10.1Arvind Saini
 
4.8 congruence transformations and coordinate geometry
4.8 congruence transformations and coordinate geometry4.8 congruence transformations and coordinate geometry
4.8 congruence transformations and coordinate geometrydetwilerr
 
2013 09 sp_maths_sa2_04_solved
2013 09 sp_maths_sa2_04_solved2013 09 sp_maths_sa2_04_solved
2013 09 sp_maths_sa2_04_solvedYagya Malik
 
8.7 coordinate proof with quadrilaterals
8.7 coordinate proof with quadrilaterals8.7 coordinate proof with quadrilaterals
8.7 coordinate proof with quadrilateralsdetwilerr
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theoremsarunachalamr16
 
Geometry unit 6.5
Geometry unit 6.5Geometry unit 6.5
Geometry unit 6.5Mark Ryder
 
Harmonic division
Harmonic divisionHarmonic division
Harmonic divisionArvee Mae
 
Drawing chords in perspective
Drawing chords in perspectiveDrawing chords in perspective
Drawing chords in perspectivedr.f
 
Module 3 similarity
Module 3   similarityModule 3   similarity
Module 3 similaritydionesioable
 
8.5 use properties of trapezoids and kites
8.5 use properties of trapezoids and kites8.5 use properties of trapezoids and kites
8.5 use properties of trapezoids and kitesdetwilerr
 
Geometry unit 6.2
Geometry unit 6.2Geometry unit 6.2
Geometry unit 6.2Mark Ryder
 

What's hot (20)

sagar
sagarsagar
sagar
 
Geometry Section 4-2
Geometry Section 4-2Geometry Section 4-2
Geometry Section 4-2
 
Boolean Algebra and Logic Smiplification
Boolean Algebra and Logic SmiplificationBoolean Algebra and Logic Smiplification
Boolean Algebra and Logic Smiplification
 
8.3 show that a quadrilateral is a parallelogram
8.3 show that a quadrilateral is a parallelogram8.3 show that a quadrilateral is a parallelogram
8.3 show that a quadrilateral is a parallelogram
 
maths sample paper 2012 class 09
maths sample paper 2012 class 09maths sample paper 2012 class 09
maths sample paper 2012 class 09
 
Geometry Section 4-3
Geometry Section 4-3Geometry Section 4-3
Geometry Section 4-3
 
Rbse solutions for class 10 maths chapter 10 locus ex 10.1
Rbse solutions for class 10 maths chapter 10 locus ex 10.1Rbse solutions for class 10 maths chapter 10 locus ex 10.1
Rbse solutions for class 10 maths chapter 10 locus ex 10.1
 
4.8 congruence transformations and coordinate geometry
4.8 congruence transformations and coordinate geometry4.8 congruence transformations and coordinate geometry
4.8 congruence transformations and coordinate geometry
 
Euclidean geometrynotes
Euclidean geometrynotesEuclidean geometrynotes
Euclidean geometrynotes
 
2013 09 sp_maths_sa2_04_solved
2013 09 sp_maths_sa2_04_solved2013 09 sp_maths_sa2_04_solved
2013 09 sp_maths_sa2_04_solved
 
8.7 coordinate proof with quadrilaterals
8.7 coordinate proof with quadrilaterals8.7 coordinate proof with quadrilaterals
8.7 coordinate proof with quadrilaterals
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
Geometry unit 6.5
Geometry unit 6.5Geometry unit 6.5
Geometry unit 6.5
 
Harmonic division
Harmonic divisionHarmonic division
Harmonic division
 
Vectors parrallel and coplanar
Vectors  parrallel and coplanarVectors  parrallel and coplanar
Vectors parrallel and coplanar
 
Drawing chords in perspective
Drawing chords in perspectiveDrawing chords in perspective
Drawing chords in perspective
 
Module 3 similarity
Module 3   similarityModule 3   similarity
Module 3 similarity
 
8.5 use properties of trapezoids and kites
8.5 use properties of trapezoids and kites8.5 use properties of trapezoids and kites
8.5 use properties of trapezoids and kites
 
Triangles ix
Triangles ixTriangles ix
Triangles ix
 
Geometry unit 6.2
Geometry unit 6.2Geometry unit 6.2
Geometry unit 6.2
 

Viewers also liked

The State of the Electrical/Power Engineering Industry
The State of the Electrical/Power Engineering Industry The State of the Electrical/Power Engineering Industry
The State of the Electrical/Power Engineering Industry ConsultingSpecifyingEngineer
 
Integrating the Marketing and Engineering Points of View in Marketing Communi...
Integrating the Marketing and Engineering Points of View in Marketing Communi...Integrating the Marketing and Engineering Points of View in Marketing Communi...
Integrating the Marketing and Engineering Points of View in Marketing Communi...ConsultingSpecifyingEngineer
 
Raising brand awareness and how to make the most of your communications
Raising brand awareness and how to make the most of your communicationsRaising brand awareness and how to make the most of your communications
Raising brand awareness and how to make the most of your communicationsIntelligentInk
 
Critical Power: Circuit Protection in Health Care Facilities
Critical Power: Circuit Protection in Health Care FacilitiesCritical Power: Circuit Protection in Health Care Facilities
Critical Power: Circuit Protection in Health Care FacilitiesConsultingSpecifyingEngineer
 

Viewers also liked (7)

Ibooks poetry
Ibooks poetryIbooks poetry
Ibooks poetry
 
The State of the Electrical/Power Engineering Industry
The State of the Electrical/Power Engineering Industry The State of the Electrical/Power Engineering Industry
The State of the Electrical/Power Engineering Industry
 
Integrating the Marketing and Engineering Points of View in Marketing Communi...
Integrating the Marketing and Engineering Points of View in Marketing Communi...Integrating the Marketing and Engineering Points of View in Marketing Communi...
Integrating the Marketing and Engineering Points of View in Marketing Communi...
 
Raising brand awareness and how to make the most of your communications
Raising brand awareness and how to make the most of your communicationsRaising brand awareness and how to make the most of your communications
Raising brand awareness and how to make the most of your communications
 
Critical Power: Circuit Protection in Health Care Facilities
Critical Power: Circuit Protection in Health Care FacilitiesCritical Power: Circuit Protection in Health Care Facilities
Critical Power: Circuit Protection in Health Care Facilities
 
Critical power: Transfer switches and switchgear
Critical power: Transfer switches and switchgearCritical power: Transfer switches and switchgear
Critical power: Transfer switches and switchgear
 
HVAC: New chiller requirements
HVAC: New chiller requirementsHVAC: New chiller requirements
HVAC: New chiller requirements
 

Similar to Basic Engineering Guide to Boolean Algebra

discrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRAdiscrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRAZULFIQ RASHID
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Jasmine Jesse
 
Pythagorean Theorem and its various Proofs
Pythagorean Theorem and its various ProofsPythagorean Theorem and its various Proofs
Pythagorean Theorem and its various ProofsSamanyou Garg
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relationankush_kumar
 
schaums-probability.pdf
schaums-probability.pdfschaums-probability.pdf
schaums-probability.pdfSahat Hutajulu
 
Fundamental of Statics (Part 2)
Fundamental of Statics (Part 2)Fundamental of Statics (Part 2)
Fundamental of Statics (Part 2)Malay Badodariya
 
Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...
Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...
Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...James Smith
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdfMridulDhamija
 
Material implication
Material implicationMaterial implication
Material implicationMichael Potts
 
Solution Strategies for Equations that Arise in Geometric (Cliff ord) Algebra
Solution Strategies for Equations that Arise in Geometric (Clifford) AlgebraSolution Strategies for Equations that Arise in Geometric (Clifford) Algebra
Solution Strategies for Equations that Arise in Geometric (Cliff ord) AlgebraJames Smith
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answersSamet öztoprak
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010arunachalamr16
 
Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Matthew Leingang
 
Discrete maths questions
Discrete maths questionsDiscrete maths questions
Discrete maths questionsDIT University
 

Similar to Basic Engineering Guide to Boolean Algebra (20)

discrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRAdiscrete_BOOLEAN ALGEBRA
discrete_BOOLEAN ALGEBRA
 
Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1Mathematics Sets and Logic Week 1
Mathematics Sets and Logic Week 1
 
Pythagorean Theorem and its various Proofs
Pythagorean Theorem and its various ProofsPythagorean Theorem and its various Proofs
Pythagorean Theorem and its various Proofs
 
Report on set theory
Report on set theoryReport on set theory
Report on set theory
 
Set theory and relation
Set theory and relationSet theory and relation
Set theory and relation
 
schaums-probability.pdf
schaums-probability.pdfschaums-probability.pdf
schaums-probability.pdf
 
Report on set theory
Report on set theoryReport on set theory
Report on set theory
 
Fundamental of Statics (Part 2)
Fundamental of Statics (Part 2)Fundamental of Statics (Part 2)
Fundamental of Statics (Part 2)
 
Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...
Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...
Three Solutions of the LLP Limiting Case of the Problem of Apollonius via Geo...
 
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
20200911-XI-Maths-Sets-2 of 2-Ppt.pdf
 
Material implication
Material implicationMaterial implication
Material implication
 
Solution Strategies for Equations that Arise in Geometric (Cliff ord) Algebra
Solution Strategies for Equations that Arise in Geometric (Clifford) AlgebraSolution Strategies for Equations that Arise in Geometric (Clifford) Algebra
Solution Strategies for Equations that Arise in Geometric (Cliff ord) Algebra
 
midpoint theorem &intersept theorm
midpoint theorem &intersept theorm midpoint theorem &intersept theorm
midpoint theorem &intersept theorm
 
Ats maths09
Ats maths09Ats maths09
Ats maths09
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answers
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)Lesson 5: Matrix Algebra (slides)
Lesson 5: Matrix Algebra (slides)
 
Slides
SlidesSlides
Slides
 
Discrete maths questions
Discrete maths questionsDiscrete maths questions
Discrete maths questions
 

Basic Engineering Guide to Boolean Algebra

  • 1. Basic Engineering Truth Tables and Boolean Algebra F Hamer, R Horan & M Lavelle The aim of this document is to provide a short, self assessment programme for students who wish to acquire a basic understanding of the fundamentals of Boolean Algebra through the use of truth tables. Copyright c 2005 Email: chamer, rhoran, mlavelle@plymouth.ac.uk Last Revision Date: May 18, 2005 Version 1.0
  • 2. Table of Contents 1. Boolean Algebra (Introduction) 2. Conjunction (A ∧ B) 3. Disjunction (A ∨ B) 4. Rules of Boolean Algebra 5. Quiz on Boolean Algebra Solutions to Exercises Solutions to Quizzes The full range of these packages and some instructions, should they be required, can be obtained from our web page Mathematics Support Materials.
  • 3. Section 1: Boolean Algebra (Introduction) 3 1. Boolean Algebra (Introduction) Boolean algebra is the algebra of propositions. Propositions will be denoted by upper case Roman letters, such as A or B, etc. Every proposition has two possible values: T when the proposition is true and F when the proposition is false. The negation of A is written as ¬A and read as “not A”. If A is true then ¬A is false. Conversely, if A is false then ¬A is true. This relationship is displayed in the adjacent truth table. A ¬A T F F T The second row of the table indicates that if A is true then ¬A is false. The third row indicates that if A is false then ¬A is true. Truth tables will be used throughout this package to verify that two propositions are logically equivalent. Two propositions are said to be logically equivalent if their truth tables have exactly the same values.
  • 4. Section 1: Boolean Algebra (Introduction) 4 Example 1 Show that the propositions A and ¬(¬A) are logically equivalent. Solution From the definition of ¬ it follows that if ¬A is true then ¬(¬A) is false, whilst if ¬A is false then ¬(¬A) is true. This is encapsulated in the adjacent truth table. A ¬A ¬(¬A) T F T F T F From the table it can be seen that when A takes the value true, the proposition ¬(¬A) also takes the value true, and when A takes the value false, the proposition ¬(¬A) also takes the value false. This shows that A and ¬(¬A) are logically equivalent, since their logical values are identical. Logical equivalence may also be written as an equation which, in this case, is A = ¬(¬A) .
  • 5. Section 2: Conjunction (A ∧ B) 5 2. Conjunction (A ∧ B) If A and B are two propositions then the “conjunction” of A and B, written as A ∧ B, and read as “A and B ”, is the proposition which is true if and only if both of A and B are true. The truth table for this is shown. There are two possible values for each of the propositions A, B, so there are 2 × 2 = 4 possible assign- ments of values. This is seen in the truth table. Whenever truth tables are used, it is essential that every possible value is included. A B A ∧ B T T T T F F F T F F F F Truth table for A ∧ B Example 2 Write out the truth table for the proposition (A∧B)∧C. Solution The truth table will now contain 2 × 2 × 2 = 8 rows, cor- responding to the number of different possible values of the three propositions. It is shown on the next page.
  • 6. Section 2: Conjunction (A ∧ B) 6 In the adjacent table, the first three columns con- tain all possible values for A, B and C. The values in the column for A ∧ B depend only upon the first two columns. The val- ues of (A ∧ B)∧C depend upon the values in the third and fourth columns. A B C A ∧ B (A ∧ B) ∧ C T T T T T T T F T F T F T F F T F F F F F T T F F F T F F F F F T F F F F F F F Truth table for (A ∧ B) ∧ C Exercise 1. (Click on the green letters for the solutions.) (a) Write out the truth table for A ∧ (B ∧ C). (b) Use example 2 and part (a) to prove that (A ∧ B) ∧ C = A ∧ (B ∧ C) .
  • 7. Section 3: Disjunction (A ∨ B) 7 3. Disjunction (A ∨ B) If A and B are two propositions then the “disjunction” of A and B, written as A ∨ B, and read as “A or B ”, is the proposition which is true if either A or B, or both, are true. The truth table for this is shown. As before, there are two possi- ble values for each of the propo- sitions A and B, so the number of possible assignments of values is 2 × 2 = 4 . This is seen in the truth table. A B A ∨ B T T T T F T F T T F F F Truth table for A ∨ B Example 3 Write out the truth table for the proposition (A∨B)∨C. Solution The truth table will contain 2×2×2 = 8 rows, correspond- ing to the number of different possible values of the three propositions. It is shown on the next page.
  • 8. Section 3: Disjunction (A ∨ B) 8 In the adjacent table, the first three columns con- tain all possible values for A, B and C. The values in the column for A ∨ B depend only upon the first two columns. The val- ues of (A ∨ B)∨C depend upon the values in the third and fourth columns. A B C A ∨ B (A ∨ B) ∨ C T T T T T T T F T T T F T T T T F F T T F T T T T F T F T T F F T F T F F F F F Truth table for (A ∨ B) ∨ C Exercise 2. (Click on the green letters for the solutions.) (a) Write out the truth table for A ∨ (B ∨ C). (b) Use example 3 and part (a) to show that (A ∨ B) ∨ C = A ∨ (B ∨ C) .
  • 9. Section 3: Disjunction (A ∨ B) 9 Exercise 3. Write out the truth tables for the following propositions. (Click on the green letters for the solutions.) (a) ¬(A ∧ B), (b) (¬A) ∧ B, (c) (¬A) ∧ (¬B),(d) (¬A) ∨ (¬B), Quiz Using the results of exercise 3, which of the following is true? (a) (¬A) ∧ B = (¬A) ∨ (¬B), (b) ¬(A ∧ B) = (¬A) ∨ (¬B), (c) ¬(A ∧ B) = (¬A) ∧ (¬B), (d) (¬A) ∧ B = (¬A) ∧ (¬B). Exercise 4. Write out the truth tables for the following propositions. (Click on the green letters for the solutions.) (a) A ∧ (B ∨ C), (b) (A ∧ B) ∨ C, (c) (A ∧ B) ∨ (A ∧ C). Quiz Using the results of exercise 4, which of the following is true? (a) A ∧ (B ∨ C) = (A ∧ B) ∨ C, (b) A∧(B∨C) = (A∧B)∨(A∧C), (c) (A∧B)∨C = (A∧B)∨(A∧C),(d) None of these. The three different operations ¬ , ∧ , and ∨ , (“not”, “and” and “or”), form the algebraic structure of Boolean algebra. What remains to be determined is the set of rules governing their interactions.
  • 10. Section 4: Rules of Boolean Algebra 10 4. Rules of Boolean Algebra (1a) A ∧ B = B ∧ A (1b) A ∨ B = B ∨ A (2a) A ∧ (B ∧ C) = (A ∧ B) ∧ C (2b) A ∨ (B ∨ C) = (A ∨ B) ∨ C (3a) A ∧ (B ∨ C) = (A ∧ B) ∨ (A ∧ C) (3b) A ∨ (B ∧ C) = (A ∨ B) ∧ (A ∨ C) (4a) A ∧ A = A (4b) A ∨ A = A (5a) A ∧ (A ∨ B) = A (5b) A ∨ (A ∧ B) = A (6a) A ∧ ¬A = F (6b) A ∨ ¬A = T (7) ¬(¬A) = A (8a) ¬(A ∧ B) = (¬A) ∨ (¬B) (8a) ¬(A ∨ B) = (¬A) ∧ (¬B)
  • 11. Section 4: Rules of Boolean Algebra 11 The following comments on these rules are useful: All the rules can be verified by using truth tables. Any rule labelled (a) can be obtained from the corresponding rule labelled (b) by replacing ∧ with ∨ and ∨ with ∧ , and vice versa. Rules (1a) and (1b) can easily be shown to be true. Rules (2a) and (2b) were proved in exercises 1 and 2 respectively. Rule (3a) was proved in exercise 3 and the quiz immediately following. Rules (3a) and (3b) are called the distributive rules. Rule (8a) was proved in exercise 4 and the quiz immediately following. Rules (8a) and (8b) are called De Morgan’s laws. Rule (2a) means that A ∧ B ∧ C have the same meaning given by A ∧ (B ∧ C) or (A ∧ B) ∧ C. Similarly for A ∨ B ∨ C from (2b).
  • 12. Section 4: Rules of Boolean Algebra 12 Exercise 5. Use truth tables to prove the following propositions. (Click on the green letters for the solutions.) (a) A∨(B∧C) = (A∨B)∧(A∨C), (b) A ∧ (A ∨ B) = A, (c) ¬(A ∨ B) = ¬(A) ∧ ¬(B), (d) F ∨ X = X, (e) [A ∧ ((¬A) ∨ B)] ∨ B = B. Truth tables are useful for proving that two expressions are equivalent but, often, the same result is easier to obtain using Boolean algebra. Example 4 Simplify the expression [A ∧ (¬A ∨ B)] ∨ B. Solution Using (3a), A ∧ (¬A ∨ B) = (A ∧ ¬A) ∨ (A ∧ B) = F ∨ (A ∧ B) , by (6a) , = A ∧ B , by ex 5(d) . Thus [A ∧ (¬A ∨ B)] ∨ B = (A ∧ B) ∨ B = B , by (5b) , confirming the result of exercise 5(e), above.
  • 13. Section 5: Quiz on Boolean Algebra 13 5. Quiz on Boolean Algebra Begin Quiz In each of the following, choose the simplified version of the given expression. (Use either truth tables, or Boolean algebra to simplify the expression.) 1. (A ∧ ¬C) ∨ (A ∧ B ∧ C) ∨ (A ∧ C). (a) T, (b) F, (c) A ∧ B, (d) A. 2. [A ∧ B] ∨ [A ∧ ¬B] ∨ [(¬A) ∧ B] ∨ [(¬A) ∧ (¬B)]. (a) A ∧ B, (b) A ∨ B, (c) T, (d) F. 3. (A ∧ B ∧ C) ∨ (¬A) ∨ (¬B) ∨ (¬C). (a) T, (b) F, (c) A ∧ B, (d) A ∧ C. End Quiz
  • 14. Solutions to Exercises 14 Solutions to Exercises Exercise 1(a) The truth table for A ∧ (B ∧ C) is constructed as follows: In the first three columns, write all possible values for the propositions A , B and C, and use these to calculate the values in the fourth column. The final column is found by taking the “conjunction” of the first and fourth columns. A B C B ∧ C A ∧ (B ∧ C) T T T T T T T F F F T F T F F T F F F F F T T T F F T F F F F F T F F F F F F F Click on the green square to return
  • 15. Solutions to Exercises 15 Exercise 1(b) The logical equivalence of the propositions (A∧B)∧C and A∧(B∧C) can be seen by comparing their truth tables. The former is given in example 2 and the latter in exercise 1(a). These truth tables are identical, so (A ∧ B) ∧ C = A ∧ (B ∧ C) . Click on the green square to return
  • 16. Solutions to Exercises 16 Exercise 2(a) The truth table for A ∨ (B ∨ C) is shown below: The first three columns contain all possible values for the propositions A, B and C. The fourth col- umn represents the “dis- junction” (B ∨ C) and the last column shows the “disjunction” of elements from the first and fourth columns. A B C (B ∨ C) A ∨ (B ∨ C) T T T T T T T F T T T F T T T T F F F T F T T T T F T F T T F F T T T F F F F F Click on the green square to return
  • 17. Solutions to Exercises 17 Exercise 2(b) To prove the logical equivalence (A ∨ B) ∨ C = A ∨ (B ∨ C) compare the truth tables for both of these propositions. The former is given in example 3 and the latter in exercise 2(a). These truth tables are identical and therefore (A ∨ B) ∨ C = A ∨ (B ∨ C). Click on the green square to return
  • 18. Solutions to Exercises 18 Exercise 3(a) The truth table for the proposition ¬(A ∧ B) is given below. The adjacent truth table contains 2×2 = 4 rows cor- responding to all possible values for the propositions A and B. A B A ∧ B ¬(A ∧ B) T T T F T F F T F T F T F F F T Click on the green square to return
  • 19. Solutions to Exercises 19 Exercise 3(b) The truth table for the proposition (¬A) ∧ B is given below. In the adjacent truth table the third column contains the “negation” of a given proposition A and the last column represents its “con- junction” with the proposi- tion B. A B ¬A (¬A) ∧ B T T F F T F F F F T T T F F T F Click on the green square to return
  • 20. Solutions to Exercises 20 Exercise 3(c) The truth table for the proposition (¬A) ∧ (¬B) is given below. In the truth table the third and fourth columns con- tain the “negation” of the propositions A and B re- spectively, the last column is the “conjunction” of ¬A and ¬B. A B ¬A ¬B (¬A) ∧ (¬B) T T F F F T F F T F F T T F F F F T T T Click on the green square to return
  • 21. Solutions to Exercises 21 Exercise 3(d) The truth table for the proposition (¬A) ∨ (¬B) is below. In this truth table the third and fourth columns contain the “negation” of propositions A and B re- spectively, while the last column is the “disjunction” of ¬A and ¬B. A B ¬A ¬B (¬A) ∨ (¬B) T T F F F T F F T T F T T F T F F T T T Click on the green square to return
  • 22. Solutions to Exercises 22 Exercise 4(a) The truth table for the proposition A ∧ (B ∨ C) is below. In the adjacent table, the first three columns contain all 8 possible values for propositions A, B and C. The fourth column shows the “disjunction” of B and C, while the last one is A ∧ (B ∨ C). A B C B ∨ C A ∧ (B ∨ C) T T T T T T T F T T T F T T T T F F F F F T T T F F T F T F F F T T F F F F F F Click on the green square to return
  • 23. Solutions to Exercises 23 Exercise 4(b) The truth table for the proposition (A ∧ B) ∨ C is below. The first three columns contain all possible values for propositions A, B and C. The fourth column shows the “conjunction” of A and B, while the last one is (A ∧ B) ∨ C. A B C A ∧ B (A ∧ B) ∨ C T T T T T T T F T T T F T F T T F F F F F T T F T F T F F F F F T F T F F F F F Click on the green square to return
  • 24. Solutions to Exercises 24 Exercise 4(c) The truth table for the proposition (A ∧ B) ∨ (A ∧ C) is below. The fourth and fifth columns show the “con- junction” of A and B, and A and C, respec- tively. The final column is the “disjunction” of these. A B C A ∧ B A ∧ C (A ∧ B) ∨ (A ∧ B) T T T T T T T T F T F T T F T F T T T F F F F F F T T F F F F T F F F F F F T F F F F F F F F F Click on the green square to return
  • 25. Solutions to Exercises 25 Exercise 5(a) The truth tables for A∨(B ∧C) and (A∨B)∧(A∨C) are given below. A B C A ∨ (B ∧ C) T T T T T T F T T F T T T F F T F T T T F T F F F F T F F F F F A B C (A ∨ B) ∧ (A ∨ C) T T T T T T F T T F T T T F F T F T T T F T F F F F T F F F F F Comparing them shows that A ∨ (B ∧ C) = (A ∨ B) ∧ (A ∨ C) . Click on the green square to return
  • 26. Solutions to Exercises 26 Exercise 5(b) The truth table for (A ∨ B) is given below. A B A ∨ B A ∧ (A ∨ B) T T T T T F T T F T T F F F F F Comparing the first and the last columns above shows that A ∧ (A ∨ B) = A . Click on the green square to return
  • 27. Solutions to Exercises 27 Exercise 5(c) The truth table for ¬(A ∨ B) and ¬(A) ∧ ¬(B) are given below. A B ¬(A ∨ B) T T F T F F F T F F F T A B (¬A) ∧ (¬B) T T F T F F F T F F F T The truth tables are identical so these propositions are logically equiv- alent, i.e. ¬(A ∨ B) = ¬(A) ∧ ¬(B) . Click on the green square to return
  • 28. Solutions to Exercises 28 Exercise 5(d) For an arbitrary proposition X, the “disjunction” of X and “false” (i.e. the proposition F) has the following truth table. F X F ∨ X F T T F F F Therefore the relation F ∨ X = X is correct. Click on the green square to return
  • 29. Solutions to Exercises 29 Exercise 5(e) For any two propositions A and B, construct the following truth table: A B (¬A) ∨ B A ∧ ((¬A) ∨ B) [A ∧ ((¬A) ∨ B)] ∨ B T T T T T T F F F F F T T F T F F T F F Comparing the last column with the second one we find that [A ∧ ((¬A) ∨ B)] ∨ B = B . Click on the green square to return
  • 30. Solutions to Quizzes 30 Solutions to Quizzes Solution to Quiz: The truth tables from exercise 3(a) and exercise 3(d) are, respectively, A B ¬(A ∧ B) T T F T F T F T T F F T A B (¬A) ∨ (¬B) T T F T F T F T T F F T Since these are identical, it follows that ¬(A ∧ B) = (¬A) ∨ (¬B) . End Quiz
  • 31. Solutions to Quizzes 31 Solution to Quiz: The truth tables below are from exercise 4(a) and exercise 4(c), re- spectively. A B C A ∧ (B ∨ C) T T T T T T F T T F T T T F F F F T T F F T F F F F T F F F F F A B C (A ∧ B) ∨ (A ∧ B) T T T T T T F T T F T T T F F F F T T F F T F F F F T F F F F F From these, it can be seen that A ∧ (B ∨ C) = (A ∧ B) ∨ (A ∧ C) . End Quiz