Digital Logic · Canonical Forms and Functional Completeness
Canonical Product of Sums and Maxterms
Overview
A function can be written as a product of sum terms instead of a sum of product terms. The canonical Product of Sums (POS) form multiplies one maxterm for every input combination where the function equals 0, giving a complete and equivalent definition of the function.
Key concepts
- Product of Sums (POS): A product (AND) applied to sum (OR) terms, just as Sum of Products (SOP) is a sum applied to product terms.
- Maxterm: A sum term that contains each of the variables as a factor, either complemented or uncomplemented. A maxterm must contain all the variables of the function.
- Sum term vs maxterm: is only a sum term, not a maxterm, because it lacks a variable. For variables , the term is a maxterm.
- Why each variable occurs exactly once: If a variable appeared both true and complemented, e.g. , then and , destroying the term.
Every variable occurs exactly once (at least once and at most once) in both minterms and maxterms. - Key property of a maxterm: A maxterm gives the value 0 for exactly one combination of the variables and 1 for all other combinations.
This is the dual of the minterm property (a minterm gives 1 for exactly one combination). - Defining a function by maxterms: A minterm representation states when the function is 1; a maxterm representation states when the function is 0. Either is a complete definition, because once the 0's (or 1's) are fixed, the remaining entries are automatically the opposite.
- Canonical POS (Conjunctive Normal Form): The product of all maxterms of for which assumes 0 — take the maxterm for every combination where the function is 0 and multiply them together.
How it works
- List the input combinations (rows) for which the function .
- For each such row, write the maxterm using the rule: variable value 0 → variable in true (uncomplemented) form; variable value 1 → variable in complemented form.
This is the opposite of the minterm rule (0 → complemented, 1 → true). - Multiply (AND) all these maxterms to obtain the canonical POS.
- Why the rule works: for the combination 0,0,0 the term evaluates to ; in general the maxterm is built to evaluate to 0 exactly for its own combination.
- Why the product represents : for any input where , exactly one maxterm in the product evaluates to 0, and since the maxterms are ANDed, a single 0 makes the whole product 0.
For any input where , every maxterm evaluates to 1, so the product is 1. - A function can be defined either by its canonical SOP (minterms, where ) or by its canonical POS (maxterms, where ). It is called "product of sums" because the expression is a product of sum terms.
- Compact Pi notation: just as (sigma) represents the sum of minterms, (pi) represents the product of maxterms; the listed indices are the combinations for which the function is 0.
Shortcut: In a maxterm, 0 → true variable, 1 → complemented variable (opposite of the minterm rule).
Formulas
- Maxterm definition: a sum term containing all variables, each exactly once, complemented or uncomplemented.
- Maxterm construction: variable value 0 → true form; variable value 1 → complemented form.
- Canonical POS: , where the indices are the rows (input combinations) for which .
- Canonical SOP (for contrast): , where the indices are the rows for which .
Worked examples
Example 1 — the maxterm : It equals 0 only for , , , because then . For any other combination it evaluates to 1, e.g. .
Example 2 — canonical POS from a truth table (function of ): The function is 0 at four rows (0, 3, 5, 7). For each such row, form the maxterm:
| Row (A B C) | f | Maxterm (0 → true, 1 → complemented) |
|---|---|---|
| 0 0 0 | 0 | |
| 0 1 1 | 0 | |
| 1 0 1 | 0 | |
| 1 1 1 | 0 |
The canonical POS is the product of these four maxterms:
Verification: For an input where should be 0, e.g. 0,0,0, the first maxterm becomes 0, and since the terms are multiplied, the whole product becomes 0. For any input where , all four maxterms become 1, so the product is 1.
Compact representation: — the indices are the rows where the function is 0.
Comparison
| Feature | Minterm (SOP) | Maxterm (POS) |
|---|---|---|
| Built from | Product (AND) term | Sum (OR) term |
| Contains all variables | Yes, each exactly once | Yes, each exactly once |
| Value for exactly one combination | 1 | 0 |
| Variable value 0 → | complemented form | true form |
| Variable value 1 → | true form | complemented form |
| Canonical form uses | rows where | rows where |
| Compact notation |
Revision summary
- A maxterm is a sum term containing all variables, each exactly once, complemented or uncomplemented.
- A maxterm is 0 for exactly one input combination and 1 for all others.
- Shortcut: in a maxterm, 0 → true variable, 1 → complemented variable (opposite of the minterm rule).
- Canonical POS = product of the maxterms for all rows where ;
a single 0 maxterm forces the whole product to 0. - Compact form: .
- A function can be defined equally well by where it is 1 (SOP/minterms) or where it is 0 (POS/maxterms); the remaining entries are automatically determined.
- Never write a variable twice (true and complemented) in a term — it collapses to 1.
Previous-year exam insights
- The canonical POS and canonical SOP of the same function list complementary index sets: if f = Σm(S) then f = ΠM(Sᶜ), where Sᶜ is the set of all indices not in S (for n variables, the two sets together contain all indices).
Asked inGATE 2024GATE 2015 - A single maxterm (a sum term with all n variables) is a clause; a canonical POS is an AND of such clauses, and a general CNF is an AND of clauses where each clause is an OR of literals (a literal is a variable or its complement) and need not contain all variables.
Asked inUGC NET 2020GATE 2007 - To convert a non-canonical SOP/POS expression to canonical form, expand each product term by ANDing with (X + X') for every missing variable, or each sum term by ORing with X·X' for every missing variable, then remove duplicate terms.
Asked inGATE 2011 - A maxterm evaluates to 0 exactly at the input combination whose binary value is i, and the complement of a minterm is the maxterm with the same index: ' = and ' = .
Asked inGATE 2015GATE 2024 - Any Boolean function can be expressed in canonical SOP or canonical POS; the two forms are logically equivalent, so a function given in Σ form can be rewritten in Π form (and vice versa) by taking the complement of the index set.
Asked inGATE 2024GATE 2015 - In CNF, a formula is satisfiable if some truth assignment makes every clause true; a clause is satisfied if at least one of its literals is true, and a formula in CNF is a tautology only if every clause is a tautology.
Asked inGATE 2007