Postulates and theorems of Boolean algebra (absorption, De Morgan, consensus, duality), algebraic simplification, complements, canonical SOP and POS forms with minterms and maxterms, XOR identities and counting Boolean functions.
Boolean algebra works on the set with OR (), AND () and NOT ( or ). Precedence: NOT, then AND, then OR.
Law
OR form
AND form
Identity
Null
Idempotent
Complement
Involution
Absorption
Redundant literal
Distributive
The second distributive law, , has no counterpart in ordinary algebra and is the one students forget.
Theorems can be proved by algebra or, with few variables, by perfect induction: check every row of the truth table. Two expressions are equal exactly when their truth tables match.
Duality: swap and (leave variables alone). If an identity holds, its dual also holds. That is why every law above comes in a pair.
Venn picture of two variables: the four regions are the minterms $AB$, $A\overline{B}$, $\overline{A}B$, $\overline{A}\,\overline{B}$, and it shows both De Morgan laws.
2. De Morgan's theorems and complements
De Morgan's theorems:
They extend to any number of variables: .
To complement a function, take the dual and complement every literal. For example
Keep the grouping: is really , so its dual is , not . Put brackets in before swapping.
Dual vs complement: the dual swaps operators only; the complement also complements literals. They are linked by .
A function is self-dual if . The 3-input majority function is self-dual. A self-dual function of variables is fixed by its values on half the input combinations, so there are of them.
De Morgan also explains gate equivalences: a NAND gate is an OR gate with inverted inputs, and a NOR gate is an AND gate with inverted inputs. NAND and NOR are each universal: any function can be built from NAND gates alone (or NOR gates alone).
3. Algebraic simplification and the consensus theorem
The aim is fewer literals and terms, so the circuit needs fewer gates. Useful moves:
Absorption: .
Combining: .
Redundant literal: .
Consensus theorem:
The term is the consensus of and : take the two terms containing and , and AND the rest. It is redundant, because whenever one of the other two terms is already 1. The dual form is .
The consensus term, though logically redundant, is sometimes added on purpose to remove a static hazard; that is a circuit issue, not an algebra one.
For more than four variables, or when you need the guaranteed minimum, use a Karnaugh map. In GATE, algebra is usually enough to spot that two options are equal or that an expression collapses to a single literal.
Check by substitution: if two options look alike, try a few input rows (say ) to rule out wrong ones quickly.
Two-level AND-OR circuit for $f = AB + \overline{A}C$; adding the consensus term $BC$ would not change $f$.
4. Canonical forms: minterms and maxterms
A minterm is an AND of all variables, each once, true or complemented; it is 1 for exactly one input row. A maxterm is an OR of all variables; it is 0 for exactly one row.
For row index (inputs read as a binary number, first variable as MSB):
minterm : a variable appears complemented where its bit is 0. For : .
maxterm : a variable appears complemented where its bit is 1. , and .
Canonical SOP: . Canonical POS: . The two index lists are complementary, and .
To expand a term to canonical form, AND it with for each missing variable . A product term with of variables covers minterms.
Counting results:
Quantity for variables
Value
Rows of the truth table
Distinct Boolean functions
Self-dual functions
So there are 16 functions of 2 variables and 256 of 3 variables.
5. XOR and XNOR
Exclusive-OR: , which is 1 when the inputs differ. XNOR: , which is 1 when they are equal.
Identities:
, , , .
Commutative and associative: .
.
(AND distributes over XOR, but OR does not).
If then .
A chain is the odd parity function: 1 when an odd number of inputs are 1. For three variables, and its complement is .
For three variables , but for two variables XOR and XNOR are complements. In general, an XNOR chain of an odd number of variables equals the XOR chain.
XOR functions do not simplify on a K-map (their 1s form a checkerboard), so recognising the parity pattern in a minterm list saves time.
Formulas to remember
De Morgan's theorems
Absorption
Redundant literal
Second distributive law
Consensus theorem
Dual and complement
XOR
Number of functions
Common mistakes
Writing the complement of A + B as A′ + B′; De Morgan changes the operator as well: (A + B)′ = A′B′.
Confusing the dual with the complement; the dual swaps + and · but does not complement the literals.
Dropping brackets before taking a dual, so that AB + C becomes A + BC instead of (A + B)C.
Forgetting the second distributive law A + BC = (A + B)(A + C), which has no counterpart in ordinary algebra.
Using the wrong polarity for maxterms; in M_i a variable is complemented where its bit is 1.
Assuming OR distributes over XOR; only AND does: A(B ⊕ C) = AB ⊕ AC.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Simplify a product of sums
numerical
Simplify .
Step 1: Combine the first two factors.
Try it on paper first.
Example 2: Canonical SOP and POS
numerical
Write in canonical SOP and canonical POS form.
Step 1: Find the rows covered by $A$.
Try it on paper first.
Example 3: Complement with De Morgan
numerical
Find for in simplest SOP form.
Step 1: Apply De Morgan to the OR.
Try it on paper first.
Example 4: Is the majority function self-dual?
conceptual
Show that is self-dual.
Step 1: Write the dual.
Try it on paper first.
Previous year questions
2 official GATE EC questions on this topic, newest first.
10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.