Boolean logic formulas
Boolean algebra, logic gates and minimisation. 20 formulas for GATE EC, EE, IN Digital Electronics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Boolean algebra, logic gates and minimisation formulas (GATE EC, EE, IN)
All 20 Boolean logic formulas
BASIC LAWS
Identity, null (dominance), idempotent, complement and involution laws; each left-hand law is the dual of the one beside it.
DISTRIBUTIVE LAWS
The second one (OR over AND) has no counterpart in ordinary algebra; it is the step that turns an SOP into a POS.
ABSORPTION
First row: in an SOP, a product term that contains every literal of another product term is redundant; dually, in a POS, a sum term that contains every literal of another sum term is redundant. Second row (the redundant-literal rule): when a literal stands alone as a term, its complement can be deleted from every other term.
COMBINING (ADJACENCY)
Two terms that are identical except for one variable, true in one and complemented in the other, merge into one and that variable drops out. Every K-map group and every Quine–McCluskey step is this law.
CONSENSUS THEOREM
It applies when exactly one variable appears true in one term and complemented in the other. The consensus term is then the AND of the remaining literals () in an SOP, or the OR of the remaining literals () in a POS, and it is redundant. If two or more variables are opposed there is no consensus term. The redundant term still matters for hazards (last section).
DE MORGAN'S THEOREMS
Break the bar, change the operator. Applied to a whole expression it gives the complement: swap and , swap 0 and 1, and complement every literal.
TRANSPOSITION
Multiplying out gives . , and is the consensus term of and , so both drop. A fast route from POS to SOP.
SHANNON EXPANSION
Holds for any function and any chosen variable; it is the basis of multiplexer realisations and of the substitution shortcuts below.
CANONICAL FORMS
is the set of rows where , written . Example: .
COMPLEMENT IN CANONICAL FORM
Complementing swaps the index set. Keeping the same indices and switching to gives , not .
SIZE OF A TERM
Each variable appears at most once in the term. Use it to count minterms fast. Overlapping terms must be counted once, so list the minterms whenever terms can overlap.
NUMBER OF BOOLEAN FUNCTIONS
Counts every function of variables, including the constants 0 and 1 and functions that ignore some variables. For there are 16, which is why there are 16 possible two-input gates.
DUAL FUNCTION
Swapping and (and 0 and 1) in any expression of gives this same function. Row is the bitwise complement of row .
SELF-DUAL FUNCTION
Rows and must have opposite outputs, so exactly one of each complementary pair is a minterm and a self-dual function has exactly minterms. Every self-dual function is therefore neutral (next block), but a neutral function need not be self-dual. Examples: any single literal, , and the majority function .
OTHER COUNTS
Self-dual: the rows form complementary pairs, each with 2 choices. Symmetric: the output depends only on how many inputs are 1, which takes values.
FUNCTIONS THAT DEPEND ON ALL N VARIABLES
Inclusion–exclusion over the variables a function may ignore. For it gives 2, 10, 218 and 64594.
GROUP SIZE AND LITERALS
Groups must be rectangles (wrap-around allowed) whose sides are 1, 2 or 4 cells long, so a group holds 1, 2, 4, 8 or 16 cells; in a 5-variable map a group may also be the same rectangle on both halves. A variable that changes inside the group drops out; one fixed at 1 appears uncomplemented and one fixed at 0 appears complemented. A 3-cell or L-shaped group is not a single term.
XOR/XNOR IDENTITIES
XOR is commutative and associative. Complementing one input complements the output; complementing both leaves it unchanged.
MORE XOR RELATIONS
AND distributes over XOR, but OR does not. If (the terms never both equal 1) then .
MULTI-INPUT PARITY
Here means two cascaded 2-input XNOR gates, : it gives the 3-input XOR, not its complement. An -variable XOR has minterms and no two of them are adjacent on a K-map (a checkerboard), so its minimal SOP needs all terms of literals each.
Where this was asked: 2018 (6), 2020 (2), 2022 (4), 2023 (2), 2024 (3), 2025 (3), 2026 (2). See the 22 previous-year questions on Boolean logic. This shows what was asked, not what will be asked.