Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Boolean Algebra

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

An Introduction to Boolean Algebra

Boolean Algebra Law

The logic of boolean algebra might sound confusing but when it is broken down to bits and pieces it becomes easier to understand. The logic behind this concept is simple. You are basically dealing with 0’s and 1’s. The value of 0 is false while the value of 1 is said to be true.  In Boolean algebra, you will use only 1’s and 0’s. In the case of elementary algebra, the values of the variables are said to be numbers or alphabets and some of the operations that you can perform on them are addition and multiplication. In this article, we have simplified the concept of boolean algebra for your better understanding. 

Boolean Algebra is the branch of mathematics that works with only binary values. In contrast to numerical operations like addition, subtraction, a Boolean equation deals with a conjunction, disjunction, and negation. Boolean algebra uses binary codes to express the value and carries out logical computations through operations like AND and OR. The simplicity of Boolean expression makes it the best choice for being used in electronics and digital advancements. It would not be wrong to say that it has successfully revolutionized the world of computers. 

We shall look into Boolean expressions for logic gates and laws along with many other aspects of Boolean algebra in the following sections.


What is Boolean Algebra?

Boolean algebra works on logic instead of numbers. It recognizes only two binary values of 0 and 1. These digits hold values of:-

  • True/False

  • Open/Close

  • Yes/No

The fundamental operators which function on Boolean algebra laws are:

  • NOT: It is a unary operator, i.e., a single value. The operator is represented as A’ or ~A and exists in complements. This is the negation operation. For example ~A= 0, given A=1

  • AND: It is a binary operator, hence works with two values. It can be seen as a logical version of multiplication. This operation is called the disjunction operation. Represented as A AND B or A ∧ B. 

  • OR: This is another binary operator. It is the logical version of addition and is also called conjunction. Represented as: A OR B or A ∨ B.

A Boolean expression is always evaluated in terms of true or false. For instance: A AND B = 1.


A truth table can be used for all of the above operations.


(image will be uploaded soon)


Boolean Algebra Laws 

Boolean algebra has a total of 7 laws, and they are as follows.

  • Associative Law: 

The effect of logical operations is the same. Hence the sequence of performing them is irrelevant.  

  • Distributive Law: 

According to the Distributive Law, multiplying two variables and combining the result with a variable produces the same value as multiplying and adding the variable with two individual variables. 

  • Commutative Law: 

The commutative law in Boolean algebra states that any change in the series of variables does not affect the outcome. Expression: X.Y=Y.X

  • AND Law: 

These law statements use the AND operation.

  • OR Law: 

These law statements use the OR operation.

  • Absorption Law: 

The Absorption Law in Boolean algebra states that A+AB= A. 

  • Inversion Law: 

The inversion law states that if we use the negation operation twice, the result would be the same variable.

These Boolean algebra laws must always be kept in mind while evaluating any equation in Boolean algebra.


Boolean Expression for Logic Gates

Boolean algebra covers the concept of logic gates. These are building blocks of any circuit in the digital industry. They generally have two inputs but one output with each terminal being represented by either 0, i.e., low voltage, or 1, i.e., high voltage. Each Boolean operation has a separate gate expression. Let us see them in a little detail with Boolean algebra examples.

OR gate: The OR gate Boolean expression is A OR B. 

AND Gate: Its Boolean expression is A AND B.

NOT Gate: Its Boolean expression is A’ (A invert).

NOR Gate: The Nor gate Boolean expression is a combination of OR and Not gate. It is represented as A +B invert.

Fun Fact

Boolean algebra is named after its founder George Boole. He gave the concept in his book The Mathematical Analysis of Logic. He explained this concept in great detail in his book “An Investigation of the Laws of Thought”. Due to his contribution, he is known as the founder of computer programming.


Solved Examples: 

Q1. Convert the following Boolean equation into a truth table.

W+XY.

W

X

Y

XY

W+XY

0

0

0

0

0

0

0

1

0

0

0

1

0

0

0

0

1

1

1

1

1

0

0

0

1

1

0

1

0

1

1

1

0

0

1

1

1

1

1

1

FAQs on Boolean Algebra

1. How is boolean algebra different from elementary algebra? Explain with boolean algebra examples.

While elementary algebra deals with polynomials and numeric values, boolean algebra or boolean equation evaluates only binaries in terms of truth. Additionally, in contrast to ordinary algebra’s operations like addition, subtraction, division, and multiplication, Boolean algebra performs conjunction, disjunction, and negation. According to Boolean algebra rules, the variables can only have logical values, and hence, the sum of two same variables is the variable itself. Similarly, the product of two same variables is the variable itself. For example:-


A+A= A & A. A= A.


On the other hand, linear algebra assigns a numerical value to the variables, unlike the Boolean rules. Hence, when two same variables are added, their co-efficient is added to find the answer. Similarly, in multiplication, the product of two similar variables is the product of coefficient and the square of the variable. 


For example:-


A+A= 2A and 2A. 2A= 4A2


Boolean algebra rules do not have any fractional numbers or negative numbers. It only assigns a value in the binary of 0 and 1, which represents false and true, respectively. Elementary algebra contains integers, fractions, rational numbers, etc.

2.What is Boolean algebra used in? What are its rules in solving expressions?

Boolean algebra is used in finance as binomial values for representing the market analysis. Boolean expressions for logic gates play an important role in electronics, computer programming. It is used in digital circuitry, which is further used in personal computers, CD players, etc. Boolean operations are also used for showing appropriate search results in search engines. In mathematics, Boolean algebra is applied in the field of statistics.

Some of the important Boolean algebra rules are:

  • Boolean expressions follow the following order of evaluation:-

  1. Parentheses- [{()}]

  2. NOT- Negation

  3. AND- Conjunction

  4. OR- Disjunction


  • The variables can only take the value of either 0 or 1, which are expressed in terms of true and false.

  • The binary value of 1 is the highest while 0 is the lowest.