The Demorgan’s theorem mostly used in digital programming and for making digital circuit diagrams. There are two DeMorgan’s Theorems. They are described below in detail. According to DeMorgan’s first theorem, a NOR gate is equivalent to a bubbled AND gate. The Boolean expressions for the bubbled AND gate can be expressed by the equation shown below. For NOR gate, the equation is Z = A + B
DeMorgan’s Second Theorem
DeMorgan’s Second Theorem states that the NAND gate is equivalent to a bubbled OR gate.
Z = A . B