MTH202_BC230409427
MTH202_BC230409427
Mathematics
MTH202
Assignment No. 1
Submitted by:
BC230409427
Waleed Sagher
Q1: prove the following logical equivalence through truth table:
p ∧q ≡ ( p → q)
p q p∧q ~q p→~q ( p → q)
T T T F F T
T F F T T F
F T F F T F
F F F T T F
As the truth values for p∧q and ( p → q) are the same so both statements are logically
equivalent
As it is obvious from the truth table that (p→q)∧(q→p) and p↔q are logically equivalent
Q3: Use the logical equivalence (p→q)∧(q→p) to prove that ~(p∨~(p∧q)) is a contradiction
De Morgan's Law states that ~(p ∨ q) is equivalent to ~p ∧ ~q. Applying this to the outer
negation, we get:
~(p ∨~(p∧q)) = ~p∧ ~ ~(p∧q)
The double negation law states that ~~p is equivalent to p. Applying this to the second part, we
get:
The distributive law states that p∧ (q ∨r) is equivalent to (p∧q) ∨ (p∧r). Applying this to the
expression, we get:
The expression ~p∧p is a contradiction because p and ~p cannot both be true at the same time.
Therefore, the entire expression (~p^p) ^ q is also a contradiction.
P Q P→Q Q→P (P → Q) ∨ (Q → P)
T T T T T
T F F T T
F T T F T
F F T T T
As it is evident from the truth table that (P → Q) ∨ (Q → P) will alway be true for every
possible value P → Q andQ → P so it is a tautology