Set Theory
Set Theory
Set Theory
0N1 (MATH19861)
Mathematics for Foundation Year
http://www.maths.manchester.ac.uk/
~
avb/
math19861.html
Lecture Notes
0N1 Mathematics Arrangements for the Course 2
Arrangements for the Course
Aims of 0N1
A basic course in pure mathematical topics for members
of the foundation year.
Key ingredient: language of Mathematics, including spe-
cic use of English in Mathematics..
Brief description
13 lectures: Sets. Denition, subsets, simple examples, union,
intersection and complement. De Morgans Laws. Ele-
mentary Logic; universal and existential qualiers. Proof
by contradiction.
5 lectures: Polynomials. Equations, relations between roots
and coecients. Remainder Theorem. Repeated Fac-
tors.
2 lectures: Proof by induction.
2 review lectures at the end of the course, Week 12.
Textbooks:
AC Croft and R Davison, Foundation Maths, Prentice
Hall
Bostock, Chandler and Rourke, Further Pure Mathe-
matics, Stanley Thornes
S Lipschitz, Set Theory and Related Topics, McGraw-
Hill
Richard Hammack, Book of Proof, http://www.people.
vcu.edu/
~
rhammack/BookOfProof/index.html
Detailed lecture notes will be provided as course progresses.
Course Webpage:
http://http://www.maths.manchester.ac.uk/
~
avb/math19861.
html
0N1 Mathematics Arrangements for the Course 3
Arrangements
comments
* Typographical terms:
{ opening curly bracket
} closing curly bracket
We usually use capital letters A, B, C, etc., to denote sets.
The notation x A means x is an element of A.
But
* Alternatively we may say x belongs
to A or A contains x.
x A means x is not an element of A.
Example. 1 {1, 3, 6}, 3 {1, 3, 6}, 6 {1, 3, 6} but 2
{1, 3, 6}.
A set can also be specied in predicate form
if they have exactly the same ele- * We also say: two sets coincide.
ments. Thus
{1, 2, 3, 4} = {x : x is a possitive integer less than 5}.
In list form the same set is denoted whatever order the el-
ements are listed and however many times each element is
listed. Thus
{2, 3, 5} = {5, 2, 3} = {5, 2, 3, 2, 2, 3}.
0N1 Mathematics Lecture 1 8
Note that {5, 2, 3, 2, 2, 3} is a set with only 3 elements: 2, 3
and 5.
Example.
{x : x is a letter in the word GOOD } = {D, G, O}.
The set {2} is regarded as being dierent from the number
2. A set of numbers is not a number. {2} is a set with only one
element which happens to be the number 2. But a set is not
the same as the object it contains: {2} = 2. The statement
2 {2} is correct. The statement {2} {2} is wrong.
The set
{x : x is an integer such that x
2
= 1}
has no elements. This is called an empty set
* Also: A is contained in B,
A is included in B.
Questions from students
A B
Figure 1: Diagram of A B or B A
This is a simple example of Venn diagram for showing
relationships between sets.
Some basic facts:
A A for every set A. Every set is a subset of itself.
The empty set is a subset of every set: A for any
set A.
If A B and B C then A C.
Let A = {a
1
, a
2
, . . . , a
n
}. How many are there ways
* The word proof indicates that an ar-
gument establishing a theorem or other
statement will follow.
to choose a subset in A? When choosing a subset, we have
0N1 Mathematics Lecture 2 11
to decide, for each element, whether we include this elements
into our subset or not. We have two choices for the rst
element: include and do not include, two choices for the
second element, etc., and nally two choices for the n
th
ele-
ment:
2 2 2
choices overall.
If A B and A = B we call A a proper subset of B and
write A B to denote this.
* If A B, we also write B A.
Example. Let A = {1, 3}, B = {3, 1}, C = {1, 3, 4}. Then
A = B true
A B false
C A false
A B true
A C true
C C false
B A true
A C true
(Compare with inequalities for numbers: 2 2 true, 1 2
true, 2 < 2 false, 1 < 2 true.)
A set with n elements contains 2
n
1 proper subsets.
Finite and Innite Sets
A nite set is a set containing only nite number of elements.
For example, {1, 2, 3} is nite. If A is a nite set, we denote by
|A| the number of elements in A. For example, |{1, 2, 3}| = 3
and || = 0.
A set with innitely many elements is called an innite set.
The set of all positive integers (also called natural numbers)
N = {1, 2, 3, . . . , }
0N1 Mathematics Lecture 2 12
is innite; the dots indicate that the sequence 1, 2, 3 is to be
continued indenitely.
2 R and
R),
C the set of all complex numbers (that is, numbers of the
form x + yi, where x and y are real and i is a square
root of 1, i
2
= 1).
* The letters
ABCDEFGHIJKLMOPRSTUVWXYZ
are called blackboard bold and where
invented by mathematicians for writing
on a blackboard instead of bold letters
ABC. . . which are dicult to write
with chalk.
They are all innite sets. We have the following inclusions:
N N
0
Z Q R C.
Questions from students
; {a}, {a, b}, {a, c}, {a, b, c}; {b}, {b, c}; {c}. * {} is the empty set
Returning to the original question,
List the 8 subsets of {a, b, c, d} containing {d},
we have to add the element d to each of the sets:
{d}; {a, d}, {a, b, d}, {a, c, d}, {a, b, c, d}; {b, d}, {b, c, d};
{c, d}.
0N1 Mathematics Lecture 3 14
Lecture 3
Operations on Sets
B
A
A B A B
Figure 2: Sets A and B and their intersection A B and union
A B.
Suppose A and B are sets. Then AB 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.
A
_
B
U
Figure 3: The universal set U as a background set for sets A
and B.
All the sets under consideration are subsets of U and so
can be drawn inside the frame.
Let A be a set and U be the universal set. Then A
(called
the complement
is
sometimes denoted A and pronounced
not A, or A (pronounced A bar), or
A
c
(A compliment)
the set of all elements in U which do not belong to A:
A
= { x : x U and x A}.
0N1 Mathematics Lecture 3 16
U
A
A
Figure 4: The shaded area is the complement A
of the set A.
Example. Let U = {a, b, c, d, e, f}, A = {a, c}, B = {b, c, f},
C = {b, d, e, f}. Then
B C = {b, c, d, e, f},
A (B C) = {c},
A
= {b, d, e, f}
= C,
A
(B C) = C (B C)
= {b, d, e, f}
= C.
It will be convenient for us to modify predicate notation:
instead of writing
{ x : x U and x satises . . . }
we shall write
{ x U : x satises . . . }
Example.
{ x Z : x
2
= 4 } = { 2, 2 }.
Boolean Algebra
When dealing with sets, we have operations , and
. The
manipulation of expressions involving these symbols is called
0N1 Mathematics Lecture 3 17
Boolean algebra (after George Boole, 18151864). The iden-
tities of Boolean algebra
= A A A
= U
=
A A
= U
= U
(7)
(A B)
= A
(A B)
= A
_
De Morgans laws (8)
We shall prove these laws in the next lecture. Meanwhile,
notice similarities and dierences with laws of usual arith-
metic. For example, multiplication is distributive with respect
to addition:
a (b + c) = (a b) + (a c),
0N1 Mathematics Lecture 3 18
but addition is not distributive with respect to multiplication:
it is not true that
a + (b c) = (a + b) (a + c).
Notice also that the idempotent laws are not so alien to
arithmetic as one may think: they hold for zero,
0 + 0 = 0, 0 0 = 0.
Sample Test Questions
, A B
, A
.
Set A
.
3. > Dear Sir,
> Can you please help me with the following question?
[6 marks] Let
A = {x R : x
4
+ x > 2 }
B = {x R : x
3
< 1}
and
C = {x R : x
8
> 1}.
(i) Prove that A B C.
> Can you say that A and B are disjoint as they do not meet?
> And therefore the Empty Set is a subset of C
Answer: It would be a valid argument if A and B were indeed
disjoint. But they are not; one can easily see that 2 belongs to
both A and B.
0N1 Mathematics Lecture 3 21
A correct solution: Assume x A B. Then x A and x B.
Since x A, it satises
x
4
+ x > 2.
Since x B, it satises
x
3
< 1
which implies x < 1 which is the same as 1 > x. Adding the last
inequality to the inequality x
4
+ x > 2, one gets
x
4
+ x + 1 > 2 + x
which simplies as
x
4
> 1.
Both parts of this inequality are positive, therefore we can square
it and get
x
8
> 1.
But this means that x C. Hence A B C.
4.
> Say for eg you have a situation whereby you have
>
> A U AU 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 AU 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
AA
B = (AA
)B = U B = U,
I set it in very large type to emphasise the dierence between
symbol and letter U. The answer is U, the universal set.
5.
> Was just wandering about a note I took in your lecture that doesnt
> 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
0N1 Mathematics Lecture 3 22
Answer: Of course, you are right: if A = Z and B = R then
A B = B and A B = A.
I believe I gave in my lecture both equalities and also a general
statement:
If A B, then A B = B and A B = A.
0N1 Mathematics Lecture 4 Set Theory 23
Lecture 4
Set theory
The identities in (1)-(7) of the previous lecture are called the
laws of Boolean algebra. Several of them are obvious
* to verify
= to check, to conrm, to validate
by drawing Venn diagrams. For example, to verify that
A (B C) = (A B) (A C),
we draw the following diagrams.
A
B
C
(a) A, B, C
A
B
C
(b) B C
A
B
C
(c) A (B C)
A
B
C
(d) A B
0N1 Mathematics Lecture 4 Set Theory 24
A
B
C
(e) A C
A
B
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 ABC and ABC with unambiguous
sets A
* particular = individual, specic
and B we have to prove that every element of A is an element
of B (see denition of ). Sometimes this is clear.
But if
* clear = obvious, self-evident
not proceed as in the next examples.
Example. Let
A = {x R : x
2
3x + 2 = 0}.
Prove that A Z.
Solution. Let x A. Then
x
2
3x + 2 = 0,
(x 1)(x 2) = 0,
x =
_
1 or
2
x Z.
0N1 Mathematics Lecture 4 Set Theory 25
To prove A = B for particular sets A and B we have to
prove A B and then B A.
Recall that a segment [a, b] of the real line R is dened as
the set
* Typographical symbols:
[ opening square bracket
] closing square bracket
[a, b] = { x R : a x b }.
Example. Let A = [1, 2] and
B = [0, 2] [1, 3].
Prove that
A = B. * prove that . . .
= show that . . . , demonstrate that . . .
Solution. We rst prove that
[1, 2] [0, 2] [1, 3].
Let x [1, 2]. Then 1 x 2. Hence 0 x 2 and
1 x 3. Hence x [0, 2] and x [1, 3]. Hence
x [0, 2] [1, 3],
and, since x is an arbitrary
* hence
= therefore, for this reason, thus, conse-
quently, so
0 x 2 and 1 x 3. Therefore x 1 and x 2. For
this reason 1 x 2. Consequently, x [1, 2].
Comment: In the lecture, an alternative
has 12 elements.
(ii) Y
has 7 elements.
0N1 Mathematics Lecture 4 Set Theory 28
a
b
c
e
d
f g
h
A
B
C
(iii) X Y
has 4 elements.
How many elements in X
Y ?
(A) 6 (B) 8 (C) 9
Answer. (C).
Brief solution. Denote x = |X Y
|, y = |X
Y | (this is what
we have to nd), z = |X Y |, t = |(X Y )
| = y + t = 12
|Y
| = x + t = 7
|X Y
| = x = 4
Excluding unknowns, we nd t = 3 and y = 9.
Detailed solution. Recall that we use notation |A| for the num-
ber of elements in a nite set A.
Denote x = |X Y
|, y = |X
x
X
z
_
y
t
Y
U
Then
|X
| = y + t = 12
|Y
| = x + t = 7
|X Y
| = x = 4
So we have a system of three equations:
y + t = 12
x + t = 7
x = 4
Excluding unknowns, we nd t = 3 and y = 9.
This last step can be written in more detail. Substituting the value
x = 3 from the third equation into the second equations, we get
4 + t = 7,
which solves as t = 3. Now we substitute this value of t in the rst
equation and get
y + 3 = 12;
solving it, we have y = 9.
2. Which of the following sets is innite?
(A) {0, 1} R (B) {x R : x
2
< 4} (C) [0, 1]
_
4
3
,
3
2
Answer. (B). Indeed, this set is {2 < x < 2} is innite. The set
A is nite because it is a subset of a nite set {0, 1}. The set C is empty
and therefore nite.
3. Which of the following sets is nite?
(A) {0, 1}R (B) [0, 1][
1
2
,
3
2
] (C) {x R : x
2
< 9}
4. Let X, Y and Z be sets such that Y X. Which of the following
must be true?
0N1 Mathematics Lecture 4 Set Theory 30
(A) X Z Y Z
(B) Y
(C) X (Y Z) = Y (X Z)
Questions from students
The truth values to be given to p q are open * There is a huge number of ways to
express if p then q, for example
p implies q
p leads to q
p yields q
q follows from p
q is a consequence of p
q is a necessary condition for p
p is a sucient condition for q
q is true provided p is true
p entails q
to some debate but the mathematical convention is as follows.
p q p q
T T T
T F F
F T T
F F T
You must work according to this table whether
you like it or not!
The convention is that p q is true when p is false,
regardless of the truth value of q. Rough explanation: when
p is false there is nothing wrong with p q because it means
if p then q and so makes an assertion only when p is true.
Another explanation: some conditional statements can be
thought of as statements of promise. For example:
if I have no cold, Ill come to class.
Here p is I have no cold and q is Ill come to class. If p is
false, that is, if I have cold, you would agree that I have kept
my promise even if I have not come to class (in which case q
is false).
For a statement to be true, it is not necessary to * This is why in the literature, our rule
for implication is sometimes called ma-
terial implication: it is about material
world.
receive it from a source of authority or trust.
0N1 Mathematics Lecture 5 Propositional Logic 34
Statements of promise also give a good explanation. Re-
turning to the phrase if I have no cold, Ill come to class, you
would agree that if I have cold (p is F ) but nevertheless came
to class (q is T), I have kept my promise and told the truth;
hence F T is T.
Examples.
Suppose p is 4 > 1 and q is 3 = 5. Then p q is
If 4 > 1 then 3 = 5. This is false because p is true
and q is false (see 2nd row of truth table).
If 3 = 5 then 2 = 0 is true (see 4th row of truth
table).
If 3 = 5 then 2 = 2 is true (see 3rd row of truth
table).
If p q has truth value F we can deduce that p is true
and q is false (only the second row of the truth table
gives p q false).
Statements of the form p q usually arise only when
there is a variable or unknown involved.
Example. If x > 2 then x
2
> 4 is a true statement,
whatever the value of x. For example, when x = 3, x
2
= 9 > 4
and when x = 4, x
2
= 16 > 4. The statement is regarded as
true, by convention, for values of x which do not satisfy x > 2.
For numbers like x = 1 we do not care whether x
2
> 4 is
true.
The following example illustrates dierent expression of
p q in English. Let p be x > 2 and q be x
2
> 4. Then
all of the following expresses p q.
If x > 2 then x
2
> 4.
x
2
> 4 if x > 2.
x > 2 implies x
2
> 4.
0N1 Mathematics Lecture 5 Propositional Logic 35
x > 2 only if x
2
> 4.
x > 2 is sucient condition for x
2
> 4.
x
2
> 4 is necessary condition for x > 2.
Questions from students
= A
.
In fact it is remarkable that if we replace by , by ,
by , U by T(to denote a tautology) and by F (to denote a
contradiction) then all the rules of Boolean algebra turn into
logical equivalences.
p q q p
p q q p
_
commutative laws (1)
p p p
p p p
_
idempotent laws (2)
p (q r) (p q) r
p (q r) (p q) r
_
associative laws (3)
p (q r) (p q) (p r)
p (q r) (p q) (p r)
_
distributive laws
(4)
A (A B) = A
A (A B) = A
_
absorbtion laws (5)
p T p p T T
p F p p F F
(6)
(p) p p p F T F
p p T F T
(7)
(p q) p q
(p q) p q
_
De Morgans laws (8)
0N1 Mathematics Lecture 7 Propositional Logic 46
They may all be proved by means of truth tables as we
did for
(p q) p q.
Similarly:
p q p q (9)
(p q) (p q) (q p) (10)
We call (1)(9) the fundamental logical equivalences.
Rules 8 and 9 enable us to rewrite and entirely in terms
of , and . Expressions involving , and can be
manipulated by means of rules (1)(7).
Example. Simplify p (p q).
p (p q)
by (4)
(p p) (p q)
by (1)
(p p) (p q)
by (7)
T (p q)
by (1)
(p q) T
by (6)
p q.
To determine whether or not statements X and Y are logically
equivalent we use truth tables. If the nal columns are the
same then X Y , otherwise X Y .
If we are trying to prove X Y we can either use truth
tables or we can try to obtain Y from X by means of funda-
mental logical equivalences (1)(10).
Example. Prove that q p p q.
We could use truth tables or proceed as follows
q p
by (9)
q p
by (7)
q p
by (1)
p q
by (9)
p q.
0N1 Mathematics Lecture 7 Propositional Logic 47
Sample test question
1. Which of the following statements is logically equivalent to
p (p q)?
(A) q p (B) p q (C) F
Questions from students
* whereas = while
(x)p(x) is false if p(x) is false for at least one x U.
Similar remarks apply to (x)(y)p(x, y), etc.
Examples.
(i) Let p(x) denote x
2
0 where U = R. Then (x)p(x) is
true.
(ii) The statement For every integer x, x
2
5 is false.
Here U = Z but there is at least one x Z for which
x
2
5 is false, e.g. x = 1.
(iii) Let p(x, y) denote
If x y then x
2
y
2
,
where U = R. Then (x)(y)p(x, y) is false. Take, for
example, x = 1 and y = 2. Then p(x, y) becomes
If 1 > 2 then 1 > 4.
Here 1 > 2 is Tbut 1 > 4 is F . From the truth table
for we see that If 1 > 2 then 1 > 4 is F . Hence
(x)(y)p(x, y) is F .
(iv) For all x and all y, if x y then 2x 2y is T.
The symbol is called the universal quantier: it has the
meaning for all, for every or for each.
We now also study , the existential quantier: it has
the meaning there is (at least one), there exists or for
some.
Examples.
(i) Let p(x) denote x
2
5, where U = R. Then (x)p(x)
denotes
0N1 Mathematics Lecture 9 Quantifiers 53
There exists a real number x such that x
2
5.
This can also be expressed as
x
2
5 for some real number x.
(ii) The statement
There exist sets A and B for which (AB)
= A
may be denoted by
(A)(B)p(A, B)
where p(A, B) denotes the predicate (AB)
= A
,
or
(A)(B)((A B)
= A
).
If p(x) is a PREDICATE then (x)p(x) is a STATE-
MENT.
(x)p(x) is true if p(x) is true for at least one x U,
whereas
(x)p(x) is false if p(x) is false for all x U.
Examples.
(i) Let U = R. The statement (x)x
2
5 is Tbecause
x
2
5 is Tfor at least one value of x, e.g. x = 3.
(ii) Let p(x) denote x
2
< 0, where U = R. Then (x)p(x)
is F because p(x) is F for all x U.
(iii) (x)(y)(x + y)
2
= x
2
+ y
2
(where U = R) is T: take
x = 0, y = 0 for example.
Statements may involve both and .
Example. Consider the following statements.
(i) Everyone likes all of Beethovens symphonies.
(ii) Everyone likes at least one of Beethovens symphonies.
(iii) There is one Beethovens symphony which everyone
likes.
0N1 Mathematics Lecture 9 Quantifiers 54
(iv) There is someone who likes all of Beethovens sym-
phonies.
(v) Every Beethovens symphony is liked by someone.
(vi) There is someone who likes at least one of Beethovens
symphonies.
If we let p(x, y) denote the predicate x likes y where x
belongs to the universal set of all University of Manchester
students and y belongs to the universal set of all Beethovens
symphonies then the statements become:
(i) (x)(y)p(x, y)
(ii) (x)(y)p(x, y)
(iii) (y)(x)p(x, y)
(iv) (x)(y)p(x, y)
(v) (y)(x)p(x, y)
(vi) (x)(y)p(x, y)
All have dierent meanings: in particular, (x)(y) is not
the same as (y)(x).
Example. Consider the statements
(i) (x)(y)x < y and
(ii) (y)(x)x < y
where U = R.
Statement (i) is true but statement (ii) is false. Note that
(i) states that whatever number x we choose we can nd a
number y which is greater than x (e.g. y = x + 1). But (ii)
states that there is a number y which is simultaneously greater
than every number x: this is impossible because, with x = y,
x < y does not hold.
Sample test question
1. For real numbers x and y let p(x, y) denote the predicate x = y.
Which of the following statements is false?
0N1 Mathematics Lecture 9 Quantifiers 55
(A) (x)(y)p(x, y)
(B) (x)(y)p(x, y)
(C) (x)(y)p(x, y)
Solution: (C) is false, because every number is equal to itself
and therefore the formula (x)(y)p(x, y) which means
there us a number x such that every real number y
is not equal to x
cannot be true.
Another solution: (C) is F because its negation (x)(y)p(x, y)
is T. This can be seen because
(x)(y)p(x, y) (x)(y) p(x, y),
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 = y is true because you can take x = 1 and
y = 2.
(B) is (x)(y)x = y, or
for every x there exists y such that x = y
this is true, because you may take for such y the value y = x +1.
Questions from Students
* Do that as an exercise!
p q q p.
q p is called the contrapositive of p q. It
follows that
(x)(p(x) q(x)) (x)(q(x) p(x)).
(x)( q(x) p(x)) is called the contrapositive of
(x)(p(x) q(x)).
To prove a statement p q or (x)(p(x) q(x)) it is
enough to prove the contrapositive. Sometimes this is easier.
0N1 Mathematics Lecture 12 Methods of Proof 66
Example. Prove the statement
If x is an integer such that x
2
is odd then x is
odd.
The contrapositive is
If x is an integer such that x is not odd then x
2
is not odd.
However not odd is the same as even. So the contrapos-
itive is
If x is an even integer then x
2
is even.
We have already proved this.
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)).
The converse is NOT equivalent to the original statement.
Example. Let p be You got full marks and let q be You
passed the exam.
p q is If you got full marks you passed the exam.
The contrapositive q p is
If you did not pass the exam you did not get full
marks.
The converse q p is
If you passed the exam you got full marks.
q p is equivalent to p q, but q p is not.
0N1 Mathematics Lecture 12 Methods of Proof 67
Example. The statement
If x > 2 then x
2
> 4
is true, but the converse
If x
2
> 4 then x > 2
is false.
* Alternative language:
n is divisible by m
m divides n
m is a factor of n
m is a divisor of n
m | n
n is a multiple of m
are all the same.
Example. 24 is divisible by 6. 24 is not divisible by 7. This
is because 24 =
24
7
7 but
24
7
is not an integer.
15 is divisible by 3 because 15 = (5)(3).
A prime number is a positive integer p where p > 1 and p
has no positive factors except 1 and p.
Prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, . . .
Two basic properties of prime numbers.
1. Let p be a prime number and m and n be integers. If p
divides mn then p | m or p | n.
Example. If mn is even (i.e. 2 | mn) then m is even or n
is even.
Example. If 7 | mn then 7 | m or 7 | n.
This property does not hold for non-prime numbers,
2 are not.
Let a be a rational number. Assume a > 0. We know we
can write
a =
m
n
If m and n have common factor it can be cancelled out so
that we can write
a =
m
where m
and n
p =
m
n
where m and n are integers with no common factors. Hence
n
p = m
and, after squaring both sides of the equation, we get
n
2
p = m
2
But n
2
is an integer, therefore m
2
is divisible by p, i.e.
p | m
2
.
But (basic properties of prime numbers)
p | m
2
p | m p | m,
that is, p | m. we can write m = kp where k is an integer:
n
2
p = k
2
p
2
n
2
= k
2
p
But k
2
is an integer, therefore n
2
is divisible by p, i.e. p | n
2
.
Basic properties of prime numbers give p | n. So we now have
m and n have no common factors but p | m
and p | n.
This is a false statement. Hence
p is rational must be
false, i.e.
p is irrational.
0N1 Mathematics Lecture 14 By contradiction 74
Sample test questions
Tick the correct box:
1. (A simplied version of the next question.)
1. Let p be a prime number and let x and y be positive integers
such that x/y is an integer. What can NOT be proven from the
fact that both x and y are divisible by p ?
(A) xy is divisible by p;
(B) x/y is divisible by p;
(C) x + y is divisible by p.
Answer: (B).
First solution: Let us argue: since p | x then x = pk for some
integer k and xy = pky is divisible by p. Hence (A) is proven.
Also, since p | y then y = pl for some integer l and
x + y = pk + pl = p(k + l)
is divisible by p. Hence (C) is also proven. Therefore only (B)
remains under suspicion and you can tick box (B).
You can also see that (B) is answer from:
Second solution:
Take x = y = p. But x/y = p/p = 1 is * As you can see, the second solutions
of easier problem 1 and harder problem
2 are equally easy.
not divisible by p. Hence (B) is false in that particular case and
therefore cannot be proven from the assumption that both x and
y are divisible by p .
2. (A harder version of the previous question.) Let p be a
prime number and let x and y be positive integers such that x/y
is an integer. What can NOT be proven from the fact that both
xy and x y are divisible by p ?
(A) both x and y are divisible by p;
(B) x/y is divisible by p;
(C) x + y is divisible by p.
Answer: (B).
First solution: Let us argue: since p | xy and p a prime, p | x
or p | y. If p | x then x = pk for some integer k. Then, since
p | x y,
x y = pl
for some integer l. Substituting x = pk, we have
pk y = pl andy = pk pl = p(k l),
0N1 Mathematics Lecture 14 By contradiction 75
hence p | y and (A) is true. But then p | x + y and (C) is true.
Hence, in that case, only (B) can be false.
The case when p | y is is similar: it leads to the conclusion that
(A) and (C) are true.
Second solution:
1
2
x
5
4
2x +1 | 2x
3
+0x
2
3x +2
2x
3
+x
2
x
2
3x
x
2
1
2
x
5
2
x +2
5
2
x
5
4
13
4
which means that
2x
3
3x + 2 = (2x + 1)
_
x
2
1
2
x
5
4
_
+
13
4
.
The remainder is
13
4
. The polynomial 2x
3
3x + 2 is not
divisible by 2x + 1.
In general we can write
f(x) = (ax + b)g(x) + R
where R is the remainder upon division of f(x) by ax + b.
Remainder Theorem. When f(x) is divided by ax+b the
remainder is f(
b
a
).
Proof. Write
f(x) = (ax + b)g(x) + R
0N1 Mathematics Lecture 16 Polynomials 79
where R is a constant. Substitute x =
b
a
:
f
_
b
a
_
= 0 g
_
b
a
_
+ R
which means
R = f
_
b
a
_
.
1
2
_
=
1
4
+
3
2
+ 2 =
1 + 6 + 8
4
=
13
4
.
The remainder on dividing 2x
3
3x + 2 by 2x + 1 is
13
4
. So
2x
3
3x + 2 is not divisible by 2x + 1.
Example. Find the remainder when x
3
2x
2
+1 is divided
by x 1.
Substitute x = 1 in f(x) = x
3
2x
2
+ 1. We get
f(1) = 1 2 + 1 = 0.
The remainder is 0. (So x
3
2x
2
+1 is divisible by x 1.)
Factor Theorem. x t is a factor of f(x) if and only if t
is a root of f(x) (i.e. f(t) = 0).
Proof. If x t is a factor of f(x) we can write
f(x) = (x t)h(x)
and so
f(t) = (t t)h(t) = 0 h(t) = 0,
so t is a root of f(x).
Conversely, suppose that t is a root of f(x). Then by
the Remainder theorem f(x) is divisible by x t since the
remainder is f(t) = 0. So x t is factor of f(x).
0N1 Mathematics Lecture 16 Polynomials 80
Example Find whether x +
1
2
is a factor of
2x
4
+ x
3
x
2
+
3
2
x + 1.
Substitute x =
1
2
in f(x) = 2x
4
+ x
3
x
2
+
3
2
x + 1.
f
_
1
2
_
=
1
8
1
8
1
4
3
4
+ 1 = 0.
Hence
1
2
is a root of f(x). So, by the Factor Theorem, x+
1
2
is a factor of f(x).
To nd the factorisation we need to do the long divi-
sion:
2x
3
0x
2
x +2
x +
1
2
| 2x
4
+x
3
x
2
+
3
2
x +x
2x
4
+x
3
0 x
2
+
3
2
x
x
2
1
2
x
2x +1
2x +1
0
Hence
2x
4
+ x
3
x
2
+
3
2
x + 1 =
_
x +
1
2
_
(2x
3
x + 2).
Repeated Factor Theorem. x t is a repeated factor of
f(x) if and only if t is a root of both f(x) and f
(x).
Proof. Proof is omitted.
Example. Prove that x + 1 is a repeated factor of
f(x) = x
5
+ 2x
4
3x
2
3x 1.
We compute
f(1) = 1 + 2 3 + 3 1 = 0.
0N1 Mathematics Lecture 16 Polynomials 81
Hence 1 is a root of f(x). Also
f
(x) = 5x
4
+ 8x
3
6x 3
f
(1) = 5 8 + 6 3 = 0,
so 1 is a root of f
(x).
Actually, it was in the lectures. Proof goes that way:
Assume that is a repeated root of the polynomial f(x). Then
f(x) = (x )
k
g(x)
0N1 Mathematics Lecture 16 Polynomials 82
for some polynomial g(x) and k 2. We can dierentiate this
equality using the rule
(p(x)q(x))
= p
(x)q(x) + p(x)q
(x) :
f(x)
= [(x )
k
g(x)]
= [(x )
k
]
g(x) + (x )
k
[g(x)]
= k(x )
k1
g(x) + (x )
k
g
(x)
= (x )
k1
[kg(x) + (x )g
(x)]
Since k 2, k 1 1 and x is a divisor of f
(x). Hence is
a root of f(x).
2. > I tried solving this particular question:
> "(c) [6 marks] Given that the polynomial
> x3 -3a2x+a has a repeated root,
> find the possible values of a (real or complex)."
> So far i have three answers to this question:
> zero, + and - under root of half.
> I wonder if i am even right!
> Could please send a detailed working,
> I shall highly appreciate it!
Answer. It is almost right. Here is the working:
Since the polynomial has a repeated root, its derivative has the
same root. The derivative of x
3
3a
2
x + a is 3x
2
3a
2
and
has roots a. Hence either a or a is a root of the original
polynomial, x
3
3a
2
x + a.
Assume rst that a is a root of x
3
3a
2
x + a, then
a
3
3a
2
a + a = 0
We can take the common factor a out of the left hand side of the
equation and get
a(2a
2
+ 1) = 0,
which gives us solutions a = 0 or a =
1
2
exactly as you stated.
We can turn now to the remaining case when a is a root of
x
3
3a
2
x + a and, correspondingly,
(a)
3
3a
2
(a) + a = 0.
After rearranging the left hand side we have
a
3
+ 3a
3
+ a = 0,
0N1 Mathematics Lecture 16 Polynomials 83
or
2a
3
+ a = 0,
which, in its turn, can be factorised as
a(2a
2
+ 1) = 0.
Hence we nd a = 0 or a =
i
2
an extra solution.
3. > i need help with this exercise
> "find the repeated roots of the polynomial 4x^4+x^2+3x+1"
This is is a tricky one; believe me, exam problems are easier.
We know that a repeated root x = t of a polynomial f(x) is also
a root of f
(x) = 16x
3
+ 2x + 3.
But a common root x = t of polynomials f(x) and f
(x) is also a
root of any polynomial of the form
g(x) = a(x)f(x) + b(x)f
(x);
indeed, substitute:
g(t) = a(t)f(t) + b(t)f
(x) = 4(4x
4
+x
2
+3x+1)x(16x
3
+2x+3) = 2x
2
+9x+4.
This is already quadratic polynomial, and has roots x = 1/2
and x = 4. Of these two roots, we can check that x = 1/2 is
indeed a root of both f(x) and f
(x):
f
1
2
_
= 2 1 + 3 = 0,
f
_
1
2
_
=
1
4
+
1
4
3
2
+ 1 = 0.
and therefore x = 1/2 is a repeated root of f(x).
Thus
1
2
is a repeated root of f(x). Dividing f(x) by
(2x + 1)
2
= 4x
2
+ 4x + 1
gives
f(x) = (4x
2
+ 4x + 1)(x
2
x + 1).
But the roots of x
2
x + 1 are
1
2
+
1
2
3 and
1
2
1
2
3. Thus
1
2
is the only repeated root of f(x).
0N1 Mathematics Lecture 17 Polynomials 84
Lecture 17
Polynomials, continued
Fundamental Theorem of Algebra
Let
f(x) = a
n
x
n
+ a
n1
x
n1
+ + a
1
x + a
0
be any polynomial of degree n (that is, a
n
= 0), where
a
n
, . . . , a
0
are real or complex
numbers. Then f(x) factorises * By that time, you should know com-
plex numbers from a parallel lecture
course. A brief reminder: complex num-
bers are numbers of the form a + bi,
where i =
1 in notation for
complex numbers, because i is reserved
for current.
as
f(x) = a
n
(x
1
)(x
2
) (x
n
)
where
1
, . . . ,
n
are real or complex numbers.
Of course,
* Some frequently used Greek letters:
alpha
beta
gamma
delta
epsilon
lambda
mu
nu
pi
rho
1
, . . . ,
n
are roots of f(x) but notice that some of the roots
may be equal. For example,
x
3
3x
2
+ 3x 1 = (x 1)
3
has three equal roots.
The polynomial
x
4
+ 2x
2
+ 1 = (x
2
+ 1)
2
= [(x i)(x + i)]
2
= (x i)
2
(x + i)
2
has two roots i and two roots i.
Polynomials with real coecients
Let
f(x) = a
n
x
n
+ a
n1
x
n1
+ + a
1
x + a
0
where a
n
= 0 and a
0
, . . . , a
n
are real. Then f(x) can be
written as a product of linear and quadratic polynomials with
real coecients.
0N1 Mathematics Lecture 17 Polynomials 85
Example. Let f(x) = x
3
+ x 2. Then
f(x) = (x 1)(x
2
+ x + 2)
= (x 1)(x
2
)(x
3
)
Notice that the polynomials (x 1) and (x
2
+ x + 2) (in the
rst factorisation) have real coecients, while the roots
1
and
2
of the quadratic polynomial x
2
+ x + 2 are
2,3
=
1
1
2
4 1 2
2
=
1
7
2
=
1
7i
2
, and therefore
2
=
1
2
+
7
2
i
3
=
1
2
7
2
i
Corollary. A polynomial
f(x) = a
n
x
n
+ a
n1
x
n1
+ + a
1
x + a
0
with real coecients and of odd degree n has at least one real
root.
In particular, a cubic polynomial
f(x) = a
3
x
3
+ a
2
x
2
+ a
1
x + a
0
with real coecients (a
3
= 0) has at least one real root.
Sample Test
2
+
2
2
+
2
2
.
We have
+ + = 2
+ + = 1
= 5
(i) Observe that
( + + )
2
=
2
+
2
+
2
+ 2 + 2 + 2.
Hence
2
+
2
+
2
= ( + + )
2
2( + + )
= 4 + 2
= 6.
0N1 Mathematics Lecture 18 Roots and Coefficients 89
(ii) Observe that
( + + )
2
=
2
2
+
2
2
+
2
2
+ 2
2
+ 2
2
+ 2
2
=
2
2
+
2
2
+
2
2
+ 2( + + )
Hence
2
+
2
2
+
2
2
= ( + + )
2
2( + + )
= 1 2 (5) (2)
= 1 20
= 19.
,
1
,
1
(ii)
2
,
2
,
2
(iii) 1, 1, 1.
Note + + = 2, + + = 2, = 1.
(i) We nd
1
+
1
+
1
,
1
+
1
+
1
, and
1
.
Notice
1
+
1
+
1
=
+ +
= 2,
1
+
1
+
1
=
+ +
= 2,
1
=
1
= 1.
If the required equation with roots
1
,
1
,
1
is
x
3
+ bx
2
+ cx + d = 0
0N1 Mathematics Lecture 18 Roots and Coefficients 90
we have, by previous calculations,
b =
1
+
1
+
1
= 2
c =
1
+
1
+
1
= 2
d =
1
= 1.
Hence the equation is
x
3
+ 2x
2
2x + 1 = 0.
(ii) We nd
2
+
2
+
2
,
2
2
+
2
2
+
2
2
and
2
2
.
We already know that
2
+
2
+
2
= ( + + )
2
2( + + )
and
2
+
2
2
+
2
2
= ( + + )
2
2( + + )
Hence
2
+
2
+
2
= 2
2
2 2 = 0
and
2
+
2
2
+
2
2
= 2
2
2 (1) 2 = 8.
We can also compute
2
= ()
2
= (1)
2
= 1.
The required equation is x
3
+bx
2
+cx +d = 0 where b = 0,
c = 8, d = 1, that is,
x
3
+ 8x 1 = 0.
(iii) We nd
( 1) + ( 1) + ( 1),
( 1)( 1) + ( 1)( 1) + ( 1)( 1),
( 1)( 1)( 1).
0N1 Mathematics Lecture 18 Roots and Coefficients 91
The calculations are a bit messy and I switch to smaller font:
( 1) + ( 1) + ( 1) = ( + + ) 3
= 2 3
= 1,
( 1)( 1) + ( 1)( 1) + ( 1)( 1) = + + + 3
= + + 2( + + ) + 3
= 2 2 2 + 3
= 1,
( 1)( 1)( 1) = ( 1)( + 1)
= + + 1
= ( + + ) + ( + + ) 1
= 1 2 + 2 1
= 2.
The required equation is x
3
+bx
2
+cx+d = 0 where b = 1,
c = 1, d = 2, that is,
x
3
+ x
2
+ x + 2 = 0.
Sample test problems
2
+
1
2
.
0N1 Mathematics Lecture 18 Roots and Coefficients 93
> I have got a question about the solution to the task 5 C in 2008 exam paper.
> We should find what 1/A^2 + 1/B^2 is equal to. The problem I have
> encountered is that I cannot find the roots of the equation. A+B=2 and AB=3,
> when I try to rearrange this equation I get something like B^2 - 2B +3=0
> Which is the same as the original equation. In addition, when I use
> discriminant method, I get that discriminant is below zero, namely x= (2+-
> sqrt(4 - 12))/ 2 and discriminant=4-12=-8. Accordingly, there should be no
> roots. If my calculations are correct, then how is it possible to calculate
> the value of 1/A^2 + 1/B^2 if there are no roots?
Indeed, the solution can be found without evaluating the
roots and without even noticing that and are in eect
complex:
1
2
+
1
2
=
2
+
2
2
=
( + )
2
2
()
2
.
But + = 2 and = 3, hence
1
2
+
1
2
=
2
2
2 3
3
2
=
2
9
.
A straightforward solution which involves computation of roots
is more complex. First, we have to nd and . The roots
of
x
2
2x + 3 = 0
are
x
1,2
=
2
2
2
4 3
2
=
2
8
2
= 1
2i,
so we can take
= 1 +
2i and = 1
2i.
Then
1
2
+
1
2
=
1
(1 +
2i)
2
+
1
(1
2i)
2
=
1
1 + 2
2i 2
+
1
1 2
2i 2
0N1 Mathematics Lecture 18 Roots and Coefficients 94
=
1
1 + 2
2i
+
1
1 2
2i
=
(1 2
2i) + (1 + 2
2i)
(1 + 2
2i)(1 2
2i)
=
2
(1)
2
(2
2i)
2
=
2
1 (8)
=
2
9
.
0N1 Mathematics Lectures 1920 Mathematical Induction 95
Lectures 1920
Principle of Mathematical Induction
_
1 +
1
2
2
k
2
_
=
1
1
2
2
k+1
2
.
This completes the inductive step.
> The very last step, from
> (1 - 1/2^2^k)(1 + 1/2^2^k)/2 = (1 - 1/2^2^k+1)/2.
> i cant figure out how he got from one to the other. do you
> know?
> i am also not completely sure if the 1/2^2^k means 1/(2^2^k) or
> (1/2)^2^k. i assumed the latter.
I repeat the last calculation in more detail; watch what is
happening in the square brackets.
a
k+1
= 2
1
1
2
2
k
2
_
1
1
1
2
2
k
2
_
= 2
1
1
2
2
k
2
_
_
2
_
1
1
2
2
k
_
2
_
_
=
_
1
1
2
2
k
_
_
1 +
1
2
2
k
2
_
=
_
1
1
2
2
k
_
_
1 +
1
2
2
k
_
2
=
1
1
2
2
k+1
2
.
0N1 Mathematics Appendices 104
Appendix I: Laws of Boolean Algebra
A B = B A
A B = B A
_
commutative laws (1)
A A = A
A A = A
_
idempotent laws (2)
A (B C) = (A B) C
A (B C) = (A B) C
_
associative laws
(3)
A (B C) = (A B) (A C)
A (B C) = (A B) (A C)
_
distributive laws
(4)
A (A B) = A
A (A B) = A
_
absorbtion laws (5)
A U = A A U = U
A = A A =
(6)
(A
= A A A
= U
=
A A
= U
= U
(7)
(A B)
= A
(A B)
= A
_
De Morgans laws (8)
0N1 Mathematics Appendices 105
Appendix II: Laws of Propositional
Logic
p q = q p
p q = q p
_
commutative laws (1)
p p = p
p p = p
_
idempotent laws (2)
p (q r) = (p q) r
p (q r) = (p q) r
_
associative laws (3)
p (q r) = (p q) (p r)
p (q r) = (p q) (p r)
_
distributive laws
(4)
p (p q) p
p (p q) p
_
absorbtion laws (5)
p T = p p T = T
p F = p p F = F
(6)
(p) = p p p = F T = F
p p = T F = T
(7)
(p q) = p q
(p q) = p q
_
De Morgans laws (8)
p q p q (9)
(p q) (p q) (q p) (10)
Equivalences relating and :
(x)p(x) (x) p(x) (11)
(x)p(x) (x) p(x) (12)