Professional Documents
Culture Documents
PMAT - 11223 - Lesson 03
PMAT - 11223 - Lesson 03
PMAT - 11223 - Lesson 03
DISCRETE MATHEMATICS
PMAT 1223
Lesson 03
1.8 PREDICATES
A predicate is a statement about a variable (or variables).
e.g. 𝑥 > 13
𝑥+𝑦 =4
are both predicates.
1.9 QUANTIFIERS
For a predicate 𝑃(𝑥), there are 2 types of quantifiers.
i. The Universal Quantifier ∀𝑥
∀𝑥: 𝑃(𝑥) means ‘for all 𝑥, 𝑃(𝑥)’, or ‘for every 𝑥, 𝑃(𝑥)’.
1.9.1 Example: Determine the truth value of the following, given that 𝑥 is a real number.
i. ∃𝑥: 𝑥 2 = −2 False
𝑥 = ±√−2 is not a real number, i.e. no square of a real number can be negative.
1.9.2 NOTE: Truth values can also depend on the ‘universe of discourse’ – the set from which 𝑥
comes.
e.g. In the previous example, if 𝑥 is an integer (instead of a real number), ∃𝑥: 𝑥 2 = 7 is
False, as neither 𝑥 = √7 nor 𝑥 = −√7 is an integer.
1.9.4 Example: Given that 𝑥 is an integer, determine the truth value of,
1.10 NEGATIONS
The negation of ∀𝑥 𝑃(𝑥) is ~∀𝑥 𝑃(𝑥).
i.e. ‘𝑃(𝑥) is not true for all values of 𝑥’.
In general,
~∀𝑥 𝑃(𝑥) ≡ ∃𝑥 ~𝑃(𝑥)
Similarly,
~∃𝑥 𝑃(𝑥) ≡ ∀𝑥 ~𝑃(𝑥)
e.g. For 𝑥 and 𝑦 real numbers, ∀𝑥 ∀𝑦: 𝑥 2 + 𝑦 2 ≥ 0 means ‘for all real numbers 𝑥
and 𝑦 , 𝑥 2 + 𝑦 2 ≥ 0.’ This is True (as 𝑥 2 ≥ 0 and 𝑦 2 ≥ 0).
1.11.1 Example: Determine truth value of the following, given that 𝑥 and 𝑦 are real numbers.
iii. ∀𝑥 ∃𝑦: 𝑥𝑦 = 𝑦
i.e. ‘for all real 𝑥, there is a real 𝑦 such that 𝑥𝑦 = 𝑦’.
If 𝑥𝑦 = 𝑦, then 𝑥𝑦 − 𝑦 = 0.
∴ 𝑦(𝑥 − 1) = 0
For this to apply for all 𝑥, 𝑦 must be zero.
∴ 𝑦 = 0, and the statement is True.
iv. ∀𝑦 ∃𝑥: 𝑥𝑦 = 𝑦
i.e. ‘for all real 𝑦, there is a real 𝑥 such that 𝑥𝑦 = 𝑦’.
If 𝑥𝑦 = 𝑦, then 𝑥𝑦 − 𝑦 = 0.
∴ 𝑦(𝑥 − 1) = 0
J Munasinghe, Department of Mathematics, University of Kelaniya
3
PMAT 11223 Discrete Mathematics
v. ∀𝑥 ∃𝑦: 𝑥 3 = 𝑦
i.e. ‘for all real 𝑥, there is a real 𝑦 such that 𝑥 3 = 𝑦’.
The statement is True (cubing any real number gives a real number).
vi. ∃𝑦 ∀𝑥: 𝑥 3 = 𝑦
i.e. ‘there is a real 𝑦 such that, for all real 𝑥, 𝑥 3 = 𝑦’.
The statement is False (there is no such real 𝑦 which is the cube of every real number.
i.e. 𝑥 3 does not have a constant value).
2. METHOD OF PROOF
There are several methods to prove that 𝑝 ⟶ 𝑞 is true.
Usually, direct proof is used when 𝑝 is simpler than 𝑞. Indirect proof is used when 𝑞 is
simpler than 𝑝.
In proving statements concerning integers, the following conventions are useful.
If 𝑛 is an even integer, then 𝑛 = 2𝑘.
If 𝑛 is an odd integer, then 𝑛 = 2𝑘 + 1. (For some integer k)
= 4𝑘 2 + 10𝑘 + 3
J Munasinghe, Department of Mathematics, University of Kelaniya
4
PMAT 11223 Discrete Mathematics
= 4𝑘 2 + 10𝑘 + 2 + 1
= 2(2𝑘 2 + 5𝑘 + 1) + 1
= 2𝑚 + 1 (Where 𝑚 = 2𝑘 2 + 5𝑘 + 1 ),
which is odd, as required.
Here,
𝑝: 3𝑛2 − 2𝑛 + 1 is even, is not as simple as
𝑞: 𝑛 is odd,
so indirect proof (~𝑞 ⟶ ~𝑝) is used.
∴ It is required to prove: ‘If 𝑛 is even, then 3𝑛2 − 2𝑛 + 1 is odd’.
= (3 × 4𝑘 2 ) − 4𝑘 + 1
= 12𝑘 2 − 4𝑘 + 1
= 2(6𝑘 2 − 2𝑘) + 1
= 2𝑚 + 1 (Where 𝑚 = 6𝑘 2 − 2𝑘),
which is odd, as required.
Here,
𝑝: 𝑛 is odd, is simpler than
𝑞: 3𝑛2 − 4𝑛 + 7 is even,
and direct proof is used.
= 2𝑚 (Where 𝑚 = 6𝑘 2 + 2𝑘 + 3),
which is even, as required.
2.2.3 Example:
i. Attempt direct proof to prove: ‘If 5𝑛 + 3 is odd, then 𝑛 is even’.
ii. Prove the result by indirect proof. It is required to prove: ‘If 𝑛 is odd, then 5𝑛 + 3 is
even’.
Proof:
= 3(4𝑘 2 + 4𝑘 + 1) − 4𝑘 − 2 + 5
= 12𝑘 2 + 12𝑘 + 3 − 4𝑘 + 3
= 12𝑘 2 + 8𝑘 + 6
= 2(6𝑘 2 + 4𝑘 + 3)
= 2𝑚 (Where 𝑚 = 6𝑘 2 + 4𝑘 + 3),
which is even, as required.
For 𝑛 even, 𝑛 = 2𝑘
∴ 3𝑛2 − 2𝑛 + 5 = 3(2𝑘)2 − (2 × 2𝑘) + 5
= (3 × 4𝑘 2 ) − 4𝑘 + 5
= 12𝑘 2 − 4𝑘 + 4 + 1
= 2(6𝑘 2 − 2𝑘 + 2) + 1
= 2𝑚 + 1 (Where 𝑚 = 6𝑘 2 − 2𝑘 + 2),
which is odd, as required.