Sie sind auf Seite 1von 14

Digital Electronic Systems Unit 6

Rules and laws of Boolean Algebra


Laws of Boolean Algebra
The three basic laws of Boolean Algebra are:
(1) Commutative Laws
(a)
Law of Addition
(b)

A B B A
A.B B. A

Law of Multiplication

(2) Associative Laws


(a)
Law of Addition
(b)

A B C A B C
A. B.C A.B .C

Law of Multiplication

(3) Distributive Law

A. B C A.B A.C

Commutative Laws
The commutative law of Boolean addition for two variables is written as:

A B B A
The law states that the order in which the variables are ORed makes no difference to the
outcome. This law can be extended to any number of variables.

B
A+B

B+A

A
0
0
1
1

B
0
1
0
1

A+B
0
1
1
1

B
0
0
1
1

A
0
1
0
1

B+A
0
1
1
1

Digital Electronic Systems Unit 6

The commutative law of Boolean Multiplication for two variables is written as:
A.B B. A

The law states that the order in which the variables are ANDed makes no difference to the
outcome. This law can be extended to any number of variables.
A

B
AB

BA
A
S

A
0
0
1
1

B
0
1
0
1

A.B
0
0
0
1

B
0
0
1
1

A
0
1
0
1

B.A
0
0
0
1

Associative Laws
The associative law of Boolean addition for three variables is written as:
A B C A B C

The law states that the result of ORing several variables together is the same regardless of the
grouping of these variables. This law can be extended to any number of variables.

A+B
(A+B)+C

B
C

A
0
0
0
0
1
1
1
1

B
0
0
1
1
0
0
1
1

C A+B (A+B)+C
0
0
0
1
0
1
0
1
1
1
1
1
0
1
1
1
1
1
0
1
1
1
1
1

Digital Electronic Systems Unit 6

A
B

A+(B+C)

B+C

A
0
0
0
0
1
1
1
1

B
0
0
1
1
0
0
1
1

C B+C A+(B+C)
0
0
0
1
1
1
0
1
1
1
1
1
0
0
1
1
1
1
0
1
1
1
1
1

The associative law of Boolean multiplication for three variables is written as:
A. B.C A.B .C

The law states that the result of ANDing several variables together is the same regardless of
the grouping of these variables. This law can be extended to any number of variables.
A
A.B
(A.B).C

B
C

A
0
0
0
0
1
1
1
1

B
0
0
1
1
0
0
1
1

C A.B (A.B).C
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
1
1
1

Digital Electronic Systems Unit 6

A
A.(B.C)

B
B.C
C

A
0
0
0
0
1
1
1
1

B
0
0
1
1
0
0
1
1

C B.C A.(B.C)
0
0
0
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
0
0
1
1
1

Distributive Law
The distributive law for three variables is written as:
A. B C A.B A.C

The law states that ORing two or more variables and then ANDing the result with a single
variable is the same as ANDing the single variable with each of the two or more variables and
then ORing the result. This law can be extended to any number of variables.
B

B+C
A.(B+C)

C
A

A
0
0
0
0
1
1
1
1

B
0
0
1
1
0
0
1
1

C B+C A.(B+C)
0
0
0
1
1
0
0
1
0
1
1
0
0
0
0
1
1
1
0
1
1
1
1
1

Digital Electronic Systems Unit 6

A
A.B

(A.B)+(A.C)
= AB+AC

A
A.C
C

A
0
0
0
0
1
1
1
1

B
0
0
1
1
0
0
1
1

C A.B A.C A.B+A.C


0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
1

Rules of Boolean Algebra


(1)
(2)
(3)
(4)
(5)
(6)

A0 A

(7)
(8)
(9)
(10)
(11)
(12)

A 1 1
A.0 0
A.1 A

A A A
A A 1

A. A A

A. A 0
AA

A A.B A

A A .B A B

A B . A C A B.C

These 12 rules are useful in manipulating and simplifying Boolean expressions.

Digital Electronic Systems Unit 6

Rule 1

A0 A
This rule states that if you OR a variable with 0 then you will get that variable at the output.
Shown below is a diagram describing this rule.

A=0

A=1
0

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
1
1
1

Rule 2

A 1 1
This rule states that if you OR a variable with 1 then you will always get a 1 (logic HIGH) at
the output. Shown below is a diagram describing this rule.

A=0

A=1
1

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
1
1
1

Digital Electronic Systems Unit 6

Rule 3

A.0 0
When a 0 is ANDed with any logic level then the output of the AND gate is always 0 (logic
LOW). Shown below is a diagram describing the rule.
A=0

A=1
0

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
0
0
1

Rule 4

A.1 A
When a 1 is ANDed with any variable logic level then the output of the AND gate is always
that variable logic level. Shown below is a diagram describing the rule.
A=0

A=1
0

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
0
0
1

Digital Electronic Systems Unit 6

Rule 5

A A A
This rule states that the output of an OR gate when the two inputs are the same is the same as
the inputs. Shown below is a diagram describing the rule.
A=0

A=1

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
1
1
1

Rule 6

A A 1
This rule states that when a variable is ORed with the variables inverse, the answer is the
always 1 (logic HIGH). Shown below is a diagram describing the rule.
A=0

A=1

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
1
1
1

Digital Electronic Systems Unit 6

Rule 7

A. A A
This rule states that if a variable is ANDed with itself then the output of the AND gate is the
variable input itself. Shown below is a diagram describing the rule.
A=0

A=1

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
0
0
1

Rule 8

A. A 0
This rule states that when a variable is ANDed with its inverse then the output of the AND
gate is always 0. Shown below is a diagram describing the rule.
A=0

A=1

INPUT A
0
0
1
1

INPUT B
0
1
0
1

OUTPUT
0
0
0
1

Digital Electronic Systems Unit 6

Rule 9
AA
This rule states that any variable that goes through two NOT gates successively will be
returned to its original logic level. Shown below is a diagram describing the rule.
A=0

A 1

A0

A=1

A0

A 1

Rule 10
A A.B A

This rule uses the Distributive Law in its proof. The proof is as follows:
A A.B A.1 A.B

Rule 4

A.1 B

Distributive Law

A.1

Rule 2

Rule 4

Shown below is a diagram describing the rule.


A
A+AB

AB
B

INPUT
A
0
0
1
1

INPUT
B
0
1
0
1

A.B
0
0
0
1

IDENTICAL

10

OUTPUT
A + A.B
0
0
1
1

Digital Electronic Systems Unit 6

Rule 11
A A .B A B

Rule 11 is proved as follows


A A.B ( A A.B ) A.B

Rule10

A B.( A A)

Distributive Law

A B.1
A B

Rule 6
Rule 4

Shown below is a diagram describing the rule.


A

A AB

AB
B

A
A+B
B

The proof can also be derived using the truth table shown below
INPUT
A
0
0
1
1

INPUT
B
0
1
0
1

AB

OUTPUTS
A+ B
0
0
1
1
1
1
1
1

A AB

0
1
0
0

IDENTICAL

11

Digital Electronic Systems Unit 6

Rule 12

A B . A C A B.C

This rule is proved as follows


(A+B).(A+C)=A.A+A.C+A.B+B.C
=A+A.C+A.B+B.C
= A .( 1 + C ) + A . B + B . C
=A.1+A.B+B.C
= A .( 1 + B ) + B . C
=A.1+B.C
=A+B.C

Distributive Law
Rule 7
Distributive Law
Rule 2
Distributive Law
Rule 2
Rule 4

Shown below is a diagram describing the rule.


A
(A+B)
B
(A+B)(A+C)

(A+C)

A
B

A+BC

BC
C

The proof can also be derived using the truth table shown below
INPUT
A
0
0
0
0
1
1
1
1

INPUT
B
0
0
1
1
0
0
1
1

INPUT
C
0
1
0
1
0
1
0
1

A+B

A+C

B.C

0
0
1
1
1
1
1
1

0
1
0
1
1
1
1
1

0
0
0
1
0
0
0
1

OUTPUT
OUTPUT
(A+B).(A+C) A+B.C
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
IDENTICAL

12

Digital Electronic Systems Unit 6

De Morgans Theorems
De Morgans Theorems are expressed for two variables in the following way.
Equation 1
Equation 2

X .Y X Y
X Y X .Y

Equation 1 states that the complement of two or more variables ANDed together is
equivalent to the OR of the complements of the individual variables. This can be seen very
clearly in the diagram and truth table below.

X.Y

XY

X.Y

0
0
1
1

0
1
0
1

1
1
0
0

1
0
1
0

0
0
0
1

(X

Y)

X Y

1
1
1
0

1
1
1
0

Identical

Equation 2 states that the complement of two or more variables ORed together is equivalent
to the AND of the complements of the individual variables. This can be more clearly seen in
the diagram and the truth table below.

XY

X.Y

X+Y

0
0

0
1

1
1

1
0

0
1
13

X Y
X Y

1
0

1
0

Digital Electronic Systems Unit 6

1
1

0
1

0
0

1
0

1
1

0
0

0
0
Identical

De Morgans Theorems are not specific to just two variables. They can be applied to more
than two variables. For three variables, De Morgans theorems are written as follows.
X .Y .Z X Y Z
X Y Z X .Y .Z

Terminology: In Boolean algebra, a product term is defined as a term consisting of variables


(or their complements) that are ANDed together. When two or more product terms are ORed
together, the resultant expression is in sum of products (SOP) format.
Ex. 1: Apply De Morgans Theorems to reduce the expression F1 A.B C.D to sum of
products (SOP) format.
Ex. 2: Apply De Morgans Theorems to reduce the expression F2 A.B.C A B C to
sum of products (SOP) format.
Ex. 3: Apply De Morgans Theorems to reduce the expression F3 A B.C D.(E F )
to sum of products (SOP) format.
Ex. 4: Apply De Morgans Theorems to reduce the expression F4 A.B.C D.E.F to sum
of products (SOP) format.
Ex. 5: Apply De Morgans Theorems to reduce the expression F5 ( A B C ).D to sum of
products (SOP) format.
Ex. 6: Apply De Morgans Theorems to reduce the expression
sum of products (SOP) format.

F6 A.B C.D E.F

to

Ex. 7: Apply De Morgans Theorems to reduce the expression F7 ( A B)C.D E F to


sum of products (SOP) format.

14

Das könnte Ihnen auch gefallen