MATH CSE20 Test 2 Review Sheet Test Tuesday October 29 in Lecture: CENTER 115, 3:30pm
MATH CSE20 Test 2 Review Sheet Test Tuesday October 29 in Lecture: CENTER 115, 3:30pm
MATH CSE20 Test 2 Review Sheet Test Tuesday October 29 in Lecture: CENTER 115, 3:30pm
∼ (p ↔ r) ∨ (q ↔ r) by implication
∼ [(p → r) ∧ (r → p)] ∨ (q → r) ∧ (r → q) by double implication
∼ [(∼ p ∨ r) ∧ (∼ r ∨ p)] ∨ (∼ q ∨ r) ∧ (∼ r ∨ q) by implication
(3) (Epp 1.2.20) Write negations for each of the following statements. (Assume that all
variables represent fixed quantities or entities, as appropriate).
(a) If P is a square, then P is a rectangle.
Let Q be “P is a square” and R be “P is a rectangle.” Then we have:
Original: Q → R
=∼ Q ∨ R
Negation: ∼ (∼ Q ∨ R)
=Q∧∼R
Which translates to P is a square and not a rectangle.
Contrapositive:
∼R→∼Q
Which translates to If P is not a rectangle, then P is not a square.
Converse:
R→Q
Which translates to If P is a rectangle, then P is a square.
2
Inverse:
∼Q→∼R
Which translates to If P is not a square, then P is not a rectangle.
Original: Q → R
=∼ Q ∨ R
Negation: ∼ (∼ Q ∨ R)
=Q∧∼R
If we negate R, we have:
∼ (n is odd ∨ n is 2)
=∼ (n is odd) ∧ ∼ (n is 2)
Which translates to n is even and n is not 2.
Negation: n is prime and n is even and not 2.
Contrapositive: If n is not odd and not 2, then n is not prime.
Converse: If n is odd or n is 2, then n is prime.
Inverse: If n is not prime, then n is not odd and n is not 2.
(f) If Todd is Anna’s father, then Jim is her uncle and Sue is her aunt.
Let Q be “Todd is Anna’s father” and R be “Jim is her uncle and Sue is her aunt.”
Then, as before
∼ (Q → R) = Q ∧ ∼ R
If we negate R, we have:
Which translates to Jim is not her uncle or Sue is not her aunt.
Negation: Todd is Anna’s father and either Jim is not her uncle or Sue is not her
aunt.
Contrapositive: If Jim is not Anna’s uncle or Sue is not her aunt, then Todd is
not her father.
Converse: If Jim is her uncle and Sue is her aunt, then Todd is Anna’s father.
Inverse: If Todd is not Anna’s father, then Jim is not her uncle or Sue is not her
aunt.
(4) (Epp 1.2.21) Suppose that p and q are statements such that p → q is false. Find the
truth values of each of the following:
Based on the truth table for p → q, if the statement is false, p must be true and q
must be false. We can use these values of p and q to solve the questions.
(a) ∼ p → q
∼T →F
F → F is true.
(b) p ∨ q
T ∨ F is true.
(c) q → p
F → T is true.
(5) (Epp 2.3.9) Let D = E = {−2, −1, 0, 1, 2}. Explain why the following statements are
true.
4
(a) ∀x ∈ D, ∃y ∈ E, x + y = 0.
To prove this is true, we can go through all five possible x’s and find a y ∈ E in
which x + y = 0.
Let x = −2 ∈ D. If y = 2 ∈ E, x + y = 0.
Let x = −1 ∈ D. If y = 1 ∈ E, x + y = 0.
Let x = 0 ∈ D. If y = 0 ∈ E, x + y = 0.
Let x = 1 ∈ D. If y = −1 ∈ E, x + y = 0.
Let x = 2 ∈ D. If y = 1 ∈ E, x + y = 0.
Thus, the statement is true because for all x’s in D, there is a y in E, such that
x + y = 0.
(b) ∃x ∈ D, ∀y ∈ E, x + y = y.
This statement is true because if we let x = 0 ∈ D, x + y = y, no matter the value
of y.
(6) (Spring 2013, Midterm 1) Consider the domain of real numbers. Define the predicate
P (x) to mean x is (strictly) positive, N (x) to mean x is (strictly) negative.
Before we begin answering the questions, let’s translate each statement to ev-
eryday language.
(c) Which pair of statements are negations of one another? (Give the two letters.)
From our translations, we can see that A and B are negations of each other.
(c) In a direct proof, we may assume that r and s are both false.
False. We should only assume that p is true, and proving that at least
one of r and s is true. If we assume that r and s are both false, then
we are probably trying to prove the contrapositive (rather than using a
direct proof).
(8) (Spring 2013 Midterm 1) Fill in the blanks in the following contrapositive proof.
Any step that relies on something other than basic algebra must be justified/proved as
part of your proof.
√ √
• Thm. If 2 is not a rational number, then 1 + 2 is not a rational number either.
• Proof: √
– Assume (by contrapositive) that √ 1 + 2 is a rational number
– WTS (for contrapositive) that 2 is a rational number.
(9) Let m, n be fixed integers. Prove that if m, n are both even then m + n is even. And,
prove that if m, n are both odd then m + n is even.
Proof: We give a direct proof of the implication. Assume that m and n are both even.
We WTS that m + n is even. By definition of even integers, there are integers C, D such
that
m = 2C n = 2D.
Then, by factoring,
m + n = 2C + 2D = 2(C + D).
Since the integers are closed under addition, C + D ∈ Z and we have written m + n as
twice an integer. Thus, it is even and our proof is complete.
(10) Determine whether the property is true for all integers, true for no integers, or true for
some integers and false for other integers. Justify your answers.
(a) (a + b)2 = a2 + b2
True for some integers and false for others. For example, if a = 0 then the
property is true: (0 + b)2 = b2 = 0 + b2 = 02 + b2 . However, if a = 1, b = 1 then the
property is false: LHS = (1 + 1)2 = 22 = 4 and RHS = 12 + 12 = 1 + 1 = 2.
(b) The average of any two odd integers is odd.
True for some integers and false for others. For example the average of 3, 5 is
4, which is not an odd integer. But, the average of 1, 9 is 5, which is an odd integer.
x ∈ Z | 1 ≤ x2 ≤ 4} = {−2, −1, 1, 2}