Skip to content
Official PYQ · 2008

GATE CS 2008 Q31 — Propositional and First Order Logic

Explain with AI

PP and QQ are two propositions. Which of the following logical expressions are equivalent?

  1. P∨¬QP ∨ \neg Q
  2. ¬(¬P∧Q)\neg(\neg P ∧ Q)
  3. (P∧Q)∨(P∧¬Q)∨(¬P∧¬Q)(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P ∧ \neg Q)
  4. (P∧Q)∨(P∧¬Q)∨(¬P∧Q)(P ∧ Q) ∨ (P ∧ \neg Q) ∨ (\neg P ∧ Q)
Choose one option
View worked solution

Answer: B

To find which logical expressions are equivalent, let us simplify each of them using the laws of propositional logic:

Expression I:
P∨¬QP \lor \neg Q (already in simplified form)

Expression II:
Using De Morgan's Law:
¬(¬P∧Q)≡¬(¬P)∨¬Q≡P∨¬Q\neg(\neg P \land Q) \equiv \neg(\neg P) \lor \neg Q \equiv P \lor \neg Q

Expression III:
(P∧Q)∨(P∧¬Q)∨(¬P∧¬Q)(P \land Q) \lor (P \land \neg Q) \lor (\neg P \land \neg Q)
First, simplify the first two terms using the distributive law:
(P∧Q)∨(P∧¬Q)≡P∧(Q∨¬Q)≡P∧True≡P(P \land Q) \lor (P \land \neg Q) \equiv P \land (Q \lor \neg Q) \equiv P \land \text{True} \equiv P
Now, substitute this back into the expression:
P∨(¬P∧¬Q)P \lor (\neg P \land \neg Q)
Applying the distributive law again:
(P∨¬P)∧(P∨¬Q)≡True∧(P∨¬Q)≡P∨¬Q(P \lor \neg P) \land (P \lor \neg Q) \equiv \text{True} \land (P \lor \neg Q) \equiv P \lor \neg Q

Expression IV:
(P∧Q)∨(P∧¬Q)∨(¬P∧Q)(P \land Q) \lor (P \land \neg Q) \lor (\neg P \land Q)
Simplify the first two terms as before:
(P∧Q)∨(P∧¬Q)≡P(P \land Q) \lor (P \land \neg Q) \equiv P
Substitute back:
P∨(¬P∧Q)P \lor (\neg P \land Q)
Applying the distributive law:
(P∨¬P)∧(P∨Q)≡True∧(P∨Q)≡P∨Q(P \lor \neg P) \land (P \lor Q) \equiv \text{True} \land (P \lor Q) \equiv P \lor Q

Comparing the simplified forms:

  • Expression I ≡P∨¬Q\equiv P \lor \neg Q
  • Expression II ≡P∨¬Q\equiv P \lor \neg Q
  • Expression III ≡P∨¬Q\equiv P \lor \neg Q
  • Expression IV ≡P∨Q\equiv P \lor Q
Thus, only expressions I, II, and III are logically equivalent.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Propositional and First Order Logic questions