SECTION 05 / 6

Sum of Products (SOP) and Minterms

3 min read
On this page 6 headings

Start here You have a truth table, and you want a formula. Here’s the trick: look only at the rows where the output is 1. Write a small “detector” for each of those rows, then OR all the detectors together. That’s it. You’ve written a Sum of Products.

A few words first

Word Meaning Example (inputs A, B, C)
Complement A variable with a bar A‾\overline{A}
Literal A variable or its complement A,A‾,B,C‾A , \overline{A} , B , \overline{C}
Implicant / product term An AND of literals A⋅B‾,A‾⋅CA \cdot \overline{B} , \overline{A} \cdot C
Minterm An AND that has every input variable once A⋅B‾⋅C,A‾⋅B‾⋅C‾A \cdot \overline{B} \cdot C , \overline{A} \cdot \overline{B} \cdot \overline{C}
Maxterm An OR that has every input variable once (A+B‾+C)\left(A + \overline{B} + C\right)

How to write a minterm for a row

Rule: if the input is 1, write the letter; if it’s 0, write the letter with a bar.

A B C Minterm Number
0 0 0 A‾B‾C‾\overline{A} \overline{B} \overline{C} m0m_{0}
0 1 1 A‾BC\overline{A} B C m3m_{3}
1 0 1 AB‾CA \overline{B} C m5m_{5}
1 1 1 ABC m7m_{7}

The number is just the row’s binary value (011 = 3, so m3m_{3}).

Each minterm is 1 in exactly one row: its own row. That’s why it works as a “row detector”.

A minterm is like a lock that opens for only one exact pattern.
A minterm is like a lock that opens for only one exact pattern.
Open image ↗
A minterm is a row detector

Sum of Products: the recipe

Pick the rows where F=1F = 1, write a minterm for each, and OR them together.
Pick the rows where F=1F = 1, write a minterm for each, and OR them together.
Open image ↗
From truth table to SOP
  1. Find every row where F=1F = 1.
  2. Write the minterm for each of those rows.
  3. OR them all together.

Example:

A B C F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1

F=A‾BC+AB‾C‾+AB‾C+ABC‾+ABCF = \overline{A} B C + A \overline{B} \overline{C} + A \overline{B} C + A B \overline{C} + A B C

Short form (Σ\Sigma notation): F(A,B,C)=F \left(A , B , C\right) = Σm(3,4,5,6,7)\Sigma m \left(3 , 4 , 5 , 6 , 7\right), the list of rows where F=1F = 1.

Why does SOP work?

Take input A=1,B=0,C=1A = 1 , B = 0 , C = 1 (row 5). Only the minterm AB‾CA \overline{B} C becomes 1 (1·1·1). Every other minterm has at least one 0 in it, so it’s 0. So F=0+…+1+…+0=F = 0 + \ldots + 1 + \ldots + 0 = 1. Correct!

For a row that’s not in the list, no minterm turns on, so F=0F = 0. Correct again.

Canonical form

  • A truth table is the unique “signature” of a function, but it’s long.
  • Many different expressions can give the same truth table (and different gate circuits).
  • A canonical (standard) form, like the full SOP of minterms, gives one standard expression for each function.
  • Every Boolean function can be written in SOP form.

SOP is a two-level circuit: a row of AND gates, then one OR gate.

In one line: For each row where F=1F = 1, write a minterm (letter for 1, barred letter for 0) and OR them together. That’s the canonical Sum of Products, written short as Σm(…)\Sigma m \left(\ldots \right). Exam words: literal, implicant, product term, minterm, maxterm, sum of products (SOP),Σm\left(S O P\right) , \Sigma m notation, canonical form, two-level logic.


Quick check

Write the minterm for A=1,B=1,C=0A = 1 , B = 1 , C = 0. Which number is it? ABC‾,m6A B \overline{C} , m_{6}.
F(A,B) is 1 only when A ≠ B. Write its SOP. F=A‾B+AB‾F = \overline{A} B + A \overline{B} (that’s XOR).
How many minterms does a 4-input function have in total? 2⁴ = 16.
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑