← 2021 Paper 2

UPSC 2021 Maths Optional Paper 2 Q5c-ii — Step-by-Step Solution

5 marks · Section B

Boolean algebra · Numerical Analysis · asked 15× in 13 yrs · Read the full method →

Question

Obtain the principal conjunctive normal form of (¬PR)(QP)(\neg P\to R)\wedge(Q\leftrightarrow P).

Technique

Truth table; conjunction of maxterms at rows where expression = 0.

Solution

Step 1 — Truth table

¬PRPR\neg P\to R\equiv P\vee R (since ¬(¬P)R=PR\neg(\neg P)\vee R=P\vee R).

QP(QP)(¬Q¬P)Q\leftrightarrow P\equiv(Q\wedge P)\vee(\neg Q\wedge\neg P).

So expression =(PR)((QP)(¬Q¬P))=(P\vee R)\wedge((Q\wedge P)\vee(\neg Q\wedge\neg P)).

Truth table:

PPQQRRPRP\vee RQPQ\leftrightarrow PExpression
000010
001111
010000
011100
100100
101100
110111
111111

Step 2 — Identify rows where expression = 0

Rows: (P,Q,R){(0,0,0),(0,1,0),(0,1,1),(1,0,0),(1,0,1)}(P,Q,R)\in\{(0,0,0),(0,1,0),(0,1,1),(1,0,0),(1,0,1)\}.

Step 3 — Maxterms

For row (P,Q,R)(P,Q,R), the maxterm is the disjunction of literals, with 00\to unprimed and 11\to primed.

Step 4 — Principal CNF = conjunction of maxterms

Answer

  (PQR)(P¬QR)(P¬Q¬R)(¬PQR)(¬PQ¬R).  \boxed{\;(P\vee Q\vee R)\wedge(P\vee\neg Q\vee R)\wedge(P\vee\neg Q\vee\neg R)\wedge(\neg P\vee Q\vee R)\wedge(\neg P\vee Q\vee\neg R).\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.