This page allows you to practice some exercises on Essentials of Logic and Set Theory. If you notice that you have difficulties, we advise you to go over the corresponding sections in the book.
These questions correspond to the following sections:
- Section 1.1 - Essentials of Set Theory
- Section 1.2 - Essentials of Logic
- Section 1.3 - Mathematical Proofs
- Section 1.4 - Mathematical Induction
Question 1
Let A={2,3,4}, B={2,5,6}, C={5,6,2}, and D={6}.
(a) Determine which of the following six statements are true: (i) 4∈C, (ii) 5∈C, (iii) A⊆B, (iv) D⊆C, (v) B=C, (vi) A=B.
(b) List all members of each of the following eight sets: (i) A∩B, (ii) A∪B, (iii) A∖B, (iv) B∖A; (v) (A∪B)∖(A∩B), (vi) A∪B∪C∪D, (vii) A∩B∩C, and (viii) A∩B∩C∩D.
Show answer
(a) The true statements are (ii) 5∈C, (iv) D⊆C and (v) B=C.
(b) Note that (i) A∩B={2}, (ii) A∪B={2,3,4,5,6}, (iii) A∖B={3,4}, (iv) B∖A={5,6}, (v) (A∪B)∖(A∩B)={2,3,4,5,6}∖{2}={3,4,5,6}, (vi) A∪B∪C∪D={2,3,4,5,6}, (vii) A∩B∩C={2} and (viii) A∩B∩C∩D=∅.
Question 2
A survey revealed that 50 people liked coffee and 40 liked tea. Both these figures include 35 who liked both coffee and tea. Finally, ten did not linke either coffee or tea. How many people in all responded to the survey?
Show answer
Note that 50−35=15 liked coffee, but not tea, and 40−35=5 liked tea but not coffee. Because 35 liked both and 10 liked neither, there were 15+5+35+10=65 respondents.
Question 3
Make a complete list of all the different subsets of the set {a,b,c}. How many are there if the empty set and the set itself are included? Do the same for the set {a,b,c,d}.
Show answer
The 23=8 subsets of {a,b,c} are the set itself, and the empty set, together with the six subsets {a},{b},{c},{a,b},{a,c}, and {b,c}. The 24=16 subsets of {a,b,c,d} are the 8 preceding sets together with 8 more sets that include d — namely {d},{a,d},{b,d},{c,d},{a,b,d},{a,c,d},{b,c,d}, and {a,b,c,d}. Apart from {a,b,c,d} and the empty set, there are 14 other subsets.
Question 4
Determine which of the following formulas are true. If any formula is false, find a counter example to demonstrate this. [Hint: drawing a Venn diagram can be helpful.]
(a) A∖B=B∖A
(b) A∩(B∪C)⊆(A∩B)∪C
(c) A∪(B∩C)⊆(A∪B)∩C
(d) A∖(B∖C)=(A∖B)∖C
Show answer
Generally, only (b) is true. Let's consider them one-by-one:
(a) A∖B=B∖A whenever B⊆A with ∅=B=A. You can check it with an easy example. Take A={1,2} and B={2}. Then A∖B={1}, while B∖A=∅.
(b) True, because A∩(B∪C)=(A∩B)∪(A∩C)⊆(A∩B)∪C.
(c) Holds if and only if A⊆C.
(d) Is violated when A={1,2}, B={1}, and C={1,3}. In that case, the lefthand side becomes A∖(B∖C)={1,2}∖{∅}={1,2}. However, the righthand side equals (A∖B)∖C={2}∖{1,3}={2}.
Question 5
Prove that
(a) (A∪B)c=Ac∩Bc
(b) (A∩B)c=Ac∪Bc
[Hint: drawing a Venn diagram can be helpful]
Show answer
(a) Let's consider an arbitrary element x. We will show that x∈(A∪B)c⟺x∈Ac∩Bc. Consider the lefthand side. Note that x∈(A∪B)c means that x∈/A∪B. Thus, x∈/Aand x∈/B. For the right hand side, we have that x∈Ac∩Bc means that x∈Acandx∈Bc. This also means that x∈/Aand x∈/B. Thus, the two sets are equal.
(b) Let's consider an arbitary element x. We will show that x∈(A∩B)c⟺x∈Ac∪Bc. Consider the lefthand side. If x∈(A∩B)c, then x∈/A∩B. Thus, it is not true that x∈Aand x∈B. Therefore, x∈/Aor x∈/B. For the righthand side, x∈Ac∪Bc means that either x∈Acor x∈Bc. However, this also means that x∈/Aor x∈/B. Thus, the two sets are equal.
Question 6
Use appropriate implication or equivalence arrows to represent the following propositions:
(a) The equation 2x−4=2 is fulfilled only when x=3
(b) If x=3, then 2x−4=2
(c) The equation x2−2x+1=0 is satisfied if x=1
(d) If x2>4, then ∣x∣>2, and conversely
Show answer
(a) 2x−4=2⟹x=3.
(b) x=3⟹2x−4=2.
(c) x=1⟹x2−2x+1=0.
(d) x2>4⟺∣x∣>2.
Question 7
In each of the following implications, where x, y, and z are numbers, decide: (i) if the implication is true; and (ii) if the converse implication is true.
(a) x=4⟹x=2
(b) (x=2 and y=5) ⟹x+y=7
(c) (x−1)(x−2)(x−3)=0⟹x=1
(d) x2+y2=0⟹x=0 or y=0
Show answer
(a) ⟹true, ⟸true.
(b) ⟹true, ⟸false.
(c) ⟹false, ⟸true.
(d) ⟹true (actually both are zero), ⟸false (only having one equal to zero is not enough).
Question 8
Consider the proposition 2x+5≥13. Is the condition x≥0 necessary, or sufficient, or both necessary and sufficient for the inequality to be satisfied?
Show answer
Note that 2x+5≥13⟺2x≥8⟺x≥4. This means that x≥0 is necessary, but not sufficient.
Question 9
Which of the following statements are equivalent to the (dubious) statement: "If inflation increases, then unemployment decreases".
(a) For unemployment to decrease, inflation must increase.
(b) A sufficient condition for unemployment to decrease is that inflation increases.
(c) Unemployment can only decrease if inflation increases.
(d) If unemployment does not decrease, then inflation does not increase.
(e) A necessary condition for inflation to increase is that unemployment decreases.
Show answer
The statements (b), (d) and (e) all express the same condition. The remaining two statements, (a) and (c) are different.
Question 10
Prove the following two statements by induction:
(a) For all natural numbers n: 1+2+3+…+n=21n(n+1).
(b) For all natural numbers n: n3+(n+1)3+(n+2)3 of three consecutive cubes is always divisible by 9.
Show answer
(a) For n=1, the left- and righthand side are both equal to 1. Suppose the statement is true for n=k. Now,
1+2+3+⋯+k+(k+1)=21k(k+1)+(k+1),
where the righthand side can be rewritten as
21k2+121k+1=21(k2+3k+2)=21(k+1)(k+2). This is the original statement for n=k+1. Thus, by induction, the statement is true for all n∈N.
(b) For n=1, the sum n3+(n+1)3+(n+2)3=36, which is divisible by 9. Suppose the statement is true for n=k, that is, k3+(k+1)3+(k+2)3=9m, for some m∈N (divisible by 9, means that it can be written as a multiple of 9). First, define Sk+1=(k+1)3+(k+2)3+(k+3)3 and Sk=k3+(k+1)3+(k+2)3. Note that the difference is given by
Sk+1−Sk=−k3+(k+3)3.
Thus,
(k+1)3+(k+2)3+(k+3)3=9m−k3+(k+3)3.
With some simple algebra, the righthand side can be written as 9(m+k2+3k+3), which is clearly divisible by 9. So, the statement also holds for n=k+1. Then, by induction, the statement is true for all n∈N.