PMAT - 11223 - Lesson 04
PMAT - 11223 - Lesson 04
PMAT - 11223 - Lesson 04
DISCRETE MATHEMATICS
PMAT 11223
Lesson 04
2.4 PROOFS OF EQUIVALENCE
To prove that 3 statements 𝑝, 𝑞, 𝑟 are equivalent, i.e. 𝑝 ⟷ 𝑞 and 𝑞 ⟷ 𝑟, only 3 proofs are
required, i.e. 𝑝 ⟶ 𝑞 and 𝑞 ⟶ 𝑟 and 𝑟 ⟶ 𝑝.
( 𝑝 ⟶ 𝑞 and 𝑞 ⟶ 𝑟 gives 𝑝 ⟶ 𝑟;
𝑞 ⟶ 𝑟 and 𝑟 ⟶ 𝑝 gives 𝑞 ⟶ 𝑝;
𝑟 ⟶ 𝑝 and 𝑝 ⟶ 𝑞 gives 𝑟 ⟶ 𝑞,
i.e. the 6 proofs can be reduced to 3 ).
In general, both direct and indirect proofs are needed.
2.4.1 Example: Prove that the followings are equivalent.
i. 𝑝: 𝑛 is odd ;
ii. 𝑞: 𝑛 + 5 is even ;
iii. 𝑟: 𝑛2 + 1 is even.
a) 𝑝 ⟶ 𝑞
b) 𝑞 ⟶ 𝑟
= 4𝑘 2 − 20𝑘 + 25 + 1
= 4𝑘 2 − 20𝑘 + 26
= 2(2𝑘 2 − 10𝑘 + 13)
= 2𝑚 (Where 𝑚 = 2𝑘 2 − 10𝑘 + 13),
which is even, as required.
= 4𝑘 2 + 1
= 2(2𝑘 2 ) + 1
= 2𝑚 + 1 (Where 𝑚 = 2𝑘 2 ),
which is odd, as required.
2.5.2 NOTE: This can be proved more simply using indirect proof.
Proof:
i. For 𝑛 even, 𝑛 = 2𝑘
∴ 𝑛2 + 𝑛 = (2𝑘)2 + 2𝑘
= 4𝑘 2 + 2𝑘
= 2(2𝑘 2 + 1)
= 2𝑚 (Where 𝑚 = 2𝑘 2 + 1),
which is even.
ii. For 𝑛 odd, 𝑛 = 2𝑘 + 1
∴ 𝑛2 + 𝑛 = (2𝑘 + 1)2 + 2𝑘 + 1
= 4𝑘 2 + 4𝑘 + 1 + 2𝑘 + 1
= 4𝑘 2 + 6𝑘 + 2
= 2(2𝑘 2 + 3𝑘 + 1)
= 2𝑚 (Where 𝑚 = 2𝑘 2 + 3𝑘 + 1),
which is even, and the proof is complete.
2.7 COUNTER-EXAMPLES
A counter-example is used to prove that a statement is false.
1 1 2 2 1 1
For 𝑥 = 4, 2𝑥 2 = 2 × (4) = 16 = 8, but 𝑥 = 4.
∴The statement is false.
2.7.3 NOTE: If 2𝑥 2 ≥ 𝑥 is true, then 2𝑥 2 − 𝑥 ≥ 0
∴ 𝑥(2𝑥 − 1) ≥ 0,
which is not true when 𝑥 and 2𝑥 − 1 are of different signs,
1
e.g. 𝑥 > 0 and 2𝑥 − 1 < 0 i.e. 𝑥 > 0 and 𝑥 < 2.
1
Any 𝑥 with this property provides a counter-example, e.g. 𝑥 = 10.
3. SETS
3.1 DEFINITIONS
Any collection of well-defined objects is called a set, and the objects themselves are
called elements of the set.
3.1.1 Notation: Capital letters 𝐴, 𝐵, 𝑋, 𝑌, … represent sets;
Lowercase letters 𝑎, 𝑏, 𝑥, 𝑦, … represent elements.
∈ means ‘is an element of ’
∉ means ‘is not an element of ’
In general, sets may be specified by listing each element, or by stating a rule obeyed by
each element.
e.g. 𝐴 = {1,2,3} = {𝑥 ∈ ℕ: 𝑥 < 4} and
𝐵 = {22,24,26, … } = {𝑥 ∈ ℕ: 𝑥 𝑖𝑠 𝑎𝑛 𝑒𝑣𝑒𝑛 𝑖𝑛𝑡𝑒𝑔𝑒𝑟 𝑎𝑛𝑑 𝑥 > 20}.
Two sets are equal if they contain exactly the same elements.
3.2.1 Example: If 𝐴 = {𝑥: 𝑥 ∈ ℕ 𝑎𝑛𝑑 0 < 𝑥 < 2} and 𝐵 = {𝑥: 𝑥 ∈ ℝ 𝑎𝑛𝑑 0 < 𝑥 < 2} and are
not equal, as, say, 1.3 ∈ 𝐵, but 1.3 ∉ 𝐴.
Note that 𝐴 = {1}, whereas 𝐵 contains all points on the real number line between
0 and 2.
The cardinality, |𝐴|, of a set 𝐴 is the number of elements in 𝐴.
The empty set or null set, 𝜙, is the set containing no elements, i.e. |∅| = 0.
The universal set, 𝓤, is a given set containing all possible elements under consideration.
3.3 SUBSETS
3.3.4 Example: If 𝐴 = {2,3,5}, 𝑃(𝐴) = {∅, {2}, {3}, {5}, {2,3}, {2,5}, {3,5}, 𝐴}.
Here |𝐴| = 3, and |𝑃(𝐴)| = 8 = 23 .
3.4.1 Definitions:
The union of 𝐴 and 𝐵 is the set of all elements in 𝐴 or 𝐵 (or both), and is denoted by 𝐴 ∪ 𝐵.
The intersection of 𝐴 and 𝐵 is the set of all elements in both 𝐴 and 𝐵, and is denoted by 𝐴 ∩
𝐵.
𝐴 ∪ 𝐵 = {𝑥: 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵 }
𝐴 ∩ 𝐵 = {𝑥: 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∈ 𝐵 }
The complement of 𝐴 is the set of all elements in some universal set,𝒰, but not in 𝐴, and
is denoted by 𝐴′ (or 𝐴̅)
𝐴′ = {𝑥: 𝑥 ∉ 𝐴}.
Further set operations can be defined in terms of the 3 operations union, intersection and
complement.
3.4.3 Difference of two sets
The set difference, 𝐴\𝐵, is the set of all elements in 𝐴, but not in 𝐵.
𝐴\𝐵 = {𝑥: 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∉ 𝐵} = 𝐴 ∩ 𝐵′
The symmetric difference, 𝐴 ⊕ 𝐵 or (𝐴 △ 𝐵), is the set of all elements in 𝐴 or 𝐵, but not
both (the exclusive ‘or’).
𝐴 ⊕ 𝐵 = {𝑥: 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵, 𝑎𝑛𝑑 𝑥 ∉ 𝐴 ∩ 𝐵}
= (𝐴 ∪ 𝐵)\(𝐴 ∩ 𝐵)
= (𝐴 ∪ 𝐵) ∩ (𝐴 ∩ 𝐵)′
= (𝐴\𝐵) ∪ (𝐵\𝐴)
i. 𝐴 = {12,15,18,21,24}
ii. 𝐵 = {21,22,23,24,25}
iii. 𝐶 = {16}
iv. 𝐷 = {11,13,15,17,19,21,23,25}
v. 𝐴 ∪ 𝐶 = {12,15,16,18,21,24}
vi. 𝐴∩𝐶 =𝜙
vii. 𝐵 ∩ 𝐷 = {21,23,25}
viii. 𝐴 − 𝐵 = {12,15,18}
ix. 𝐴 − 𝐷 = {12,18,24}
x. 𝐶 − 𝐴 = {16}
xi. 𝐵 − 𝐴 = {22,23,25}
xii. 𝐴 ⊕ 𝐵 = {12,15,18,22,23,25}
………. // ……….