I have a boolean expression and I need to get to its canonical forms (sum of minterms and product of maxterms).
In order to get an expression for the first canonical form, I need to multiply every term by $(x + x')$, where $x$ is the missing variable of this term. Is there a similar algorithm to get to the second canonical form (product of maxterms)?
For small expressions, you can write down the truthtable. The maxterms correspond to the truthtable rows with output value 0. Invert all literals in these rows to get the maxterms.
Example:
Truthtable:
Rows with 0 output:
Maxterms:
Conjunctive Normal Form (CNF)
Note that the CNF is not always unique. For many expressions, it is possible to derive different equivalent CNFs.
Prof. Jason Eisner's recipe to convert expressions to CNF: