Hello everyone. In this video, we're going to talk about the Fall 2000 exam question 2. It's a two-part question, part a is the following:
Question Part a): Let P and Q be statements. Define the statement P∘Q by the following truth table:
P | Q | P∘Q |
---|---|---|
T | T | F |
T | F | T |
F | T | T |
F | F | T |
Show that p∘Q is equivalent to the statement ¬(P∧Q).
This is the definition of P∘Q, that is what this question is saying. So it's just like we defined ∧ and ∨ and ⇒ and ⇔ all of those things. We use a truth table to define them.
So the way this question is set up, it's clearly set up to try to be solved using a truth table, so I'm going to solve part a with a truth table. So creating a truth table yields the following:
P | Q | P∘Q | P∧Q | ¬(P∧Q) |
---|---|---|---|---|
T | T | F | T | F |
T | F | T | F | T |
F | T | T | F | T |
F | F | T | F | T |
So since the third and the fifth columns are the same, the two headings so P∘Q and ¬(P∧Q), are logically equivalent and we're done. That's what we wanted to show, okay? That's part a).
Question Part b): Is P∧Q equivalent to (P∘Q)∘(Q∘P)?
Now the most natural way to solve this one, again, is to use a truth table, but I get bored of truth tables very quickly, so let's try to do this a different way.
So this is part b) of a problem, so I'm going to use part a) that P∘Q≡¬(P∧Q), and I'm going to rearrange this and hope that this is equivalent to P∧Q. So I'm going to use a sequence of logical equivalences to reduce this, and so what are we going to get?
(P∘Q)∘(Q∘P)≡(¬(P∧Q))∘(¬(Q∧P))By Part (a)So I just simplified P∘Q and Q∘P using part a).
Now I'm going to use DeMorgan's Laws and distribute the negation in there.
(P∘Q)∘(Q∘P)≡(¬(P∧Q))∘(¬(Q∧P))By Part (a)≡(¬P∨¬Q)∘(¬Q∨¬P)By DeMorgan's LawsSo now I have the simplified version, now again I have the ∘ operators, so what does that say? Well this is now my P, (¬P∨¬Q), and this is now my Q, (¬Q∨¬P), and I'm going to plug that into part a) again.
(P∘Q)∘(Q∘P)≡(¬(P∧Q))∘(¬(Q∧P))By part (a)≡(¬P∨¬Q)∘(¬Q∨¬P)By DeMorgan's Laws≡¬((¬P∨¬Q)∧(¬Q∨¬P))By part (a)So that's again just by part a), it looks complicated but it really is just part a). Just with a couple of more terms. Now the next part of this it's going to be DeMorgan's Law one more time.
(P∘Q)∘(Q∘P)≡(¬(P∧Q))∘(¬(Q∧P))By part (a)≡(¬P∨¬Q)∘(¬Q∨¬P)By DeMorgan's Laws≡¬((¬P∨¬Q)∧(¬Q∨¬P))By part (a)≡¬(¬P∨¬Q)∨¬(¬Q∨¬P)By DeMorgan's Laws≡(P∧Q)∨(Q∧P)By DeMorgan's Laws≡(P∧Q)∨(P∧Q)Well if I have A∨A, then that's just A, right? So if I make A=P∧Q, well it's the same thing, so the ∨ doesn't matter.
(P∘Q)∘(Q∘P)≡(¬(P∧Q))∘(¬(Q∧P))By part (a)≡(¬P∨¬Q)∘(¬Q∨¬P)By DeMorgan's Laws≡¬((¬P∨¬Q)∧(¬Q∨¬P))By part (a)≡¬(¬P∨¬Q)∨¬(¬Q∨¬P)By DeMorgan's Laws≡(P∧Q)∨(Q∧P)By Demorgan's Laws≡(P∧Q)∨(P∧Q)≡P∧QSo the question is P∧Q≡(P∘Q)∘(Q∘P), the answer is yes. The logical equivalences show this.
Again you can use a table to do this. that is perfectly fine. It's tedious. again, but it can be done. It's probably simpler than this, but I want to give you a little bit of variety since this is supposed to be a final exam review, so you should have a little bit of practice with logical equivalences, and you should have a little bit of practice with the table, okay? So that’s fantastic stuff. Hopefully you enjoy this video and good luck.