Back to Study Hub
Boolean Algebra• 14 min read

Boolean Algebra and Logic Simplification: Laws, De Morgan Theorems and K-Maps

Master Boolean algebra for Wireless PSI and GPSC exams: Boolean laws and identities, De Morgan theorems, duality, SOP and POS forms, minterms, maxterms, K-map grouping rules, dont-care conditions and Quine-McCluskey.

By MCQ Arena TeamUpdated June 24, 2026

Every digital circuit you will ever meet in a technical exam is built from logic gates, and the language that describes and simplifies those gate networks is Boolean algebra. Whether the question asks you to reduce an expression, apply De Morgan's theorem, or read a Karnaugh map, the underlying skill is the same: manipulate two-valued logic with a fixed set of laws until the circuit is as small as possible.

This article builds that skill from the ground up: Boolean variables and operators, the basic laws and identities, both De Morgan theorems, duality, SOP and POS canonical forms with minterms and maxterms, algebraic simplification, Karnaugh maps for 2, 3 and 4 variables including don't-care conditions, and a brief look at the Quine-McCluskey method. For Wireless PSI and GPSC technical papers, this single topic feeds a steady stream of one-mark recall and short simplification questions, so the laws table and K-map rules below are worth memorising cold.

Boolean Variables and Operators

A Boolean variable can take only one of two values: logic 0 (false, low) or logic 1 (true, high). Boolean algebra, formalised by George Boole and applied to switching circuits by Claude Shannon, defines three fundamental operators on these variables.

  • OR (logical addition, +): output is 1 if any input is 1. Written A + B.
  • AND (logical multiplication, dot): output is 1 only if all inputs are 1. Written A.B or simply AB.
  • NOT (complement, bar or prime): inverts a single variable. Written A' or A bar.

From these, the derived gates NAND, NOR, XOR and XNOR are built. NAND and NOR are called universal gates because any logic function can be realised using only NAND gates or only NOR gates. Exam tip: the XOR function A XOR B equals A'B + AB', and it outputs 1 when the inputs differ; XNOR is its complement and detects equality.

A ⊕ B = A'B + AB'

XOR is odd-one detection; XNOR (its complement) is the equality detector

Basic Laws and Identities

The laws below let you rearrange and shrink expressions without changing their truth table. They are the workhorse of every algebraic simplification question.

LawOR formAND form
IdentityA + 0 = AA . 1 = A
Null (Dominance)A + 1 = 1A . 0 = 0
IdempotentA + A = AA . A = A
ComplementA + A bar = 1A . A bar = 0
CommutativeA + B = B + AA . B = B . A
AssociativeA + (B + C) = (A + B) + CA(BC) = (AB)C
DistributiveA + BC = (A + B)(A + C)A(B + C) = AB + AC
AbsorptionA + AB = AA(A + B) = A
RedundancyA + A bar B = A + BA(A bar + B) = AB
Involutiondouble complement of A = Adouble complement of A = A

Note how OR distributes over AND in Boolean algebra (A + BC = (A + B)(A + C)) which has no counterpart in ordinary arithmetic. Common mistake: students forget the redundancy law A + A'B = A + B and waste time on long expansions. Memorise it; it appears constantly in simplification.

De Morgan Theorems

The two De Morgan theorems are the most heavily tested identities in this topic. They convert between AND and OR while moving the complement bar.

(A + B)' = A' . B'

Theorem 1: complement of a sum equals product of complements

(A . B)' = A' + B'

Theorem 2: complement of a product equals sum of complements

The procedure to apply De Morgan to any expression: complement each variable, then swap every AND with OR and every OR with AND. This is exactly why a NAND gate equals a bubbled-OR gate and a NOR gate equals a bubbled-AND gate. Exam tip: a single long bar over an expression is broken by changing the operator under it and barring each term; do not break the bar without changing the operator. Common mistake: writing (A + B)' = A' + B'. That is wrong; the sum complement becomes a product.

The Principle of Duality

Every Boolean identity has a dual, obtained by interchanging AND with OR and replacing 0 with 1 and 1 with 0, while leaving the variables unchanged. Crucially, duality does NOT complement the variables, which is what distinguishes it from De Morgan.

  • Dual of A + 0 = A is A . 1 = A.
  • Dual of A + AB = A is A(A + B) = A.
  • Dual of A + A bar = 1 is A . A bar = 0.

This is why the laws table comes in matched OR-form and AND-form pairs: each pair is a dual. If you prove one half of a law, the dual half follows automatically. Common mistake: confusing dual (swap operators and constants only) with complement (also bar the variables). De Morgan = dual + complement of variables.

SOP, POS, Minterms and Maxterms

Any Boolean function can be written in two standard forms. A Sum of Products (SOP) is an OR of AND terms, such as AB + A'C. A Product of Sums (POS) is an AND of OR terms, such as (A + B)(A' + C).

Minterms and Maxterms

A minterm is a product term containing every input variable exactly once (true or complemented) that equals 1 for exactly one input combination. A maxterm is a sum term containing every variable that equals 0 for exactly one combination.

ABMintermMaxterm
00m0 = A bar B barM0 = A + B
01m1 = A bar BM1 = A + B bar
10m2 = A B barM2 = A bar + B
11m3 = A BM3 = A bar + B bar

The canonical SOP is the OR of minterms where the function is 1: F = Sigma m(rows that are 1). The canonical POS is the AND of maxterms where the function is 0: F = Pi M(rows that are 0). Exam tip: for the same function, the minterm numbers in the SOP and the maxterm numbers in the POS are complementary sets that together cover every row. Also note minterm and maxterm of the same index are complements: m(i)' = M(i).

Algebraic Simplification

Algebraic simplification applies the laws above to reduce gate count. A worked example: simplify F = A'BC + AB'C + ABC' + ABC.

  1. Group the last two terms: ABC' + ABC = AB(C' + C) = AB by the complement law.
  2. Re-use ABC with the first term: A'BC + ABC = BC(A' + A) = BC.
  3. Re-use ABC again with the second term: AB'C + ABC = AC(B' + B) = AC.
  4. Result: F = AB + BC + AC, the majority function.

Exam tip: a single term can be re-used as many times as needed (idempotent law A = A + A), which is exactly how K-map overlapping groups work. Common mistake: stopping after the first reduction; always check whether the absorption or consensus theorem (AB + A'C + BC = AB + A'C, the BC term is redundant) removes a further term.

Karnaugh Maps (2, 3 and 4 Variables)

A Karnaugh map (K-map) is a grid arrangement of the truth table where adjacent cells differ in only one variable, using Gray-code ordering (00, 01, 11, 10). Grouping adjacent 1s lets you read off the minimal SOP by inspection, which is faster and less error-prone than algebra.

  • 2-variable map: 4 cells (2 by 2).
  • 3-variable map: 8 cells (2 by 4); columns labelled 00, 01, 11, 10.
  • 4-variable map: 16 cells (4 by 4); both rows and columns in Gray code.

Grouping Rules

RuleDetail
Group sizeOnly powers of two: 1, 2, 4, 8, 16 cells
ShapeGroups must be rectangular or square, never diagonal
AdjacencyEdges wrap around; corners of a 4-variable map are adjacent
Maximise sizeMake each group as large as possible to drop more variables
OverlapGroups may overlap to enlarge them (reuses a 1)
Minimise countUse the fewest groups that cover every 1 at least once
Variables droppedA group of 2 drops 1 variable, 4 drops 2, 8 drops 3

Each group becomes one product term containing only the variables that stay constant across the group. A 4-cell group in a 4-variable map yields a 2-variable product term. Exam tip: a group of 2(power n) cells eliminates n variables, so always grab the biggest legal group. Common mistake: drawing an L-shaped or diagonal group; only rectangles whose cell count is a power of two are valid.

Dont-Care Conditions

A dont-care output (written X or d) occurs for input combinations that can never happen or whose output is irrelevant, for example codes 1010 to 1111 in a BCD design. You may treat each X as either 0 or 1, whichever helps enlarge a group. Exam tip: include an X in a group only if it makes the group bigger; never form a group made entirely of dont-cares, because that term contributes nothing useful.

Quine-McCluskey Method (Brief)

K-maps become unwieldy beyond five or six variables. The Quine-McCluskey (tabular) method is an algorithmic alternative that is suitable for computer implementation and any number of variables.

  1. List all minterms in binary, grouped by the number of 1s they contain.
  2. Compare adjacent groups; combine pairs that differ in one bit, marking the differing bit with a dash. Tick combined terms.
  3. Repeat until no further combination is possible. Unticked terms are the prime implicants.
  4. Build a prime-implicant chart to select essential prime implicants that cover every minterm.

Exam tip: remember the keywords prime implicant (a fully reduced product term) and essential prime implicant (the only one covering a particular minterm). These definitions are frequently asked even when the full procedure is not.

Key Takeaways
  • Boolean variables are two-valued; AND, OR and NOT are fundamental, while NAND and NOR are universal gates.
  • De Morgan: complement of a sum is the product of complements, and complement of a product is the sum of complements. Break the bar and swap the operator.
  • Duality swaps AND with OR and 0 with 1 but does NOT complement variables; De Morgan equals dual plus variable complement.
  • Canonical SOP is the OR of 1-minterms; canonical POS is the AND of 0-maxterms; m(i) bar equals M(i).
  • In a K-map group only powers of two in rectangular shapes; a group of 2 to the n cells eliminates n variables; edges and corners wrap.
  • Use dont-cares to enlarge groups, but never form an all-dont-care group; Quine-McCluskey is the tabular alternative for many variables.

Practice MCQs

Q1. Which pair of gates is described as universal because any logic function can be built using only that gate?

  • A.AND and OR
  • B.NAND and NOR
  • C.XOR and XNOR
  • D.NOT and AND

Correct Answer: B

Explanation: NAND and NOR are universal gates: each can implement NOT, AND and OR by itself, so any Boolean function can be realised using only NAND gates or only NOR gates. AND, OR, XOR and NOT alone are not universal.

Q2. According to De Morgan theorem, the complement of (A + B) equals which expression?

  • A.A bar + B bar
  • B.A bar . B bar
  • C.A . B
  • D.A + B bar

Correct Answer: B

Explanation: The complement of a sum equals the product of the complements: (A + B) bar = A bar . B bar. Writing A bar + B bar is the classic error; that would be the complement of a product, not a sum.

Q3. The redundancy (absorption) law A + A bar B simplifies to:

  • A.A
  • B.A bar B
  • C.A + B
  • D.AB

Correct Answer: C

Explanation: A + A bar B = A + B. Proof: A + A bar B = (A + A bar)(A + B) = 1 . (A + B) = A + B, using the distributive and complement laws. This identity removes redundant complemented terms quickly.

Q4. In a four-variable Karnaugh map, a single group containing 8 adjacent cells produces a product term with how many variables?

  • A.1 variable
  • B.2 variables
  • C.3 variables
  • D.4 variables

Correct Answer: A

Explanation: A group of 2 to the n cells eliminates n variables. Eight cells is 2 cubed, so 3 variables are eliminated from the 4-variable term, leaving a single-variable product term.

Q5. The principle of duality is obtained from a Boolean identity by:

  • A.Complementing every variable only
  • B.Swapping AND with OR and 0 with 1, without complementing variables
  • C.Swapping AND with OR and complementing every variable
  • D.Replacing all variables with their minterms

Correct Answer: B

Explanation: Duality interchanges the AND and OR operators and the constants 0 and 1, but leaves the variables unchanged. Complementing the variables as well would give De Morgan, not the dual.

Q6. A minterm of an n-variable function is a product term that equals 1 for how many input combinations?

  • A.All combinations
  • B.Exactly one combination
  • C.Exactly half the combinations
  • D.Zero combinations

Correct Answer: B

Explanation: A minterm contains every variable once (true or complemented) and is true for exactly one input combination. A maxterm, by contrast, is a full sum term that is 0 for exactly one combination.

Q7. Which statement about dont-care conditions in a K-map is correct?

  • A.They must always be treated as 0
  • B.They must always be treated as 1
  • C.Each may be taken as 0 or 1 to enlarge a group, but a group of only dont-cares is useless
  • D.They cannot appear in BCD designs

Correct Answer: C

Explanation: A dont-care can be assigned 0 or 1 whichever helps form a larger group and a simpler expression. Forming a group entirely of dont-cares contributes no useful term and is avoided.

Q8. A prime implicant that is the only one covering a particular minterm is called:

  • A.A redundant implicant
  • B.An essential prime implicant
  • C.A dont-care term
  • D.A maxterm

Correct Answer: B

Explanation: An essential prime implicant is the only prime implicant that covers a specific minterm, so it must be included in the minimal cover. In Quine-McCluskey, essential prime implicants are selected first from the chart.

MA

MCQ Arena Team

Subject reviewers & exam mentors

This guide is written and fact-checked by the MCQ Arena editorial team — engineering graduates and competitive-exam mentors who build the question banks used on the platform. Every concept, formula and MCQ is cross-checked against standard textbooks and the latest Wireless PSI / GPSC exam pattern. Spotted an error or have a correction? Tell us — we update articles as syllabi and feedback come in.

Last reviewed and updated on June 24, 2026.

Put it into practice

Reading strategy is one thing — building it into instinct takes timed reps. Practise with daily timed mock tests on MCQ Arena.

Start practising free

Keep reading