Smtb000 Guide
Smtb000 Guide
by
M J MOTALANE
SMTB000
Study guide
in the
UNIVERSITY OF LIMPOPO
Table of contents
Table of contents 1
List of Notations 6
1 MATHEMATICAL LOGIC 8
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.5 Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.6 Predicates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1
TABLE OF CONTENTS TABLE OF CONTENTS
1.8 Methods of Proof . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.4 Determinant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
2
TABLE OF CONTENTS TABLE OF CONTENTS
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
3.2 Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3.2.3 Subsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
3
TABLE OF CONTENTS TABLE OF CONTENTS
NATORICS 133
4
TABLE OF CONTENTS TABLE OF CONTENTS
Bibliography 185
5
List of Symbols and Notations
Throughout this study guide the following symbols and notations will be used as defined below.
∀ for all
∃ there exists
∴ therefore
∈ element of
⇔ if and only if
⇒ implies
∧ and
∨ or
N natural numbers
Z integers
Q rational numbers
R real numbers
C complex numbers
6
U the universal set
⊆ a subset of
⊂ a proper subset of
T
intersection
S
union
Ac complement of A
|A| cardinality of A
G group
7
CHAPTER 1
MATHEMATICAL LOGIC
”Pure mathematics is, in its way, the poetry of logical ideas”. Albert Einstein
1.1. Introduction
We will engage in Mathematical reasoning in order to read, comprehend and construct Math-
ematical arguments. The main goal is to understand how to construct correct Mathematical
arguments. Our main goals in this text are to improve the students ability to think and write
in a mature mathematical fashion and to provide a solid understanding of the material most
useful for advanced courses. Student readers, take comfort from the fact that we do not aim
to turn you into theorem-proving wizards. Few of you will become research mathematicians.
Nevertheless, in almost any mathematically related work you may do, the kind of reasoning
you need to be able to do is the same reasoning you use in proving theorems. You must first
understand exactly what you want to prove (verify, show, or explain), and you must be familiar
with the logical steps that allow you to get from the hypothesis to the conclusion. Moreover,
a proof is the ultimate test of your understanding of the subject matter and of mathematical
reasoning.
8
CHAPTER 1 – MATHEMATICAL LOGIC
2. Is Martin a boy?
3. x + y = 0
4. 5x = 10
Sentences 1 and 2 are not proposition since they are command and question respectively, where
as sentences 3 and 4 are not proposition since they are neither true nor false. If we assign values
The truthfulness or falsity of a statement is called its truth value. “1” will stand for a true
9
CHAPTER 1 – MATHEMATICAL LOGIC
Definition 1.2.2. Compound statements are formed by combining two or more simple
sentences. We use connectives (or logical operators) to combine such sentences. These
connectives are “and”, “or”, “not”, “If. . . then . . . ” and “. . . if and only if . . . ”.
Definition 1.2.3. (Conjunction): Let P and Q be any two statements. The compound state-
ment “P and Q” is called the conjunction of the statement P and statement Q. Symbolically
we denote this by P ∧ Q.
Q: 8 × 2 − 6 = −10.
P ∧ Q: Square root is defined in the domain of all real numbers and Lagos is in France.
The truth value of P ∧ Q depends on the truth values of constituent statements P and Q. Note
that P may be 1 or 0 and for each of these Q may be 1 or 0. So there is a combination of four
10
CHAPTER 1 – MATHEMATICAL LOGIC
P Q P ∧Q
1 1 1
1 0 0
0 1 0
0 0 0
Definition 1.2.4. (Disjunction): Let P and Q be any two statements. The compound state-
we denote this by P ∨ Q.
Q: 8 × 2 − 6 = −10.
Q: Lagos is in France.
P ∨ Q: Square root is defined in the domain of all real numbers or Lagos is in France.
The truth value of P ∨ Q also depends on the truth values of constituent statements P and Q.
11
CHAPTER 1 – MATHEMATICAL LOGIC
P Q P ∨Q
1 1 1
1 0 1
0 1 1
0 0 0
NB:
Definition 1.2.5. (Negation): Let P be any statement. The negation of statement P is the
P ¬P
1 0
0 1
12
CHAPTER 1 – MATHEMATICAL LOGIC
(c) P : 3 < 2 − 5.
¬P : 3 ≮ 2 − 5.
Quite often we will combine the compound statements to obtain more compound statements.
We will see more examples as we go on but we can first do the following examples:
Example 1.2.6. Construct the truth table of each of the following statements:
(a) (P ∨ ¬Q) ∧ ¬P
(b) ¬(P ∧ Q) ∨ ¬Q
Solutions
P Q ¬P ¬Q P ∨ ¬Q (P ∨ ¬Q) ∧ ¬P
1 1 0 0 1 0
(a) 1 0 0 1 1 0
0 1 1 0 0 0
0 0 1 1 1 1
13
CHAPTER 1 – MATHEMATICAL LOGIC
P Q ¬Q P ∧Q ¬(P ∧ Q) ¬(P ∧ Q) ∨ ¬Q
1 1 0 1 0 0
(b) 1 0 1 0 1 1
0 1 0 0 1 1
0 0 1 0 1 1
1 1 1 0 1 0 1 1
1 1 0 1 1 1 0 1
1 0 1 0 0 0 1 1
(c) 1 0 0 1 0 1 0 0
0 1 1 0 0 0 1 1
0 1 0 1 0 0 1 1
0 0 1 0 0 0 1 1
0 0 0 1 0 0 1 1
(a) (P ∨ ¬Q) ∧ ¬Q
14
CHAPTER 1 – MATHEMATICAL LOGIC
Definition 1.3.1. (Conditional Statement): Let P and Q be any two statements. The
Symbolically we denote this by P ⇒ Q which will read “P implies Q”. P is called the
Q: 8 × 2 − 6 = −10.
(c) P : 4 − 9 ≥ 2.
The truth value of P ⇒ Q also depends on the truth values of constituent statements P and
Q.
15
CHAPTER 1 – MATHEMATICAL LOGIC
P Q P ⇒Q
1 1 1
1 0 0
0 1 1
0 0 1
NB: Implication is false only when P is true and Q is false. This means that it is not possible
to deduce a false statement from a true statement, while reasoning correctly. But it is possible
We can form some new conditional statements starting with a conditional statement P ⇒ Q.
In particular, there are three related conditional statements that occur so often that they have
special names:
We may try to find out which of the above implications have the same meaning. We will
16
CHAPTER 1 – MATHEMATICAL LOGIC
P Q ¬P ¬Q P ⇒Q Q⇒P ¬Q ⇒ ¬P ¬P ⇒ ¬Q
1 1 0 0 1 1 1 1
1 0 0 1 0 1 0 1
0 1 1 0 1 0 1 0
0 0 1 1 1 1 1 1
Example 1.3.2. Find the (i) Converse, (ii) Contrapositive and (iii) Inverse of the following
statements:
Solution
Definition 1.3.2. (Biconditional Statement): Let P and Q be any two statements. The
P and Q. Symbolically we denote this by P ⇔ Q. The “if and only if” can be abbreviated as
“iff”.
17
CHAPTER 1 – MATHEMATICAL LOGIC
P Q P ⇔Q
1 1 1
1 0 0
0 1 0
0 0 1
Definition 1.4.1. (Logically Equivalent Statements): Two statements, P and Q, are said
Example 1.4.1. Show the following logically equivalent statements using truth table.
(i) (P ⇒ Q) ≡ ¬P ∨ Q
(ii) ¬(P ∧ Q) ≡ ¬P ∨ ¬Q
(iii) ¬(P ∨ Q) ≡ ¬P ∧ ¬Q
(iv) ¬(P ⇒ Q) ≡ P ∧ ¬Q
Solutions
18
CHAPTER 1 – MATHEMATICAL LOGIC
P Q ¬P P ⇒Q ¬P ∨ Q
1 1 0 1 1
1 0 0 0 0
0 1 1 1 1
0 0 1 1 1
As we can see the last two columns have the same truth values so the two statements are
logically equivalent.
Example 1.4.2. Determine whether the following statements are tautology, contradiction or
(ii) ¬((P ∧ Q) ⇒ P )
Solution
P Q ¬P ¬Q P ⇒Q (P ⇒ Q) ∧ ¬Q ((P ⇒ Q) ∧ ¬Q) ⇒ ¬P
1 1 0 0 1 0 1
1 0 0 1 0 0 1
0 1 1 0 1 0 1
0 0 1 1 1 1 1
19
CHAPTER 1 – MATHEMATICAL LOGIC
(ii) ¬((P ∧ Q) ⇒ P )
P Q P ∧Q (P ∧ Q) ⇒ P ¬((P ∧ Q) ⇒ P )
1 1 1 1 0
1 0 0 1 0
0 1 0 1 0
0 0 0 1 0
P Q ¬P P ∨Q ¬P ∧ (P ∨ Q) P ⇔ (¬P ∧ (P ∨ Q))
1 1 0 1 0 0
1 0 0 1 0 0
0 1 1 1 1 0
0 0 1 0 0 1
From last column we can conclude the statement is neither tautology nor contradic-
tion.
20
CHAPTER 1 – MATHEMATICAL LOGIC
Logically Equivalences
Equivalence Name
P ∧0≡0
P ∧1≡P
P ∧P ≡P
P ∨P ≡P Idempotent law
P ∧Q≡Q∧P
(P ∧ Q) ∧ R ≡ P ∧ (Q ∧ R)
(P ∨ Q) ∨ R ≡ P ∨ (Q ∨ R) Association laws
P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
P ∨ (Q ∧ R) ≡ (P ∨ Q) ∧ (P ∨ R) Distributive laws
¬(P ∧ Q) ≡ ¬P ∨ ¬Q
P ∧ ¬P ≡ 0
P ∨ ¬P ≡ 1 Negation law
Tutorial 1.4.1. Determine whether the following statements are tautology, contradiction or
(i) (P ∨ Q) ⇒ P
(ii) (P ∧ (P ⇒ Q)) ⇒ Q
21
CHAPTER 1 – MATHEMATICAL LOGIC
(iv) (P ∨ Q) ⇒ (P ∧ Q)
(v) (Q ∧ (P ⇒ Q)) ⇒ P
(vi) (P ⇒ Q) ⇔ (Q ⇒ P )
1.5. Arguments
Definition 1.5.1. (Valid Argument): An argument is called a valid argument if the con-
junction of hypotheses implies the conclusion. Otherwise the argument is said to be invalid
(a)
P ⇒Q
R∨P
¬R
∴Q
22
CHAPTER 1 – MATHEMATICAL LOGIC
then for P ⇒ Q to be true then Q must be true. Then we deduce that the argument is
valid.
[(P ⇒ Q) ∧ (R ∨ P ) ∧ (¬R)] ⇒ Q
is tautology.
1 1 1 0 1 1 0 1
1 1 0 1 1 1 1 1
1 0 1 0 0 1 0 1
1 0 0 1 0 1 0 1
0 1 1 0 1 1 0 1
0 1 0 1 1 0 0 1
0 0 1 0 1 1 0 1
0 0 0 1 1 0 0 1
23
CHAPTER 1 – MATHEMATICAL LOGIC
(a)
P ∨ ¬Q
R ⇒ Q
¬P
∴R
true, then Q is false. If Q is false and R ⇒ Q is true then R is false. Since the conclusion
is given R which in this instant we found it to be false, then we deduce that the argument
is invalid or it is a fallacy.
is tautology.
24
CHAPTER 1 – MATHEMATICAL LOGIC
1 1 1 0 0 1 1 0 1
1 1 0 0 0 1 1 0 1
1 0 1 0 1 1 0 0 1
1 0 0 0 1 1 1 0 1
0 1 1 1 0 0 1 0 1
0 1 0 1 0 0 1 0 1
0 0 1 1 1 1 0 0 1
0 0 0 1 1 1 1 1 0
Looking at the last column, we can clearly deduce the statement is not tautology, hence the
Now let,
25
CHAPTER 1 – MATHEMATICAL LOGIC
P ∨ Q
P ⇒ R
¬R
∴Q
(b) We leave it as an exercise to students to verify using truth table that the argument is
Now let,
26
CHAPTER 1 – MATHEMATICAL LOGIC
P ⇒ Q
Q ∨ R
¬R
∴ ¬P
is true and Q is true then P is either true or false hence 6 P is also either true or
(b) We again leave it as an exercise to students to verify using truth table that the argument
is invalid.
1.
P ⇔ ¬R
Q ∨ R
¬P
∴Q
27
CHAPTER 1 – MATHEMATICAL LOGIC
2.
P ⇒ Q
(Q ∨ R) ⇒ S
¬S
∴ ¬P
3.
P ⇒ ¬Q
Q ⇔ R
∴ ¬P
4.
S ∨ ¬R
P → R
P ∧ ¬Q
∴ ¬S
28
CHAPTER 1 – MATHEMATICAL LOGIC
If Maggie went to park or cinema then she eats burger and chips.
Mpho plays netball or drives a car if and only if she will be a teacher.
P1 ⇒ Pn .
Example 1.5.5. If Finny cries then she is sick. If Finny is sick she won’t go to school. If
Finny doesn’t go to school she will fail the exam. If Finny fails the exam she will be poor.
The above conditional statements imply the following statement: If Finny cries then she will
be poor.
29
CHAPTER 1 – MATHEMATICAL LOGIC
1.6. Predicates
Definition 1.6.1. A predicate is a sentence which involves variables such that if the variables
are replaced by definite objects then a statement is obtained. We will denote such sentences
P (x, y) : 3x + 5 = y.
Definition 1.6.2. (a) The symbol ∀ is called the universal quantifier and represents the
phrase “for all”, “for each”, or “for every”. The statement (∀ ∈ U )(P (x)) is read “for
all x ∈ U, P (x)”.
(b) The symbol ∃ is called the existential quantifier and represents the phrase “there ex-
ists”, “there is”, or “for some”. The statement (∃ ∈ U )(P (x)) is read “there exists an
Given a statement (∀x ∈ U )(P (x)) which is read “for all x in set A, then P (x)”. U in this
E.g: P (x) : 2 − x ≥ 5 and U can be set of real number (R), integers(Z), natural numbers
(N), etc.
In some instance our statements may involve more than one variable, set and both two quan-
tifiers.
E.g: (∀x ∈ A)(∃y ∈ B)(P (x, y)) which reads “for all x in set A, there exists a y in B such
It is of our interest to find out whether the given statement is true or false. Lets look at some
examples.
30
CHAPTER 1 – MATHEMATICAL LOGIC
Example 1.6.2. Determine which of the following statements is true or false. Justify your
(a) ∀x ∈ Z : −x ∈ N
(b) ∃x ∈ Z : −x ∈ N
Solutions:
Since we are interested in the set of all integers, we are interested in finding out whether
the negative of all integers is a natural number or not. Such statement is false since for
all positive integer x, −x will give us negative integer which is not a natural number.
For example, if x = 2, −x = −2 ∈
/ N.
The statement will be true since in this case we are only interested in finding out if there
31
CHAPTER 1 – MATHEMATICAL LOGIC
is a particular integer which it’s negative is natural number. There are infinitely many
such x, actually we can only restrict ourselves to negative integer, since their negative is
False, if x = 0, then xy = 0.
False, each real has it’s own unique multiplicative inverse or in particular if y = 0.
True, every real x has its own additive inverse which is −x, i.e. y = −x.
True, when x = 0.
True, for y = 7.
False, if x = 21 .
Theorem 1.7.1. Let P (x) be an open statement in the variable x. Then ¬(∀x)(P (x)) is
32
CHAPTER 1 – MATHEMATICAL LOGIC
Negation will be
Negation will be
¬[(∀ > 0)(∀n ∈ N)(∃m ∈ N)(|xn − xm | < )] ≡ (∃ > 0)¬[(∀n ∈ N)(∃m ∈ N)(|xn − xm | < )]
Tutorial 1.7.1. 1. Determine which of the following statements is true or false. Justify
(a) ∀x ∈ Z : 3x ∈ N
(b) ∃x ∈ N : x2 − x = 0
33
CHAPTER 1 – MATHEMATICAL LOGIC
In this section we discuss some of the common methods of proof and the standard terminology
that accompanies them. A mathematical system consists of axioms, definitions, and unde-
fined terms. An axiom is a statement that is assumed true. A definition is used to create
new concepts in terms of existing ones. A theorem is a proposition that has been proved to
be true. A lemma is a theorem that is usually not interesting in it’s own right but is useful
in proving another theorem. A corollary is a theorem that follows quickly from a theorem.
1. Direct proof
2. Indirect proof
• Proof by contradiction
• Proof by contrapositive
• Proof by counter-example.
3. Proof by cases.
34
CHAPTER 1 – MATHEMATICAL LOGIC
Definition 1.8.1. • An integer n is even if there exists an integer k such that n = 2k. So
• An integer n is odd if there exists an integer k such that n = 2k + 1. So the set of odd
integers is
P : n is even integer
Q : n2 is even integer.
n2 =n·n
= (2k)(2k)
= 4k 2
= 2(2k 2 )
= 2m
35
CHAPTER 1 – MATHEMATICAL LOGIC
P : n is even integer.
Q : m is odd integer.
R : n + m is odd integer.
Assume n is even integer and m is an odd integer, i.e. n = 2k and m = 2r +1 for some k, r ∈ Z.
Then
n + m = (2k) + (2r + 1)
= 2(k + r) + 1
= 2q + 1
• Proof by contradiction.
• Proof by contrapositive.
• Proof by counter-example.
36
CHAPTER 1 – MATHEMATICAL LOGIC
Proof by Contradiction
In order to prove the statement P ⇒ Q using contradiction, we prove that the statement is
true by showing that it cannot possibly be false. That is, we assume a statement is false and
(P ⇒ Q) ≡ ¬P ∨ Q.
For us to prove using contradiction we assume (P ⇒ Q) is false i.e. ¬(P ⇒ Q) is true. Also
¬(P ⇒ Q) ≡ P ∧ ¬Q
Example 1.8.3. Given that n is an integer. Prove by contradiction that if n2 is even, then n
is even.
P : n2 is even
Q : n is even.
Assume P ∧ ¬Q i.e. Let n2 be even and assume that n is odd. If n is odd, it can be written as
where m = 2k 2 + 2k ∈ Z, showing that n2 is odd. This contradicts the fact that n2 is even,
37
CHAPTER 1 – MATHEMATICAL LOGIC
Proof by contrapositive
¬Q ⇒ ¬P .
Example 1.8.4. Given that n is an integer. Prove by contrapositive that if n2 is even, then
n is even.
P : n2 is an even integer.
Q : n is an even integer.
Proof by Counter-Example
It is common to prove a false statement by using counter-example. One may not use this
method to prove that a statement is true. For example, for a statement having big data, it
Example 1.8.5. Prove using counter-example that the following statement is not correct:
a 1 −1 b
= = −1 = = .
b −1 1 a
38
CHAPTER 1 – MATHEMATICAL LOGIC
In this case we have a divides b and b divides a but a 6= b. So our statement is false by the
above counterexample.
This type of proving involve us subdividing our proof into different cases.
Proof. We will prove this by cases by first assuming n is even and another case where we
assume n is odd.
Case 1:
Case 2:
that which ever integer n is, i.e. either even or odd, n2 + n is an even integer.
39
CHAPTER 1 – MATHEMATICAL LOGIC
Tutorial 1.8.1. Prove the following using (i) Direct proof, (ii) Proof by contradiction,
(b) If m + n is even, then m and n are either both odd or both even.
(b) If m + n is even, then m and n are either both odd or both even.
40
CHAPTER 2
INTRODUCTION TO MATRICES
”A mathematical theory is not to be considered complete until you have made it so clear that
you can explain it to the first man whom you meet on the street”. David Hilbert
2.1. Introduction
We will begin our study of matrices. Recall that information in science, business, and math-
ematics is often organized into rows and columns to form rectangular arrays called matrices
(plural of matrix). Matrices often appear as tables of numerical data that arise from physical
observations, but they occur in various mathematical contexts as well. However, matrices are
not simply a notational tool for solving systems of equations. They can be viewed as math-
ematical objects in their own right, and there is a rich and important theory associated with
them that has a multitude of practical applications. It is the study of matrices and related
topics that forms the mathematical field that we call linear algebra.
41
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
In this section we investigate about the concept of matrix and some of it’s properties.
The number aij is called an entry or member, which is in row i and column j of the matrix.
A matrix with m rows and n columns is called an m by n matrix, written m × n. The pair of
• A square matrix is one which has the same number of rows as columns i.e. m × n
• A matrix with
all entries
equal to zero is called a zero matrix, and is denoted by 0m×n ;
0 0 0
e.g. 02×3 =
0 0 0
42
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
• An identity matrix denoted by In , is a square matrix with aii = 1 for all i and zero
elsewhere;
1 0 0
1 0
e.g. I2 = and I3 = 0 1 0
0 1
0 0 1
• A matrix
with one column (n=1) is called a column matrix;
1
B = −7
8
• Two
matrices are
equal if
their sizes and
corresponding
entries
are equal;
0 8 12 1 3 −1 0 8 12
A= ; B = ; C = , then
−2 5 −1 4 −7 1 −2 5 −1
A 6= B; B 6= C; A = C.
whichis obtained
by interchanging the row and columns of A;
5 8
5 −2 7
A = −2 −1 then At = .
8 −1 0
7 0
Note: If A is a m × n matrix, then At is an n × m matrix.
• A diagonal matrix is one with at least one non-zero entry in the leading (main) diagonal
43
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
9 0 0
A = 0 0 0
0 0 −2
• A matrix
A is symmetric
if At =
A;
5 8 −3 5 8 −3
A = 8 −1 −4 then At = 8 −1 −4.
−3 −4 0 −3 −4 0
• Scalar multiple: Given a matrix A and a real number k, then the matrix kA is a matrix
multiple of A. When dealing with matrices, real numbers are often called scalars hence
and
3 3
1 1 − 2 2
A=
2
0 −1
2
5
2
We can only add or subtract two matrices if they have the same order. The sum or difference
44
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
then
a11 a12 a13 b11 b12 b13 a11 + b11 a12 + b12 a13 + b13
A+B = + =
a21 a22 a23 b21 b22 b23 a21 + b21 a22 + b22 a23 + b23
Example 2.2.1.
−1 8 0 −1
1 3 9 0
A= 5 ;B = ;C = 1 ;D = .
0 0
4 −7 −3 −6
2 −3 −2 −5
−1 8 0 −1 −1 + 0 8 + (−1) −1 7
A+C = 5 + 1 = 5+1 = 6 .
0 0 0 + 0 0
2 −3 −2 −5 2 + (−2) −3 + (−5) 0 −8
1 3 9 0 1 − 9 3 − 0 −8 3
B−D = − = = .
4 −7 −3 −6 4 − (−3) −7 − 6 7 −13
A ± B; A ± D; B ± C or C ± D do not exist.
Consider m × n matrix A = (aij ) and p × q matrix B = (bij ). Then the matrix multiplication
45
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
a11 a12 . . . a1n b11 b12 . . . b1q c11 a12 . . . a1q
a21 a22 . . . a2n b21 b22 . . . b2q a21 a22 . . . a2q
=
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
am1 am2 . . . amn bn1 bn2 . . . bnq am1 am2 . . . amq
Where cij = ai1 b1j + ai2 b2j + . . . + ain bnj = nk=1 aik bkj .
P
Example 2.2.2.
−3 4 0
−1 −3 5
A= 2 × 3 matrix; B = 1 5 −1 3 × 3 matrix.
0 −4
2
2 0 3
Result of AB is 2 × 3 matrix. BA does not exist since the number of columns in B is not equal
46
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(i) A + B = B + A
(ii) (A + B) + C = A + (B + C)
(iii) A(B + C) = AB + AC
(v) k(A + B) = kA + kB
(vi) (A + B)t = At + B t
(vii) (AB)t = B t At
(viii) AB 6= BA
47
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
2 0 3 5 0 0
−1 1 −1; F = 0 −3 0; G = 4 1 −2 ;
5 0 5 0 0 2
0
H = ;
−3
(a) Which of the matrices above are: (i) Diagonal matrix; (ii) Square matrix; (iii)
Symmetric; (iv) Identity matrix; (v) Zero Matrix (vi) Column Matrix; (vi) Row
matrix.
(b) Which of the following matrices is matrix addition, subtraction and multiplication
possible?
(c) Which of the following operations are possible? Where the operations are possible
(d) Write down the following entries: (i) b22 in B; (ii) e32 in E; (iii) a31 in A; (iv) f23
in F
2. Solve
for a, b, c andd given
that
2a − b 3c − d 7 −3 a 3b 3 b − 3 2a b − a
(i) = (i) 5 + =
c + d a + 4b 0 −4 2c −d 0 −4 3c + d 7d
48
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
• Row equivalence matrices: Let the ith row of a matrix A be denoted by Ri . The
We shall see how to apply this from next examples as well throughout the chapter.
Definition 2.3.1. A matrix is said to be in row echelon form if it satisfies then following
properties:
49
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
1 0 −2 3 1 8 −2 7 2
0 1 −1 −4 0 0 1 3 1
(a) (b) .
0 0 1 0 0 0 0 1 1
0 0 0 1 0 0 0 0 0
Definition 2.3.2. A matrix is said to be in reduced row echelon form if it is a row echelon
Example
2.3.2.The following
matrices
are in a reduced row echelon form:
1 0 0 0 1 0 0 0 3
0 1 0 0 0 0 1 0 0
(a) (b) .
0 0 1 0 0 0 0 1 2
0 0 0 1 0 0 0 0 0
Example 2.3.3. Reduce the following matrix and leave your answer in
1 1 1 1 1 3
2 1 1 1 2 4
.
1 −1 −1 1
1 5
1 0 0 1 1 4
50
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Solution: (a)
1 1 1 1 1 3
2 1 1 1 2 4
1 −1 −1 1
1 5
1 0 0 1 1 4
1 1 1 1 1 3
0 −1 −1 −1 0 −2 R2 − 2R1
∼
0 −2 −2 0 0 2 R3 − R1
0 −1 −1 0 0 1 R4 − R1
1 1 1 1 1 3
−R2
0 1 1 1 0 2
∼
0 −2 −2
0 0 2
0 −1 −1 0 0 1
1 1 1 1 1 3
0 1 1 1 0 2
∼
0 0 0 2 0 6 R3 + 2R2
0 0 0 1 0 3 R4 + R2
51
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
1 1 1 1 1 3
0 1 1 1 0 2
∼
0 0 1 0 3 21 × R3
0
0 0 0 1 0 3
1 1 1 1 1 3
0 1 1 1 0 2
∼
0 0 0 1 0 3
0 0 0 0 0 0 R4 − R3
(b) Now to obtain a reduced row echelon form, we continue from the last step in (a) to ensure
that all columns with leading one have zeros elsewhere as follows:
1 1 1 0 1 0 R1 − R3
0 1
1 0 0 −1
R2 − R3
0 0 0 1 0 3
0 0 0 0 0 0
1 0 0 0 1 0 R1 − R2
0 1 1 0 0 −1
∼
0 0 0 1 0 3
0 0 0 0 0 0
Tutorial 2.3.1. Reduce the following matrix and leave your answer in
52
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
1 2 −3 −2 4 1
1. 2 5 −8 −1 6 4 .
1 4 7 5 2 8
1 2 1 2 1
2
2 4 3 5 5 7
2. .
3 6 4 9 10 11
1 2 4 3 6 9
2.4. Determinant
Given any square matrix A, there is a special scalar called the determinant of A denoted by
det(A) or we make use of vertical bars |A|. This number is also important in determining
whether a matrix is invertible or not, which will be studied in the next section.
(a): 1 × 1 matrix:
53
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(b): 2 × 2 matrix:
a b
If A = ;
c d
a b
The determinant is defined by: det A = = ad − bc
c d
5 −1
Example 2.4.2. If A = ,then
6 −3
5 −1
det A = = (5)(−3) − 6(−1) = −15 + 6 = −9.
6 −3
Definition 2.4.1. The (i, j)-th minor of a matrix A, denoted by mij (A), is the determinant
obtained by
deleting row i and
column j of A.
a11 a12 a13
a11 a13
e.g. If A = a21 a22 a23 , then m32 (A) = .
a21 a23
a31 a32 a33
Definition 2.4.2. The (i, j)-th cofactor of a matrix A, denoted by cij (A), is the signed minor
54
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(c): 3 × 3 matrix:
a11 a12 a13
det A = a21 a22 a23
a31 a32 a33
This is Laplace expansion along row one. This expansion can be done along any other
55
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
−2 3 −1
Example 2.4.3. A= 4 −7 1
1 2 −5
−2 3 −1
det A = 4 −7 1
1 2 −5
Another useful method which can be used to evaluate the determinant of a 3 × 3 matrix is
what we call “Sarrus scheme” or also commonly referred to as “butterfly method”. To find
(i) Rewrite the 1st and 2nd columns on the right (as Columns 4 and 5).
(ii) Add the products along the three full diagonals that extend from upper left to lower
right.
(iii) Subtract the products along the three full diagonals that extend from lower left to upper
right.
56
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
E.g. Find
−2 3 −1
4 −7 1
1 2 −5
Solution:
−2 3 −1
det A = 4 −7 1
1 2 −5
−2 3 −1 −2 3
= 4 −7 1 4 −7
1 2 −5 1 2
= −70 + 3 − 8 − 7 + 4 + 60 = −18.
Properties of determinants:
1. The sign of a determinant changes if any two columns or rows are interchanged.
57
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
2. The determinant
of a matrix with a zero column or zero row is zero.
1 0 −5
1 2
E.g. 4 0 1 = 0 and = 0.
0 0
−2 0 −1
is multiplied by k. E.g.If
−2 3 −1
A = 4 −7 1 ,
1 2 −5
Suppose we multiply the whole matrix A by 2, then each row will be multiplied by two.
58
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
So
This is because each row or column is a multiplied by 2, hence the multiple of each row
multiplies the det A, in this case three 2’s since we have 3 rows or columns.
5. If any row or column of a matrix is multiplied by a non-zero constant k and the result is
added to another row or column, it’s determinant remains the same. We can show this
E.g.
−2 3 −1
A = 4 −7 1
1 2 −5
Expanding along C1
7 −11
=1×
−15 21
NB: Care must be taken when performing row operation as to which row we multiply.
Performing row operation to find the determinant is quite helpful when we deal with
59
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
1 3 5 7 1 3 5 7
3 1 3 5 0 −8 −12 −16 R2 − 3R1
=
3 0 −12 −24 −32 R3 − 5R1
5 3 1
7 5 3 1 0 −16 −32 −48 R4 − 7R1
−8 −12 −16
= 1 × −12 −24
−32
−16 −32 −48
2 3 4
= (−4)(−4)(−16) 3 6 8
1 2 3
0 −1 −2 R1 − 2R3
= −256 0 0 −1 R2 − 3R3
1 2 3
−1 −2
= −256 × 1 ×
0 −1
= −256 × (1 − 0) = −256.
60
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
a b + c a2 a a + b + c a2
b c + a b2 = b a + b + c b2
c a + b c2 c a + b + c c2
C2 + C1
a 1
a2
= (a + b + c) b 1 2
b
2
c 1 c
a
1 a2
= (a + b + c) b − a 2 2
0 b − a R2 − R1
c − a 0 c2 − a2 R3 − 1R1
Expand along C2
b − a (b − a)(b + a)
= −(a + b + c)
c − a (c − a)(c + a)
1 b + a
= −(a + b + c)(b − a)(c − a)
1 c + a
8. det(A) = det(At )
1
9. det(A−1 ) =
det(A)
61
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
62
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
5. Suppose A, B and C are 2 × 2 matrices such that det(A) = 3, det(B −1 and det(C t ) = 4.
Evaluate det(ABC).
6. Two matrices A and B are called SIMILAR if there exists an invertible matrix P such
Remark 2.5.1. The matrix A is invertible (non-singular) if the determinant of A is not zero.
• An invertible matrix and its inverse commute with respect to matrix multiplication i.e.
AA−1 = A−1 A = In .
• A non-square matrix can never be invertible, and also among square matrices there are
• There is a symmetric relationship between a matrix and it’s inverse; i.e. if B is the
63
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
• If A−1 exists, then the system of linear equations with A as a coefficient matrix ALWAYS
has a unique solution, whatever the right hand side. We can actually write the equation as
AX = B where X is the column matrix of variables x, y, z, etc and B is the column matrix
of the right hand side. Then AX = B implies A−1 AX = A−1 B, then In X = A−1 B,
hence X = A−1 B. This will yield the unique solution. (We’ll touch this in detail later).
We will study two methods of finding the inverse of a matrix. The first method involves
We will make use of the following algorithm called Matrix inversion algorithm in order
that carry A to the identity matrix I of the same size, written A → I. This same series
of row operations carries I to A−1 ; that is, I → A−1 . The algorithm can be summarized
as follows:
[A|I] → [I|A−1 ]
Example 2.5.1. Use the Gauss-Jordan elimination to find the inverse of the following
matrices:
2 7 1
−2 3
(a) A = ; (b) B =
1 4 −1
4 −5
1 3 0
64
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(a)
−2 3 1 0
(A|I) =
4 −5 0 1
−2 3 1 0
=
0 1 2 1 R2 + 2R1
−2 0 −5 −3 R1 − 3R2
=
0 1 2 1
5 3 1
1 0 2 2 (− 2 ) × R1
=
0 1 2 1
5 3
2 2
∴ A−1 = .
2 1
(b)
2 7 1 1 0 0
(A|I) = 1 4 −1 0 1 0
1 3 0 0 0 1
65
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
−3 −3 11
2 2 2 −3 −3 11
Hence A−1 = 1 1 −3
= 1
2 2 2 1
2 1 −3
1 −1 −1
2 2 2 1 −1 −1
66
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Definition 2.5.2. The adjoint of a matrix A, denoted by adjA, is the transpose of the
For example if
a11 a12 a13
A = a21 a22 a23 ;
a31 a32 a33
1
A−1 = (adjA).
det A
67
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
using the adjoint method to verify that we will get the same answer.
Now
2 1 1
det A = 1 1 −1
1 0 0
C2 − 3C1
Expanding along C1
1 1
=1×
1 −1
= −1 − 1 = −2.
68
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Tutorial 2.5.1. By using the methods below, find the inverse of matrices below if they exist:
System of linear equation plays a vital role in the subject of linear algebra. Many problems in
linear algebra reduces to finding the solution of a system of linear equations. The system of
69
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
linear equations involve constants (scalars) which may come from any field. In this chapter all
our constants (scalars) will come from the field of real numbers.
Definition 2.6.1. A linear equation over a field of real numbers with unknowns x1 , x2 , . . . , xn
a1 x1 + a2 x2 + . . . + an xn = b
where a1 , a2 , . . . an , and b are constants (scalars) which comes from the field of real numbers
(R) and x1 , x2 , . . . , xn are variables. The constant ak is called the coefficient of xk , and b is
A system of linear equations (or linear system) is a finite collection of linear equations
Definition 2.6.2. A system of equations is consistent if it has at least one solution and it
Theorem 2.6.1. Given a system of linear equations in several unknowns, then the system of
70
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(c) No solution
as a way of solving system of linear equations. We will now use the matrix method to solve
Example 2.6.1. Solve for x, y and z using the Gauss-Jordan elimination method of the fol-
2x + 7y + z = 4
x + 4y − z = 9
x + 3y = 3
2 7 1 4
A = 1 4 −1 ; B = 9
1 3 0 3
2 7 1 4
(A|B) = 1 4 −1 9
1 3 0 3
71
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
1 4 −1 9 R2 ↔ R1
∼ 2
7 1 4
1 3 0 3
1 4 −1 9
∼ 0
−1 3 −14
R2 − 2R1
0 −1 1 −6 R3 − R1
1 4 −1 9
∼ 0
1 −3 14
−R2
0 −1 1 −6
1 0 11 −47 R1 − 4R2
∼ 0
1 −3 14
0 0 −2 8 R3 + R2
1 0 11 −47
∼ 0
1 −3 14
0 0 1 −4 − 21 R3
1 0 0 −3 R1 − 11R3
∼ 0
R2 + 3R3
1 0 2
0 0 1 −4
∴ the system has unique solution with solutions x = −3, y = 2 and z = −4.
Example 2.6.2. Solve for x, y and z using the Gauss-Jordan elimination method of the fol-
72
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
2x − 3y + z = 5
−x + 2y − z = 0
−x + 3y − 2z = 4
2 −3 1 5
(A|B) = −1 2 −1 0
−1 3 −2 4
−1 2 −1 0 R1 ↔ R2
∼ 2 −3 1 5
−1 3 −2 4
1 −2 1 0 −R1
∼ 2 −3 1 5
−1 3 −2 4
1 −2 1 0
∼ 0 1 −1 5 R2 − 2R1
0 1 −1 4 R3 − R1
1 0 −1 10 R1 + 2R2
∼ 0 1 −1 5 R3 − R1
0 0 0 −1
73
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
From row 3, we see that we have equation 0x + 0y + 0z = −1 which is impossible; hence the
Example 2.6.3. Solve for x, y and z using the Gauss-Jordan elimination method of the fol-
x − 3y + 2z = −1
2x − 5y − z = 2
2x − 7y + 9z = −6
1 −3 2 −1
A = 2 −5 −1 ; B = 2
2 −7 9 −6
1 −3 2 −1
(A|B) = 2
−5 −1 2
2 −7 9 −6
1 4 −1 9
∼ 0
−1 3 −14 R2 − 2R1
0 −1 1 −6 R3 − 2R1
1 −3 2 −1
∼ 0
1 −5 4 −R2
0 −1 5 −4
1 0 −13 11 R1 + 3R2
∼ 0
1 −5 4
0 0 0 0 R3 + R1
74
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
If we look in rows one and two, we see that coefficients of x and y are 1, we say x and y
are leading variables. The remaining variable z is called free vaiable. We then solve the
From these we can see that we can treat z as a parameter, hence we let z = t, and our solution
Matrix inverses can be used to solve certain systems of linear equations. The system of linear
AX = B.
A−1 AX = A−1 B, then In X = A−1 B, hence X = A−1 B. This will yield the unique solution
AX = B. If the n × n coefficient matrix A is invertible, the system has the unique solution
X = A−1 B.
75
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Example 2.6.4.
2x + 7y + z = 4
x + 4y − z = 9
x + 3y = 3
2 7 1 x 4
We can express as AX = B as follows 1 4 −1 y = 9 .
1 3 0 z 3
We have already seen that
−3 −3 11
2 2 2
A−1 = 1 1 −3
.
2 2 2
1 −1 −1
2 2 2
76
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Cramer’s Rule
x by B.
Dx Dy Dz
x= ; y= ; z= ; etc. where D 6= 0.
D D D
Example 2.6.5.
2x + 7y + z = 4
x + 4y − z = 9
x + 3y = 3
2 7 1 x 4
1 4 −1 y = 9 .
1 3 0 z 3
77
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Then
2 7 1
D =| A | = 1
4 −1
1 3 0
2 7 1
= 3
11 0
13 0
3 11
=1× = 3 × 3 − 11 × 1 = 9 − 11 = −2.
1 3
4
7 1
Dx =| Ax | = 9
4 −1
3
3 0
4 7 1
= 13
11 0
3 3 0
13 11
=1× = 13 × 3 − 11 × 3 = 39 − 33 = 6.
3 3
78
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
2 4 1
Dy =| Ay | = 1
9 −1
1 3 0
2 4 1
= 3
13 0
1 3 0
3 13
=1× = 3 × 3 − 13 × 1 = 9 − 13 = −4.
1 3
2 7 4
Dz =| Az | = 1
4 9
1 3 3
0
1 −2
= 1
4 9
0−1 −6
1 −2
= −1 × = −[1 × (−6) − (−1) × (−2)] = −(−6 − 2) = 8.
−1 −6
So
Dx 6
x= = = −3,
D −2
Dy −4
y= = = 2,
D −2
Dz 8
z= = = −4.
D −2
79
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Example 2.7.1.
x + 3y + (2 − 3k)z = 3
2x + 7y + (4 − 7k)z = 7
2x + ky + (k + 2)z = 2k − 1
80
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Solution:
1 0 2 0
R1 − 3R2
∼ 0 1
−k 1
0 0 k2 + k − 2 k − 1
R3 − (k − 6)R2
1 0 2 0
∼ 0 1
−k
1
0 0 (k + 2)(k − 1) k − 1
Then
81
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Tutorial 2.7.1. 1. Use Gauss-Jordan Elimination to find values of x, y and z where possi-
ble and describe whether each type of solution is either unique, no solution or infinitely
many solutions.
(a)
x + 3y + 2z = 4
−2x − 7y + z = 9
3x + 10y + 9z = 19
(b)
x + 2y + z = 2
2x + 3y + 3z = 3
−3x − 4y − 5z = −5
(c)
x + 2y + 3z = 3
2x + 3y + 8z = 4
5x + 8y + 19z = 11
(d) From (a), (b) and (c) above, where you found a unique solution, use the inverse of
82
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(a)
x + 2y + 3z = 3
2x + 3y + 8z = 4
5x + 8y + 19z = 11
(b)
x + y + 2z = 8
−x − 2y + 3z = 1
3x − 7y + 4z = 10
(c)
2x + 5y − z = −4
x + 2y + z = 3
3x − 2y − z = 5
3. For which value(s) of k will the following system of linear equations have
(i) No solution
83
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(a)
x + 2y + z = 3
ky + 5z = 10
2x + 7y + kz = 4
(b)
y + 2kz = 0
x + 2y + 6z = 2
kx + 2z = 1
(i) No solution
x + 2y + 2z = 1
x + ky + 3z = 3
x + 11y + kz = a
Here we are going to look at a very important theorem which determines whether a matrix is
invertible or not.
84
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
Theorem 2.7.1. If R is the reduced row echelon form of an matrix A, then either R has a
(a) A is invertible.
(c) If E results from adding a multiple of one row of to In another, then det(E) = 1.
then
Proof. (⇒:) Assume A is invertible, i.e. A−1 exists. Then AA−1 = In and
85
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
(⇐:) Conversely, assume det(A) 6= 0. Let R be the reduced row echelon form of A. Then there
R = E1 E2 . . . Er A
Now by Theorem (2.7.3) the determinant of an elementary matrix is non-zero, and since
det(A) 6= 0, it then follows that det(R) 6= 0, which imply that R cannot have a row of zeros.
86
CHAPTER 2 – INTRODUCTION TO MATRICES AND LINEAR
EQUATIONS
1 1 0
(e) 0 1 0
0 0 0
2. From question 5. above, show which operations where used to obtain those matrices
87
CHAPTER 3
”Mathematics is the most beautiful and most powerful creation of the human spirit”. Stefan
Banach
3.1. Introduction
In this chapter, the focus is on theory of sets. In 1902, when the theory of sets was new,
Bertrand Russell and others pointed out flaws in the then common assumption that for every
open sentence there corresponds a set. The resolution of Russells and other paradoxes involved
making a distinction between sets and arbitrary collections of objects. Sets may be defined
within a system of axioms for set theory, first developed by Ernst Zermelo and Abraham
Fraenkel. Their axioms assert, for example, that a collection of two sets constitutes a set
(Axiom of Pairing) and that the collection of all subsets of a set is a set (Axiom of Powers).
A second word of caution: Recall that the universe of discourse is a collection of objects
understood from the context or specified at the outset of a discussion and that all objects under
consideration must belong to the universe. Some ambiguity may arise unless the universe is
universe. For the universe of real numbers A is {0, 6}, but A is {6} for the universe of natural
88
CHAPTER 3 – SET THEORY AND RELATION
numbers.
3.2. Sets
Sets play a major role in the foundation of Mathematics. Sets are used to group objects
together. Sets may or may not satisfy a certain property. For instance, we can take a collection
of all students enrolled in the University of Limpopo for year 2020 to form a set. Furthermore
we can also describe other sets within a particular bigger set like for instance taking a set of
students in faculty of Science and Agriculture, School of Mathematical and Computer Sciences,
Students studying SMTB000, etc. It is possible that certain individuals (or objects) may appear
Definition 3.2.1. A set is an unordered collection of well defined objects called the elements
“Member of” or “element of” is a relation between objects and sets. If a is an object and A is
1. Listing the elements in a roster: Here we list elements between the two curly brack-
ets (braces).
e.g. The notation {a, 1, e, 7} represents the set with four elements a, 1, e, and 7. We call
89
CHAPTER 3 – SET THEORY AND RELATION
Sometimes the roster method can be used to describe a set without listing all the mem-
bers. This is done by listing some of the members, and then ellipses (. . .) are used when
e.g. D = {1, 4, 9, 16, . . . , 81, 100} which is clearly a set of all perfect square numbers
from 1 to 100. One can easily make note of obvious elements not listed, for example,
36 ∈ D and 40 ∈
/ D.
2. Set builder notation: We characterized the elements of that set by a specific property
We often use this method when it is impossible to list such elements, though in some
instances it can be easy to list such element. From our example it easy to list elements
in set A, i.e. A = {7, 11, 13}; but it is not possible to list elements of set B = {x : x =
a
b, where a and b are negative integers}, since there are infinite such number in set B.
1. Natural numbers: Natural numbers are also known as counting numbers, beginning
N = {1, 2, 3, 4, . . .}.
N is an infinite set.
N0 = {0, 1, 2, 3, 4, . . .}
2. Integers: Integers consist of natural numbers, negative natural numbers and a zero.
90
CHAPTER 3 – SET THEORY AND RELATION
• Positive integers are integers greater than zero and represented as follows;
Z+ = {1, 2, 3, 4, . . .}.
• Negative integers are integers less than zero and represented as follows;
a
3. Rational numbers are numbers that can be written in the form b where a, b ∈ Z and
b 6= 0; i.e.
a
Q={ : a, b ∈ Z and b 6= 0}.
b
4. Irrational numbers are the opposite of rational, i.e. those numbers that cannot be
a
written as b where a, b ∈ Z and b 6= 0. These can be represented as R \ Q or R − Q or
5. Real numbers consist of all the numbers in the sets discussed above, i.e. more specifi-
cally by combining the rational and irrational numbers we get the real numbers.
6. Complex numbers are numbers of the form a + ib where a, b ∈ R and i2 = −1. (See
Chapter 5)
Definition 3.2.2. A Universal set ia a set which contains all sets including itself. We
91
CHAPTER 3 – SET THEORY AND RELATION
3.2.3 Subsets
The set A is a subset of B if and only if every element of A is also an element of B. We use
and we say A is a proper subset of B. From above example it should be clear that B ⊂ A.
Two sets are equal if they have the same element, and we write A = B if set A and B are
equal sets.
To show that two sets are equal, we must show that A ⊆ B and B ⊆ A. Note that if
A = {1, a, 7} and B = {7, 1, a}, then A = B since both sets contain the same elements. So the
order in which the elements of a set are listed does not matter. Also set {1, 1, 1, a, a, 7, 7, 7}
and {1, a, 7} are equal since both contain same elements, so the repeat elements are just taken
as one element.
An empty set is a set that contains no elements. It is also called the null set and is denoted
by ∅ or {}.
92
CHAPTER 3 – SET THEORY AND RELATION
Definition 3.2.3. Cardinality of a set: The Cardinality of set represent the number of
elements in a given set. If set A has n elements, we say that A is a finite set and n is the
Two or more sets may be combined in many different ways. Here we will discuss the different
A ∩ B = {x : x ∈ A and x ∈ B} = {x : (x ∈ A) ∧ (x ∈ B)}.
Definition 3.2.5. Let A and B be sets. The union of A and B denoted by A ∪ B, is the set
A ∪ B = {x : x ∈ A or x ∈ B} = {x : (x ∈ A) ∨ (x ∈ B)}.
A \ B = A − B = {x : x ∈ A and x ∈
/ B} = {x : (x ∈ A) ∧ (x ∈
/ B)}.
Note that A \ B = A ∩ B c
93
CHAPTER 3 – SET THEORY AND RELATION
A ∪ B ∪ C = {1, 2, 3, 4, 5, a, b, c, d, e, f, g}.
19
Example 3.2.2. If A = {x : x is positive odd numbers less than or equal to 2 } and B =
Solution:
The first thing to do is to list the elements of set A and B so that we can easily see which
Find
(i) A ∩ B
(ii) A ∪ B
(iii) A ∩ C
94
CHAPTER 3 – SET THEORY AND RELATION
(iv) B ∩ D
(v) A ∪ D
(vi) (A − C) ∪ (D − B)
(vii) B − C
(viii) (A ∩ B) ∪ (B ∩ C)
(ix) C − B (challange)
(a) A ∪ ∅ = A
(b) A ∪ A = A
(c) A ∪ B = B ∪ A
(d) (A ∪ B) ∪ C = A ∪ (B ∪ C).
Now, let x ∈ (A ∪ B) ∪ C ⇒ x ∈ (A ∪ B) or x ∈ C.
hence x ∈ A ∪ (B ∪ C).
95
CHAPTER 3 – SET THEORY AND RELATION
Hence (A ∪ B) ∪ C ⊆ A ∪ (B ∪ C).
Let x ∈ A ∪ (B ∪ C) ⇒ x ∈ A or x ∈ B ∪ C.
If x ∈ A then x ∈ A ∪ B, hence x ∈ (A ∪ B) ∪ C.
If x ∈ B ∪ C, then either x ∈ B ⇒ x ∈ (A ∪ B) ∪ C or x ∈ C ⇒ x ∈ (A ∪ B) ∪ C.
So in conclusion A ∪ (B ∪ C) = (A ∪ B) ∪ C.
(a) A ∩ ∅ = ∅
(b) A ∩ A = A
(c) A ∩ B = B ∩ A
(d) (A ∩ B) ∩ C = A ∩ (B ∩ C).
Proof: Exercise
(a) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
(b) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
96
CHAPTER 3 – SET THEORY AND RELATION
Proof. (a)
Let x ∈ A ∩ (B ∪ C)
⇒ x ∈ A and x ∈ B ∪ C
⇒ x ∈ A and (x ∈ B or x ∈ C)
⇒ (x ∈ A and x ∈ B) or (x ∈ A and x ∈ C)
⇒ x ∈ A ∩ B or x ∈ A ∩ C.
so x ∈ A ∩ (B ∪ C).
so x ∈ A ∩ (B ∪ C).
Hence (A ∪ B) ∩ (A ∪ C) ⊆ A ∪ (B ∩ C).
Hence (A ∪ B) ∩ (A ∪ C) = A ∪ (B ∩ C).
(b) Let x ∈ A ∪ (B ∩ C) ⇒ x ∈ A or x ∈ B ∩ C.
If x ∈ A then x ∈ A ∪ B and x ∈ A ∪ C.
So x ∈ (A ∪ B) ∩ (A ∪ C).
i.e. x ∈ (A ∪ B) ∩ (A ∪ C).
Hence A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C).
Conversely, if y ∈ (A ∪ B) ∩ (A ∪ C) ⇒ y ∈ A ∪ B and y ∈ A ∪ C,
y∈
/ A.
97
CHAPTER 3 – SET THEORY AND RELATION
case 1: y ∈ A ⇒ y ∈ A ∪ (B ∩ C),
Otherwise
Proposition 3.3.4. If A and B are sets, then the following are equivalent (TFAE):
(a) A ⊆ B
(b) A ∩ B = A
(c) A ∪ B = B.
But A ∩ B ⊆ A always.
So A = A ∩ B.
(b) ⇒ (a) :
⇒ ∀x ∈ A, x ∈ A ∩ B ⇒ x ∈ B. So A ⊆ B.
(b) ⇒ (c):
Let x ∈ A ∪ B. Then x ∈ A or x ∈ B.
98
CHAPTER 3 – SET THEORY AND RELATION
Also B ⊆ A ∪ B always.
(c) ⇒ (b) :
Let x ∈ A ∪ B ⇒ x ∈ A or x ∈ B.
So A ∪ B ⊆ B.
⇒ A ⊆ B since A ∪ B = B.
Definition 3.3.1. Let A be a set. Then the set of elements that do not belong to the set A is
(a) (Ac )c = A
(b) If A ⊆ B then B 0 ⊆ Ac
99
CHAPTER 3 – SET THEORY AND RELATION
(c) (A ∪ B)c = Ac ∩ B c
(d) (A ∩ B)c = Ac ∪ B c .
Proof. We’ll prove (a) and (c) and then (b) and (d) will be left for exercise.
Let x ∈ (Ac )c ⇔ x ∈
/ Ac
⇔ x ∈ A.
Let x ∈ (A ∪ B)c
⇔x∈
/ (A ∪ B)
⇔x∈
/ A and x ∈
/B
⇔ x ∈ Ac and x ∈ B c
⇔ x ∈ Ac ∩ B c
100
CHAPTER 3 – SET THEORY AND RELATION
(i) A ∩ B = ∅ ⇔ A ⊆ B c .
(ii) If A ∩ B = A ∪ B ⇔ A = B.
Definition 3.3.2. Given two sets A and B, the cartesian product of A and B, denoted by
A × B, is the set of all ordered pairs (a, b), where a ∈ A and b ∈ B, hence
A × B = {(3, 5), (3, 7), (3, 8), (4, 5), (4, 7), (4, 8)}.
and
B × A = {(5, 3), (5, 4), (7, 3), (7, 4), (8, 3), (8, 4)}.
Notice that cartesian product is in general not commutative i.e. A × B 6= B × A. From our
and y = y 0 . So take note of the fact (x, y) is different from {x, y}. If A, B are finite sets, then
Note! (A × B) × C 6= A × (B × C). Why not? What does equality of sets mean? Observe!
(a) (A ∪ B) × C = (A × C) ∪ (B × C)
(b) (A ∩ B) × C = (A × C) ∩ (B × C)
101
CHAPTER 3 – SET THEORY AND RELATION
(x, y) ∈ (A ∪ B) × C
⇒ x ∈ A ∪ B and y ∈ C
So (A ∪ B) × C ⊆ (A × C) ∪ (B × C).
Conversely, let
(p, q) ∈ (A × C) ∪ (B × C)
⇒ (p, q) ∈ A × C or (p, q) ∈ B × C
⇒ p ∈ A and q ∈ C or p ∈ B and q ∈ C
So (A × C) ∪ (B × C) ⊆ (A ∪ B) × C.
(a) (A × B) ∩ (C × D) = (A ∩ C) × (B ∩ D)
(b) (A × B) ∪ (C × D) ⊆ (A ∪ C) × (B ∪ D)
102
CHAPTER 3 – SET THEORY AND RELATION
(x, y) ∈ (A × B) ∩ (C × D)
⇔ x ∈ A ∩ C and y ∈ B ∩ D
⇔ (x, y) ∈ (A ∩ C) × (B ∩ D).
So (A × B) ∩ (C × D) = (A ∩ C) × (B ∩ D)
(x, y) ∈ A × B OR (x, y) ∈ C × D
⇒ (x ∈ A and y ∈ B) OR (x ∈ C and y ∈ D)
⇒ (x ∈ A or x ∈ C) and (y ∈ B or y ∈ D)
⇒ x ∈ A ∪ C and y ∈ B ∪ D
⇒ (x, y) ∈ (A ∪ C) × (B ∪ D)
⇒ (A × B) ∪ (C × D) ⊆ (A ∪ C) × (B ∪ D).
The notion of an ordered pair generalizes to what is known as an ordered n-tuple. The n-
(i) A × (B − C) = (A × B) − (A × C)
103
CHAPTER 3 – SET THEORY AND RELATION
∅, {a}, {b}, {3}, {a, b}, {a, 3}, {b, 3}, {a, b, 3}.
The set which contains all these 8 elements is called the power set of A.
Definition 3.3.3. The power set P(A) of a set A is the collection of all subsets of A.i.e.
Thus, for any set X, the statements X ⊆ A and X ∈ P(A) are equivalent.
104
CHAPTER 3 – SET THEORY AND RELATION
Proof. We must show that P(∅) ⊆ {∅} and {∅} ⊆ P(∅}. If A ∈ P(∅) ⇒ A ⊆ ∅ ⇒ A = ∅. For
if A 6= ∅; then A has a member x and the inclusion A ⊆ ∅, would force x ∈ ∅ which is absurd
Conversely, ∅ ⊆ ∅ (since any set is a subset of itself). Hence ∅ ∈ P(∅), and therefore {∅} ⊆
|P(A)}| = 2n .
In other words, a set with n elements has 2n subsets. This can be proved by induction. We
however omit the proof here since induction is the subject of another chapter.
Y ⊆ Z. Therefore X ∪ Y ⊆ Z.
Z ⊆X ∩Y.
105
CHAPTER 3 – SET THEORY AND RELATION
Proof. (a) We already know that ∅ ⊆ A and A ⊆ A ⇒ ∅ ∈ P(A) and A ∈ P(A). Hence
{∅, A} ⊆ P(A).
(b) (⇒) : Assume A ⊆ B, and let X ∈ P(A). We want to show that X ∈ P(B) which is
P(A) ⊆ P(B).
{x} ∈ P(B), since P(A) ⊆ P(B) ⇒ {x} ⊆ B ⇒ x ∈ B, and thus A ⊆ B. The result is
therefore proved.
(c) Since A ⊆ A ∪ B and B ⊆ A ∪ B, then by part (b) we have that P(A) ⊆ P(A ∪ B) and
P(B) ⊆ P(A ∪ B), and by lemma (1.1 3.3.9 we have P(A) ∪ P(B) ⊆ P(A ∪ B).
OR
(d) (⇒) Since A∩B ⊆ A, we have P(A∩B) ⊆ P(A) by part (b). Similarly P(A∩B) ⊆ P(B).
106
CHAPTER 3 – SET THEORY AND RELATION
Find P(A ∩ B) and P(A − B) and hence determine their cardinality as well.
A ⊕ B = (A − B) ∪ (B − A).
Prove that
(i) A ⊕ A = ∅
(ii) A ⊕ ∅ = A
(iii) (A ⊕ B) − (A − B) = B − A
(iv) A ⊕ B = ∅ ⇒ A = B
3.4. Relations
Definition 3.4.1. A relation R from a set A to a set B is simply any subset of the cartesian
Example 3.4.1. Let A = {1, 3}, B = {2, 3, 4}. Then we can define the following relations
from A to B:
1. R1 = {(1, 4)}
107
CHAPTER 3 – SET THEORY AND RELATION
4. R4 = {(1, 2), (1, 3), (3, 2), (3, 3), (3, 4)}
Definition 3.4.2. Suppose R is a relation from A to B. Then for (a, b) ∈ R we say that a
Solution:
R = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}.
Example 3.4.3. Let A = R and B = R. We define the relation on R from R to R by aRb iff
a2 − b2 = 1, i.e.
R = {(a, b) : a2 − b2 = 1}.
√
The set R contains infinitely many elements, e.g. (2, 3), (1, 0),etc.
There are several properties that are used to classify relations on a set. We will introduce the
most important of these here. Let R be a relation from a set A to the set A itself so that
R ⊆ A × A. Then
108
CHAPTER 3 – SET THEORY AND RELATION
R is symmetric.
transitive.
Example 3.4.6. Let A = {a, b, c}. Then we can define the following relations from A to B:
109
CHAPTER 3 – SET THEORY AND RELATION
3. R3 = {(a, a), (b, b), (a, b), (a, c), (b, c), (b, a)}
4. R4 = {(a, a), (a, b), (a, c), (b, c), (c, b), (b, b), (c, c), (b, a), (c, a)}
Solution:
1. For R1 to be reflexive, for each x ∈ A, (x, x) ∈ R1 , i.e. (a, a), (b, b), (c, c) ∈ R1 . But in
For R1 to be symmetric, we must have that for every (x, y) ∈ R1 , also (y, x) ∈ R1 . We
For transitive, we must have for (x, y) ∈ R1 , (y, z) ∈ R1 then (x, z) ∈ R1 . We have
(a, b) ∈ R1 and (b, c) ∈ R1 , so for transitivity, we need (a, c) ∈ R1 . But in this case,
(a, c) ∈
/ R1 . So R1 is not transitive.
R2 is symmetric.
110
CHAPTER 3 – SET THEORY AND RELATION
Solution:
(a) Reflexive:
(b) Symmetric:
x − y = 10k, for k ∈ Z
−(y − x) = 10k
y − x = 10(−k)
So R is symmetric.
(c) Transitive:
We must show that if xRy, and yRz, then xRz. If xRy, and yRz, then x − y = 10k and
111
CHAPTER 3 – SET THEORY AND RELATION
Now,
x − z = (x − y) + (y − z)
= 10k + 10h
= 10(k + h)
Definition 3.4.4. Let R be an equivalence relation on the nonempty set A. For a ∈ A, the
[a] = {b ∈ A : aRb}.
iff a − b = 2k for k ∈ Z. It is easy to show that R is equivalence relation. Now for any a ∈ A,
112
CHAPTER 3 – SET THEORY AND RELATION
x ≡ 5( mod 3).
Solutions:
x ≡ 5( mod 3) ⇒ x − 5 = 3k for k ∈ Z.
This problem is a consequence of finding [5] when we define relation R to by xRy iff x − y = 3k
for k ∈ Z, hence
= {b ∈ Z : b = 3k + 5, k ∈ Z}
113
CHAPTER 3 – SET THEORY AND RELATION
Solutions:
(a)
(i) Since x + x = 2x and since x ∈ Z then 2x is even, hence xRx hence R is reflexive.
(ii) If xRy, then x + y is even hence y + x is still even since addition in Z is commutative,
(iii) Let xRy and yRz, so x + y = 2k and y + z = 2r for k, r ∈ Z. Adding the two equations
we get
(x + y) + (y + z) = 2k + 2r
x + z = 2k + 2r − 2y
= 2(k + r − y)
hence even since k+r−y ∈ Z. So xRz is also satisfied hence R is transitive. In conclusion
R is an equivalence relation.
(b)
[0] = {y ∈ Z : 0Ry} = {y ∈ Z : 0 + y = 2k k ∈ Z}
= {y ∈ Z : y = 2k k ∈ Z}
= {. . . , −4, −2, 0, 2, 4, . . .}
114
CHAPTER 3 – SET THEORY AND RELATION
= {y ∈ Z : y = 2k − 3, k ∈ Z}
(b) Give a description of the members of each of the following equivalence classes:
(c) Describe [(a, b)] for any fixed values a, b both in set-theoretic terms as well as geometri-
cally.
Solution:
(a) reflexive:
symmetric:
115
CHAPTER 3 – SET THEORY AND RELATION
(x, y)R(u, v) ⇒ x2 + y 2 = u2 + v 2
x2 − u2 = −y 2 + v 2
−u2 − v 2 = −x2 − y 2
−(u2 + v 2 ) = −(x2 + y 2 )
u2 + v 2 = x2 + y 2
⇒ (u, v)R(x, y)
Let (x, y)R(u, v) and (u, v)R(s, t). We need to show that (x, y)R(s, t)
property of “=” we deduce that x2 +y 2 = s2 +t2 ⇒ (x, y)R(s, t) and thus R is transitive.
(b)
= {(x, y) ∈ R × R : x2 + y 2 = 02 + 02 }
= {(x, y) ∈ R × R : x2 + y 2 = 0}
= {(x, y) ∈ R × R : x2 + y 2 = 12 + 32 }
= {(x, y) ∈ R × R : x2 + y 2 = 10}
116
CHAPTER 3 – SET THEORY AND RELATION
√
which is a circle with centre origin and radius 10.
= {(x, y) ∈ R × R : x2 + y 2 = 82 + 62 }
= {(x, y) ∈ R × R : x2 + y 2 = 100}
(c)
= {(x, y) ∈ R × R : x2 + y 2 = a2 + b2 }
Tutorial 3.4.1. 1. Determine whether the following relations are (i) reflexive, (ii) sym-
R = {(b, b), (c, a), (a, b), (a, c), (b, c), (b, a), (c, b), (c, c)}.
117
CHAPTER 3 – SET THEORY AND RELATION
2. From the previous question above, which of (a) to (d) are equivalence relation? Give
R = {(b, a), (b, b), (e, a), (a, a), (e, d), (a, d), (a, e), (b, d)(c, c), (d, a), (e, e), (c, b),
118
CHAPTER 3 – SET THEORY AND RELATION
Remark 3.5.1. • N is the set of natural numbers, the most familiar classical operations
on it are addition + and multiplication ×, more often written as ·, and one even writes
ab instead of a · b:
• Z is the set of integers; apart from the addition and multiplication, denoted by the same
symbols as for natural numbers, one of the most important binary operations on it is
subtraction −: Note that here we use ”minus” as a binary operation, although it can
• The set Q of rational numbers, the set R of real numbers, and the set C of complex
numbers all have addition, multiplication, and subtraction defined on them, and denoted
• x ? (y ? z) = (x ? y) ? z (associativity),
• x ? y = y ? x (commutativity),
idempotent respectively.
Example 3.5.1. (1) Which of the followings define a binary operations on the set of integers?
Of those that do, which are associative? Which are commutative? Which are idempotent?
m+n
(a) m ? n = ,
3
(b) m ? n = 10,
119
CHAPTER 3 – SET THEORY AND RELATION
Find the set of all triples (a, b, c) of real numbers, for which ? is idempotent.
Solutions
−1 + 2 1
1. (a) By counter example −1 ? 2 = = ∈/ Z. Since ? is not a binary operation on Z,
3 3
we don’t have to check associativity, commutatuvity and idempotency.
then ? is associative.
The binary operation ? is not idempotent because m ? m = 10 6= m if m 6= 10. Note that this
can still be solved by using a counter example. (Left for students as an exercise).
Tutorial 3.5.1. (1) Which of the followings define a binary operations on the set of integers?
Of those that do, which are associative? Which are commutative? Which are idempotent?
(a) m ? n = mn + 1,
m+n
(b) m ? n = ,
2
(c) m ? n = m,
(d) m ? n = mn2 ,
(e) m ? n = m2 + n2 ,
(f) m ? n = 3,
(g) m ? n = mn .
(a) Find the set of all triples (a, b, c) of real numbers, for which ? is associative.
(b) Find the set of all triples (a, b, c) of real numbers, for which ? is commutative.
120
CHAPTER 3 – SET THEORY AND RELATION
There are various examples of algebraic structures. We are going to give more attention on
Definition 3.5.1. An element e of the set S is an identity (an identity element) for the binary
operation ? on S if e ? a = a ? e = a, ∀a ∈ S.
Example 3.5.2. 0 is the identity element with respect to addition in the sets N0 , N, Z, and
many more.
a+b
Example 3.5.3. Define ? on R by a ? b = for all a, b ∈ R. Find the identity e and the
4
0 0
inverse a with respect to ?, for all e, a ∈ R.
a+e
Solution : We have a = a ? e = . We then obtain that a + e = 4a and hence e = 3a.
4
That is, the identity here is 3a.
0
0 0 a+a
For the inverse, we obtain that a ? a = e. We then have a ? a = 3a. That is = 3a, so
4
0 0
that a + a = 12a and hence a = 11a.
Tutorial 3.5.2. Which of the followings define a binary operations on the set of integers? Of
those that do, find the identity and the inverse with respect to ?
(a) m ? n = mn + 1,
m+n
(b) m ? n = ,
2
(c) m ? n = m,
(d) m ? n = mn2 ,
(e) m ? n = m2 + n2 ,
121
CHAPTER 3 – SET THEORY AND RELATION
(f) m ? n = 3,
(g) m ? n = mn .
Definition 3.5.3. A group G, ? is a set G together with a binary opeartion ? sastisfying the
Example 3.5.4. The set Z of integers is a group with respect to addition and subtraction,
but this set is not a group with respect to multipucation because there is no identity element,
again the set Z of ingetrs is not a group with respect to division because division is not a
binary operation in Z.
a ∨ (b ∨ c) = (a ∨ b) ∨ c
a ∨ b = b ∨ a,
a ∨ a = a,
a ∧ (b ∧ c) = (a ∧ b) ∧ c,
a ∧ b = b ∧ a,
a ∧ a = a,
122
CHAPTER 3 – SET THEORY AND RELATION
a ∧ (a ∨ b) = a,
a ∨ (a ∧ b) = a,
a ∧ (b ∨ c) = (a ∧ b) ∨ (a ∧ c)
a ∨ (b ∧ c) = (a ∨ b) ∧ (a ∨ c)
a ∧ (¬a) = 0,
a ∨ (¬a) = 1,
0 ∨ a = a = a ∨ 0,
and 1 ∧ a = a = a ∧ 1,
for all a, b, c ∈ B.
(c) x ∧ (¬x ∨ y) = x ∧ y.
(b) It is sufficient to prove that (x ∧ y) ∨ (¬x ∨ ¬y) = 1 and (x ∧ y) ∧ (¬x ∨ ¬y) = 0. Now
= (1 ∨ ¬y) ∧ (¬x ∨ 1)
= 1∧1
= 1
123
CHAPTER 3 – SET THEORY AND RELATION
and
= (0 ∧ y) ∨ (x ∧ 0)
= 0∨0
= 0,
(c) This is a straight forward calculation, since x∧(¬x∨y) = (x∧¬x)∨(x∧y) = 0∨(x∧y) = x∧y.
Tutorial 3.5.3. Let (B, 0, ∨, 1, ∧, ¬) be a Boolean algebra and x, y ∈ B. Prove the following
(d) ¬1 = 0.
(e) x ∨ (¬x ∧ y) = x ∨ y.
(f) ¬(¬x) = x.
3.6. Functions
(a) Domain of f is A
124
CHAPTER 3 – SET THEORY AND RELATION
Onto(Surjective) Functions
Solution:
5x − 2 = y
5x = y + 2
y+2
x= ∈ R for any y ∈ R.
5
125
CHAPTER 3 – SET THEORY AND RELATION
Solution:
Since the codomain is any y ∈ R, we can prove by using counter-example that x cannot
x2 + 4 = 2 ⇒ x2 = −2.
It is clear from this that there is no solution of x which satisfies such expression.
One-to-One(Injective) Functions
only if for
Solution:
f (x) = f (y) ⇒ 5x − 2 = 5y − 2
5x = 5y
x = y.
126
CHAPTER 3 – SET THEORY AND RELATION
Solution:
f (x) = f (y) ⇒ x2 + 4 = y 2 + 4
x2 = y 2 .
But the last expression doesn’t mean that x = y, for example, if x = 3 and y = −3. It
one-to-one.
Tutorial 3.6.1. Check whether the following functions are onto or one-to-one. Show your
steps clearly.
127
CHAPTER 3 – SET THEORY AND RELATION
Example 3.6.3. Suppose f (x) = 2x2 + 4 and g(x) = 3x − 1. Find the composite functions
f g and gf .
Solution
= 2(9x2 − 6x + 1) (3.3)
= 3(2x2 + 4) − 1 (3.6)
= 6x2 + 12 − 1 (3.7)
= 6x2 + 11 (3.8)
Note 3.6.1. The identity function is a function f (x) such that f (x) = x for all x.
Remark 3.6.1. If gf = f g then we have f g(x) = gf (x) = x called the identity function. In
1. f −1 ;
2. f (f −1 ) and f −1 f .
Solutions
x+9
1. To obtain f −1 , we put x = 4y − 9 and solve for y. That is y = . Thus f −1 (x) =
4
x+9
.
4
128
CHAPTER 3 – SET THEORY AND RELATION
x+9 x+9
2. f (f −1 (x)) = f ( ) = 4( ) − 9 = x. Similarly f −1 f = x.(TRY IT)
4 4
2. if gf is injective, then so is f ;
4. if gf is surjective, then so is g;
0 0
Proof. 1. Let a, a ∈ A. If g is injective, then it means that g(f (a)) = g(f (a )) implies
0 0 0
f (a) = f (a ). Since f is also injective then f (a) = f (a ) implies a = a . Hence g(f (a)) =
0 0
g(f (a )) resulted in a = a implies that gf is injective.
0 0
2. Suppose f (a) = f (a ), we then obtain that g(f (a)) = g(f (a )) and since gf is injective,
0 0
it follows that a = a , ∀a, a ∈ A. Hence f is injective.
there exists a ∈ A with f (a) = b. Hence g(f (a)) = g(b) = c., proving that gf is surjective.
4. Since gf is surjective, there exists a ∈ A with g(f (a)) = c, and we can take b = f (a).
129
CHAPTER 3 – SET THEORY AND RELATION
0 0
6. Suppose gf is bijective, f is surjective, and b and b be elements in B with g(b) = g(b ).
0 0 0
Since f is surjective, we have b = f (a) and b = f (b ) for some a and a in A. Since gf is
0 0 0
injective, this gives a = a , and so b = f (a) = f (a ) = b . This proves that g is injective.
have g(b) = g(f (a)) for some a in A. Since gf is injective, this gives b = f a. This proves
3x2 + 10x ≤ 5x + 2
3x2 + 10x − 5x − 2 ≤ 0
3x2 + 5x − 2 ≤ 0
(3x − 1)(x + 2) ≤ 0
1
Critical values are: x = 3 and x = −2.
We can use the table or number line method to find our solution:
1
−2 3
3x − 1 − − − 0 + +
x+2 − 0 + + + +
(3x − 1)(x + 2) + 0 − 0 + +
130
CHAPTER 3 – SET THEORY AND RELATION
3x − 1
≥2
x+2
3x − 1
−2≥0
x+2
3x − 1 − 2(x + 2)
≥0
x+2
3x − 1 − 2x − 4
≥0
x+2
x−5
≥ 0 (x 6= −2)
x+2
We can use the table or number line method to find our solution:
−2 5
x−5 − − − 0 +
x+2 − 0 + + +
3x−1
x+2 + ∞ − 0 +
131
CHAPTER 3 – SET THEORY AND RELATION
⇒ 3x − x > 1 + 4 or − 3x + 4 − x > 1
⇒ 2x > 5 or − 4x > −3
5 3
⇒x> or x <
2 4
|x| − 3 x−3 −x − 3
<2⇒ < 2 or <2
x−2 x−2 x−2
x−3 −x − 3
⇒ − 2 < 0 or −2<0
x−2 x−2
−x + 1 −3x + 1
⇒ < 0 or <0
x−2 x−2
x−1 3x − 1
⇒ > 0 or >0
x−2 x−2
4x + 1
Tutorial 3.6.2. In each of the following, solve for x. (a) (x + 2)2 < 4 (b) ≥ 1 (c)
x−1
x+3 |x| + 5
|5x − 1| ≤ 2x − 3 (d) < 1 (e) <2
2x − 1 x−3
132
CHAPTER 4
MATHEMATICAL INDUCTION,
COMBINATORICS
Definition 4.1.1. Natural numbers are the numbers used in counting. Thus we denote the
The Principle of Mathematical Induction is a method of proving results about the natural
numbers or positive integers. This is based on the fact that the natural numbers can be
arranged in a sequence, with a definite starting point 1, and in such case, each natural number
133
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
n2 (n + 1)2
13 + 23 + 33 + . . . + n3 = ∀n ∈ N.
4
Solution:
n2 (n+1)2
Let P (n) be the statement 13 + 23 + 33 + . . . + n3 = 4 ∀n ∈ N.
12 (1+1)2 4
P (1) : LHS = 13 = 1 and RHS = 4 = 4 = 1,
k2 (k+1)2
Assume P (k) is true i.e. 13 + 23 + 33 + . . . + k 3 = 4 for some k ∈ N. Then we need to
134
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Now
LHS = 13 + 23 + 33 + . . . + k 3 + (k + 1)3
k 2 (k + 1)2
= + (k + 1)3 (by assumption),
4
k2
= (k + 1)2 [ + (k + 1)] (taking common factor of (k + 1)2 ),
4
k 2 + 4k + 4
= (k + 1)2 [ ]
4
(k + 2)(k + 2)
= (k + 1)2 [ ]
4
(k + 1)2 (k + 2)2
=
4
= RHS.
Example 4.1.2. Use the Principle Mathematical Induction to prove that 7n+2 + 82n+1 is
Solution:
Let P (n) be the statement: 7n+2 + 82n+1 is divisible by 57 for every non-negative integer.
Assume P (k) is true for some k ≥ 0.i.e. 7k+2 + 82k+1 = 57p for p ∈ Z and k ≥ 0.
Also
135
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
= 7(k+2)+1 + 8(2k+1)+2
= 7k+2 · 7 + 82k+1 · 82
= 399p + 57 · 82k+1
= 57(7p + 82k+1 )
Definition 4.1.2. Factorial: For a natural number n, n factorial, written n!, is defined as
We also define 0! = 1
etc
Solution:
136
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Then we need to deduce that P (k + 1) is also true, i.e. 2k+1 < (k + 1)!
From assumption
2 · 2k < 2k!
= (k + 1)!.
n(n+1)(2n+1)
(b) 12 + 22 + 32 + · · · + n2 = 6 for all n ∈ N.
n(n+1)(n+2)
(c) 1 · 2 + 2 · 3 + 3 · 4 + · · · + n(n + 1) = 3 for all n ∈ N.
1 2 3 n 1
(d) 2! + 3! + 4! + ··· + (n+1)! =1− (n+1)! for all n ∈ N.
1 1 1 1 n−2
(e) 2·3 + 3·4 + 4·5 + ··· + (n−1)n = 2n for all n ≥ 3, n ∈ N.
h n i
(f) 1 + 5−1 + 5−2 + · · · + 5−n+1 = 5
4 1− 1
5 ∀n ∈ N.
(g) 5n − 4n − 1 is divisible by 16 ∀n ∈ N.
137
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
(i) n2 + n is even ∀n ∈ N.
Recall the factorial of the natural number n! = n(n − 1)(n − 2)(n − 3) . . . (3)(2)(1).
24! (24)(23)(22)(21)20!
(a) 20! = 20! = (24)(23)(22)(21) = 255024.
(n+1)! (n+1)n(n−1)!
(b) (n−1)! = (n−1)! = n(n + 1) = n2 + n
“n choose r”. We interpret nr as a number of ways of choosing r objects from the total of n
objects.
9 9! 9! 9·8·7·6!
Example 4.2.2. 3 = 3!(9−3)! = 3!6! = 3·2·1·6! = 84.
138
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
n n
(i) 0 = n = 1.
n n
(ii) 1 = n−1 = n.
n n
(iii) r = n−r .
n n! n!
Proof. (i) 0 = 0!(n−0)! = n! = 1. We used the fact that 0! = 1.
n n! n!
n = n!(n−n)! = n!0! =1
n
n! n(n−1)!
(ii) 1 = 1!(n−1)! = (n−1)! = n.
n
n! n(n−1)!
n−1 = (n−1)![n−(n−1)]! = (n−1)!1! = n.
n n! n! n
RHS = n−r = (n−r)![n−(n−r)]! = (n−r)!r! = n−r = LHS.
or
n n n+1
+ = .
r r+1 r+1
n n n+1
Proof. We will show the proof of r + r−1 = r .
139
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
n n n! n!
+ = +
r r−1 r!(n − r)! (r − 1)![n − (r − 1)]!
n! n!
= +
r!(n − r)! (r − 1)!(n − r + 1)!
n! n!
= +
r(r − 1)!(n − r)! (r − 1)!(n − r + 1)(n − r)!
n! h1 1 i
= +
(r − 1)!(n − r)! r n − r + 1
n! hn − r + 1 + ri
=
(r − 1)!(n − r)! r(n − r + 1)
n!(n + 1)
=
(r − 1)!r(n − r)!(n − r + 1)
(n + 1)!
=
r!(n − r + 1)!
n+1
=
r
Pascals rule is used to generate the coefficients in binomial expansions. Consider the patterns
that follows below where each row has a value of n starting from row 1 with n = 0.
140
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
0
0
1 1
0 1
2 2 2
0 1 2
3 3 3 3
0 1 2 3
4 4 4 4 4
0 1 2 3 4
5 5 5 5 5 5
0 1 2 3 4 5
6 6 6 6 6 6 6
0 1 2 3 4 5 6
7 7 7 7 7 7 7 7
0 1 2 3 4 5 6 7
..
.
The coefficients give rise to a special pattern which is called the Pascal’s Triangle (after
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
141
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
..
.
(x + y)0 = 1
(x + y)1 = x + y
(x + y)2 = x2 + 2xy + y 2
..
.
and so forth.
Theorem 4.2.3. Binomial Theorem: Let x and y be variables, and let n, r ∈ N such that
0 ≤ r ≤ n. Then
n
n
X n n−r r
(x + y) = x y
r
r=0
n n n n−1 n n−1 n n
= x + x y + ... + xy + y .
0 1 n−1 n
Proof. We prove our result by using the principle of mathematical induction. We let P (n) :
We must now deduce that P (k + 1) is also true, i.e. we must show that
k+1
k+1
X k+1
P (k + 1) : (x + y) = x(k+1)−r y r is also true.
r
r=0
142
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Solution:
6
6
X 6 6−r r
(a) (a + b) = a b
r
r=0
6 6 6 5 6 4 2 6 3 3 6 2 4 6 5 6 6
= a + a b+ a b + a b + a b + ab + b
0 1 2 3 4 5 6
143
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
(b) (2x − 3y 2 )5
5
X 5
= (2x)5−r (−3y 2 )r
r
r=0
5 5 5 4 2 5 3 2 2 5
= (2x) + (2x) (−3y ) + (2x) (−3y ) + (2x)2 (−3y 2 )3
0 1 2 3
5 2 4 5
+ (2x)(−3y ) + (−3y 2 )5
4 5
n
For a binomial expression (x + y)n , the r-th term is given by xn−r+1 y r−1 .
r−1
Example 4.2.5. Expand (1, 04)5 by the binomial formula and find its value to two decimal
places.
Solution:
We obtained that
= 1, 22
3y 10
Example 4.2.6. Find the 8th term of (x2 − x) without expanding the expression.
Solution:
144
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
3y 10
8th term of (x2 − x) is
10 2 10−8+1 3y 8−1 10 3y
(x ) (− ) = (x2 )3 (− )7
8−1 x 7 x
10! y7
= (x6 )(−3)7 ( 7 )
7!(10 − 7)! x
10 · 9 · 8 · 7! 6−7
= x (−2187)y 7
7!3!
y7
= −262 440 .
x
Example 4.2.7. Without expanding the expression, find the coefficient of x5 from the binomial
Solution:
P10 10
Using the Binomial theorem, (x2 − x2 )10 = (x2 )10−r (− x2 )r .
r=0 r
x5 = x20−3r
5 = 20 − 3r
3r = 15
∴r=5
10 10!
(−2)5 = (−32) = −8 064.
5 5!5!
1 9
Example 4.2.8. Find the constant term of the binomial expression (2x + x2
) .
145
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
9 9−r 1 r 9 9−r 9−r −2r
(2x) ( 2 ) = 2 x x
r x r
9 9−r 9−3r
= 2 x
r
Now the constant term is term independent of x hence the coefficient of x0 ,
x0 = x9−3r
0 = 9 − 3r
3r = 9
∴r=3
Therefore substituting r = 3, the constant term is:
9 9−3 9! 6
2 = 2 = 5 376.
3 6!3!
T1 = xn = a8
T2 = nxn−1 y = 8a7 b
n(n − 1) n−2 2 8 · 7 6 2
T3 = x y = a b = 28a6 b2
2! 2·1
n(n − 1)(n − 2) n−3 3 8 · 7 · 6 5 3
T4 = x y = a b = 56a5 b3
3! 3·2·1
n(n − 1)(n − 2)(n − 3) n−4 4 8 · 7 · 6 · 5 4 4
T5 = x y = a b = 70a4 b4
4! 4·3·2·1
n(n − 1)(n − 2)(n − 3)(n − 4) n−5 5 8 · 7 · 6 · 5 · 4 3 5
T6 = x y = a b = 56a3 b5
5! 5·4·3·2·1
n(n − 1)(n − 2)(n − 3)(n − 4)(n − 5) n−6 6 8 · 7 · 6 · 5 · 4 · 3 2 6
T7 = x y = a b = 28a2 b6
6! 6·5·4·3·2·1
n(n − 1)(n − 2)(n − 3)(n − 4)(n − 5)(n − 6) n−7 7 8 · 7 · 6 · 5 · 4 · 3 · 2 7
T8 = x y = ab = 8ab7
7! 7·6·5·4·3·2·1
n(n − 1)(n − 2)(n − 3)(n − 4)(n − 5)(n − 6)(n − 7) n−8 8 8 · 7 · 6 · 5 · 4 · 3 · 2 · 1 0 8
T9 = x y = a b = b8
8! 8·7·6·5·4·3·2·1
146
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
We have (n + 1) terms in the expansion (a + b)n . That is n can either be odd or even. We look
Case 1: If n is even.
n
If n is even then (n + 1) will be odd, then we obtain that + 1 th term will be the only one
2
middle term in the expansion.
10
+ 1 = 6th will
For example, if n = 10, number of terms will be 10 + 1 = 11, therefore
2
be the middle term.
Case 2: If n is odd.
If n is odd then (n + 1) will be even, in this case there will not be a single middle term, thus
n + 1 n+1
and + 1 are the two middle terms. For example, if n = 11, number of terms
2 2
11 + 1 11 + 1
= 6th and + 1 = 7th are the two middle terms.
will be 11 + 1 = 12, therefore
2 2
x2 14
Example 4.2.10. Find the middle term of 1 − .
2
Solution: We have n = 14, then the number of terms is 15.
14
+ 1 = 8th term will be the middle term.
∴
2
2
Thus, a = 1, b = − x2 , n = 14, r = 7 and T8 =?.
147
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
n n−r r
From the general term Tr+1 = a b , we obtain
r
T7+1 = T8
x2
14
= (1)14−7 (−
7 2
14! x 14
= (−1)7 7
7!7! 2
14 · 13 · 12 · 11 · 10 · 9 · 8 · 7! −1
= · x14
7 · 6 · 5 · 4 · 3 · 2 · 1 · 7! 128
1
= (−2 · 13 · 13 · 11 · 2 · 3) · x14
128
429 14
= − ·x .
16
1
Example 4.2.11. Expand the first three terms of (2x− x3 )3
Solution:
Comparing this with the binomial expansion (a + b)n , we substitute a = 2x, b = − x3 and
T1 = an = (2x)−3 = 1
8x3
..
T2 = nan−1 b = (−3)(2x)−3−1 (− x3 ) = 9
16x4 x
= 9
16x5
.
n(n−1) n−2 2 (−3)(−3−1) (−3)(−4)(3)2
T3 = 2! a b = 2×1 (2x)−3−2 (− x3 )2 = 2×25 x5 x2
= 27
16x7
.
So
1 3 1 9 27
= (2x − )−3 = 3 + + + ...
(2x − x3 )3 x 8x 16x5 16x7
148
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Solution:
q 1
y
We rewrite the expression as 3
8x3 − x = (8x3 − xy ) 3 .
Comparing this with the binomial expansion (a + b)n , we substitute a = 8x3 , b = − xy and
n = 13 . We then obtain:
1
T1 = an = (8x3 ) 3 = 2x.
1
T2 = nan−1 b = 13 (8x3 ) 3 −1 (− xy ) = − y
2
y
= − (3)(4x y
2 )x = − 12x3 .
(3)(23 x3 ) 3 x
1 1
n(n−1) n−2 2 ( −1) 1 y2 2
T3 = 2! a b = 3 3
2·1 (8x3 ) 3 −2 (− xy )2 = − 19 5
y
= − 288x 7.
(23 x3 ) 3 x2
1 1
n(n−1)(n−2) n−3 3 ( −1)( 13 −2) 1 10
y3 3
T4 = 3! x y = 3 3
3·2·1 (8x3 ) 3 −3 (− xy )3 = − 27
6 8
5y
= − 20 736x 11 .
(23 x3 ) 3 x3
So
y2 5y 3
r
y y 1 y
3
8x3 − = (8x3 − ) 3 = 2x − − − − ...
x x 12x3 288x7 20 736x11
77 77
(a) 31 + 32
92 91
(b) 22 − 21
k+7 k+7
(c) 10 + 9
(a) (x + 3y)5
149
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
7
1
(c) x + 2x
(a) (x − 2)10
6
(b) x22 − x3
7
(c) x14 − 2x
4. From the questions in 3. above, find the forth term of each in (a) to (c).
5
2
5. Find the constant term of x2
− x3 .
1
(a) (x−2)3
1
2 3
(b) x2
− x3
−2
y
(c) x − 2x2
2
(c) 21
2
x2 − yx
4.3.1 Permutations
Suppose five people are standing in an ATM queue. the question is how many possible orders
are there of their standing position. To answer this, we must first observe that there are five
people, and the first person will be chosen in five different ways. After choosing the first person
we remain with four more people and the second person will be chosen in four different ways.
150
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Continuing in the same way we choose the third, fourth and fifth person in three, two and one
5 × 4 × 3 × 2 × 1 = 120 ways.
Suppose we were to select a team of 5 best athletes from 10 depending to their finishing
positions in a trial race. So the first runner will be selected in 10 ways, the second in 9 ways,
third in 8 ways, fourth in 7 ways and the fifth in 6 ways. This gives us
In these examples we took into consideration of the order of arrangements. Such arrangement
n
Pr = n × (n − 1) × (n − 2) × · · · × (n − r + 1)
n n!
Pr = .
(n − r)!
In this way, we immediately see that the number of permutations of n objects from n objects is
n n!
Pn = = n!.
0!
Example 4.3.1. How many two-digit numbers can be formed from the numbers 2, 3, 5, 7, 8
if
151
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Solution:
(a) With no repetition; There are five digits to choose from to get the two-digit number.
So the first digit can be chosen in 5 ways and second can be chosen in 4 ways since we
5 × 4 = 20 ways.
(b) With repetition; the first digit can be chosen in 5 ways and second can be again be chosen
in 5 ways since we are allowed to repeat the digit already used. So we have
5 × 5 = 25 ways.
Example 4.3.2. How many three-digit numbers can be formed from the numbers 0, 3, 4, 5,
6, 9 if
Solution:
(a) With no repetition; There are 6 digits to choose from to get the three-digit number. We
must note that 0 cannot be in the first position, hence for first position we restrict our
choice to the other 5 digits. So the first digit can be chosen in 5 ways; and for the second
place we can now also choose 0, so we will have 4 remaining digits and a 0 hence five
5 × 5 × 4 = 100 ways.
152
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
(b) With repetition; the first digit can be chosen in 5 ways excluding 0, but second and third
position we will have 6 choices since we are allowed to repeat the digit already used and
5 × 6 × 6 = 180 ways.
Example 4.3.3. In a beauty pageant competition, how many ways can we select a queen,
first princess and second princess if there are 30 contestants who entered the competition?
Solution:
Theorem 4.3.2. Given a set of n objects of which n1 are of one kind, n2 are of the second
kind,· · · , and nk are of the k-th kind, then the number of distinguishable permutations Pd is
n!
Pd = . (4.1)
n1 !n2 ! · · · nk !
(b) How many distinct arrangements are there if the word start with letter “S” and ends
with “S”.
153
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Solution:
(a) The word STATISTICS has 10 letters with 3 “S”, 3 “T”, 2 “I”, 1 “A” and 1 “C”.
10!
Pd = = 50 400.
3!3!2!
(b) Since we know what is in the first and last position, so in the case of 3 “S”, we take out 2
and put them in first and last place and left with one. So we will only permute the remaining
4.3.2 Combination
Frequently we are not concerned with the order in which the objects are chosen, but merely
which objects are chosen, i.e. we may be concerned with a selection or a combination.
Theorem 4.3.3. The number of r-combinations of a set with n elements, where n is a non-
n n!
Cr = .
r!(nr)!
Example 4.3.5. How many different committees of four students can be formed from a group
of ten students?
154
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
Solution:
In this case , there is no specific order specified, so we are only interested in the number of
10 10! 10!
C4 = = = 210.
4!(10 − 4)! 4!6!
Note: n C0 = 1, n Cn = 1 and n C1 = n
20 20
2. If Cr+11 = C3r+1 , find r.
Solution
1. If n Cn−4 = 15.
∴n C4 = 15 by Corollary 4.3.4
n(n−1)(n−2)(n−3)
4! = 15
∴ n = 6.
Hence r = 5.
20 20
OR Cr+11 = C20−(r+11)
20 20
Cr+11 = C9−r
155
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
9 − r = 3r + 1
Hence r = 2.
Example 4.3.7. Suppose we have 5 boys and 7 girls. A team of 5 is to be selected to play in
Solution:
(c) For a team to have more boys than girls, we can have either have 3 boys or 4 boys or 5
5
C3 ×7 C2 +5 C4 ×7 C1 +5 C5 ×7 C0
5! 7! 5! 7! 5! 7!
= × + × + ×
3!(5 − 3)! 2!(7 − 2)! 4!(5 − 4)! 1!(7 − 1)! 5!(5 − 5)! 0!(7 − 0)!
5! 7! 5! 7! 5! 7!
= × + × + ×
3!2! 2!5! 4!1! 1!6! 5!0! 0!7!
= 10 × 21 + 5 × 7 + 1 × 1
= 210 + 35 + 1 = 246.
156
CHAPTER 4 – MATHEMATICAL INDUCTION, BINOMIAL THEOREM
AND COMBINATORICS
(a) How many three-digit odd integers can be formed without repetition?
(b) How many two-digit even integers can be formed with repetition?
(a) How many seven letter words can be formed with and without repetition?
(b) How many five letter words which consist of consonants only can be formed without
repetition?
(c) How many eight letter words can be formed which contains all vowels of alphabets
without repetition?
3. A committee of 5 people must be chosen such that there must be chairperson, vice-
(a) How many ways can a committee be formed from this information?
(c) How many ways can a committee be formed if Mrs Jansen and Mr Tlou are the
4. If n P5 = n+1
P4 , find n.
5. If n C20 = n
C35 , find n.
“There is nothing so easy but that it becomes difficult when you do it reluctantly.” Pythagoras
157
CHAPTER 5
COMPLEX NUMBERS
”To those who ask what the infinitely small quantity in mathematics is, we answer that it is
actually zero. Hence there are not so many mysteries hidden in this concept as they are usually
5.1. Introduction
In this chapter we are going to explore how complex numbers arose and the need for them. We
are also going to discuss the various ways of representing complex numbers. We are going to
learn how to perform various algebraic operations with complex numbers, find roots of complex
Suppose we have to solve quadratic equation such as x2 + 1 = 0, i.e. we must find x such
that x2 = −1. In high school we learnt that there are no real roots for such equation. In
mathematics, it is possible to extend the number system beyond the real numbers in order to
solve equation such that x2 = −1. We call these numbers imaginary numbers.
158
CHAPTER 5 – COMPLEX NUMBERS
i2 = −1, where a is called the real part and b the imaginary part.
denoting x the real part of z and y = Im(z) denoting the imaginary part of z. Note that the
√ √
Example 5.2.1. Let z = 5 − 3i and w = − 10 + 2i.
Solution:
√ √
Re(z) = 5; Im(z) = − 3 and Re(w) = − 10; Im(w) = 2.
Definition 5.2.3. Let z = a + bi; then the conjugate of z, denoted by z is given by:
z = a + bi = a − bi.
(a) z = 5 + 2i
(b) z = −3 + i
(c) z = −3 − 3i
√
(d) z = 5i − 3
(e) z = −1
159
CHAPTER 5 – COMPLEX NUMBERS
Solutions:
(a) z = 5 + 2i = 5 − 2i
(b) z = −3 + i = −3 − i
(c) z = −3 − 3i = −3 + 3i
√ √
(d) z = 5i − 3 = − 5i − 3
(e) z = −1 = −1.
z z̄
(a) z + w = z̄ + w̄; z − w = z̄ − w̄; zw = z̄ w̄; w = w̄ ; and z̄¯ = z.
(c) z ∈ R ⇒ z = z̄.
Theorem 5.2.2. Factor Theorem: A polynomial f (x) has a factor (x − a) if and only if
f (a) = 0.
Remark 5.2.1. Suppose that a is a root of f (z). Using Theorem 5.2.2, we get that z − a is a
factor of f (z). If α is a root of f (z) then so is ᾱ. This means that z − α and z − ᾱ are factors
√
−b ± b2 − 4ac
It is well known that a quadratic formula x = is use to solve for equation of
2a
the form ax2 + bx + c = 0.
160
CHAPTER 5 – COMPLEX NUMBERS
= −2 ± i (5.6)
2. Given that x + 1 is a factor of the expression f (x) = x3 + 5x2 + 9x + 5. Find the other
two factors.
x2 + 4x + 5
x3 + 5x2 + 9x + 5
x+1
− x3 − x2
4x2 + 9x
− 4x2 − 4x
5x + 5
− 5x − 5
0
By Example 5.2.3(1), we obtained that the other roots are −2 + i and −2 − i.
3. Given that −2 − i is a root of the expression f (x) = x3 + 5x2 + 9x + 5. Find the other
two roots.
Solution By Remark 5.2.1, the other root is −2 − i = −2 + i. Using the factor theorem,
161
CHAPTER 5 – COMPLEX NUMBERS
x − (−2 − i) and x − (−2 + i) are factors of f (x). Thus [x − (−2 − i)][x − (−2 + i)] =
x3 + 5x2 + 9x + 5
[(x + 2) + i][(x + 2) − i = x2 + 4x + 5. Clearly = x + 1.
x2 + 4x + 5
Remark 5.2.2. Remember that if you are not given a root or a factor, you should find one
factor by inspection.
2. Find a quadratic equation with real coeffients which has 2 + i as one of its roots.
3. If f (z) = z 4 − 2z 3 + 6z 2 − 8z + 8
other roots.
For all the operations that follow below, we let z = a + bi and w = c + di.
162
CHAPTER 5 – COMPLEX NUMBERS
Equality
The complex numbers z and w are said to be equal if and only if a = c and b = d; i.e.
z = w ⇔ a = c and b = d.
z + w = (a + bi) + (c + di)
= (a + c) + (b + d)i
z − w = (a + bi) − (c + di)
= (a − c) + (b − d)i
form.
Then
= 3 + 5i
= 11 − 9i
163
CHAPTER 5 – COMPLEX NUMBERS
Multiplication
zw = (a + bi)(c + di)
Division
z a + bi
=
w c + di
(a + bi)(c − di)
=
(c + di)(c − di)
ac + bd + (bc − ad)i
=
c2 + d2
ac + bd bc − ad
+ 2 i.
c2 + d2 c + d2
z w
Example 5.2.6. If z = 5 − 2i and w = −6 − i then write w and z in real-imaginary form.
z 5 − 2i
=
w −6 − i
(5 − 2i)(−6 + i)
=
(−6 − i)(−6 + i)
−30 + 5i + 12i − 2i2
=
62 + 1 2
−30 + 2 17 −28 17
= + i= + i.
37 37 37 37
w
z (exercise)
164
CHAPTER 5 – COMPLEX NUMBERS
Example 5.2.7. Simplify the following expression and write the answer in real-imaginary
form.
(2−i)(1+i)
(b) 4−3i ,
2
(c) i2 − i3 − i5
,
Solutions:
(a)
= 4i + 20i2 − 25i
= −20 − 21i
(b)
(2 − i)(1 + i) 2 + 2i − i − i2
=
4 − 3i 4 − 3i
2+1+i
=
4 − 3i
3+i 4 + 3i
= ×
4 − 3i 4 + 3i
12 + 9i + 4i + 3i2
=
16 + 9
12 − 3 + 13i
=
25
9 13
= + i.
25 25
165
CHAPTER 5 – COMPLEX NUMBERS
(c)
2 2
i2 − i3 − 5
= −1 − ii2 − 2 2
i i(i )
2
= −1 + i −
i(−1)2
2 i
= −1 + i − ×
i i
2i
= −1 + i −
−1
= −1 + i + 2i
= −1 + 3i.
√
(c) 3 − i = x + iy,
Solutions:
(a)
3(x − iy) = 5 − 9i
3x − i3y = 5 − 9i
Equating the real part and imaginary parts on both sides we get
5
3x = 5 and −3y = −9 hence x = 3 and y = 3.
166
CHAPTER 5 – COMPLEX NUMBERS
(b)
x + i8y = 7 − 16i
Equating the real part and imaginary parts on both sides we get
(c)
p
3−i= x + iy
p
(3 − i)2 = ( x + iy)2
9 − 6i + i2 = x + iy
9 − 1 − 6i = x + iy
8 − 6i = x + iy
Equating the real part and imaginary parts on both sides we get
x = 8 and y = −6.
(c)
6x + 3yi − 2y + 2xi = 10 − 7i
167
CHAPTER 5 – COMPLEX NUMBERS
Then,
6x − 2y = 10 (1)
2x + 3y = −7 (2)
31
(1) − (2) : −11y = 31 ⇒ y = −
11
31
Substitute y = − 11 in (2), then
31 63 14
2x + 3 − = −7 ⇒ 2x = −7⇒x=−
11 11 11
Tutorial 5.2.2. 1. Simplify the following and write in form a + ib (real-imaginary form).
168
CHAPTER 5 – COMPLEX NUMBERS
i(2+5i)
(d) 3−4i
h i
4 3+i
(e) (2i − 1)2 i−2 + 2+i
3 2
(f) 4 1+i
i−1 − 3 1−i
1+i
i4 +i9 +i16
(g) 2−i5 +i10 −i15
We can also view the complex number z = a + ib as a ordered pair (a, b) of real numbers. This
Any complex number z represented in the the Argand plane is associated with a unique distance
from the origin measured in a direction defined by an angle θ, made with the positive real-axis.
The distance is called the modulus of z and the angle θ is called the argument of z.
Definition 5.3.1. Consider the complex number z = a + ib. The modulus of the complex
169
CHAPTER 5 – COMPLEX NUMBERS
The argument (arg) of z is defined to be the angle θ that the line from the origin to makes
√
Let z = a + ib and r = |z| = a2 + b2 . By using the polar coordinates (r, θ) in the Argand
The form z = r(cos θ + i sin θ) is called the Modulus-Argument form (Polar form) of
complex number z.
√
Definition 5.3.2. Given complex number z = a + ib with r = |z| = a2 + b2 . The unique real
number θ such that a = r cos θ and b = r sin θ, −π < θ ≤ π, is called the principal value of
NB:
We must note that the Argument θ is only unique up to adding integer multiple of 2π. Also
note that
b
arg(a + ib) = arctan ,
a
provided a 6= 0.
Example 5.3.1. Find the modulus and Argument of the following complex numbers and
(a) z = 1 + i
(b) z = 1 − i
(c) z = −3 − 3i
170
CHAPTER 5 – COMPLEX NUMBERS
(d) z = i
(e) z = −1
Solutions:
(a) z = 1 + i has ordered pair (1, 1) which tells us z is in the first quadrant in the Argand
diagram. Hence
1 π
θ = arg(z) = arctan = arctan 1 = .
1 4
√ √
Modulus: r = |z| = 12 + 12 = 2.
√
So z = r(cos θ + i sin θ) = 2(cos π4 + i sin π4 ).
(b) z = 1 − i has ordered pair (1, −1) which tells us z is in the fourth quadrant in the Argand
diagram. Hence
−1 π
θ = arg(z) = arctan = arctan(−1) = − .
1 4
√ √
Modulus: r = |z| = 12 + 12 = 2.
√
So z = 2(cos π4 + i sin π4 ).
(c) z = −3 − 3i has ordered pair (−3, −3) which tells us z is in the third quadrant in the
(d) z = i has ordered pair (0, 1) which tells us z is on the positive imarginary-axis in the
Argand diagram. Hence in this case we will find the general solution where
171
CHAPTER 5 – COMPLEX NUMBERS
√
The solution θ = π2 . Modulus: r = |z| = 02 + 12 = 1.
So z = cos π2 + i sin π2 .
(e) z = −1 has ordered pair (−1, 0) which tells us z is on the negative real-axis in the Argand
diagram. Hence in this case we will find the general solution where
p
The solution θ = π. Modulus: r = |z| = (−1)2 + 02 = 1.
So z = cos π + i sin π.
and
z r1
= [cos(θ1 − θ2 ) + i sin(θ1 − θ2 )].
w r2
172
CHAPTER 5 – COMPLEX NUMBERS
zz −1 = 1.
z
z −1 = .
|z|2
a b
zw = (a + ib) − i
a2 + b2 a2 + b2
a2 ab ab b2
= 2 2
− 2 2
i+ 2 2
− 2 i2
a +b a +b a +b a + b2
a2 b2
= 2 +
a + b2 a2 + b2
a2 + b2
= 2
a + b2
= 1.
So z −1 = w = a
a2 +b2
− b
a2 +b2
i = a−ib
a2 +b2
= z
|z|2
.
Tutorial 5.3.1. Find the Modulus and argument of the following complex numbers and hence
173
CHAPTER 5 – COMPLEX NUMBERS
√
1. (a) z = 3+i
(b) z = 3i
(c) z = −2 + 2i
(d) z = 10
√
(e) −4 3 − 4
We can also express complex numbers using Euler’s formula which involves the exponent of
√
power e. If z = a + ib, with r = |z| = a2 + b2 . Then we can represent z by Euler’s formula
as follows,
√
z = reiθ , where r = |z| = a2 + b2 and θ = arg(z).
h i
(a) z = 5 cos π3 + i sin π3 .
(c) z = 1 − i.
√
(d) z = −2 3 − 2i.
Solution:
h i π
(a) z = 5 cos π3 + i sin π3 = 5e 3 i .
174
CHAPTER 5 – COMPLEX NUMBERS
p √
(c) z = 1 − i. First r = |z| = 12 + (−1)2 = 2.
z is in fourth quadrant, so
−1 π
θ = arg(z) = arctan( ) = arctan(−1) = − .
1 4
√ π
So z = 2e− 4 i .
√ q √ √ √
(d) z = −2 3 − 2i. First r = |z| = (−2 3)2 + (−2)2 = 12 + 4 = 16 = 4.
z is in third quadrant, so
−2 1 π 5π
θ = arg(z) = arctan √ − π = arctan √ ) − π = − π = − .
−2 3 3 6 6
7π
i
So z = 4e 6 .
√
(a) z = 3+i
(b) z = 3i
(c) z = −2 + 2i
(d) z = 10
√
(e) −4 3 − 4i
175
CHAPTER 5 – COMPLEX NUMBERS
Proof. Let P (n) : (cos θ + i sin θ)n = cos nθ + i sin nθ for all n ∈ N.
So P (1) is true.
Assume P (k) is true for some k ∈ N, i.e. (cos θ + i sin θ)k = cos kθ + i sin kθ.
= cos(kθ + θ) + i sin(kθ + θ)
Example 5.5.1. Use De Moivre’s Theorem to express the following in form a + ib.
√
(a) (−2 − 2 3i)7
12
(b) √1+i
3−i
Solutions:
√
(a) Let w = −2 − 2 3i.
q √ √ √
r= (−2)2 + (−2 3)2 = 4 + 12 = 16 = 4.
176
CHAPTER 5 – COMPLEX NUMBERS
w is in third quadrant, so
−2√3 √ π 2π
θ = arg(z) = arctan = arctan( 3) = − π = − .
−2 3 3
Then
√ n h 2π 2π io7
(−2 − 2 3i)7 = 4 cos − + i sin −
3 3
h 2π 2π i
= 47 cos − × 7 + i sin − ×7 De Moivre’s Theorem
3 3
h 14π 14π i
= 47 cos − + i sin −
3 3
1 √3
= 47 − −
2 2
√
= −8192 − 8192 3i
√ √
(b) Let z = 1 + i and w = 3 − i. |z| = 2 and |w| = 2.
π
arg(z) = 4and arg(w) = − π6 .
√ h i
1+i 2 cos π4 + i sin π4
√ = h i
3−i 2 cos − π6 + i sin − π6
1 h π π π π i
= √ cos + + i sin + Using Theorem 5.3.1
2 4 6 4 6
1 5π 5π
= √ cos + i sin
2 12 12
Now
1+i h 1 5π 5π i12
12
√ = √ cos + i sin
3−i 2 12 12
1 h 5π 5π i
= 6 cos × 12 + i sin × 12
2 12 12
1
= (cos 5π + i sin 5π)
64
1
= (−1 + 0)
64
1
=−
64
177
CHAPTER 5 – COMPLEX NUMBERS
cos 5θ
(b) cos θ = 16 cos4 θ − 20 cos2 θ + 5.
Solutions:
(a)
4
4
X 4
(cos θ + i sin θ) = (cos θ)4−r (i sin θ)r
r
r=0
4 4 3 4
= cos θ + (cos θ) (i sin θ) + (cos θ)2 (i sin θ)2
1 2
4
+ (cos θ)(i sin θ)3 + (i sin θ)4
3
Since by De Moivre’s theorem, (cos θ + i sin θ)4 = cos 4θ + i sin 4θ, then
cos 4θ + i sin 4θ = (cos4 θ − 6 cos2 θ sin2 θ + sin4 θ) + i(4 cos3 θ sin θ − 4 cos θ sin3 θ).
= 2 sin 2θ cos 2θ
(b)
178
CHAPTER 5 – COMPLEX NUMBERS
5
X
5 5
(cos θ + i sin θ) = (cos θ)5−r (i sin θ)r
r
r=0
5 5
= cos5 θ + (cos θ)4 (i sin θ) + (cos θ)3 (i sin θ)2
1 2
5 2 3 5
+ (cos θ) (i sin θ) + (cos θ)(i sin θ)4 + (i sin θ)5
3 4
= 16 cos4 θ − 20 cos2 θ + 5.
Tutorial 5.5.1. 1. Use De Moivre’s Theorem to write the following in form a + ib.
√
(a) z = (4 − 4 3i)8
√
9
(b) −1+√3+i
3i
√
(1− 3i)3 (1−i)8
(c) 5
(−2+2i
3
(a) sin3 θ = 4 sin θ − 41 sin 3θ.
1
(b) cos4 θ = 8 cos 4θ + 12 cos 2θ + 38 .
179
CHAPTER 5 – COMPLEX NUMBERS
Theorem 5.6.1. If z 6= 0, n ∈ N, then there are exactly n distinct complex nth roots of
1:Furthermore,
1
h arg(z) + 2πk arg(z) + 2πk i
zk = |z| n cos + i sin for k = 0, 1, 2, . . . , n − 1,
n n
Remark 5.6.1. In the Argand diagram the n nth roots of z are equally spaced out on a circle
of radius |z| = r.
h i
Example 5.6.1. (a) Find the cube root of z = 27 cos π3 + i sin π3 .
√ √
(c) Solve z 6 − 1 = − 3i i.e. find the 6th root of 1 − 3.
Solutions:
h π π i
1 +2πk +2πk
(a) zk = (27) 3 cos 3 n + i sin 3 n for k = 0, 1, 2.
1
h π + 2π0i π + 2π0i i
z0 = (27) 3 cos 3 + i sin 3
3 3
h π π i
= 3 cos + i sin
9 9
π π
= 3 cos + i3 sin
9 9
= 2.82 + 1.03i
180
CHAPTER 5 – COMPLEX NUMBERS
also
1
h π + 2π π + 2π i
z1 = (27) 3 cos 3 + i sin 3
3 3
h 7π 7π i
= 3 cos + i sin
9 9
7π 7π
= 3 cos + i3 sin
9 9
= −2.30 + 1.93i
finally
1
h π + 2π(2) π + 2π(2) i
z2 = (27) 3 cos 3 + i sin 3
3 3
h 13π 13π i
= 3 cos + i sin
9 9
13π 13π
= 3 cos + i3 sin
9 9
= −0.52 − 2.95i
1
h π + 2πk π + 2πk i
zk = (32) 5 cos + i sin for k = 0, 1, 2, 3, 4.
5 5
h π π i
z0 = 2 cos + i sin
5 5
π π
= 2 cos + i2 sin
5 5
also
h π + 2π π + 2π i
z1 = 2 cos + i sin
5 5
3π 3π
= 2 cos + i2 sin
5 5
181
CHAPTER 5 – COMPLEX NUMBERS
h π + 4π π + 4π i
z2 = 2 cos + i sin
5 5
= 2 cos π + i2 sin π
= −2
h π + 6π π + 6π i
z3 = 2 cos + i sin
5 5
7π 7π
= 2 cos + i2 sin
5 5
h π + 8π π + 8π i
z4 = 2 cos + i sin
5 5
9π 9π
= 2 cos + i2 sin
5 5
√ √ √
3
(c) z 6 − 1 = − 3i ⇒ z 6 = 1 − 3i = 2 21 − 2 i
h i
= 2 cos − π3 + i sin − π3 then
1
h − π + 2πk − π + 2πk i
3 3
zk = (2) 6 cos + i sin for k = 0, 1, 2, 3, 4, 5.
6 6
1
h −π + 0 − π + 0 i
3 3
z0 = (2) 6 cos + i sin
6 6
1
h π π i
= (2) 6 cos − + i sin −
18 18
1
π 1
π
= (2) 6 cos − i(2) 6 sin
18 18
also
1
h − π + 2π − π + 2π i
3 3
z1 = (2) 6 cos + i sin
6 6
1
5π 1
5π
= (2) 6 cos + i(2) 6 sin
18 18
182
CHAPTER 5 – COMPLEX NUMBERS
1
h − π + 4π − π + 4π i
3 3
z2 = (2) 6 cos + i sin
6 6
1
11π 1
11π
= (2) 6 cos + i(2) 6 sin
18 18
1
h − π + 6π − π + 6π i
3 3
z3 = (2) 6 cos + i sin
6 6
1
17π 1
17π
= (2) 6 cos + i(2) 6 sin
18 18
1
h − π + 8π − π + 8π i
3 3
z4 = (2) 6 cos + i sin
6 6
1
23π 1
23π
= (2) 6 cos + i(2) 6 sin
18 18
1
h − π + 10π − π + 10π i
3 3
z5 = (2) cos
6 + i sin
6 6
1
29π 1
29π
= (2) 6 cos + i(2) 6 sin
18 18
(a) z 4 = 1,
(b) z 2 = −1 + i
√
(c) z 4 = −8 + 8 3i
√
(d) z 5 = −2 2i
√
(e) z 6 = −4 3 − 4i
183
”God does arithmetic”. Carl Friedrich Gauss”
”If others would think as hard as I did, then they would get similar results.” Isaac Newton
”Do not worry about your difficulties in Mathematics. I can assure you mine are still greater.”
Albert Einstein
Lastly, Students are recommended to use the following books as appearing on the Bibligraphy
below.
184
Bibliography
[1] Aton H/ Rorres C. , Elementary linear algebra John Wiley and sons, 10th edition, 2010.
[3] Fraleigh J B, A first course in abstract algebra Addison-wesley, 4th edition, 1989.
[5] Roberts C, Introduction to mathematical proofs A chapman and Hall book, 2010.
[6] Smith D et al. , A transition to advanced mathematics Cengage Learning. Inc, 7th edition,
2011.
[7] Smith J D H, Introduction to abstract algebra A chapman and Hall book, 2009.
[8] Taylor J/Garnier R, Understanding mathematical proofs A chapman and Hall book, 2014.
185