SUM of PRODUCT PRODUCT of SUM
SUM of PRODUCT PRODUCT of SUM
Canonical Expression
A boolean expression consisting entirely either of minterm or maxterm is called canonical expression.
Example: let’s say, we have a boolean function F defined on two variables A and B. So, A and B are the
inputs for F and let’s say, output of F is true i.e., F = 1 when any one of the input is true or 1. Now we draw
the truth table for F.
A B F
0 0 0
0 1 1
1 0 1
1 1 1
Now we will create a column for the minterm using the variables A and B. If input is 0 we take the
complement of the variable and if input is 1 we take the variable as is.
A B F Minterm
0 0 0 A'B'
0 1 1 A'B
1 0 1 AB'
1 1 1 AB
To get the desired canonical SOP expression we will add the minterm (product terms) for which the output
is 1.
F = A’B + AB’ + AB
Converting Sum of Products (SOP) to shorthand notation
From the previous example we have
F = A’B + AB’ + AB
Now, lets say we want to express the SOP using shorthand notation.
A’B = (01)2 = m1
AB’ = (10)2 = m2
AB = (11)2 = m3
We saw the conversion of SOP to shorthand notation. Lets check the conversion of shorthand notation to
SOP.
F has two input variables A and B and output of F = 1 for m1, m2 and m3 i.e., 2nd, 3rd and 4th combination.
we have,
F = ∑(1, 2, 3)
= m1 + m2 + m3
= 01 + 10 + 11
To convert from shorthand notation to SOP we follow the given rules. If the variable is 1 then it is taken "as
is" and if the variable is 0 then we take its "complement".
F = ∑(1, 2, 3)
= A’B + AB’ + AB
Example
Let’s say, we have a boolean function F defined on two variables A and B. So, A and B are the inputs for F
and let’s say, output of F is true i.e., F = 1 when only one of the input is true or 1.
ABF
0 0 0
0 1 1
1 0 1
1 1 0
Now we will create a column for the maxterm using the variables A and B. If input is 1 we take the
complement of the variable and if input is 0 we take the variable as is.
A B F Maxterm
0 0 0 A+B
0 1 1 A + B'
1 0 1 A' + B
1 1 0 A' + B'
To get the desired canonical POS expression we will multiply the maxterms (sum terms) for which the
output is 0.
F = (A+B) . (A’+B’)
we have F = (A+B).(A’+B’)
A+B = (00)2 = M0
A’+B’ = (11)2 = M3
F = M0.M3
We saw the conversion of POS to shorthand notation. Let’s check the conversion of shorthand notation to
POS.
F = ꞃ (1, 2, 3)
F has two input variables A and B and output of F = 0 for M1, M2 and M3 i.e., 2nd, 3rd and 4th combination.
we have, F = ꞃ (1, 2, 3)
= M1 . M2 . M3
= 01 . 10 . 11
To convert from shorthand notation to POS we follow the given rules. If the variable is 0 then it is taken as
is and if the variable is 1 then we take its complement.
we have, F = ꞃ (1, 2, 3)
= (A+B’) . (A’+B) . (A’+B’)
Solve:
Which means that the function is true for the min terms {1, 2, 3, 5}.
F = m1 + m2 + m 3 + m5
Canonical form contains all inputs either complemented or non-complemented in its product terms.