1. Gyanastra
  2. Digital Logic
  3. Canonical Forms and Functional Completeness
  4. Canonical Product of Sums and Maxterms
Free lesson, no account needed 8 min read 10 practice questions after it
Asked in past papers7 times
  • GATE CSE2024201520112007
  • UGC NET202020192015

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 nn variables as a factor, either complemented or uncomplemented. A maxterm must contain all the variables of the function.
  • Sum term vs maxterm: (A+C)(A + C) is only a sum term, not a maxterm, because it lacks a variable. For variables A,B,CA, B, C, the term (A+B′+C)(A + B' + C) is a maxterm.
  • Why each variable occurs exactly once: If a variable appeared both true and complemented, e.g. (A+A′+… )(A + A' + \dots), then A+A′=1A + A' = 1 and 1+anything=11 + \text{anything} = 1, 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 ff for which ff assumes 0 — take the maxterm for every combination where the function is 0 and multiply them together.

How it works

  1. List the input combinations (rows) for which the function f=0f = 0.
  2. 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).
  3. Multiply (AND) all these maxterms to obtain the canonical POS.
  4. Why the rule works: for the combination 0,0,0 the term (A+B+C)(A + B + C) evaluates to 0+0+0=00 + 0 + 0 = 0; in general the maxterm is built to evaluate to 0 exactly for its own combination.
  5. Why the product represents ff: for any input where f=0f = 0, 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 f=1f = 1, every maxterm evaluates to 1, so the product is 1.
  6. A function can be defined either by its canonical SOP (minterms, where f=1f = 1) or by its canonical POS (maxterms, where f=0f = 0). It is called "product of sums" because the expression is a product of sum terms.
  7. Compact Pi notation: just as Σ\Sigma (sigma) represents the sum of minterms, Π\Pi (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 nn variables, each exactly once, complemented or uncomplemented.
  • Maxterm construction: variable value 0 → true form; variable value 1 → complemented form.
  • Canonical POS: f=ΠM(i1,i2,… )=M(i1)⋅M(i2)⋯f = \Pi M(i_1, i_2, \dots) = M(i_1) \cdot M(i_2) \cdots, where the indices ii are the rows (input combinations) for which f=0f = 0.
  • Canonical SOP (for contrast): f=∑m(indices)f = \sum m(\text{indices}), where the indices are the rows for which f=1f = 1.

Worked examples

Example 1 — the maxterm (A+B′+C)(A + B' + C): It equals 0 only for A=0A = 0, B=1B = 1, C=0C = 0, because then 0+0+0=00 + 0 + 0 = 0. For any other combination it evaluates to 1, e.g. 1,1,1→1+0+1=11,1,1 \rightarrow 1 + 0 + 1 = 1.

Example 2 — canonical POS from a truth table (function of A,B,CA, B, C): The function is 0 at four rows (0, 3, 5, 7). For each such row, form the maxterm:

Row (A B C)fMaxterm (0 → true, 1 → complemented)
0 0 00A+B+CA + B + C
0 1 10A+B′+C′A + B' + C'
1 0 10A′+B+C′A' + B + C'
1 1 10A′+B′+C′A' + B' + C'

The canonical POS is the product of these four maxterms: f=(A+B+C)(A+B′+C′)(A′+B+C′)(A′+B′+C′)f = (A + B + C)(A + B' + C')(A' + B + C')(A' + B' + C')

Verification: For an input where ff should be 0, e.g. 0,0,0, the first maxterm (A+B+C)(A + B + C) becomes 0, and since the terms are multiplied, the whole product becomes 0. For any input where f=1f = 1, all four maxterms become 1, so the product is 1.

Compact representation: f=ΠM(0,3,5,7)f = \Pi M(0, 3, 5, 7) — the indices are the rows where the function is 0.

Comparison

FeatureMinterm (SOP)Maxterm (POS)
Built fromProduct (AND) termSum (OR) term
Contains all variablesYes, each exactly onceYes, each exactly once
Value for exactly one combination10
Variable value 0 →complemented formtrue form
Variable value 1 →true formcomplemented form
Canonical form usesrows where f=1f = 1rows where f=0f = 0
Compact notation∑m(indices)\sum m(\text{indices})ΠM(indices)\Pi M(\text{indices})

Revision summary

  • A maxterm is a sum term containing all nn 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 f=0f = 0;
    a single 0 maxterm forces the whole product to 0.
  • Compact form: f=ΠM(list of rows where f=0)f = \Pi M(\text{list of rows where } f = 0).
  • 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 2n2^{n} 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 MiM_{i} 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: mim_{i}' = MiM_{i} and MiM_{i}' = mim_{i}.
    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
Pages 1–2 of 2