3.1.9 · D5Boolean Algebra & Logic Gates

Question bank — Sum of products (SOP) form

1,615 words7 min readBack to topic

Before we start, one shared picture: SOP is "OR the winners." Walk the truth table row by row; every row where the output is is a winner. For each winner you build one AND-term (a minterm) that shouts "!" only on its own row, then you OR all the shouts together. Keep that image ready — most traps here are about misremembering one moving part of it.

Quick vocabulary refresher so no symbol is unearned:

  • Literal = a variable either plain () or barred (, read "not ").
  • Product term = literals joined by AND (), e.g. .
  • Sum = terms joined by OR ().
  • Minterm = a product term that mentions every variable exactly once.
  • Canonical SOP = an SOP made purely of minterms.

True or false — justify

TRUE or FALSE: Every Boolean function can be written in SOP form.
TRUE — build one minterm per output- row and OR them; this reconstructs the truth table exactly, so no function is left out. Even the all-zero function is covered (it is the empty OR, i.e. ).
TRUE or FALSE: is already in SOP form.
TRUE — it is an OR of two terms, and each term (, ) is a product of one literal. A single literal counts as a (trivial) product, so this is valid, non-canonical SOP.
TRUE or FALSE: is in SOP form.
FALSE — the outer operation is AND (two OR-groups multiplied), which is the shape of POS, not SOP. To make it SOP you must distribute into .
TRUE or FALSE: In SOP, .
FALSE — the is OR, not arithmetic addition, so . Boolean values only ever live in ; there is no "".
TRUE or FALSE: A minterm is for exactly one input row.
TRUE — it ANDs every variable, so every literal must be satisfied simultaneously, which pins down one unique combination. Any other row flips at least one literal to and kills the AND.
TRUE or FALSE: The term is a minterm of the function .
FALSE — over three variables a minterm must mention too. is a valid product term but it fires on two rows ( and ), so it is not a minterm here.
TRUE or FALSE: Simplifying an SOP with Boolean laws can change which rows output .
FALSE — legal simplifications preserve the truth table by definition; they only reduce gate count. If your "simplified" version changes an output, you made an algebra error, not a simplification.
TRUE or FALSE: Two different-looking SOP expressions can describe the same function.
TRUE — e.g. and have identical truth tables. Canonical (minterm) SOP is the unique form; simplified SOP is not unique.
TRUE or FALSE: The number of minterms in the canonical SOP equals the number of s in the output column.
TRUE — one minterm is created per output- row, so the counts match exactly. If on five rows, canonical SOP has five minterms.

Spot the error

Find the mistake: "Row gives the minterm ."
The bars are inverted. Rule: a variable that is in the row gets barred, a variable that is stays plain — so this row gives , not . ("Zero gets a hat.")
Find the mistake: "To get SOP I list the rows where ."
That builds POS, not SOP. SOP lists the output- rows ("OR the winners"); the -rows are the POS job.
Find the mistake: " is SOP because it contains a sum inside."
The outermost operation is AND (an multiplied by an OR-group), so this is a product-of-a-sum, not a sum-of-products. Distribute first: , then it is SOP.
Find the mistake: "I expanded to canonical form by multiplying with ."
, so you multiplied by and destroyed the term. The correct identity is multiply by , giving .
Find the mistake: "In the term is redundant, so I deleted it to get ."
You cannot just delete a minterm — each represents a real output- row, and dropping it turns that row to . Redundancy is removed by combining (), which still covers both original rows.
Find the mistake: "Every product term in an SOP must contain all variables."
Only canonical SOP requires full minterms. General (simplified) SOP allows short terms like that span several rows — that's the whole point of simplifying.
Find the mistake: " is in SOP form."
The second term has a bar over an entire OR-group, which is not a product of literals — it's a complemented sum. SOP needs bars only on individual variables, so apply De Morgan first: .

Why questions

WHY does a minterm use AND rather than OR internally?
AND demands all literals be at once, which is what pins the term to a single exact row. OR would fire on many rows, so it could not act as a one-row detector.
WHY do we join the minterms with OR rather than AND?
OR outputs if any term fires, so the function is on every winning row and elsewhere. ANDing them would require all rows to fire simultaneously — impossible — giving a constant .
WHY is " barred variable" the correct complement rule?
We need the literal to equal on that row. If the variable is there, then makes the literal true; a plain would be and kill the AND.
WHY does distributing AND over OR turn an expression into SOP?
Distribution () pushes ANDs inward and lifts ORs to the outside, which is exactly the SOP shape (OR of AND-terms). It rearranges the algebra without changing any output.
WHY can K-maps shorten an SOP but never change its meaning?
A K-map groups adjacent output- cells and each group is one product term covering those same rows — it only merges what was already there. The set of -rows is untouched, so the function is identical.
WHY is canonical SOP unique but simplified SOP is not?
Canonical SOP is forced by the truth table (one minterm per -row, no choices). Simplification offers several legal grouping orders, so different but equal expressions can result.

Edge cases

EDGE CASE: What is the canonical SOP of a function that is on every row?
It ORs all minterms, which simplifies to (a constant). Every input is a winner, so the "list of winners" is the whole table.
EDGE CASE: What is the SOP of a function that is on every row?
There are no output- rows, so the OR has no terms — the empty sum is . This is the one function with no minterms.
EDGE CASE: A single-variable function — is it valid SOP?
Yes. It is an OR of one product term, and that product is the single literal . Both "sum" and "product" are allowed to have just one element.
EDGE CASE: Can a product term legally contain the same variable barred and plain, like ?
It's syntactically a product term, but , so the whole term is constant and detects no row. Such a term is always dropped in a real SOP.
EDGE CASE: If two rows both output and differ in only one variable, must canonical SOP still list both minterms?
Yes — canonical form lists every -row regardless of adjacency. Only simplification (or a K-map) may later merge those two minterms into one shorter term.
EDGE CASE: For variables, how many distinct minterms exist?
Exactly , one per possible input row, since each variable can be plain or barred independently. Any function's canonical SOP is a subset of these.

Connections