Lecture Notes: 0N1 (MATH19861) Mathematics For Foundation Year
Lecture Notes: 0N1 (MATH19861) Mathematics For Foundation Year
Lecture Notes: 0N1 (MATH19861) Mathematics For Foundation Year
Lecture Notes
01 Oct 2018
Contents
1 Arrangements for the Course 9
Acknowledgements 16
I Lecture Notes 17
1 Sets 17
1.1 Sets: Basic definitions . . . . . . . . . . . . . 17
1.2 Predicate and list form of definition of a set . 17
1.3 Equality of sets . . . . . . . . . . . . . . . . . 18
1.4 The empty set . . . . . . . . . . . . . . . . . . 19
1.5 A set cannot be an element of itself! . . . . . 20
1.6 Questions from students . . . . . . . . . . . . 20
3 Operations on Sets 28
3.1 Intersection . . . . . . . . . . . . . . . . . . . 28
3.2 Union . . . . . . . . . . . . . . . . . . . . . . 28
3.3 Universal set and complement . . . . . . . . . 29
3.4 Relative complement . . . . . . . . . . . . . . 31
3.5 Symmetric difference . . . . . . . . . . . . . . 31
3.6 Boolean Algebra . . . . . . . . . . . . . . . . 32
3.7 Sample Test Questions . . . . . . . . . . . . . 33
3.8 Questions from Students . . . . . . . . . . . . 34
4 Set theory 39
4.1 Proof of Laws of Boolean Algebra by Venn di-
agrams . . . . . . . . . . . . . . . . . . . . . . 39
4.2 Proving inclusions of sets . . . . . . . . . . . . 40
4.3 Proving equalities of sets . . . . . . . . . . . . 41
4.4 Proving equalities of sets by Boolean Algebra 43
4.5 Sample test questions . . . . . . . . . . . . . . 44
4.6 Additional Problems:
Some problems solved with the help of Venn
diagrams . . . . . . . . . . . . . . . . . . . . . 44
4.7 Questions from students . . . . . . . . . . . . 48
5 Propositional Logic 49
5.1 Statements . . . . . . . . . . . . . . . . . . . . 49
5.2 Conjunction . . . . . . . . . . . . . . . . . . . 49
5.3 Disjunction . . . . . . . . . . . . . . . . . . . 50
5.4 Negation . . . . . . . . . . . . . . . . . . . . . 50
0N1 • Mathematics • Course Arrangements • 01 Oct 2018 4
5.5 Conditional . . . . . . . . . . . . . . . . . . . 51
5.6 Questions from students . . . . . . . . . . . . 53
8 Predicate Logic 70
8.1 Predicaes . . . . . . . . . . . . . . . . . . . . 70
8.2 Compound predicates . . . . . . . . . . . . . . 71
8.3 Sample test question . . . . . . . . . . . . . . 71
9 Quantifiers 73
9.1 Universal quanifier . . . . . . . . . . . . . . . 73
9.2 Existential quantifier . . . . . . . . . . . . . . 74
0N1 • Mathematics • Course Arrangements • 01 Oct 2018 5
10 Logical equivalences 79
10.1 Sample test questions . . . . . . . . . . . . . . 81
10.2 Questions from Students . . . . . . . . . . . . 83
11 Inequalities 86
11.1 Basic properties of inequalities . . . . . . . . . 86
11.2 Intervals and segments . . . . . . . . . . . . . 87
13 Methods of Proof 92
13.1 Statements of the form (∀x)p(x) . . . . . . . 92
13.2 Change of sign in an inequality . . . . . . . . 93
13.3 Squares are non-negative . . . . . . . . . . . . 94
13.4 Counterexamples . . . . . . . . . . . . . . . . 95
13.5 Statements of the form
(∀x)(p(x) → q(x)) . . . . . . . . . . . . . . . 97
21 Principle of
Mathematical Induction 158
21.1 Formulation of the Principle of Mathematical
Induction . . . . . . . . . . . . . . . . . . . . 158
21.2 Examples . . . . . . . . . . . . . . . . . . . . 159
21.3 Is mathematical induction the most confusing
method ever taught? . . . . . . . . . . . . . . 161
0N1 • Mathematics • Course Arrangements • 01 Oct 2018 8
22 Mathematical Induction:
Examples with briefer solutions 162
22.1 The sum of arithmetic progression . . . . . . . 162
22.2 A historic remark . . . . . . . . . . . . . . . . 162
22.3 Mathematical induction in proofs of inequalities 165
22.4 Comparing two sequences . . . . . . . . . . . 166
22.5 Problems . . . . . . . . . . . . . . . . . . . . . 167
Aims of 0N1
Brief description
Textbooks:
Course Webpage:
The webpage used in previous years
http://www.maths.manchester.ac.uk/~avb/math19861.html,
short URL bit.ly/2cgtpRx
will migrate, over September-October 2018, to
https://personalpages.manchester.ac.uk/staff/alexandre.
borovik/math19861.html,
short URL https://bit.ly/2O7X2KX
1.2 Arrangements
∗
Two lectures a week in weeks 1–12 : * As of 2018–19 academic year
Monday 13:00, Renold/C16
Thursday 10:00, Renold/C16
Learn to take lecture notes!
No Resits or Reworks
5. Students are not allowed to leave the room until the end
of the test. Examiners will not collect their scripts until
the test is over.
1.6 Examinatios
bit.ly/2cgtpRx
or
http://www.maths.manchester.ac.uk/~avb/math19861.html.
Acknowledgements
Special thanks go to Dave Rudling for his comments on math-
ematical notation, to Alexander Watson for help with LATEX,
and to Dion Serrao for correction of numerous typos in this
text.
John Baldwin provided a solution to Problem 16.7. No-
tation for segments and intervals was suggested by Natasa
Strabic; she also made a number of useful comments on the
text.
Toby Ovod-Everett kindly allowed to use his answer on
Quora which became Section 21.3 of these Notes.
0N1 • Mathematics • Lecture 1 • Sets • 01 Oct 2018 17
Lecture Notes
Part I
Lecture Notes
1 Sets
but
2 6∈ {1, 3, 6}.
In list form the same set is denoted whatever order the el-
ements are listed and however many times each element is
listed. Thus
Example 1.3.1
equal to
{x : x is an integer between 9 and 10}
Answer. Yes, all empty sets are equal. To see that in your
example, let us denote
and
B = {x : x is an integer between 9 and 10}
So, I claim that A = B. If you do not agree with me, you have to
show that A is different from B. To do so, you have to show me
an element in one set that does not belong to another set. Can
you do that? Can you point to an offending element if both sets
have no elements whatsoever?
Indeed, can you point to a “positive integer less than zero” which
is not an “integer between 9 and 10”? Of course, you cannot,
because there are no positive integers less than zero.
Can you point to an “integer between 9 and 10” which is not a
“positive integer less than zero”? Of course, you cannot, because
there are no integers between 9 and 10.
Hence you cannot prove that A is not equal to B. Therefore you
have to agree with me that A = B.
0N1 • Mathematics • Lecture 2 • Subsets • 01 Oct 2018 22
2.1 Subsets
Consider the sets A and B where A = {2, 4} and B =
{1, 2, 3, 4, 5}. Every element of the set A is an element of
the set B. We say that A is a subset of B and write A ⊆ B,
∗
or B ⊇ A. We can also say that B contains A. * Also: A is contained in B,
A is included in B. The expression B ⊇
Notice that the word “contains” is used in set theory in A is read “B is a superset of A”, or B
two meanings, it can be applied to elements and to subsets: contains A.
the set { a, b, c } contains an element a and a subset {a}. Sym-
bols used are different:
' $
A B
& %
∗
• If A ⊆ B and B ⊆ C then A ⊆ C. * We say that ⊆ is a transitive relation
between sets. Notice that the relation ∈
• If A ⊆ B and B ⊆ A then A = B. “being an element of” is not transitive.
relation = connection, bond
∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}.
Note: don’t forget the empty set ∅ and the whole set {1, 2, 3}.
Thus {1, 2, 3} has 8 subsets.
0N1 • Mathematics • Lecture 2 • Subsets • 01 Oct 2018 24
P(∅) = {∅}
P(P(∅)) = P({∅}) = {∅, {∅}}
P(P(P(∅))) = P({∅, {∅}}) = {∅, {∅}, {{∅}}, {∅, {∅}}}
..
.
20 = 1, 21 = 2, 22 = 4, 24 = 16, . . . ,
N = {1, 2, 3, . . . , }
Q denotes the set of all rational numbers (that is, the num-
bers of the form n/m where n and m are integers and
m 6= 0),
√
R the set of all real numbers (in particular, 2 ∈ R and
π ∈ R),
3. > My question
> relates to one of the mock exam questions,
> worded slightly differently.
>
> Question: List the 8 subsets of {a,b,c,d}
> containing {d}?
3 Operations on Sets
A∩B A∪B
3.1 Intersection
Suppose A and B are sets. Then A ∩ B denotes the set of all
elements which belong to both A and B:
A ∩ B = { x : x ∈ A and x ∈ B }.
∗
A ∩ B is called the intersection of A and B. * The typographic symbol ∩ is some-
times called “cap”. Notice that the
name of a typographical symbol for an
Example 3.1.1 Let A = {1, 3, 5, 6, 7} and B = {3, 4, 5, 8}, operation is not necessary the same as
then A ∩ B = {3, 5}. the name of operation. For example,
symbol plus is used to denote addition
of numbers, like 2 + 3.
3.2 Union
A ∪ B denotes the set of all elements which belong to A or to
B:
A ∪ B = { x : x ∈ A or x ∈ B }.
∗
A ∪ B is called the union of A and B. * The typographic symbol ∪ is some-
times called “cup”.
Notice that, in mathematics, or is usually understood in
the inclusive sense: elements from A ∪ B belong to A or to
0N1 Mathematics • Lecture 3 • Operations on Sets • 01 Oct 2018 29
A ∩ B ⊆ A ∪ B.
A ∪ B = {1, 3, 4, 5, 6, 7, 8}.
' $
'
U
$
A B
& %
& %
U
A0
Example 3.3.2
{ x ∈ Z : x2 = 4 } = { −2, 2 }.
Example 3.4.1 If
A = { 1, 2, 3, 4 }
and
B = { 2, 4, 6, 8 }
then
A r B = { 1, 3 }.
A r B = A ∩ B0.
A4B = (A r B) ∪ (B r A).
A4B = { x : x ∈ A or x ∈ B, but x 6∈ A ∩ B }
A4B = (A ∪ B) r (A ∩ B).
A∩B = B∩A
commutative laws (1)
A∪B = B∪A
A∩A = A
idempotent laws (2)
A∪A = A
A ∩ (B ∩ C) = (A ∩ B) ∩ C
associative laws (3)
A ∪ (B ∪ C) = (A ∪ B) ∪ C
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
distributive laws
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
(4)
0N1 Mathematics • Lecture 3 • Operations on Sets • 01 Oct 2018 33
A ∩ (A ∪ B) = A
absorbtion laws (5)
A ∪ (A ∩ B) = A
identity laws:
A∩U =A A∪U =U
(6)
A∪∅=A A∩∅=∅
complement laws:
(A0 )0 = A A ∩ A0 = ∅ U0 = ∅
(7)
A ∪ A0 = U ∅0 = U
(A ∩ B)0 = A0 ∪ B 0
De Morgan’s laws (8)
(A ∪ B)0 = A0 ∩ B 0
a × (b + c) = (a × b) + (a × c),
a + (b × c) = (a + b) × (a + c).
0 + 0 = 0, 0 × 0 = 0.
A student wrote:
Sets A, B, U .
Sets A0 , A ∪ B 0 , A0 ∪ B 0 .
Set A0 ∩ B 0 .
[6 marks] Let
A = {x ∈ R : x4 + x > 2 }
B = {x ∈ R : x3 < 1}
and
C = {x ∈ R : x8 > 1}.
x4 + x > 2.
Since x ∈ B, it satisfies
x3 < 1
which implies x < 1 which is the same as 1 > x. Adding the last
inequality to the inequality x4 + x > 2, one gets
x4 + x + 1 > 2 + x
which simplifies as
x4 > 1.
Both parts of this inequality are positive, therefore we can square
it and get
x8 > 1.
But this means that x ∈ C. Hence A ∩ B ⊆ C.
4.
> Say for eg you have a situation whereby you have
>
> A U A’U B
>
> Does this simply to A U U (which is U) or A U B?
> Because i no A U A’ is Union but i get confused
> when simplifying these when you have A’U B. is
> it Union or is it B?
Answer: You are mixing the union symbol ∪ and letter U used
to denote the universal set. The correct calculation is
A ∪ A0 ∪ B = (A ∪ A0 ) ∪ B = U ∪ B = U,
I set it in a large type to emphasise the difference between symbol
∪ and letter U . The answer is U , the universal set.
0N1 Mathematics • Lecture 3 • Operations on Sets • 01 Oct 2018 38
5.
> Was just wandering about a note I took in your
> lecture that doesn’t seem right.
> I might have copied it down wrong but I wrote:
>
> A = ’Any integer’ B = ’Any Real Number
>
> A union B = any integer
>
> Was just wandering wether that should be,
> A union B = any real number
A ∪ B = B and A ∩ B = A.
4 Set theory
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C),
A B A B
C C
(a) A, B, C (b) B ∪ C
A B A B
C C
(c) A ∩ (B ∪ C) (d) A ∩ B
0N1 Mathematics • Lecture 4 • Set Theory • 01 Oct 2018 40
A B A B
C C
(e) A ∩ C (f) (A ∩ B) ∪ (A ∩ C)
∗
Equality holds because diagrams (c) and (f) are the same. * holds = is true
Because of the associative laws in (1) of the previous lec-
∗
ture, we can write A∩B∩C and A∪B∪C with unambiguous * unambiguous = unmistakable, defi-
meanings. But we must not write A ∩ B ∪ C or A ∪ B ∩ C nite, clear
∗ ambiguous = vague, unclear, uncertain
without brackets. This is because, in general
* A good example when the use of a
A ∩ (B ∪ C) 6= (A ∩ B) ∪ C, word in mathematics is different from its
use in ordinary speech. In the usual lan-
A ∪ (B ∩ C) 6= (A ∪ B) ∩ C. guage “in general” means “as a rule”,
“in most cases”. In mathematics “in
(Give your examples!) general” means “sometimes”. For exam-
ple, in mathematics the phrases “Some
people are more than 100 years old” and
4.2 Proving inclusions of sets “In general, people are more than 100
years old” are the same.
∗
To prove the property A ⊆ B for particular sets A and * particular = individual, specific
B we have to prove that every element of A is an element of
∗
B (see definition of ⊆). Sometimes this is clear. But if not * clear = obvious, self-evident
proceed as in the next examples.
A = {x ∈ R : x2 − 3x + 2 = 0}.
Prove that A ⊆ Z.
0N1 Mathematics • Lecture 4 • Set Theory • 01 Oct 2018 41
x2 − 3x + 2 = 0,
(x − 1)(x − 2) = 0,
1 or
x =
2
x ∈ Z.
0 2 R
r r r r -
1 3
∗
One can immediately see from this picture that * see = observe, notice
∗
Similarly, an interval ]a, b[ of the real line R is defined as * Many books use for intervals notation
the set (a, b); unfortunately, it could be easy
]a, b[ = { x ∈ R : a < x < b }. mixed with notation for coordinates in
the plane, where (a, b) denotes the point
with coordinates x = a and y = b.
Example 4.3.2 Notice that
while
]0, 1[ ∩ ]1, 2[ = ∅.
[a, b] = ]a, b[ = ∅.
a 6 x 6 b or a < x < b.
0N1 Mathematics • Lecture 4 • Set Theory • 01 Oct 2018 43
A ⊆ B iff A ∩ B = A iff A ∪ B = B
A ∪ C ⊆ B ∪ C.
A ∪ B = B.
Now we compute:
(A ∪ C) ∪ (B ∪ C) = ((A ∪ C) ∪ B) ∪ C
(by associativity of ∪)
= (A ∪ (C ∪ B)) ∪ C
(by associativity of ∪)
= (A ∪ (B ∪ C)) ∪ C
(by commutativity of ∪)
= ((A ∪ B) ∪ C) ∪ C
(by associativity of ∪)
= (B ∪ C) ∪ C
(by the observation above)
= B ∪ (C ∪ C)
(by associativity of ∪)
= B∪C
(by the idempotent law for ∪).
Hence
A ∪ C ⊆ B ∪ C.
0N1 Mathematics • Lecture 4 • Set Theory • 01 Oct 2018 44
(A) X ∩Z ⊆Y ∩Z
(B) Y 0 ∩ Z0 ⊇ X0 ∩ Z0
(C) X ∩ (Y ∪ Z) = Y ∪ (X ∩ Z)
Answer. (B). Draw a Venn diagram. You may observer that (B)
is true also the following way:
Y ⊆ X
Y ∪Z ⊆ X ∪Z
0
(Y ∪ Z) ⊇ (X ∪ Z)0
Y 0 ∩ Z0 ⊇ X0 ∪ Z0
Of course you still have to figure out why (A) and (B) cannot always be
true.
(viii) a + b + c + d + e + f + g + h = 100
A B
b
d
a
g f
e
c h
∗
Now (i) gives a = 18, (ii) gives e = 5, (vi) gives g = 3, * gives = yields
(iii) gives d = 0, (iv) gives f = 5, (v) gives c = 35, (vii) gives
b = 1, (viii) gives h = 33.
Therefore the number of people who like B is
b + d + f + g = 9,
Answer. (C).
Brief solution. Denote x = |X ∩ Y 0 |, y = |X 0 ∩ Y |
(this is what we have to find), z = |X ∩ Y |, t = |(X ∪ Y )0 |
(make a Venn diagram!), then
|X 0 | = y + t = 12
|Y 0 | = x + t = 7
|X ∩ Y 0 | = x = 4
Excluding unknowns, we find t = 3 and y = 9.
5 Propositional Logic
5.1 Statements
A statement (or proposition) is a sentence which states or
∗
asserts something. It is either true or false. If true, we say * assert = state, claim
that the statement has truth value T . If false, it has truth
value F .
5.2 Conjunction
If p and q are statements then “p and q” is a new statement
called the conjunction of p and q and written p∧q. According
∗
to mathematical convention, p ∧ q has truth value T when * convention = custom, agreement
both p and q have truth value T , but p ∧ q has truth value
∗
F in all other cases. Here is the truth table: * The typographical symbol ∧ is called
wedge. It is used not only in logic, but in
p q p∧q some other areas of mathematics as well,
with a completely different meaning.
T T T
T F F
F T F
F F F
5.3 Disjunction
“p or q” is called the disjunction of p and q and written p ∨ q.
Truth table:
p q p∨q
T T T
T F T
F T T
F F F
5.4 Negation
The statement obtained from p by use of the word “not” is
∗
called the negation of p and is written ∼ p. For example, if * Symbols sometimes used to denote
negation: ¬p, p.
∼ p is sometimes called “the opposite of
p”
0N1 Mathematics • Lecture 5 • Propositional Logic • 01 Oct 2018 51
p ∼p
T F
F T
5.5 Conditional
Suppose p and q are statements. The statement “If p then q”,
∗
denoted p → q, is called a conditional statement. The truth * There is a huge number of ways to
values to be given to p → q are open to some debate but the express “if p then q”, for example
mathematical convention is as follows. • p implies q
• p leads to q
p q p→q
T T T • p yields q
T F F • q follows from p
F T T • q is a consequence of p
F F T
• q is a necessary condition for p
You must work according to this table whether • p is a sufficient condition for q
you like it or not! • q is true provided p is true
• x2 > 4 if x > 2.
H C H→C
T T T
T F F
F T T
F F T
6.1 Converse
Notice that p → q and q → p are different; q → p is called
the converse of p → q.
6.2 Biconditional
“p if and only if q” is denoted by p ↔ q and called the bicon-
∗
ditional of p and q. The truth table is as follows. * Notice that, in mathematical litera-
ture and blackboard writing, the expres-
sion “if and only if” is sometimes abbre-
p q p↔q viated “iff”.
T T T
T F F
F T F
F F T
Example 6.2.1
“x > 2 if and only if x + 1 > 3”
is the same as
“For x > 2 it is necessary and sufficient that x + 1 > 3”.
6.3 XOR
Excluded OR, or XOR p ⊕ q is defined by the truth table
p q p⊕q
T T F
T F T
F T T
F F F
It is the exclusive version of “or” (as opposed to inclusive
“or” ∨). XOR is widely used in computer programming and
Computer Science. Its name is an abbreviation of eXclusive
OR.
Read more on XOR in Section 7.3.
p, q, r, . . .
∗
Example 6.4.1 Find the truth table of * Some typographic terminology: in the
expression
∼ (p → (q ∨ r)).
∼ (p → (q ∨ r))
Solution (We take 8 rows because there are 3 variables the first opening bracket and the last
closing bracket (they are underlined)
p, q, r, . . . each with two possible truth values.) match each other. This is another pair
of matching brackets:
∼ (p → (q ∨ r)).
p q r q∨r p → (q ∨ r) ∼ (p → (q ∨ r))
T T T T T F
T T F T T F
T F T T T F
T F F F F T
F T T T T F
F T F T T F
F F T T T F
F F F F T F
Please always write the rows in this order, it will help you
to easier check your work for errors.
(We get each of the last 3 columns by use of the truth
tables for ∨, → and ∼.)
This can also be set out as follows.
∼ (p → (q ∨ r))
F T T T T T
F T T T T F
F T T F T T
T T F F F F
F F T T T T
F F T T T F
F F T F T T
F F T F F F
Solution
p q ∼q ∼q → p p ∧ (∼ q → p)
T T F T T
T F T T T
F T F T F
F F T F F
or
p ∧ (∼ q → p)
T T F T T T
T T T F T T
F F F T T F
F F T F F F
6.5 Tautologies
The statements
p ∨ ∼ p and (p ∧ (p → q)) → q
p ∼p p∨ ∼ p
T F T
F T T
p q p→q p ∧ (p → q) (p ∧ (p → q)) → q
T T T T T
T F F F T
F T T F T
F F T F T
0N1 Mathematics • Lecture 6 • Propositional Logic • 01 Oct 2018 60
(p ∧ (p → q)) → q
is “If x > 2, and x > 2 implies y > 2, then y > 2”. This
is true because
(p ∧ (p → q)) → q
6.6 Contradictions
A statement which is always F regardless of the truth values
of its components p, q, r, . . . is called a contradiction. (Only
F occurs in the last column of the truth table.)
( ( ) ( ( ( ) ) ) )
0N1 Mathematics • Lecture 6 • Propositional Logic • 01 Oct 2018 61
or
((a ∨ b) ∧ (c ∨ ((d =⇒ e) ∨ f ))),
while brackets
( ( ) ) ) ( ) ( ( )
(A) (p → q) ∨ r (B) (p ∧ ∼ q) ↔ r
(C) (∼ p ∧ q) → r
(q → p) ∨ (∼ p → ∼ q) ≡ (∼ q ∨ p) ∨ (∼∼ p∨ ∼ q)
≡ ∼ q ∨ p∨ ∼∼ p∨ ∼ q
≡ p∨ ∼ q.
p q ~q (p-->q) ~q-->(p-->q)
T T F F T
T F T T T
Example 7.1.1
p q p∧q ∼ (p ∧ q) ∼p ∼q ∼ p∨ ∼ q
T T T F F F F
T F F T F T T
F T F T T F T
F F F T T T T
∗ ∗∗
∗
Columns ∗ and ∗∗ are the same, i.e. for every choice of * i.e. = that is,
truth values for p and q, ∼ (p ∧ q) and ∼ p ∨ ∼ q have the
same truth values. Thus ∼ (p ∧ q) and ∼ p ∨ ∼ q are logically
equivalent.
Example 7.1.2 ∼ (p ∧ q) ≡∼ p ∨ ∼ q.
A particular case of this is shown by taking
p = “You are French” and
q = “You are a woman”.
Then
∼ (p ∧ q) = “You are not a French woman” and
∼ p ∨ ∼ q = “Either you are not French or you are not a
woman”.
0N1 Mathematics • Lecture 7 • Propositional Logic • 01 Oct 2018 65
p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r
associative laws (3)
p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
distributive laws
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
(4)
p ∧ p ∨ q) ≡ p
absorbtion laws (5)
p ∨ (p ∧ q) ≡ p
p∧T ≡p p∨T ≡T
(6)
p∨F ≡p p∧F ≡F
∼ (∼ p) ≡ p p∧ ∼ p ≡ F ∼T ≡ F
(7)
p∨ ∼ p ≡ T ∼F ≡ T
∼ (p ∧ q) ≡ ∼ p∨ ∼ q
De Morgan’s laws (8)
∼ (p ∨ q) ≡ ∼ p∧ ∼ q
0N1 Mathematics • Lecture 7 • Propositional Logic • 01 Oct 2018 66
p → q ≡∼ p ∨ q (9)
(p ↔ q) ≡ (p → q) ∧ (q → p) (10)
p ⊕ q ≡ (p ∧ ∼ q) ∨ (∼ p ∧ q) (11)
The negation ∼ (p ⊕ q) is
while
is ∼ (p ∨ q).
7.4 Problems
Problem 7.1 Prove all Fundamental Logical Equivalences (1) –
(11) by computing truth tables.
(i) p ⊕ F ≡ p
(ii) p ⊕ p ≡ F
(iii) p ⊕ q ≡ q ⊕ p (commutativity)
(iv) (p ⊕ q) ⊕ r ≡ p ⊕ (q ⊕ r) (associativity)
(v) p ⊕ ∼ p ≡ T
(vi) p ⊕ T ≡∼ p
7.5 Solutions
7.2(iv). This tautology deserves attention because its proof is long, while the Venn diagram is
highly symmetric.
(p ⊕ q) ⊕ r ≡ ((p ⊕ q)∧ ∼ r) ∨ (∼ (p ⊕ q) ∧ r)
| {z } | {z }
≡ (((p∧ ∼ q) ∨ (∼ p ∧ q))∧ ∼ r) ∨ (∼ ((p∧ ∼ q) ∨ (∼ p ∧ q)) ∧ r)
| {z } | {z }
we simplify this first
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨((∼ (p∧ ∼ q)∧ ∼ (∼ p ∧ q)) ∧ r)
| {z }
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨ (((∼ p∨ ∼∼ q) ∧ (∼∼ p∨ ∼ q)) ∧r)
| {z }
and now we work with that bit
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨ (((∼ p ∨ q) ∧ (p∨ ∼ q)) ∧r)
| {z }
and now we work here
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨ (((∼ p ∧ p) ∨ (∼ p∧ ∼ q) ∨ (q ∧ p) ∨ (q∧ ∼ q)) ∧r)
| {z }
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨ (F ∨ (∼ p∧ ∼ q) ∨ (q ∧ p) ∨ F ) ∧r)
| {z }
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨ ((∼ p∧ ∼ q) ∨ (q ∧ p)) ∧r)
| {z }
≡ [p∧ ∼ q∧ ∼ r] ∨ [∼ p ∧ q∧ ∼ r] ∨ [∼ p∧ ∼ q ∧ r] ∨ [p ∧ q ∧ r]
0N1 Mathematics • Lecture 7 • Propositional Logic • 01 Oct 2018 69
Please observe that we get a disjunction of four conjunctions (enclosed in square brackets) each
of which contains even number (zero or two) of negations. If you do a similar calculation with
p ⊕ (q ⊕ r), you will get the same expression. The Venn diagram for the both (p ⊕ q) ⊕ r and
p ⊕ (q ⊕ r) is very symmetric:
p ∧ ∼ (p → q)?
8 Predicate Logic
8.1 Predicaes
Many mathematical sentences involve “unknowns” or “vari-
ables”.
Example 8.1.2
Example 8.2.1 (i) Let p(x) denote x2 > 5 and let q(x)
denote “x is positive”. Then p(x) ∧ q(x) denotes the
predicate “x2 > 5 and x is positive”.
Example 8.2.2 Let p(x, y) denote x > y and let q(x) denote
x < 2. Find the truth value of the predicate
∼ (p(x, y) ∧ q(x))
when x = 3 and y = 1.
∼ (p(3, 1) ∧ q(3)).
9 Quantifiers
Examples.
Examples.
(∀A)(∀B)p(A, B)
Examples.
Examples.
(∃A)(∃B)p(A, B)
Examples.
which means
“for every x there is y such that x = y”
which is obviously T .
Why are (A) and (B) true?
(A) is (∃x)(∃y)x 6= y is true because you can take x = 1 and
y = 2.
(B) is (∀x)(∃y)x 6= y, or
“for every x there exists y such that x 6= y”
this is true, because you may take for such y the value y = x + 1.
>
> Which one of those statements is true?
> which one is false?
> are they both false or true?
10 Logical equivalences
Statements can be formed from predicates by means of a mix-
ture of connectives and quantifiers.
Examples.
(This is T ).
(ii) Let p(x) denote x > 2 and let q(x) denote x2 > 4. Then
(∀x)(p(x) → q(x))
denotes
(True).
(iii) Let p(x) denote x > 2 and let q(x) denote x < 2. Then
we may form
This is F because
(∃x)p(x) ∧ (∃x)q(x)
is T but
(∃x)(p(x) ∧ q(x))
is F . T → F gives F .
Solution.
by (11)
∼ (∀x)(∀y)(p(x, y) → q(x, y)) ≡ (∃x) ∼ (∀y)(p(x, y) → q(x, y))
by (11)
≡ (∃x)(∃y) ∼ (p(x, y) → q(x, y))
by (9)
≡ (∃x)(∃y) ∼ (∼ p(x, y) ∨ q(x, y))
by (8)
≡ (∃x)(∃y)(∼∼ p(x, y)∧ ∼ q(x, y))
by (7)
≡ ≡ (∃x)(∃y)(p(x, y)∧ ∼ q(x, y))
Perhaps, the very first line in this solution needs a com-
ment: we apply rule
p ↔∼ p
0N1 Mathematics • Lect. 10 • Logical equivalences • 01 Oct 2018 82
(∀x)(∃y)p(x, y) ↔ ∼ (∃y)(∀x)p(x, y)
is true if we take the set of real numbers R for the universal do-
main and and interpret the predicate p(x, y) as “x < y”. So (B)
is not a contradiction.
For example, take for U the set of all people and for p(x, y) the
relation “x and y are friends”; then both
become
“if all people are friends then all people are friends”,
which is obviously true. And notice that the actual meaning of
∗
the predicate p(x, y) does not matter here. *
If you think that “all people are
Similarly, (C) reads in our interpretation as friends” is too optimistic an assertion,
repeat the same argument with the fa-
“if all people are friends then there is someone who mous Latin proverb homo homini lupus
befriends someone”, est, “a man is a wolf to [his fellow] man
[and himself]”. I repeat: the actual
and again the actual meaning of predicate p(x, y) does not matter.
meaning of the predicate p(x, y) does not
Statement (B) is false when we take R for the universal domain mater.
and interpret the predicate p(x, y) as “x < y”.
This is F because
(∃x)p(x) ∧ (∃x)q(x)
is T but
(∃x)(p(x) ∧ q(x))
is F . T → F gives F .
(∃x)(p(x) ∧ q(x))
is F . I can find no value of x for which p(x) i.e. x > 2 is true and
for which q(x) i.e. x < 2 is also true for that same value of x. If
we let x = 3 then x > 2 which is 3 > 2 is T but x < 2 which is
3 < 2 is F .
From the conjunction truth table for ∧ we see that T ∧ F gives
F.
If we let x = 1 then x > 2 which is 1 > 2 is F but x < 2 which is
1 < 2 is T . Again from the truth table for ∧ we see that F ∧ T
gives F .
So far so good but now we come to
(∃x)p(x) ∧ (∃x)q(x)
(∃x)p(x) ∧ (∃x)q(x)
(∃x)p(x) ∧ (∃x)q(x)
is replaced by
(∃x)p(x) ∧ (∃y)q(y)
which says exactly the same.
11 Inequalities
In this and next lectures we shall study, in more detail, prop-
erties of inequality, or order relation, x 6 y on the set R of
real numbers.
x 6 y is read
“x is less or equal y”
or
“x is at most y.”
• x 6 x;
• x = y if and only if x 6 y and y 6 x;
• if x 6 y and y 6 z then x 6 z;
• x 6 y or y 6 x.
• (∀x)(x 6 x);
• (∀x)(∀y)(x = y ↔ (x 6 y ∧ y 6 x));
• (∀x)(∀y)(∀z)((x 6 y ∧ y 6 z) → x 6 z);
• (∀x)(∀y)(x 6 y ∨ y 6 x).
• If x 6 y, we write y ≥ x.
• if x 6 y and x 6= y, we write x < y
• if x ≥ y and x 6= y, we write x > y
0N1 Mathematics • Lect. 11 • Inequalities • 01 Oct 2018 87
[a, b] = { x : a 6 x 6 b }.
and
]a, b] = { x : a < x 6 b }.
[a, +∞[= { x : a 6 x }.
] − ∞, a] = { x : x 6 a }.
] − ∞, a[= { x : x < a }.
and
]a, +∞[= { x : a < x }.
0N1 Maths • Lect. 12 • Operations over inequalities • 01 Oct 2018 88
Addition
Multiplication
Inequality
∼ (a 6 b) ↔ b < a
∼ (a < b) ↔ b 6 a
a 6 b ≡ (a < b) ∨ (a = b),
in particular,
2 6 3 ≡ (2 < 3) ∨ (2 = 3).
a + c 6 b + d.
Proof.
1. a + c 6 b + c [R16]
2. c + b 6 d + b [R16]
3. b + c 6 b + d [R2]
a · c 6 b · d.
Proof.
1. a · c 6 b · c [R17]
2. c · b 6 d · b [R17]
3. b · c 6 b · d [R2]
x2 6 y 2 .
a + c < b + d.
Proof.
3. b + c < b + d [R2]
13 Methods of Proof
∗
* Recommended additional (but not
compulsory) reading: Book of Proof by
Richard Hammack, Chapter 4.
13.1 Statements of the form (∀x)p(x)
To prove (∀x)p(x) is T we must prove that p(x) is T for all
x ∈ U . (The method will vary.)
0 6 x if and only if −x 6 0.
1. 0 6 x (given)
2. 0 + (−x) 6 x + (−x) (R16)
3. −x 6 0 (algebra)
1. −x 6 0 (given)
2. −x + x 6 0 + x (R16)
3. 0 6 x (algebra)
So we proved both
0 ≤ x → −x 6 0
and
−x 6 0 → 0 6 x,
hence proved
0 6 x ↔ −x 6 0
for all real numbers x.
0N1 Mathematics • Lecture 13 • Methods of Proof • 01 Oct 2018 93
(∀x)(x 6 y ↔ −y 6 −x)
1. x 6 y (given)
3. −y 6 −x (algebra)
(∀x)(x 6 y ↔ −x ≤ −y)
and is read as
positive if 0 < a,
negative if a < 0,
non-negative if 0 6 a,
non-positive if a 6 0.
0N1 Mathematics • Lecture 13 • Methods of Proof • 01 Oct 2018 94
∗
Theorem 13.3 For all real numbers x, * In formal language: (∀x)(0 6 x2 ).
0 6 x2 .
∗
Proof. We shall write this proof in a less formal way. * We ar using here “case-by-case” proof,
which we will discuss in more detail in
If x is non-negative, then x2 is non-negative by Corollary Section 14.5.
12.3.
If x is negative, then x 6 0 and 0 6 −x by Theorem 13.1,
so −x is non-negative. Now, by Corollary 12.3 again, 0 6
(−x)2 = x2 .
and therefore
(∀y)((y + 1)2 ≥ 0);
(∀x)(∀y)((x + y)2 ≥ 0);
(∀x)(sin2 x ≥ 0).
is true.
y 2 + 2y + 3 = (y 2 + 2y + 1) + 2
= (y + 1)2 + 2.
0N1 Mathematics • Lecture 13 • Methods of Proof • 01 Oct 2018 95
(y + 1)2 ≥ 0.
Therefore
(y + 1)2 + 2 ≥ 0 + 2 = 2 > 0.
Hence
y 2 + 2y + 3 = (y + 1)2 + 2 > 0,
and the statement is true.
is true.
(x − y)2 > 0;
x2 − 2xy + y 2 > 0.
x2 + y 2 > 2xy.
13.4 Counterexamples
∗
To prove (∀x)p(x) is F we must show that there exists at * We also say: “disprove” (∀x)p(x);
least one x ∈ U such that p(x) is F for this x. Such a value of “refute” (∀x)p(x).
x is called a counterexample to the statement (∀x)p(x).
is false.
is false.
(∀x)(p(x) → q(x)).
“If A ⊆ B then A ∪ B = B”
∗
is shorthand for * shorthand = abbreviation
written as
(∀A)(∀B)(p(A, B) → q(A, B))
where p(A, B) denotes A ⊆ B and q(A, B) denotes A∪B = B.
x2 − 3x + 2 = (x − 1)(x − 2).
is false.
14.1 Contrapositive
∗
* Recommended reading: Book of Proof
∗ by Richard Hammack, Chapter 5.
By the method of truth tables we can prove
* Do that as an exercise!
p → q ≡∼ q →∼ p.
p→q ≡ ∼p ∨ q
≡ q∨ ∼ p
≡ ∼ (∼ q)∨ ∼ p
≡ ∼ q →∼ p.
(∀x)(p(x) → q(x)).
The contrapositive is
x2 = (2u)2 = 22 · u2 = 2 · (2u2 )
is also even.
14.2 Converse
A conditional statement q → p is called the converse of
p → q.
Similarly,
(∀x)(q(x) → p(x))
is called the converse of
(∀x)(p(x) → q(x)).
“If you did not pass the exam you did not get full
marks”.
The converse q → p is
Theorem 14.3 If
06u6v
then √ √
u6 v.
0N1 Mathematics • Lecture 14 • Methods of Proof • 01 Oct 2018 102
p ↔ q ≡ (p → q) ∧ (q → p).
(∀x)(p(x) → q(x)) is F
or
(∀x)(q(x) → p(x)) is F .
(∀x ∈ R)(x ≥ 0 ↔ x3 ≥ 0)
((P → Q) ∧ (∼ P → Q)) → Q
0N1 Mathematics • Lecture 14 • Methods of Proof • 01 Oct 2018 103
∗
More generally, we have a tautology * Check it!
((P 0 ∨ P 00 ) ∧ (P 0 → Q) ∧ (P 00 → Q)) → Q
if x 6= 0 then x2 > 0.
|x + y| 6 |x| + |y|.
Answer: (A).
Solution: Let p means “cat is black”, q means “kittens are
black”. Then the statements can be written as
(A) p → q;
(B) ∼ q →∼ p;
(C) ∼ p →∼ q.
By definition, (B) and (C) are converse to each other.
0N1 Mathematics • Lecture 15 • By contradiction • 01 Oct 2018 105
15 Proof by contradiction
Suppose we want to prove some statement q. Assume that
q is false, i.e. assume ∼ q is true. Try to deduce from ∼ q
a statement which we know is definitely false. But a true
statement cannot imply a false one. Hence ∼ q must be
false, i.e. q must be true.
The same can be formulated differently: notice that
(∼ q → F ) → q
∗
is a tautology Therefore if we prove * I leave its proof to you as an exercise.
∼ q → F,
q will follow.
∼ P (x) → F
0N1 Mathematics • Lecture 15 • By contradiction • 01 Oct 2018 106
is true.
So we assume that ∼ P (x) is T , that is,
1
x+ <2
x
is T . Since x is positive, we can multiply the both sides of
this inequality by x and get
x2 + 1 < 2x,
x2 − 2x + 1 < 0
and then as
(x − 1)2 < 0.
But squares cannot be negative – a contradiction. Hence our
assumption that
1
x+ <2
x
was false, which means that
1
x+ >2
x
for all positive real numbers x.
√
15.2 Three proofs of irrationality of 2
Recall that a real number x is rational if it can be written as
a ratio of two integers
m
x=
n
with n 6= 0, and that the set of all rational numbers is de-
noted by Q. Real numbers which are not rational are called
irrational.
0N1 Mathematics • Lecture 15 • By contradiction • 01 Oct 2018 107
√
Here, we will consider three proofs of irrationality of 2,
a classical mathematical theorem, often seen as one of the
most important results in the history of mathematics. This
will help us to discuss general approaches to proofs by con-
tradiction, see Section 15.3 for more detail.
√
Theorem 15.2 2 is irrational.
√
Proof 1. Assume the contrary, that 2 is rational. It means
that it can be written as
√ a
2=
b
√
where a and b are integers. Since 2 is positive, we can also
assume that a and b are positive. By squaring both parts of
the equation, we get
a2
2= 2
b
and
2b2 = a2 .
Let us treat numbers a2 and b2 as areas of two squares in the
plane with integer sides respectively a and b, the first of which
has twice the area of the second. Now place two copies of the
∗
smaller square in the larger as shown in diagram below. * By Vaughan Pratt – Own work, CC
BY-SA 4.0, bit.ly/2hLZ99d
0N1 Mathematics • Lecture 15 • By contradiction • 01 Oct 2018 108
√
Proof 2. Assume the contrary, that 2 is rational. It means
that it can be written as
√ a
2=
b
√
where a and b are integers. Since 2 is positive,
√ we can also
assume that a and b are positive. Perhaps 2 can be written
as a fraction of positive integers in many different ways; take
among them the one with the smallest positive numerator a.
Now look at the fraction
2b − a
a−b
and rearrange it first by dividing the numerator and denomi-
a √
nator by b and then simplifying by using the fact that = 2:
b
2b − a 2− a
= a b
a−b b
−1
√
2− 2
= √
2−1
√ √ √
2· 2− 2
= √
2−1
√ √
2 · ( 2 − 1)
= √
2−1
√
= 2
I leave it to the readers as an exercise to check that
2b − a < a, 2b − a > 0, and a − b > 0.
0N1 Mathematics • Lecture 15 • By contradiction • 01 Oct 2018 109
√
Proof 3. Assume the contrary, that 2 is rational. It means
that it can be written as
√ a
2=
b
√
where a and b are integers. Since 2 is positive, we can also
assume that a and b are positive. Also, we can assume that
a and b are not both even – otherwise we can cancel factor 2
a
from the numerator and denominator of and repeat it until
b
one of a or b becomes odd.
As we have seen in Proof 1, we have a2 = 2b2 . Hence a2 is
even. I leave to you as an exercise to prove that this implies
∗
that a is even and can be written as a = 2a1 . But now * Hint: use proof by contrapositive
a2 = (2a1 )2 = 4a21 ,
and
4a21 = 2b2 .
Cancelling factor 2 from the both sidess of this equality, we
have
2a21 = b2 ,
hence b2 is even, hence b is even. So both a and b are even
– a contradiction, because we made sure that a is odd or b is
odd.
For us, all ‘Imaginary Classes’ are just the empty sets, and,
for us, all empty sets are equal; for Lewis Carroll (aka Charles
Dodgson), the class of real roots of the equation x2 = −1 and
the class of flying pigs would be different.
length such that its area is twice the area of another square
with the side of integer length. In Proofs 2 and 3 we√ anal-
ysed non-existent fractions of integers which equal 2, and
manipulated them, replacing non-existent fractions by other
fractions, which were also non-existent, but had smaller de-
nominators.
It is like studying flying pigs, replacing, in the process,
one flying pig by another one – of smaller weight.
Proofs from contradiction are Wonderland of mathemat-
ics; doing them, you have to be prepared to meet creatures
no less strange than Cheshire Cat or Mad Hatter.
despite the fact that the two numbers have no relation to each
other whatsoever.
And notice that no-one would claim that arithmetic was
absurd or counter-intuitive; over the history, people got used,
and stopped paying attention, to the level of mathematical ab-
straction present in ordinary prime school arithmetic. Propo-
sitional logic (manipulation with truth values T and F ) is
arithmetic of formal logical thinking. It is much younger than
arithmetic of numbers, but we have to get used to it, too, be-
cause of its tremendous importance for all things electronic,
IT, computing in our lives.
0N1 Mathematics • Lecture 15 • By contradiction • 01 Oct 2018 114
2m = 3n
√
Proof We now definitely know that 2 is irrational, so√con-
√ √ 2
sider the pair of numbers r = s = 2. If rs = 2 is
rational, we are done.
√ √2
But if 2 is irrational, take
√
√ 2 √
r= 2 and s = 2,
which is rational.
As simple as that.
15.7 Problems
Problem 15.1 Fill in details in Proof 2 of Theorem 15.2: prove
that, in the notation of the Proof 2,
(p → q) ∨ (q → p).
15.9 Solutions
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 120
c2 = c · c < ab,
a contradiction.
Similarly, if b 6 c the a < c
ab < c2 = c · c,
again a contradiction.
pU + qV = r(U + V ).
If q 6 r, then
a contradiction.
If r 6 p, then
also a contradiction.
Hence p 6 r < q.
Solution.
£40 + £60
= £50.
2
This is an example of an arithmetic mean. For real num-
bers a and b, their arithmetic mean is
a+b
.
2
a1 , a2 , . . . , an
is
a1 + a2 + · · · + an
.
n
Solution. It took
120
= 3 hours
40
for a truck to get from A to B and
120
= 2 hours
60
to get back. Therefore the average speed on the round trip of
240 miles was
240 miles
= 48m/h
5 hours
This result shows that speeds are averaging not by the law
of arithmetic mean! So let us look at this example in more
detail.
Solution. It took
d
hours
u
for a truck to get from A to B and
d
hours
v
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 124
k · k · R = 36R,
k 2 = 36
and √
k= 36 = 6.
Observe that the result is different from the arithmetic mean
of 4 and 9 (which equals 6 21 ). To see why this is happening we
need to take a look at the same problem in “general notation”:
k · k · R = a · b · R,
k 2 = ab
and √
k= ab.
√
For positive real numbers a and b, the quantity ab is called
the geometric mean of a and b.
More generally, the geometric mean of n positive numbers
a1 , a2 , . . . , an
is
√
n
a1 a2 · · · an .
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 126
Simplify:
a2 − 2ab + b2 < 0
and rearrange:
(a − b)2 < 0.
This is a contradiction because squares are non-negative by
Theorem 13.3.
We still have to do the “in addition” part of the theorem
and prove the strict inequality
4ab 6 (a + b)2 ;
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 127
4ab = (a + b)2 ,
4ab = a2 + 2ab + b2 ,
0 = a2 − 2ab + b2 ,
0 = (a − b)2 ,
and we get a = b in contradiction to our assumption a 6= b.
4ab 6 (a + b)2 .
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 128
(A) Proof of
2ab √
6 ab.
a+b
We start with
4ab 6 (a + b)2 .
divide the both sides of the inequality by the positive number
(a + b)2 :
4ab
6 1,
(a + b)2
then multiply the both sides by ab > 0:
4a2 b2
6 ab,
(a + b)2
and extract the square roots from the both (positive!) sides
of the inequality (Theorem 14.3 on Page 101):
2ab √
6 ab.
a+b
(B) Proof of
√ a+b
ab 6
2
is even simpler. Again, we start with Theorem 16.1
4ab 6 (a + b)2
and, using the same Theorem 13.3, take the square roots of
both parts: √
2 ab 6 a + b,
and divide by 2:
√ a+b
ab 6 .
2
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 129
∗
(C) An alternative proof of * Not compulsory.
√ a+b
ab 6
2
is one of many example of inequalities having a geometric interpretation.
Assume
√ that
√ a > b. Look at these two pictures, both involving a
rectangle a × b:
If you want the mean speed of a car that goes the same
distance (not time! – for example, doing several runs on the
same circuit) at each of several speeds v1 , . . . , vn , then the
net effect of all the driving (the total time taken) is found by
dividing the common distance l by each speed vi to get the
time for that leg of the trip, and then adding up those times:
l l
+ ··· + .
v1 vn
The constant speed v that would take the same total time for
the whole trip of total length nl is the harmonic mean of the
speeds.
nl l l
= + ··· + ,
v v1 vn
or, after simplification,
n
v= 1 1 ,
v1
+ ··· + vn
or
l l
1 v1
+ ··· + vn
= :
v n
∗
the reciprocal of the mean speed is the arithmetic mean of * The reciprocal of a positive real num-
reciprocals of speeds on each leg. ber v is v1 .
l = v1 T + · · · ln T,
Problem 16.2 The front tyres of a car get worn out after 15, 000
miles, the back ones after 25, 000 miles. When they have to be
swapped to achieve the longest possible run?
then
a1 + a2 + · · · + a9
< 3.
a3 + a6 + a9
if a, b, c, d > 0 and
a c
<
b d
then
a a+c c
< <
b b+d d
Prove it.
The expression
a+c
b+d
a c
is called the mediant of and ; it makes sense and is used
b d
only for positive numbers a, b, c, d.
16.2 Answer: After 9, 375 miles – it will ensure ensure the run of 18, 750 miles, the harmonic
mean of 15, 000 and 25, 000.
Hint 4: x = 24.
Solution 2. And here is how the same problem would be solved by the “steps” or “questions”
method as it was taught in schools half a century ago, in 1950–60s.
Question 1: How many points in total did Gulnar get in 6 tests? Answer: 6 × 87 = 522.
Question 2: How many points in total does Gulnar need to get in 7 tests? Answer: 7 × 78 = 546.
Question 3: How many points does Gulnar need to get in the 7th test? Answer: 546 − 522 = 24.
Solution 3. There is a quicker solution which requires a bit better understanding of averages.3
Question 1: How many “extra” – that is, above the requirement – points did Gulnar get, on
average, in 6 tests? Answer: 87 − 78 = 9.
Question 2: How many “extra” points does Gulnar have? Answer: 9 × 6 = 54.
Question 3: How many points does Gulnar need to get in the last test? Answer: 78 − 54 = 24.
16.8 To increase the mean mark in both groups, it is necessary to move from Group A to Group
B students with marks which are higher than the mean mark in Group B but lower than the mean
mark in Group A; these students are Fryer and Marsh. If they are moved from from Group A to
Group B, the mean mark in Group A becomes
44.2 × 10 − 41 − 44
= 44.625 > 44.4,
8
and in Group B
38, 8 × 10 + 41 + 44 473
= = 39.4166 · · · > 39.2,
12 12
that is, higher than the last year mean marks.
16.9 They are already in the increasing order:
2 22 222
222 < 22 <2 .
Indeed 2222 < 10002 contains at most 9 digits, while 2222 > 1022 contains at least 22 digits.
Similarly, 2222 < 10022 contains at most 44 digits, while
2
Khan Academy. http://www.khanacademy.org/about. Last Accessed 14 Apr 2011.
3
Proposed by John Baldwin.
0N1 Mathematics • Lecture 16 • Some inequalities • 01 Oct 2018 139
contains at least 55 digits. As you can see, the problem can me solved by mental arithmetic. And
where would you place 22222 ?
16.10
16.11
16.12
16.13 Substitute x = u2 .
16.14
1 + 1 >
16.15 Solution 1. By Problem 16.14, x 4 , which is equivalent to x+y > 4 . But
y x+y xy x+y
since xy > x + y, we have 1 > x+y
xy
> 4 , hence x + y > 4.
x+y
To prove ab
< a+c
b+d
, we can replace it by an equivalent inequality a(b + d) < b(a + c) (that
is, the two inequalities are true or false simultaneously), which is equivalent to ab + ad < ab + bc,
which is equivalent to the one we already know: ad < bc.
Example 17.1.1
• The inequality
x+16x−1
has no solution.
0N1 Maths • Lect. 17 • Linear Inequalities • 01 Oct 2018 141
x − 1 6 x + 1.
• The inequality
2x − 1 6 x + 1
can be rearranged, by adding −x to the both sides, as
x−161
x 6 2.
{ x : x 6 2 } = ] −∞, 2].
x − 1 6 2x + 1
f (x) = x2 + 4x + 3
and
g(x) = x2 + 4x + 5.
Obviously,
f (x) = x2 + 4x + 3 = x2 + 4x + 4 − 1 = (x + 2)2 − 1
and
g(x) = (x + 2)2 + 1
x2 + 4x + 5 6 0
and
x2 + 4x + 5 < 0
have no solution, while
x2 + 4x + 5 > 0
and
x2 + 4x + 5 ≥ 0
have the whole real line R as solution sets.
The behaviour of the quadratic function
f (x) = (x + 2)2 − 1
u2 − v 2 = (u + v)(u − v)
0N1 Maths • Lect. 17 • Linear Inequalities • 01 Oct 2018 144
and factorise
f (x) = (x + 2)2 − 1
= [(x + 2) + 1] · [(x + 2) − 1]
= (x + 3)(x + 1).
Hence
b = 2e and c = e2 + d.
0N1 Maths • Lect. 17 • Linear Inequalities • 01 Oct 2018 145
b
Substituting e = 2
into c = e2 + d, we see that
b b2
e= and d = c − .
2 4
Hence
2
b2
2 b
x + bx + c = x+ + c−
2 4
which is traditionally written as
2 2
b b
= x+ − −c
2 4
b2
−c>0
4
b2
−c=0
4
b2
−c<0
4
In the literature, usually a slightly different form of this ex-
pression is used, which, however, has the same sign:
2
2 b
∆ = b − 4c = 4 · −c ;
4
y = x2 + bx + c.
0N1 Maths • Lect. 18 • Inequalities in two variables • 01 Oct 2018146
x=C
(vertical lines),
y=C
(horizontal lines),
y = Cx
(lines passing through the origin O(0, 0)), or
x y
+ =1
A B
(the so-called intercept equations). In the latter case, the
points (A, 0) and (0, B) are intersection points of the line
with the x-axis and y-axis, respectively, (and are called in-
tercepts), and the line given by an intercept equation is easy
to plot.
Intercepts
2x + 3y = 6
0N1 Maths • Lect. 18 • Inequalities in two variables • 01 Oct 2018147
ax + by > c
ax + by ≥ c
ax + by 6 c
ax + by < c
where x and y are unknowns (variables) and a, b, c are real
coefficients.
Notice that linear inequalities in single variable are special
cases of linear inequalities in two variables: if b = 0, we have
ax > c, ax ≥ c, ax 6 c, ax < c.
The line
ax + by = c
divides the plane in two halfplanes: the one is the solution
set of the inequality
ax + by > c
0N1 Maths • Lect. 18 • Inequalities in two variables • 01 Oct 2018148
x>a
x<a
y>a
y<a
y−x>0
0N1 Maths • Lect. 18 • Inequalities in two variables • 01 Oct 2018149
x−y >0
x y
+ >1
a b
x y
+ <1
a b
ax + by > c
dx + ey > f
is the inter section of two halfplanes, the solution set of the
inequality
ax + by > c
and of the inequality
dx + ey > f
0N1 Maths • Lect. 18 • Inequalities in two variables • 01 Oct 2018150
ax + by + c = 0.
Non-strict inequality
ax + by > c
or
ax + by 6 c;
correspond to closed halfplanes which contain the border line
ax + by + c = 0.
x > 1
x+y > 2
x2 + y 2 6 R 2
x ≶ 1
x+y ≶ 4
x + 2y ≶ 4
where, in each case, ≶ stands for one of the symbols < and
>.
Determine which of the signs < or > have to be put in the
inequalities.
0N1 Maths • Lect. 19 • Interval arithmetic • 01 Oct 2018 153
A + B = { a + b : a ∈ A, b ∈ B }
and
A × B = { ab : a ∈ A, b ∈ B }.
Notice that
∅+B =∅ and ∅ × B = ∅.
[a, b] + [c, d] = [a + c, b + d or ∅
]a, b[ + [c, d] = ]a + c, b + d[ or ∅.
19.2 Convexity
A set S in the plane is called convex if, with any two points
A, B ∈ S, it contains the segment [A, B] connecting the
points.
19.4 Solutions
19.1 Hint: Remember that [x, y] = ∅ if x > y. Pay attention to zeroes and signs of x and y.
Answers:
1. [x, y] = [0, 2]
2. [x, y] = [0, 0]
3. [x, y] = [0, 0] or ∅
5. [x, y] = [0, 1]
0N1 Maths • Lect. 20 • Quadratic inequalities • 01 Oct 2018 156
x > 0
y > 0
ax + by 6 M
y 6 V
T (x, y) = cx + dy
x > 0
y > 0
2x + y 6 6
y 6 4
T (x, y) = cx + dy
x > 0
y > 0
ax + by 6 M
px + qy 6 E
y 6 V
x > 0
y > 0
x + 2y 6 10 cost restriction
3x + 2y 6 18 pollution limit
y 6 4 liquid fuel storage restriction
0N1 Maths • Lect. 21 • Mathematical Induction • 01 Oct 2018 158
21 Principle of
Mathematical Induction
(1) p1 is true.
p1 → p2 , p2 → p3 , p3 → p4 , p4 → p5 . . .
21.2 Examples
Example 21.2.1 Prove, by induction on n, that
1 + 3 + 5 + · · · + (2n − 1) = n2
p1 is 1 = 12 T
p2 is 1 + 3 = 22 T
.. ..
. .
pk is 1 + 3 + · · · + (2k − 1) = k 2
pk+1 is 1 + 3 + · · · + (2k − 1) + (2k + 1) = (k + 1)2
1 + 3 + · · · + (2k − 1) = k 2 .
22 Mathematical Induction:
Examples with briefer solutions
Solution.
Let pn be the statement “1 + 2 + · · · + n = 21 n(n + 1)”.
1
p1 is the statement “1 = 2
× 1 × 2”. This is clearly true.
Suppose pn is true for n = k, i.e. 1+2+· · ·+k = 12 k(k+1).
Then
1 + 2 + · · · + k + (k + 1) = (1 + 2 + · · · + k) + (k + 1)
1
= k(k + 1) + (k + 1)
2
1 1
= k(k + 1) + 2(k + 1)
2 2
1
= (k + 1)(k + 2).
2
Thus
1
1 + 2 + · · · + k + (k + 1) = (k + 1)((k + 1) + 1).
2
S = 1 + 2 + 3 + ··· + 99 + 100
S = 100 + 99 + 98 + · · · + 2 + 1
2S = 101 + 101 + 101 + · · · + 101 + 101
and therefore
2S = 100 × 101
and
S = 50 × 101 = 5050.
Of course, we can repeat the same for arbitrary positive inte-
ger n:
S= 1 + 2 + 3 + ··· + n−1 + n
S = n + n − 1 + n − 2 + ··· + 2 + 1
1 < 21
is obviously true.
k < 2k
1 < 2k .
k + 1 < 2k + 2k = 2k+1 .
1+x>1+x
is true.
0N1 Maths • Lect. 22 • Mathematical Induction 166
(1 + x)k > 1 + nx
But
(1 + x)k )(1 + x) = (1 + x)k+1 ,
while
(1 + nx)(1 + x) = 1 + x + nx + nx2
= [1 + (n + 1)x] + nx2
> 1 + (n + 1)x (since nx2 > 0).
{ an }n∈N = { a1 , a2 , a3 , . . . }
a2 − a1 , a3 − a2 , a4 − a3 , . . . , ak+1 − ak , . . .
∆a1 = a2 − a1 = 21 − 12 = 3
∆a2 = a3 − a2 = 31 − 22 = 5
∆a3 = a4 − a3 = 41 − 32 = 7
..
.
{ bn }n∈N = { b1 , b2 , b3 , . . . }
ak < bk
and
∆an < ∆bn
for all n > k. Then. for al n > k,
an < bn .
22.5 Problems
Problem 22.1 Prove that, for all natural numbers n,
1 × 1! + 2 × 2! + · · · + n × n! = (n + 1)! − 1.
11 · 22 · 33 · · · nn < nn(n+1)/2 .
3n > n · 2n .
that is,
n + (n + 1) + · · · + (2n − 1) + 2n = 3 · (1 + 2 + · · · + n).
0N1 Maths • Lect. 24 • Review of the course • 01 Oct 2018 169
https://video.manchester.ac.uk/lectures
0N1 Mathematics • Appendices • 01 Oct 2018 170
A ∩ (B ∩ C) = (A ∩ B) ∩ C
associative laws
A ∪ (B ∪ C) = (A ∪ B) ∪ C
(3)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
distributive laws
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
(4)
A ∩ (A ∪ B) = A
absorbtion laws (5)
A ∪ (A ∩ B) = A
A∩U =A A∪U =U
(6)
A∪∅=A A∩∅=∅
(A0 )0 = A A ∩ A0 = ∅ U0 = ∅
(7)
A ∪ A0 = U ∅0 = U
(A ∩ B)0 = A0 ∪ B 0
De Morgan’s laws (8)
(A ∪ B)0 = A0 ∩ B 0
Additional operations
A r B = A ∩ B0 A4B = (A ∩ B 0 ) ∪ (B ∩ A0 )
0N1 Mathematics • Appendices • 01 Oct 2018 171
p ∧ (q ∧ r) ≡ (p ∧ q) ∧ r
associative laws (3)
p ∨ (q ∨ r) ≡ (p ∨ q) ∨ r
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
distributive laws
p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
(4)
p ∧ (p ∨ q) ≡ p
absorbtion laws (5)
p ∨ (p ∧ q) ≡ p
p∧T ≡p p∨T ≡T
(6)
p∨F ≡p p∧F ≡F
∼ (∼ p) ≡ p p∧ ∼ p ≡ F ∼T ≡ F
(7)
p∨ ∼ p ≡ T ∼F ≡ T
∼ (p ∧ q) ≡ ∼ p∨ ∼ q
De Morgan’s laws (8)
∼ (p ∨ q) ≡ ∼ p∧ ∼ q
p → q ≡∼ p ∨ q (9)
(p ↔ q) ≡ (p → q) ∧ (q → p) (10)
p ⊕ q ≡ (p ∧ ∼ q) ∨ (∼ p ∧ q) (11)
0N1 Mathematics • Appendices • 01 Oct 2018 172
General arrangements
• Each test counts costs 4 points, 10 best tests make up
to 4 × 10 = 40% of the course mark (another 60% are
∗
from the examination). * Rules could change in later years,
check the current arrangements in the
∗
• Time allowed: 10 minutes from 11 : 40 to 11 : 50. Introduction, page 11.
* Time is for 2015
This includes all the preparatory manipulations: clear-
ing desks from books and papers, distribution of test
papers, collection of scripts, etc. The actual writing
time is about 7 minutes.
• Marking scheme:
– AB = 2 marks
– A = 1 mark
– B = 1 mark
– C, AC, BC, ABC are equal 0 marks.
Answers
Test 01: 1BC, 2A
Test 02: 1AC, 2BC
Test 03: 1BC, 2BC
0N1 Mathematics • Appendices • 01 Oct 2018 174
(A) {0}
(B) {1, 2, 3}
(C) ∅
(D) None of the above.
(A) (X ∪ Y ) ∩ (X ∪ Y )
0 0
(B) (X ∩ Y ) ∪ (X ∩ Y )
0 0
(C) (X ∪ Y ) ∩ (X ∩ Y ) 0
2. Some of the sets listed below are equal to other sets on the
list. Which ones?
(A) ∼ q → (p ∧ q)
(B) (q → p) ∨ q
(C) (q ∧ q) → p
(D) None of the above
2. Which of the following sets is finite?
(A) (p → q) ∧ (q → p)
(B) (p → q) ∨ (q → p)
(C) (p → p) ∧ (q → q)
(D) None of the above
2. Which of the following statements is a contradiction?
(A) p → ∼ p
(B) p ∨ ∼ p
(C) p ∧ ∼ p
(D) None of the above
5. Friday 6 November 2015
Tick the correct box (or boxes):
(A) (∃x)p(x, 0)
(B) (∀x)(∀y)(p(x, y) ∨ p(y, x))
(C) (∃x)(∃y)(p(x, y) ∧ p(y, x))
(D) None of the above
(A) (∀x)(∀y)(x + y = 0 → x = y )
2 2
3x + 2 ≥ 2x + 3
2x + 2 ≥ 3x + 1
(A) { 1 }
(B) ]− 1, 1[
(C) [−1, 1]
(D) None of the above.
0N1 Mathematics • Appendices • 01 Oct 2018 179
(A) A(1, 2)
(B) B(−2, 4)
(C) C(−2, 2)
(D) D(−2, 3)
(A) x 6 2, y ≥ 2, x ≥ y
(B) x 6 1, y ≥ 2, x ≥ y
(C) x 6 2, y ≥ 1, x ≥ y
(D) None of the above.
x + 2y = 4, x = 2y, x = 4?
(A) A(4, 1)
(B) B(1, 2)
(C) C(3, 1)
(D) None of the above.
y > x2 + 2x + 2
x−2 > y
(A) infinite;
(B) finite;
(C) none of the above?