Boolen Expression
Boolen Expression
Boolean algebra is a type of algebra that is created by operating the binary system. In
the year 1854, George Boole, an English mathematician, proposed this algebra. This
variant of Aristotle’s propositional logic uses the symbols 0 and 1, or True and False.
Boolean algebra is concerned with binary variables and logic operations.
Boolean Algebra is fundamental in the development of digital electronics systems as
they all use the concept of Boolean Algebra to execute commands. Apart from digital
electronics this algebra also finds its application in Set Theory, Statistics, and other
branches of mathematics.
In this article, we will learn about, basic Boolean operations, Boolean expressions,
Truth Tables, Boolean laws, and others in detail.
Boolean Algebra Operations
There are various operations that are used in Boolean algebra but the basic operations
that form the base of Boolean Algebra are,
Negation or NOT Operation
Conjunction or AND Operation
Disjunction or OR Operation
These operations have their own symbols and precedence and the table added below
shows the symbol and the precedence of these operators.
Operato
r Symbol Precedence
OR + (or) ∨ Third
We can easily define these operations using two boolean variables. Let’s take two
boolean variables A and B that can have any of the two values 0 or 1, i.e. they can be
either OFF or ON. Then these operations are explained as,
Negation or NOT Operation
Using the NOT operation reverse the value of the Boolean variable from 0 to 1 or
vice-versa. This can be understood as:
If A = 1, then using NOT operation we have (A)’ = 0
If A = 0, then using the NOT operation we have (A)’ = 1
We also represent the negation operation as ~A, i.e if A = 1, ~A = 0
Conjunction or AND Operation
Using the AND operation satisfies the condition if both the value of the individual
variables are true and if any of the value is false then this operation gives the negative
result. This can be understood as,
If A = True, B = True, then A . B = True
If A = True, B = False, Or A = false, B = True, then A . B = False
If A = False, B = False, then A . B = False
Disjunction (OR) Operation
Using the OR operation satisfies the condition if any value of the individual variables
are true, it only gives a negative result if both the values are false. This can be
understood as,
If A = True, B = True, then A + B = True
If A = True, B = False, Or A = false, B = True, then A + B = True
If A = False, B = False, then A + B = False
Boolean Expression and Variables
Boolean expression is an expression that produces a Boolean value when evaluated,
i.e. it produces either a true value or a false value. Whereas boolean variables are
variables that store Boolean numbers.
P + Q = R is a Boolean phrase in which P, Q, and R are Boolean variables that can
only store two values: 0 and 1. The 0 and 1 are the synonyms for false and True and
are used in Boolean Algebra, sometimes we also use “Yes” in place of True and “No”
in place of False.
Thus, we can say that statements using Boolean variables and operating on Boolean
operations are Boolean Expressions. Some examples of Boolean expressions are,
A + B = True
A.B = True
(A)’ = False
Boolean Algebra Terminologies
There are various terminologies related to Boolean Algebra, which are used to explain
various parameters of Boolean Algebra. That includes,
Boolean Algebra
Boolean Variables
Boolean Function
Literal
Complement
Truth Table
Now, we will discuss the important terminologies of Boolean algebra in the article
below,
Boolean Algebra
The branch of algebra that deals with binary operations or logical operations is called
Boolean Algebra.
Boolean Variables
Variables used in Boolean algebra that store the logical value of 0 and 1 are called the
boolean variables. They are used to store either true or false values.
Boolean Function
A function of the Boolean Algebra that is formed by the use of Boolean variables and
Boolean operators is called the Boolean function.
Literal
A variable or the complement of the variable in Boolean Algebra is called the Literal.
Complement
The inverse of the boolean variable is called the complement of the variable. The
complement of 0 is 1 and the complement of 1 is 0. It is represented by ‘ over the
variable.
Truth Table
Table containing all the possible values of the logical variables and the combination of
the variable along with the given operation is called the truth table. The number of
rows in the truth table depends on the total boolean variables used in that function. It
is given by using the formula,
Number of Rows in Truth Table = 2n
where “n” is the number of boolean variables used.
T T T T
T F T F
F T T F
F F F F
Commutative
P+Q=Q+P P.Q = Q.P
Law
T T F F F F
T F F T T T
F T T F T T
F F T T T T
We can clearly see that truth values for (P.Q)’ are equal to truth values for (P)’ + (Q)’,
corresponding to the same input. Thus, De Morgan’s First Law is true.
De Morgan’s Second laws
Statement: The Complement of the sum (OR) of two Boolean variables (or
expressions) is equal to the product(AND) of the complement of each Boolean
variable (or expression).
(P + Q)’ = (P)’.(Q)’
Proof :
The truth table for the same is given below:
(P)
P Q ’ (Q)’ (P + Q)’ (P)’.(Q)’
T T F F F F
T F F T F F
F T T F F F
F F T T T T
We can clearly see that truth values for (P + Q)’ are equal to truth values for (P)’.(Q)’,
corresponding to the same input. Thus, De Morgan’s Second Law is true.
Solved Examples on Boolean Algebra
Example 1: Draw Truth Table for P + P.Q = P
Solution:
The truth table for P + P.Q = P
P Q P.Q P + P.Q
T T T T
T F F T
F T F F
F F F F
In the truth table, we can see that the truth values for P + P.Q is exactly the same as
P.
Example 2: Draw Truth Table for P.Q + P + Q
Solution:
The truth table for P.Q + P + Q
P Q P.Q P.Q + P + Q
T T T T
T F F T
P Q P.Q P.Q + P + Q
F T F T
F F F F
Boolean algebra laws and theorems are a set of rules that are required to reduce or simplify any given
complex Boolean expression. Follwing is a list of Boolean algebra laws that are most commonly used.
A+1=1
A.1=A
Identity law
A+0=A
A.A=A
Idempotent law
A+A=A
A . AC = 0
Complement law
A + AC = 1
A.B=B.A
Commutative Law
A+B=B+A
A . (B . C) = (A . B) . C
Associative law
A + (B + C) = (A + B) + C
A(B + C) = AB + AC
Distributive law
A + (BC) = (A + B)(A + C)
A.(A + B) = A
Absorption law
A + (A . B) = A
(A + B)C = AC . BC
De Morgan’s law
(A . B)C = AC + BC