Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 27

Boolean Function Simplification and Canonical Forms

Recommended resources

Welcome to your next lesson in the Digital Logic module. In our last session, we dove deep into the machine's perspective on numbers, covering 2's complement arithmetic and the IEEE 754 floating-point standard. We saw how bits are organized to represent different kinds of numerical data.

Today, we'll step back from the low-level representation of data to focus on the logic that manipulates it. This lesson addresses how to simplify the Boolean functions that form the very foundation of digital circuits. You will learn how to use algebraic laws to reduce complex expressions into simpler, more efficient forms. We will then explore the standardized or "canonical" ways of representing any Boolean function: the Sum-of-Products (SOP) and Product-of-Sums (POS) forms. Mastering these skills is fundamental for circuit design and a high-yield area for direct questions in the GATE exam.

1. Simplifying Boolean Expressions with Algebraic Laws

At the heart of digital circuit design lies the goal of simplification: achieving the same logical output with the minimum number of components (logic gates). Before we explore graphical methods like K-maps in a future lesson, it is essential to master algebraic simplification. This involves applying the fundamental laws of Boolean algebra to manipulate and reduce expressions.

While you may have encountered these laws before, their tactical application is key for GATE. The most powerful and frequently used laws for simplification are the Distributive law, De Morgan's laws, and especially the Absorption law.

The following video provides an excellent series of demonstrations on how to apply these laws systematically to simplify complex expressions.

Simplification Of Boolean Expressions | Using Laws of Boolean Algebra

This video, "Simplification Of Boolean Expressions," walks through several examples, clearly showing the application of Boolean laws at each step. This is a great way to see the theory in action.

Please watch the following segments. For each one, try to follow the application of each law mentioned. Introduction and Basic Laws: Watch the introductory part which lists the laws that will be used. You don't need to memorize them from the video; just recognize them as our toolkit. Simple Absorption: See two fundamental simplifications. First, how A(A+B) reduces to A from this point. Second, how (A+B)(A+C) simplifies to A+BC from this example. This second identity, (X+Y)(X+Z) = X+YZ, is particularly useful and worth remembering. A GATE Example: Now, let's tackle a problem from a previous GATE exam. Watch the simplification of a complex expression using De Morgan's laws and absorption from this segment. Notice how applying De Morgan's law is often the first step when dealing with a complemented group of terms. Another Key Pattern: Finally, watch this quick example from this GATE question. The simplification of A + A'B to A+B is another extremely common and useful identity. It is a form of the absorption law. The main takeaway from these examples is that simplification is a process of pattern recognition. The more you practice, the faster you will spot opportunities to apply laws like absorption (X + XY = X) and De Morgan's ((A+B)' = A'B' and (AB)' = A'+B'). 2. Canonical Forms: SOP and POS While simplified expressions are our end goal for implementation, it's often useful to start from a standardized format. A canonical form is a unique representation of a Boolean function. For any given function, there are two canonical forms: Canonical Sum-of-Products (SOP): The function is expressed as a logical OR (sum) of specific product terms called minterms. Canonical Product-of-Sums (POS): The function is expressed as a logical AND (product) of specific sum terms called maxterms. These forms are derived directly from a function's truth table. The video below provides a complete and clear explanation.

The main takeaway from these examples is that simplification is a process of pattern recognition. The more you practice, the faster you will spot opportunities to apply laws like absorption () and De Morgan's ( and ).


2. Canonical Forms: SOP and POS

While simplified expressions are our end goal for implementation, it's often useful to start from a standardized format. A canonical form is a unique representation of a Boolean function. For any given function, there are two canonical forms:

  • Canonical Sum-of-Products (SOP): The function is expressed as a logical OR (sum) of specific product terms called minterms.
  • Canonical Product-of-Sums (POS): The function is expressed as a logical AND (product) of specific sum terms called maxterms.

These forms are derived directly from a function's truth table. The video below provides a complete and clear explanation.

Boolean Function Representation: SOP and POS Form | Minterms and Maxterms Explained

Let's continue with the same video to see how to construct the canonical SOP form.

Watch these two crucial segments: Minterms Explained: Understand the definition of minterms and how to derive them for each input combination from this explanation. Pay attention to the m_i notation. Building the SOP form: See how to write the final canonical SOP expression from a truth table by summing the relevant minterms from this example.

2.1 Minterms and Canonical SOP

A minterm is a product term (AND) that contains all variables of the function, either in true or complemented form. A minterm evaluates to 1 for exactly one combination of inputs.

  • Rule for Minterms: For a given input row, if a variable is 0, it appears complemented in the minterm. If it's 1, it appears in its true form.

The Canonical SOP form of a function is the logical sum (OR) of all the minterms for which the function's output is 1. It is also called the "sum of minterms".

The notation is used, where are the decimal indices of the input rows where the function is 1.

Boolean Function Representation: SOP and POS Form | Minterms and Maxterms Explained

Now, let's learn the other side of the coin: maxterms and the POS form.

Watch the next two segments from the video: Maxterms Explained: Learn the definition of maxterms, the M_i notation, and how they relate to input combinations from this part. Building the POS form: Understand how to construct the canonical POS expression by taking the product of maxterms where the function output is 0 in this example.

2.2 Maxterms and Canonical POS

A maxterm is a sum term (OR) that contains all variables of the function. A maxterm evaluates to 0 for exactly one combination of inputs.

  • Rule for Maxterms: This is opposite to minterms. For a given input row, if a variable is 0, it appears in its true form. If it's 1, it appears complemented.

The Canonical POS form of a function is the logical product (AND) of all the maxterms for which the function's output is 0. It is also called the "product of maxterms".

The notation is used, where are the decimal indices of the input rows where the function is 0.

Boolean Function Representation: SOP and POS Form | Minterms and Maxterms Explained

Finally, let's tie everything together by seeing the relationship between SOP and POS forms.

Watch the segment on converting between forms. This shortcut is extremely useful for GATE questions that ask you to convert from one canonical form to another.

2.3 Relationship Between SOP and POS

Minterms and maxterms are complements of each other. Specifically, for any index , . This leads to a very simple way to convert between canonical forms.

If a function of variables is given as a sum of minterms, its product of maxterms form will include all the indices from 0 to that are not present in the minterm list.

Example: For a 3-variable function .
The missing indices are 1, 4, 5, 6.
Therefore, the canonical POS form is .

This final video segment explains this powerful relationship.

Boolean Function Representation: SOP and POS Form | Minterms and Maxterms Explained

Finally, let's tie everything together by seeing the relationship between SOP and POS forms.

Watch the segment on converting between forms. This shortcut is extremely useful for GATE questions that ask you to convert from one canonical form to another.


Conclusion

In this lesson, we established two crucial skills for digital logic. First, we practiced using Boolean algebra to simplify logical expressions, a technique that reduces circuit cost and complexity. Second, we learned how to represent any Boolean function in one of two unique canonical forms—Sum-of-Products or Product-of-Sums—which provide a standard starting point for minimization.

Key Takeaways:

  • Algebraic Simplification: This is a process of applying Boolean laws, especially Distributive, Absorption, and De Morgan's laws, to reduce the number of terms and literals in an expression.
  • Canonical Forms: Every Boolean function has a unique canonical SOP and POS representation.
  • Sum-of-Products (SOP): Formed by ORing the minterms that correspond to the 1 outputs of the function. The notation is .
  • Product-of-Sums (POS): Formed by ANDing the maxterms that correspond to the 0 outputs of the function. The notation is .
  • Conversion: The set of maxterm indices for a function is the complement of its minterm indices. This allows for easy conversion between the two canonical forms.

Algebraic simplification can be difficult and requires intuition. What if there was a more visual and systematic way to achieve the simplest possible expression? In our next lesson, we will introduce just that: the Karnaugh map (K-map). K-maps are a graphical method for minimizing 2, 3, and 4-variable Boolean functions, and they are one of the most important and frequently tested topics in this section of the GATE syllabus.