i have an exam tommorrow on logic and i dont understand the truth tables at ALL!
i know how to set one up, i just dont understand how to find out if it is True or False at the end. like this for example:
p q [(p→q)^┐q]→┐p
T T T
T F T
F T T
F F T
p q [(p→q)^q]→p
T T T
T F T
F T F
If p is F and q is T, why is it T for the first one and F for the second?? im just completely lost.
Now if the right half is true, then the "and" statement is true. But q is true, so then you plug true into ┐q and you get ┐true. Thus the right half of (p→q)^┐q is false.
Since "and" requires that both sides be true, the and statement is false.
Since this whole and statement is the antecedent (the "if" part) it means that the the the left part is false, so using the same logic from before, we see that the statement is not tested, and so it does not matter what comes in the "then" portion. The statement is true no matter what comes.
So to recap
p is false, q is true so this becomes
which is true so
Then plug in q
which becomes [T^F]→┐p
which is false
So at this point, the statement is true no matter what.
Now on the second one, we first assess the left half of the "and" statement.
(p→q) We know P is false, so this half is true.
(p→q)^q becomes T^q
And we know q is true, so this becomes T^T
Since you need T^T for an and statement to be true, it follows that the left half is true.
[(p→q)^q]→p becomes [T^T]→p which becomes T→p
However, we know that P is false, so this becomes T→F
Which is a false statement. (if I go outside the world will end, I went outside, the world did not end, therefore the if-then is false.)
Now try doing the truth table for:
1. (a^b)→ ┐(┐b v ┐b)
2. (┐b → a ) v ┐(a → b)
3. [(b → ┐a) ^ ┐ b] → ┐a