MAM1019H Notes
MAM1019H Notes
MAM1019H Notes
2.1 Statements
A statement is a sentence or a mathematical expression that is either definitely true (𝑇 ), or definitely
false (𝐹 ).
Examples
• 1 + 1 = 2. Statement, 𝑇 .
• 1 + 1 = 3. Statement, 𝐹 .
• The fish. Not a statement.
• 1 + 1. Not a statement.
• UCT is in Cape Town. Statement, 𝑇 .
• Julius Malema is the leader of the DA. Statement, 𝐹 .
• The square of any real number is positive. Statement, 𝐹 (as 02 < 0).
• 𝑥2 = 4. Not a statement, as it depends on the value of 𝑥. It is an open sentence as it depends on the
value of one or more variables. Open sentences can be named, e.g 𝑃 (𝑥) : 𝑥2 = 4.
• If 𝑥 is an integer, then 𝑥 is even. Statement, 𝐹 . It is not an open sentence as the variable does not
change the truth value of the statement.
• 𝑝(𝑥) is a polynomial. Open sentence.
• If 𝑥2 = 4, then 𝑥 = 2. Statement, 𝐹 .
• 𝑥 + 𝑦 ≥ 0. Open sentence, as 𝑥 or 𝑦 could or could not be summed to be positive.
• If 𝑥, 𝑦 ∈ ℝ, then 𝑥 + 𝑦 ≥ 3. Statement, 𝐹 , as this is making a statement over all the reals.
• 𝑥 = 4. Open sentence, as 𝑥 could be something else.
• Let 𝑥 = 4. Neither a statement nor an open sentence - it is a command.
• Mathematical theorems are statements: Theorem: if 𝑓 is differentiable, then 𝑓 is continuous.
Statement, 𝑇 .
• Theorem: if 𝑎, 𝑏, and 𝑐 are the lengths of the sides of a right-angled triangle, with 𝑐 being the
hypotenuse, then 𝑎2 + 𝑏2 = 𝑐2 . Statement, 𝑇 .
• 𝑥 + 1 > 𝑥. Statement, 𝑇 , as this is true regardless of the value of 𝑥.
𝑷 𝑸 𝑷 ∧𝑸
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹
𝐹 𝑇 𝐹
𝐹 𝐹 𝐹
𝑷 𝑸 𝑷 ∨𝑸
𝑇 𝑇 𝑇
𝑇 𝐹 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹
𝑷 ¬𝑷
𝑇 𝐹
𝐹 𝑇
Examples
• 𝑃 : I am a MAM1019H student
𝑄 : I am a UCT student
𝑃 ⇒ 𝑄 - if I am a MAM1019H student, then I am a UCT student.
?
𝑄 ⇒ 𝑃 - not always. This is known as the converse.
• 𝑥 = 2 ⇒ 𝑥2 = 4
But, 𝑥2 = 4 ⇏ 𝑥 = 2
• 6 ∣ 𝑥 ⇒ 3 ∣ 𝑥. True, as 3 ∣ 6.
But, 3 ∣ 𝑥 ⇏ 6 ∣ 𝑥, as 3 ∣ 3 but 6 ∤ 3
• 𝑥 = 4 ∧ 𝑦 = 3 ⇒ 𝑥 + 𝑦 = 7. True.
But, 𝑥 + 𝑦 = 7 ⇒ 𝑥 = 4 ∧ 𝑦 = 3.
• 2 ∣ 𝑛 ⇒ 3 ∣ 𝑛. False. Let 𝑛 = 4. Then, 2 ∣ 𝑛 but 3 ∤ 𝑛.
𝑷 𝑸 𝑷 ⇒𝑸
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹
𝑃 : I am a MAM1019H student
𝑄 : I am a UCT student
Then 𝑃 ⇒ 𝑄. However, 𝑄 ⇒ 𝑃 .
Examples
• 𝑥 = 2 ⇒ 𝑥2 = 4
𝑥2 = 4 ⇏ 𝑥 = 2
• Claim: 𝑥2 ⇔ 𝑥 = 2 ∨ 𝑥 = −2
1. 𝑥2 = 4 ⇒ 𝑥 = 2 ∨ 𝑥 = −2
Suppose 𝑥2 = 4, then
𝑥2 − 4 = 0
(𝑥 − 2)(𝑥 + 2) = 0
𝑥 − 2 = 0 or 𝑥 + 2 = 0
2. 𝑥 = 2 ∨ 𝑥 = −2 ⇒ 𝑥2 = 4
1. 𝑥 = 2 : 22 = 4
2. 𝑥 = −2 : (−2)2 = 4
𝒙=𝟐 𝒙 = −𝟐 𝒙 = 𝟐 ∨ 𝒙 = −𝟐
𝑇 𝑇 (Left impossible)
𝑇 𝐹 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹
• Iff 𝑥 = 2 : 𝑥2 = 4.
• Iff 𝑥 = −2 : 𝑥2 = 4.
• Therefore, 𝑥 = 2 ∧ 𝑥 = −2 ⇔ 𝑥2 = 4
• 𝑥𝑦 = 0 ⇔ 𝑥 = 0 ∨ 𝑦 = 0
• Let 𝑥, 𝑦 ∈ 𝑅, then
𝑥𝑦 > 0 ⇔ (𝑥 > 0 ∧ 𝑦 > 0) ∨ (𝑥 < 0 ∧ 𝑦 < 0)
• Theorem from MAM1000W: if 𝑓 is differentiable, then 𝑓 is continuous.
However, the reverse does not hold: 𝑃 ⇎ 𝑄
• Let 𝑝(𝑥) be a polynomial over ℝ and 𝑎 ∈ ℝ
Then, 𝑝(𝑎) = 0 ⇔ (𝑥 − 𝑎) ∣ 𝑝(𝑥)
Example:
• 𝑝(𝑥) = 𝑥2 − 𝑥 − 2
𝑝(−1) = (−1)2 − (−1) − 2 = 1 + 1 − 2 = 0
…
∴ (𝑥 − 1) ∣ 𝑝(𝑥)
Definition
We define 𝑃 ⇔ 𝑄 as (𝑃 ⇒ 𝑄) ∧ (𝑄 ⇒ 𝑃 ):
𝑷 𝑸 𝑷 ⇒𝑸 𝑸⇒𝑷 (𝑷 ⇒ 𝑸) ∧ (𝑸 ⇒ 𝑷 )
𝑇 𝑇 𝑇 𝑇 𝑇
𝑇 𝐹 𝐹 𝑇 𝐹
𝐹 𝑇 𝑇 𝐹 𝐹
𝐹 𝐹 𝑇 𝑇 𝑇
Or,
𝑷 𝑸 𝑷 ⇔𝑸
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹
𝐹 𝑇 𝐹
𝐹 𝐹 𝑇
Note that 𝑃 ⇔ 𝑄 if and only if 𝑃 = 𝑄, as can be seen from the truth table.
𝑷 𝑸 𝑹
𝑇 𝑇 𝑇
𝑇 𝑇 𝐹
𝑇 𝐹 𝑇
𝑇 𝐹 𝐹
𝐹 𝑇 𝑇
𝐹 𝑇 𝐹
𝐹 𝐹 𝑇
𝐹 𝐹 𝐹
Essentially, this can be seen as counting down in binary from the top to the bottom row, if 𝑇 is taken
as 1 and 𝐹 as 0. E.g, 111 = 𝑇 𝑇 𝑇 .
𝑷 𝑸 𝑷 ⇒𝑸 ¬𝑸 ¬𝑷 ¬𝑸 ⇒ ¬𝑷
𝑇 𝑇 𝑇 𝐹 𝐹 𝑇
𝑇 𝐹 𝐹 𝑇 𝐹 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇 𝑇
𝐹 𝐹 𝑇 𝑇 𝑇 𝑇
As the columns for 𝑃 ⇒ 𝑄 and ¬𝑄 ⇒ ¬𝑃 are the same, we see that 𝑃 ⇒ 𝑄 = (¬𝑄 ⇒ ¬𝑃 ).
This can be used to execute proofs by the contrapositive.
De Morgan’s laws
• ¬(𝑃 ∧ 𝑄) = (¬𝑃 ) ∨ (¬𝑄)
• ¬(𝑃 ∨ 𝑄) = (¬𝑃 ) ∧ (¬𝑄)
Proof
𝑇 𝑇 𝑇 𝐹 𝐹 𝐹 𝐹
𝑇 𝐹 𝐹 𝑇 𝐹 𝑇 𝑇
𝐹 𝑇 𝐹 𝑇 𝑇 𝐹 𝑇
𝐹 𝐹 𝐹 𝑇 𝑇 𝑇 𝑇
Chapter 1: Sets
1.1 Introduction
Sets can be written in many ways.
With patterns:
𝑆 = {2, 4, 6, 8, 10, 12}
= {2, 4, 6, …, 12}
The cardinality of a set is the number of elements which it contains. It is written as |𝑆|.
𝐴1 ∩ 𝐴2 ∩ … ∩ 𝐴𝑛 = {𝑥 : 𝑥 ∈ 𝐴1 ∧ 𝑥 ∈ 𝐴2 ∧ … ∧ 𝑥 ∈ 𝐴𝑛 }
= {𝑥 : ∀𝑖 ∈ {1, 2, 3, …, 𝑛}, 𝑥 ∈ 𝐴𝑖 }
Example
For 𝑖 ∈ ℕ, let 𝐴𝑖 = [𝑖, 𝑖 + 1]
∞
𝐴1 ∪ 𝐴2 ∪ 𝐴3 ∪ … = ⋃ 𝐴𝑖 = {𝑥 : ∃𝑖 ∈ ℕ, 𝑥 ∈ 𝐴𝑖 } = [𝑖, ∞)
𝑖=1
∞
𝐴1 ∩ 𝐴2 ∩ 𝐴3 ∩ … = ⋂ 𝐴𝑖 = {𝑥 : ∀𝑖 ∈ ℕ, 𝑥 ∈ 𝐴𝑖 } = ∅
𝑖=1
Example
1 1 1 1
⋃ (1 − , 1 + ) = (0, 2) ∪ ( , 1 + ) ∪ … = (0, 2)
𝑖∈ℕ
𝑖 𝑖 2 2
1 1 1 1
⋂ (1 − , 1 + ) = (0, 2) ∩ ( , 1 + ) ∩ … = {1}
𝑖∈ℕ
𝑖 𝑖 2 2
Groups
A group is an ordered pair (𝐺, ·) where 𝐺 is a set and · is an operation defined over 𝐺.
Set ordering
An element 𝑠 ∈ 𝑆 is a smallest element of 𝑆 if ∀𝑥 ∈ 𝑆 : 𝑠 ≤ 𝑥.
Every nonempty subset of ℕ has a smallest element. This is not true for ℝ: (0, 1) has no smallest
element.
A set is called “well-ordered” if every non-empty subset has a smallest element. ℕ is well-ordered
(truth equivalent to principle of mathematical induction) and ℝ is not well-ordered.
Russell’s paradox
Let 𝐴 = {𝑋 : 𝑋 is a set ∧ 𝑋 ∉ 𝑋}. Is 𝐴 ∈ 𝐴? If 𝐴 ∈ 𝐴, then 𝐴 does not satisfy 𝑋 ∉ 𝑋. If 𝐴 ∉ 𝐴,
then it does satisfy 𝑋 ∈ 𝑋, so it should be in 𝐴.
4 Direct proof
4.1 Theorems
A theorem is a mathemtical statement that has been proven to be true.
Proofs have to be based on other correctly proven theorems all the way down, otherwise they
cannot be true. Often, definitions will be relied on and are very important.
Definitions
The integer 𝑚 is even if ∃𝑘 ∈ ℕ : 𝑛 = 2𝑘.
The integer 𝑚 is odd if ∃𝑘 ∈ ℕ : 𝑛 = 2𝑘 + 1.
The integers 𝑚 and 𝑛 have the same parity if 𝑚 and 𝑛 are both even or 𝑚 and 𝑛 are both odd.
Let 𝑎, 𝑏 ∈ ℤ. Then 𝑎 | 𝑏 if ∃𝑐 ∈ ℤ : 𝑎𝑐 = 𝑏.
If 𝑎 | 𝑏, then 𝑎 is a divisor of 𝑏 and 𝑏 is a multiple of 𝑎.
A number 𝑛 is prime if it has exactly two positive divisors, 1 and 𝑛. If 𝑛 has more than two positive
divisors, then 𝑛 is composite.
Let 𝑎, 𝑏 ∈ ℤ. The greatest common divisor of 𝑎 and 𝑏, gcd(𝑎, 𝑏) is the largest integer that is a
divisor of both 𝑎 and 𝑏.
The least common multiple (lcm(𝑎, 𝑏)) is the smallest integer that is a multiple of 𝑎 and a multiple
of 𝑏.
4.2 Direct proof
Many mathematical theorems are in the form 𝑃 ⇒ 𝑄. To prove that this is true, we need to prove
the truth table of 𝑃 ⇒ 𝑄, but just for the case of 𝑃 being true.
Direct proof: prove that when 𝑃 is true, 𝑄 must be true. It begins by supposing 𝑃 and adding
logical steps until 𝑄 is shown to be true.
Example:
Prove that 𝑛2 is odd if 𝑛 is odd.
𝑛 is odd ⇒ ∃𝑘 ∈ ℤ, 𝑛 = 2𝑘 + 1
(2𝑘 + 1)2 = 4𝑘2 + 4𝑘 + 1
Let 𝑝 = 2𝑘2 + 2𝑘
𝑝 ∈ ℤ since the integers are closed under multiplication and addition
∴ (2𝑘 + 1)2 = 2𝑝 + 1
Example 2:
Prove that 𝑎|𝑏 ∧ 𝑏|𝑐 ⇒ 𝑎 | 𝑐.
Suppose 𝑎|𝑏 ∧ 𝑏|𝑐
𝑎|𝑏 ⇒ ∃𝑘1 ∈ ℤ, 𝑏 = 𝑘1 𝑎
𝑏|𝑐 ⇒ ∃𝑘2 ∈ ℤ, 𝑐 = 𝑘1 𝑏
𝑐 = 𝑘1 𝑘2 𝑎
∴𝑎|𝑐
Example 3:
Prove that if 𝑓 is differentiable at 𝑎 then 𝑓 is continuous at 𝑎
Example 4:
Prove 𝑚|𝑛 ∧ 𝑛|𝑚 ⇒ |𝑚| = |𝑛|
Suppose 𝑚|𝑛 ∧ 𝑛|𝑚
Since 𝑚|𝑛, ∃𝑘 ∈ ℤ, 𝑚𝑘 = 𝑛
Since 𝑛|𝑚, ∃𝑝 ∈ ℤ, 𝑛𝑝 = 𝑚
𝑚𝑘 = 𝑛 ⇔ 𝑛𝑝𝑘 = 𝑛 ⇔ 𝑝𝑘 = 1
Case: 𝑘 ≠ 0 :
1
𝑘≠0⇔𝑝=
𝑘
By assumption, 𝑝 ∈ ℤ ∧ 𝑘 ∈ ℤ, so 𝑘 ≠ 0 ⇔ 𝑝 ∈ {1, −1} ∧ 𝑘 ∈ {1, −1}
𝑘 ≠ 0 ⇔ 𝑚𝑘 = 𝑛 ⇔ |𝑚𝑘| = |𝑛| ⇔ 𝑚 = 𝑛
Case: 𝑘 = 0 :
𝑚𝑘 = 𝑛 ⇔ 𝑛 = 0
But, by assumption, 𝑛 | 𝑚 and zero does not divide anything, so there is a contradiction, and 𝑘 ≠ 0.
𝑛 ∈ ℤ ⇒ 𝑛2 + 𝑛 is even
Suppose 𝑛 ∈ ℤ
Case 𝑛 is even :
𝑛 is even ⇔ 2|𝑛
⇔ ∃𝑘 ∈ ℤ, 2𝑘 = 𝑛
⇔ 𝑛2 + 𝑛 = (2𝑘)2 + 2𝑘 = 2(2𝑘2 + 𝑘)
Let 𝑝 = 2𝑘2 + 𝑘. Since multiplication and addition are closed under ℤ, 𝑝 ∈ ℤ. So, 2𝑝 = 𝑛2 + 𝑛 ⇔ 2|𝑛2 + 𝑛
Case 𝑛 is odd :
𝑛 is odd ⇔ ∃𝑞 ∈ ℤ, 2𝑞 + 1 = 𝑛
⇔ 𝑛2 + 𝑛 = (2𝑞 + 1)2 + (2𝑞 + 1) = 2𝑞 2 + 4𝑞 + 1 + 2𝑞 + 1 = 2𝑞 2 + 6𝑞 + 2
Let 𝑟 = 𝑞 2 + 3𝑞 + 1. Since multiplication and addition are closed under ℤ, 𝑟 ∈ ℤ. So, 2𝑟 = 𝑛2 + 𝑛 ⇔ 2 | 𝑛2 + 𝑛.
7.1 Proving 𝑃 ⇔ 𝑄
1. Prove 𝑃 ⇒ 𝑄
2. Prove 𝑄 ⇒ 𝑃
3. Conclude ((𝑃 ⇒ 𝑄) ∧ (𝑄 ⇒ 𝑃 )) ⇔ (𝑃 ⇔ 𝑄)
8.1 Proving 𝑎 ∈ 𝐴
Get 𝐴 in the form of {𝑥 : 𝑃 (𝑥)} and then show 𝑃 (𝑎) is true. For {𝑥 ∈ 𝑆 : 𝑃 (𝑥)} also prove 𝑥 ∈ 𝑆.
8.2 Proving 𝐴 ⊆ 𝐵
Direct
Suppose 𝑎 ∈ 𝐴, do some steps, and conclude 𝑎 ∈ 𝐵.
Contrapositive
Suppose 𝑎 ∉ 𝐵, do some steps, and conclude 𝑎 ∉ 𝐴 either.
8.3 Proving 𝐴 = 𝐵
1. Prove that 𝐴 ⊆ 𝐵
2. Prove that 𝐵 ⊆ 𝐴
3. Conclude that 𝐴 ⊆ 𝐵 ∧ 𝐵 ⊆ 𝐴 ⇔ 𝐴 = 𝐵
11.1 Relations
A relation 𝑅 on a set 𝐴 is a subset of 𝐴 × 𝐴 such that {(𝑎, 𝑏) ∈ 𝐴 × 𝐴 : 𝑎𝑅𝑏}.
(𝑎, 𝑏) ∈ 𝑅 ⇔ 𝑎𝑅𝑏 and (𝑎, 𝑏) ∉ 𝑅 ⇔ 𝑎𝑅𝑏