Smth012 Lecture Notes 2019
Smth012 Lecture Notes 2019
Smth012 Lecture Notes 2019
1 MATHEMATICAL LOGIC 2
1.1 Propositional Logic . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Conditional and Biconditional Statements . . . . . . . . . . . . . 7
1.3 Laws of Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4 Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.5 Predicates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.6 Negation of Quantified statements . . . . . . . . . . . . . . . . . 22
1.7 Methods of Proof . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.7.1 Direct proof . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.7.2 Indirect proof . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.7.3 Proof by cases . . . . . . . . . . . . . . . . . . . . . . . . 28
i
2.2.2 Power Set . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.2.3 Symmetric difference . . . . . . . . . . . . . . . . . . . . . 45
2.3 Relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
2.3.1 Types of Relations . . . . . . . . . . . . . . . . . . . . . . 46
2.3.2 Equivalence Classes and Partitions . . . . . . . . . . . . . 50
2.3.3 Congruence Modulo . . . . . . . . . . . . . . . . . . . . . 51
2.4 Algebraic structures . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.4.1 Associativity, Commutativity and idempotency . . . . . . 56
2.4.2 Algebraic structures . . . . . . . . . . . . . . . . . . . . . 57
2.4.3 Examples of algebraic structures . . . . . . . . . . . . . . 57
2.4.4 Boolean algebras . . . . . . . . . . . . . . . . . . . . . . . 60
2.5 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
2.5.1 One-to-One and Onto functions . . . . . . . . . . . . . . . 62
2.5.2 Inequalities and absolute value . . . . . . . . . . . . . . . 64
4 COMPLEX NUMBERS 89
4.1 Operations and Properties of Complex Numbers . . . . . . . . . 89
4.1.1 Operations with complex numbers . . . . . . . . . . . . . 90
4.2 Modulus-Argument form (Polar form) of complex numbers . . . 96
4.3 Euler’s Formula (Exponential Form) . . . . . . . . . . . . . . . . 101
ii
4.4 De Moivre’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . 103
4.5 Finding roots of Complex Numbers . . . . . . . . . . . . . . . . . 106
1
Chapter 1
MATHEMATICAL LOGIC
“Pure mathematics is, in its way, the poetry of logical ideas”. Albert Einstein
2
Example 1.1.3. 5. Go there!
6. Is Martin a girl?
7. x + y = 3
8. 5x = 7
Sentences 5 and 6 are not proposition since they are command and question
respectively, where as sentences 7 and 8 are not proposition since they are
neither true nor false. If we assign values on variables in 7 and 8, the sentences
become proposition.
The truthfulness or falsity of a statement is called its truth value. “1” will stand
for a true statement and “0” for a false statement.
3
is in France.
P Q P ∧Q
1 1 1
1 0 0
0 1 0
0 0 0
4
The truth value of P ∨ Q also depends on the truth values of constituent state-
ments P and Q.
We can illustrate the truth table of P ∨ Q as follows:
P Q P ∨Q
1 1 1
1 0 1
0 1 1
0 0 0
NB:
P ¬P
1 0
0 1
5
(c) P : 3 < 2 − 5.
¬P : 3 ≮ 2 − 5.
This is equivalent as saying 3 = 2 − 5 or 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.1.11. 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
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
(c)
6
P Q R ¬R P ∧Q P ∧ ¬R ¬(P ∧ ¬R) (P ∧ Q) ∨ ¬(P ∧ ¬R)
1 1 1 0 1 0 1 1
1 1 0 1 1 1 0 1
1 0 1 0 0 0 1 1
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
7
(b) P : A function is continuous on [a, b].
Q: A function is differentiable on (a, b).
Then P ⇒ Q: If a function is continuous on [a, b] then it is differentiable
on (a, b).
(c) P : 4 − 9 ≥ 2.
Q: University of Limpopo is in Cape Town.
Then P ⇒ Q: If 4 − 9 ≥ 2 then University of Limpopo is in Cape Town.
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 to deduce a true statement from a false statement.
We can form some new conditional statements starting with a conditional state-
ment P ⇒ Q. In particular, there are three related conditional statements that
occur so often that they have special names:
8
We may try to find out which of the above implications have the same meaning.
We will construct the truth table to see this.
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.2.3. Find the (i) Converse, (ii) Contrapositive and (iii) Inverse of
the following statements:
If the function is differentiable, then it is integrable.
Solution
P Q P ⇔Q
1 1 1
1 0 0
0 1 0
0 0 1
9
1.3 Laws of Logic
Definition 1.3.1. (Logically Equivalent Statements): Two statements, P
and Q, are said to be logically equivalent if their truth values coincide. We
denote this by P ≡ Q.
Example 1.3.2. 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
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.
10
(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
(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
11
Logically Equivalences
Equivalence Name
P ∧0≡0
P ∨1≡1 Domination law
P ∧1≡P
P ∨0≡P Identity law
P ∧P ≡P
P ∨P ≡P Idempotent law
¬(¬P ) ≡ P Double negation law
P ∧Q≡Q∧P
P ∨Q≡Q∨P Commutative laws
(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 ∨ Q) ≡ ¬P ∧ ¬Q De Morgan’s laws
P ∧ ¬P ≡ F
P ∨ ¬P ≡ T Negation law
(i) (P ∨ Q) ⇒ P
(ii) (P ∧ (P ⇒ Q)) ⇒ Q
(iv) (P ∨ Q) ⇒ (P ∧ Q)
(v) (Q ∧ (P ⇒ Q)) ⇒ P
(vi) (P ⇒ Q) ⇔ (Q ⇒ P )
12
1.4 Arguments
Definition 1.4.1. (Valid Argument):An argument is called a valid argu-
ment if the conjunction of hypotheses implies the conclusion. Otherwise the
argument is said to be invalid or also called fallacy.
13
(a)
P ⇒Q
R∨P
¬R
∴Q
[(P ⇒ Q) ∧ (R ∨ P ) ∧ (¬R)] ⇒ Q
is tautology.
Let A ≡ (P ⇒ Q) ∧ (R ∨ P ) ∧ (¬R) in order to simplify our table.
14
(b) by using truth tables.
(a)
P ∨ ¬Q
R ⇒ Q
¬P
∴R
is tautology.
Let A ≡ (P ∨ ¬Q) ∧ (R ⇒ Q) ∧ (¬P ) in order to simplify our table.
15
Looking at the last column, we can clearly deduce the statement is not tautology,
hence the argument is not valid just as we expected.
P ∨ Q
P ⇒ R
¬R
∴Q
(b) We leave it as an exercise to students to verify using truth table that the
argument is valid by verifying the statement is tautology.
16
(b) by using truth tables.
P ⇒ Q
Q ∨ R
¬R
∴ ¬P
17
Tutorials 1.4.6. Test the validity of the following arguments using:
1.
P ⇔ ¬R
Q ∨ R
¬P
∴Q
2.
P ⇒ Q
(Q ∨ R) ⇒ S
¬S
∴ ¬P
3.
P ⇒ ¬Q
Q ⇔ R
∴ ¬P
4.
S ∨ ¬R
P → R
P ∧ ¬Q
∴ ¬S
18
5. Pretty either works in mine or University.
Pretty eats KFC if and only if she doesn’t work in mine.
Pretty doesn’t work in University.
∴ Pretty doesn’t eat KFC..
Example 1.4.7. 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.
19
1.5 Predicates
Definition 1.5.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 by: P (x), P (x, y), etc
Definition 1.5.3. (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 exists”, “there is”, or “for some”. The statement (∃ ∈
U )(P (x)) is read “there exists an x ∈ U , such that P (x)”.
Given a statement (∀x ∈ U )(P (x)) which is read “for all x in set A, then
P (x)”. U in this instance represent an unspecified set and P (x) is a statement
on x,
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 quantifiers.
E.g: (∀x ∈ A)(∃y ∈ B)(P (x, y)) which reads “for all x in set A, there exists a
y in B such that P (x, y).
It is of our interest to find out whether the given statement is true or false. Lets
look at some examples.
(a) ∀x ∈ Z : −x ∈ N
(b) ∃x ∈ Z : −x ∈ N
20
(c) (∀x ∈ R)(∃y ∈ R : xy = 1
Solutions:
21
(e) (∀x ∈ Q)(∃y ∈ R : x + y = 0
True, every real x has its own additive inverse which is −x, i.e. y = −x.
¬[(∀ > 0)(∀n ∈ N)(∃m ∈ N)(|xn − xm | < )] ≡ (∃ > 0)¬[(∀n ∈ N)(∃m ∈ N)(|xn − xm | < )]
22
Tutorials 1.6.3. 1. Determine which of the following statements is true or
false. Justify your answer in each case.
(a) ∀x ∈ Z : 3x ∈ N
(b) ∃x ∈ N : x2 − x = 0
23
Methods of proofs to be discussed:
1. Direct proof
2. Indirect proof
• Proof by contradiction
• Proof by contrapositive
• Proof by counter-example.
3. Proof by cases.
24
Q : n2 is even integer.
We need to assume P and deduce Q.
Assume n is even, i.e. n = 2k for some k ∈ Z. Then
n2 =n·n
= (2k)(2k)
= 4k 2
= 2(2k 2 )
= 2m
= 2(k + r) + 1
= 2q + 1
25
• Proof by contradiction.
• Proof by contrapositive.
• Proof by counter-example.
Proof by Contradiction
¬(P ⇒ Q) ≡ P ∧ ¬Q
.
So in order to prove that (P ⇒ Q) using contradiction, we must assume P ∧ ¬Q
and therefore arrive at some contradiction.
26
b not having a common divisor since in this case we have both a and b divisible
by 2. So our assumption was false, hence x is irrational number.
Proof by contrapositive
Proof by Counter-Example
a 1 −1 b
= = −1 = = .
b −1 1 a
27
1.7.3 Proof by cases
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:
Tutorials 1.7.8. Prove the following using (i) Direct proof, (ii) Proof by
contradiction, (iii) Proof by contrapositive
28
(e) If n is even integer and m is odd integer then n2 + m2 is odd.
(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.
“Do not worry about your difficulties in Mathematics. I can assure you mine
are still greater.” Albert Einstein
29
Chapter 2
“Mathematics is the most beautiful and most powerful creation of the human
spirit”. Stefan Banach
2.1 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 2017 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 in more than one set.
30
object and A is a set, then a ∈ A means a is a member of A or ‘a is an element
of A’. Then a ∈
/ A means a is not a member of A or ‘a is not an element of A’
N = {1, 2, 3, 4, . . .}.
31
N is an infinite set.
If we include a zero we obtain the set of whole numbers denoted by N0 .
So
N0 = {0, 1, 2, 3, 4, . . .}
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
a
cannot be written as b where a, b ∈ Z and b 6= 0. These can be represented
as R \ Q or R − Q or Qc (complement of Q), where R is the set of real
numbers to be discussed next.
5. Real numbers consist of all the numbers in the sets discussed above, i.e.
more specifically by combining the rational and irrational numbers we get
the real numbers.
32
Definition 2.1.2. A Universal set ia a set which contains all sets including
itself. We usually denote universal set by U .
2.1.3 Subsets
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 {}.
Singleton is a set that contains one element. Note that ∅ =
6 {∅}.The set {∅} is
a singleton since it is a set containing one element ∅.
33
Definition 2.1.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 cardinality of A. The cardinality of A is denoted by |A|.
E.g. If A = {1, 2, 3, a, b, c}, then |A| = 6.
If X is a set of all letters in English alphabet, then |X| = 26.
Two or more sets may be combined in many different ways. Here we will discuss
the different ways of combining sets.
A ∩ B = {x : x ∈ A and 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 0
34
19
Example 2.1.8. If A = {x : x is positive odd numbers less than or equal to 2 }
(i) A ∩ B
(ii) A ∪ B
(iii) A ∩ C
(iv) B ∩ D
(v) A ∪ D
(vi) (A − C) ∪ (D − B)
(vii) B − C
(viii) (A ∩ B) ∪ (B ∩ C)
(ix) C − B (challange)
35
2.2 Set Algebra
Theorem 2.2.1. Let A; B; C be sets. Then
(a) A ∪ ∅ = A
(b) A ∪ A = A
(c) A ∪ B = B ∪ A
(d) (A ∪ B) ∪ C = A ∪ (B ∪ C).
(a) A ∩ ∅ = ∅
(b) A ∩ A = A
(c) A ∩ B = B ∩ A
36
(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).
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.
(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).
If instead x ∈ B ∩ C then x ∈ B and x ∈ C. So x ∈ A ∪ B and x ∈ A ∪ C,
i.e. x ∈ (A ∪ B) ∩ (A ∪ C).
Hence A ∪ (B ∩ C) ⊆ (A ∪ B) ∩ (A ∪ C).
37
Conversely, if y ∈ (A ∪ B) ∩ (A ∪ C) ⇒ y ∈ A ∪ B and y ∈ A ∪ C,
i.e. y is in both unions. ⇒ (y ∈ A or y ∈ B) and (y ∈ A or y ∈ C). So
either y ∈ A or y ∈
/ A.
case 1: y ∈ A ⇒ y ∈ A ∪ (B ∩ C),
Otherwise
case 2: y ∈ B ∩ C so A ∪ (B ∩ C) which proves that (A ∪ B) ∩ (A ∪ C) ⊆
A ∪ (B ∩ C).
Proposition 2.2.4. If A and B are sets, then the following are equivalent
(TFAE):
(a) A ⊆ B
(b) A ∩ B = A
(c) A ∪ B = B.
(b) ⇒ (a) :
Assume A ∩ B = A. We will show that A ⊆ B. Now Since A ∩ B = A
⇒ ∀x ∈ A, x ∈ A ∩ B ⇒ x ∈ B. So A ⊆ B.
(b) ⇒ (c):
Assume A ∩ B = A. We must show that A ∪ B ⊆ B and B ⊆ A ∩ B.
Let x ∈ A ∪ B. Then x ∈ A or x ∈ B.
If x ∈ A, then x ∈ A ∩ B by hypothesis, which also imply that x ∈ B.
So either case we end up with x ∈ A ∪ B ⇒ x ∈ B, hence A ∪ B ⊆ B.
38
Also B ⊆ A ∪ B always.
(c) ⇒ (b) :
Assume A ∪ B = B. We show A ∩ B ⊆ A and A ⊆ A ∩ B.
Now, ∀x ∈ A, x ∈ B since A ∪ B = B ⇒ x ∈ A ∩ B, hence A ⊆ A ∩ B.
Now since A ∩ B ⊆ A always, we conclude that A = A ∩ B.
Definition 2.2.5. Let A be a set. Then the set of elements that do not belong
to the set A is called the complement of A, and this set is denoted A0 .
(a) (A0 )0 = A
(b) If A ⊆ B then B 0 ⊆ A0
(c) (A ∪ B)0 = A0 ∩ B 0
(d) (A ∩ B)0 = A0 ∪ B 0 .
Proof. We’ll prove (a) and (c) and then (b) and (d) will be left for exercise.
(a) We must show that (A0 )0 ⊆ A and A ⊆ (A0 )0 .
Let x ∈ (A0 )0 ⇔ x ∈
/ A0
⇔ x ∈ A.
39
⇒ (A0 )0 ⊆ A and A ⊆ (A0 )0 , hence (A0 )0 = A
Let x ∈ (A ∪ B)0
⇔x∈
/ (A ∪ B)
⇔x∈
/ A and x ∈
/B
⇔ x ∈ A0 and x ∈ B 0
⇔ x ∈ A0 ∩ B 0
(i) A ∩ B = ∅ ⇔ A ⊆ B 0 .
(ii) If A ∩ B = A ∪ B ⇔ A = B.
Definition 2.2.8. 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 = {(a, b) : a ∈ A and b ∈ B}.
A × B = {(3, 5), (3, 7), (3, 8), (4, 5), (4, 7), (4, 8)}.
40
and
B × A = {(5, 3), (5, 4), (7, 3), (7, 4), (8, 3), (8, 4)}.
(a) (A ∪ B) × C = (A × C) ∪ (B × C)
(b) (A ∩ B) × C = (A × C) ∩ (B × C)
(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.
Hence (A × C) ∪ (B × C) = (A ∪ B) × C. (b) Exercise!
41
(a) (A × B) ∩ (C × D) = (A ∩ C) × (B ∩ D)
(b) (A × B) ∪ (C × D) ⊆ (A ∪ C) × (B ∪ D)
(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)
(b) Let (x, y) ∈ (A × B) ∪ (C × D). Then
(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).
(i) A × (B − C) = (A × B) − (A × C)
42
2. Use Question 1 in Tutorial 2.1.9 to find:
(i) A × B; (ii) (A × C) ∪ (B × C) and
(iii)also verify that (A ∩ B) × C = (A × C) ∩ (B × C).
For set C use C = {x ∈ Z : |x| < 2} instead.
∅, {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 2.2.13. The power set P(A) of a set A is the collection of all subsets
of A.i.e. P(A) = {X : X ⊆ A} = set of all subsets of A.
Thus, for any set X, the statements X ⊆ A and X ∈ P(A) are equivalent.
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 since ∅ is an empty set. Thus we have A ∈ {∅}.
Hence P(∅) ⊆ {∅}.
Conversely, ∅ ⊆ ∅ (since any set is a subset of itself). Hence ∅ ∈ P(∅), and
therefore {∅} ⊆ P(A). consequently P(∅) = {∅}.
43
Observation: If A has n elements, then P(A) has 2n elements, i.e.
|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.
(b) (⇒) : Assume A ⊆ B, and let X ∈ P(A). We want to show that X ∈ P(B)
which is equivalent to showing that X ⊆ B.
Now, X ∈ P(A) ⇒ X ⊆ A ⊆ B by hypothesis. So X ⊆ B, that is
X ∈ P(B). Hence P(A) ⊆ P(B).
(⇐): Conversely, assume P(A) ⊆ P(B). We have x ∈ A ⇒ {x} ⊆ A ⇒
{x} ∈ P(A) ⇒ {x} ∈ P(B), since P(A) ⊆ P(B) ⇒ {x} ⊆ B ⇒ x ∈ B,
and thus A ⊆ B. The result is therefore proved.
44
(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 2.2.16 we have
P(A) ∪ P(B) ⊆ P(A ∪ B).
OR
Let X ∈ P(A) ∪ P(B), then X ∈ P(A) or X ∈ P(B). This implies that
X ⊆ A or X ⊆ B, hence X ⊆ A ∪ B. So X ∈ P(A ∪ B), hence our result.
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
45
2.3 Relations
Definition 2.3.1. A relation R from a set A to a set B is simply any subset
of the cartesian product A × B, i.e. a collection of ordered pairs (x, y) : x ∈ A
and y ∈ B.
Example 2.3.2. Let A = {1, 3}, B = {2, 3, 4}. Then we can define the following
relations from A to B:
1. R1 = {(1, 4)}
4. R4 = {(1, 2), (1, 3), (3, 2), (3, 3), (3, 4)}
R = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}.
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
46
1. R is called a reflexive relation if for all a ∈ A, (a, a) ∈ R, i.e. aRa.
47
Example 2.3.9. Let A = {a, b, c}. Then we can define the following relations
from A to B:
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 our case only (a, a) ∈ R1 . So R1 is not reflexive.
48
(a, b), (b, a) ∈ R3 .
Since (a, b) ∈ R3 , (b, c) ∈ R3 and (a, c) ∈ R3 , then R3 is transitive.
(a) Reflexive:
We must show that xRx. Now x − x = 0 = 10 · k, hence divisible by 10.
So R is reflexive.
(b) Symmetric:
We must show that if xRy, then yRx. Suppose xRy, then
x − y = 10k, for k ∈ Z
−(y − x) = 10k
y − x = 10(−k)
(c) Transitive:
We must show that if xRy, and yRz, then xRz. If xRy, and yRz, then
x − y = 10k and y − z = 10h for some k, h ∈ Z.
49
Now,
x − z = (x − y) + (y − z)
= 10k + 10h
= 10(k + h)
50
2.3.3 Congruence Modulo
x ≡ 5( mod 3).
Solutions:
x ≡ 5( mod 3) ⇒ x − 5 = 3k for k ∈ Z.
Then x = 3k + 5. So for k ∈ {. . . , −3, −2, −1, 0, 1, 2, 3, . . .}, we get
= {b ∈ Z : b = 3k + 5, k ∈ Z}
Solutions:
(a)
51
(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)
(b)
[0] = {y ∈ Z : 0Ry} = {y ∈ Z : 0 + y = 2k k ∈ Z}
= {y ∈ Z : y = 2k k ∈ Z}
= {. . . , −4, −2, 0, 2, 4, . . .}
= {y ∈ Z : y = 2k − 3, k ∈ Z}
(c) Describe [(a, b)] for any fixed values a, b both in set-theoretic terms as well
as geometrically.
52
Solution:
(a) reflexive:
(x, y)R(x, y) By definition x2 + y 2 = x2 + y 2 , so R is clearly reflexive.
symmetric:
(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)
(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}
53
√
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 }
Tutorials 2.3.16. 1. Determine whether the following relations are (i) re-
flexive, (ii) symmetric, (iii) transitive.
R = {(b, b), (c, a), (a, b), (a, c), (b, c), (b, a), (c, b), (c, c)}.
2. From the previous question above, which of (a) to (d) are equivalence re-
lation? Give reasons based on on what you shown above.
54
3. Show that the following are equivalence relation.
Remarks 2.4.1. • N is the set of natural numbers, the most familiar clas-
sical 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
55
binary operations on it is subtraction −: Note that here we use ”minus”
as a binary operation, although it can also be used as a unary operation,
that is, a map A → A.
• 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 by the same symbols as for integers.
• x ◦ (y ◦ z) = (x ◦ y) ◦ z (associativity),
• x ◦ y = y ◦ x (commutativity),
Tutorials 2.4.2. (1) Which of the followings define a binary operations on the
set of integers? Of those that do, which are associative? Which are commuta-
tive? Which are idempotent?
(a) m ◦ n = mn + 1,
(b) m ◦ n = (m + n) ÷ 2,
(c) m ◦ n = m,
(d) m ◦ n = mn2 ,
(e) m ◦ n = m2 + n2 ,
(f ) m ◦ n = 3,
(g) m ◦ n = mn .
(2) Let m be a binary operation on the set of real numbers defined by x ◦ y =
ax + by + c.
(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 commuta-
tive.
56
(c) Find the set of all triples (a, b, c) of real numbers, for which ◦ is idempotent.
(3) Find all binary operations on the set {0, 1}.
0 0
An isomorphism f : (X, s) → (X , s ) of structures of the same type is a bi-
0
jection f : X → X such that both f and its inverse bijection preserve the struc-
0 0
ture. When such an isomorphism exist, we also say that (X, s) and (X , s ) are
isomorphic to each other. We shall not give any general definition, but only
consider a few examples:
Sometimes one uses either the multiplicative notation, writing x · y (or simply
xy) instead of x ◦ y, or the additive notation, writing x + y, and then calls
magmas multiplicative or additive, respectively. If so, ∗ becomes
57
2. A magma (X, ◦) is said to be associative, commutative, idempotent, if so is
the operation ◦, respectively. An associative magma is also called a semigroup,
and, accordingly, an associative commutative magma is called a commutative
semigroup, and term ”idempotent” is used in the same way. One also says that
an element x of a magma (X, ◦) is idempotent if x ◦ x = x, according to this
terminology, a magma (X, ◦) is idempotent if and only if so is every element of X.
1x = x = x1 or 0 + x = x = x + 0,
Note that such e is uniquely determined by m: Moreover, for any magma (X; m)
0
and elements e and e in X, we have:
0 0
if m(e, x) = x and m(x, e ) = x for every x in X; then e = e , proving that the
identity is uniquely determined by m.
0 0
Indeed, we can write e = m(e, e ) = e . This allows us to define an isomor-
0 0 0
phism f : (X, e, m) → (X , e , m ) of unitary magmas as simply an isomorphism
0 0 0
f : (X, m) → (X , m ) of magmas. Since the equality f (e) = e , which we
obviously would like to have, can be proved for any such f .
58
is called a monoid. Just like a semigroup, a monoid can be commutative or
idempotent.
while m(m(z, x), y)) = m(z, m(x, y)) by the associativity of m : The same argu-
ment looks even simpler with either the multiplicative, or the additive notation.
Using, say, the multiplicative notation we write
y = 1y = (zx)y = z(xy) = z1 = z.
0 0 0 0
And again, this allows us to define an isomorphism f : (X, e, m, i) → (X , e , m , i )
0 0
of groups as simply an isomorphism f : (X; m) → (X ; m ) of magmas, since
0 0
not only the equality f (e) = e , but also f i = i f ; can be proved for any such
f . A group (X, e, m, i) is said to e commutative ot abelian if m is commutative.
59
a(b + c) = ab + ac, (a + b)c = ac + bc.
Tutorials 2.4.4. Consider all possible associative binary operations on the set
{0, 1} and find those that make the set {0, 1} :
(a) a unitary magma,
(b) a semigroup,
(c) a monoid,
(d) a group.
60
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. Using the same symbols 0∨, 1, ∧, ¬ for all Boolean algebras, we
0
define an isomorphism f : (B, 0∨, 1, ∧, ¬) → (B , 0∨, 1, ∧, ¬) of Boolean algebras
0
(obviously) as a bijection f : B → B with f (0) = 0, f (a ∨ b) = f (a) ∨ f (b),
f (1) = 1, f (a ∧ b) = f (a) ∧ f (b), f (¬a) = ¬f (a), for all a, b ∈ B.
2.5 Functions
Definition 2.5.1. Let A and B be sets. A function f from A to B, denoted
by f : A → B, is a relation from A to B such that
(a) Domain of f is A
61
(b) If (a, b) ∈ f and (a, c) ∈ f , then b = c.
Onto(Surjective) Functions
Solution:
5x − 2 = y
5x = y + 2
y+2
x= ∈ R for any y ∈ R.
5
62
Solution:
x2 + 4 = 2 ⇒ x2 = −2.
One-to-One(Injective) Functions
Solution:
f (x) = f (y) ⇒ 5x − 2 = 5y − 2
5x = 5y
x = y.
Solution:
f (x) = f (y) ⇒ x2 + 4 = y 2 + 4
x2 = y 2 .
63
But the last expression doesn’t mean that x = y, for example, if x = 3
and y = −3. It is clear that x2 = y 2 = 9. So f (x) = f (y) = 13 but
3 = x 6= y = −3, hence f is not one-to-one.
Tutorials 2.5.6. Check whether the following functions are onto or one-to-one.
Show your steps clearly.
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 1 1
x < −2 x = −2 −2 < x < 3 x= 3 x> 3
3x − 1 − − − 0 +
x+2 − 0 + + +
(3x − 1)(x + 2) + 0 − 0 +
1
−2 ≤ x ≤ .
3
64
3x−1
Example 2.5.8. Solve for x in x+2 ≥ 2.
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
⇒ 3x − x > 1 + 4 or − 3x + 4 − x > 1
⇒ 2x > 5 or − 4x > −3
5 3
⇒x> or x <
2 4
65
Case 1:
If x > 2.
|x| − 3
< 2 ⇒ |x| − 3 < 2(x − 2)
x−2
⇒ |x| < 2x − 4 + 3
⇒ |x| < 2x − 1
Case 2:
If x < 2.
|x| − 3
> 2 ⇒ |x| − 3 > 2(x − 2)
x−2
⇒ |x| > 2x − 4 + 3
⇒ |x| > 2x − 1
⇒ x > 2x − 1 OR − x > 2x − 1
⇒ −x > −1 OR − 3x > −1
1
⇒ x < 1 OR x <
3
1. (x + 2)2 < 4
66
4x+1
2. x−1 ≥1
3. |5x − 1| ≤ 2x − 3
x+3
4. 2x−1 <1
|x|+5
5. x−3 <2
67
Chapter 3
MATHEMATICAL
INDUCTION, BINOMIAL
THEOREM AND
COMBINATORICS
68
The Principle of Mathematical Induction:
n2 (n + 1)2
1 3 + 2 3 + 3 3 + . . . + n3 = ∀n ∈ N.
4
Solution:
n2 (n+1)2
Let P (n) be the statement 13 + 23 + 33 + . . . + n3 = 4 ∀n ∈ N.
3 12 (1+1)2 4
P (1) : 1 = 1 = 4 = 4,
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
2
k + 4k + 4
= (k + 1)2 [ ]
4
(k + 2)(k + 2)
= (k + 1)2 [ ]
4
(k + 1)2 (k + 2)2
=
4
= RHS.
69
Thus P (k + 1) is also true.
Hence P (n) is true ∀n ∈ N.
Example 3.1.3. Use the Principle Mathematical Induction to prove that 7n+2 +
82n+1 is divisible by 57 for every non-negative integer, i.e. n ≥ 0.
Solution:
Let P (n) be the statement: 7n+2 +82n+1 is divisible by 57 for every non-negative
integer.
P (0) : 70+2 + 82(0)+1 = 49 + 8 = 57 which is divisible by 57.
Hence P (0) is true.
Assume P (k) is true for some k ≥ 0.i.e. 7k+2 + 82k+1 = 57p for p ∈ Z and
k ≥ 0.
Also
7k+2 = 57p − 82k+1 .
= 7(k+2)+1 + 8(2k+1)+2
= 7k+2 · 7 + 82k+1 · 82
= 399p + 57 · 82k+1
= 57(7p + 82k+1 )
70
Definition 3.1.4. Factorial: For a natural number n, n factorial, written
n!, is defined as the product of the first n natural number, i.e.
We also define 0! = 1
e.g. 7! = (7)(6)(5)(4)(3)(2)(1) = 5040.
etc
From assumption
2 · 2k < 2k!
= (k + 1)!.
71
Tutorials 3.1.6. Use the Principle of Mathematical Induction to prove that:
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 = 45 1 − 15 ∀n ∈ N.
(g) 5n − 4n − 1 is divisible by 16 ∀n ∈ N.
(i) n2 + n is even ∀n ∈ N.
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
72
3.2.1 Binomial expansions and Binomial theorem
n n
r is read as “n choose r”. We interpret r as a number of ways of choosing
9 9! 9! 9·8·7·6!
Example 3.2.3. 3 = 3!(9−3)! = 3!6! = 3·2·1·6! = 84.
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.
or
n n n+1
+ = .
r r+1 r+1
73
n n n+1
Proof. We will show the proof of r + r−1 = r .
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
74
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 Tri-
angle (after French mathematician Blaise Pascal).
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
..
.
75
We can use this to get coefficient of a binomial expression.
(x + y)0 = 1
(x + y)1 = x + y
(x + y)2 = x2 + 2xy + y 2
and so forth.
We must now deduce that P (k + 1) is also true, i.e. we must show that
k+1
X
k+1 k + 1 (k+1)−r r
P (k + 1) : (x + y) = x y is also true.
r=0
r
76
(x + y)k+1 = (x + y)(x + y)k
k
X k k−r r
= (x + y) x y by inductive hypothesis
r=0
r
k k
X k k−r r X k k−r r
=x x y +y x y
r=0
r r=0
r
k k
X k k−r+1 r X k k−r r+1
= x y + x y
r=0
r r=0
r
k k+1
X k k−r+1 r X k
= x y + xk−r+1 y r
r=0
r r=1
r − 1
k
X k k
k+1 k−r+1 r
X k
=x + x y + xk−r+1 y r + y k+1
r=1
r r=1
r − 1
k h i
X k k
= xk+1 + + xk−r+1 y r + y k+1
r=1
r r − 1
k h
X k + 1 i k−r+1 r
= xk+1 + x y + y k+1 , (Pascal Rule)
r=1
r
k+1
X k + 1
= xk−r+1 y r
r=0
r
6
X 6
(a) (a + b)6 = a6−r br
r=0
r
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
= a6 + 6a5 b + 15a4 b2 + 20a3 b3 + 15a2 b4 + 6ab5 + b6 .
77
(b) (2x − 3y 2 )5
5
X 5
= (2x)5−r (−3y 2 )r
r=0
r
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
= 32x5 + 5(16)(−3)x4 y 2 + 10(8)(9)x3 y 4 + 10(4)(−27)x2 y 6 + 5(2)(81)xy 8 + (−243)y 10
n
For a binomial expression (x+y)n , the r-th term is given by r−1 xn−r+1 y r−1 .
3y 10
Example 3.2.9. Find the 8th term of (x2 − x ) without expanding the ex-
pression.
Solution:
8th term of (x2 − 3y
x )
10
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 3.2.10. Without expanding the expression, find the coefficient of x5
from the binomial expression (x2 − x2 )10 .
Solution:
P10 10
Using the Binomial theorem, (x2 − x2 )10 = (x2 )10−r (− x2 )r .
r=0 r
78
Now to find the coefficient of x5 ,
x5 = x20−3r
5 = 20 − 3r
3r = 15
∴r=5
10 10!
(−2)5 = (−32) = −8 064.
5 5!5!
Example 3.2.11. Find the constant term of the binomial expression (2x+ x12 )9 .
P9
Using the Binomial theorem, (2x + x12 )9 = r=0 9r (2x)9−r ( x12 )r .
9 1 9 9−r 9−r −2r
(2x)9−r ( 2 )r = 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!
Another way of obtaining terms is by expressing each term as follows:
79
Example 3.2.12. Expand (a + b)8 .
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
Therefore, putting everything together we obtain:
1
Example 3.2.13. Expand the first three terms of 3 3
(2x− x )
Solution:
We rewrite the expression as 1
3 3
(2x− x )
= (2x − x3 )−3
Comparing this with the binomial expansion (a + b)n , we substitute a = 2x,
b = − x3 and n = −3. We then obtain:
T1 = an = (2x)−3 = 1
8x3 ..
T2 = nan−1 b = (−3)(2x)−3−1 (− x3 ) = 9
16x4 x =9
16x5 .
2
n(n−1) n−2 2 (−3)(−3−1)
T3 = 2! a b = 2×1 (2x)−3−2 (− x3 )2 = (−3)(−4)(3)
2×25 x5 x2 = 27
16x7 .
So
1 3 −3 1 9 27
3 3 = (2x − x ) = 3+ 5
+
16x7
+ ...
(2x − x ) 8x 16x
80
3.2.3 Expansion of (a + b)n when n is a fraction
8x3 − xy .
p
Example 3.2.14. Expand the first four terms of 3
Solution:
y 1
= (8x3 − xy ) 3 .
p
We rewrite the expression as 3
8x3 − x
So
y2 5y 3
r
y y 1 y
3
8x3 − = (8x3 − ) 3 = 2x − 3
− 7
− − ...
x x 12x 288x 20 736x11
77 77
(a) 31 + 32
92
− 91
(b) 22
21
(a) (x + 3y)5
(a) (x − 2)10
81
6
2
(b) x2 − x3
7
1
(c) x4 − 2x
4. From the questions in 3. above, find the forth term of each in (a) to (c).
5
5. Find the constant term of x22 − x3 .
1
(a) (x−2)3
13
2
(b) x2 − x3
−2
y
(c) x − 2x2
2
(c) 21
2
x2 − yx
3.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. Continuing
in the same way we choose the third, fourth and fifth person in three, two and
one way(s) respectively. This gives us a total of
5 × 4 × 3 × 2 × 1 = 120 ways.
82
In these examples we took into consideration of the order of arrangements. Such
arrangement were order is important is called permutation.
n
Pr = n × (n − 1) × (n − 2) × · · · × (n − r + 1)
n n!
Pr = .
(n − r)!
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 cannot repeat the digit already used. So we
have
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 3.3.3. How many three-digit numbers can be formed from the num-
bers 0, 3, 4, 5, 6, 9 if
83
(a) there is no repetition?
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 choices; and for
third position we have 4 ways. So we have
5 × 5 × 4 = 100 ways.
(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 0 is included here. So we have
5 × 6 × 6 = 180 ways.
Solution:
n!
Pd = . (3.1)
n1 !n2 ! · · · nk !
84
Example 3.3.6. Given the word STATISTICS;
(b) How many distinct arrangements are there if the word start with letter
“S” and ends with “S”.
Solution:
(a) The word STATISTICS has 10 letters with 3 “S”, 3 “T”, 2 “I”, 1 “A” and
1 “C”.
Using equation 3.1, we get that the distinct arrangements are
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 8 letters in between, hence
8!
Pd = = 3 360.
3!2!
3.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.
n n!
Cr = .
r!(nr)!
Example 3.3.8. How many different committees of four students can be formed
from a group of ten students?
85
Solution:
In this case , there is no specific order specified, so we are only interested in the
number of combinations without worrying about order.
10 10! 10!
C4 = = = 210.
4!(10 − 4)! 4!6!
Solution:
(c) For a team to have more boys than girls, we can have either have 3 boys
or 4 boys or 5 boys with 2 girls or 1 girl or 0 girls respectively, so
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.
86
(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 repe-
tition?
(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?
(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 ones occupying Chairperson and treasurer position?
(b) distinct arrangements such that the word starts and ends with P?
5. Six books lie on a table, and a girl is told that she can take away as many
as she likes but she must not leave empty handed.
87
(b) One of these books is a Bible. How many of these selections will
include this Bible?
6. A bus needs 7 people to fill and in a bus stop there are 15 people waiting.
(a) How many possible outcomes are there to fill the bus?
(b) If Mary is one of the people in bus stop and she has to be inside the
bus, how many outcomes are there?
(c) Martin can only get inside the bus if and only if Mary gets inside.
How many outcomes are possible here?
“There is nothing so easy but that it becomes difficult when you do it reluctantly.”
Pythagoras
88
Chapter 4
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 believed to be”. Leonhard Euler
89
Definition 4.1.2. A complex number, is a number of the form a + bi where
a, b ∈ R and i2 = −1, where a is called the real part and b the imaginary
part.
For all the operations that follow below, we let z = a + bi and w = c + di.
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
90
Then
= 3 + 5i
= 11 − 9i
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 4.1.6. If z = 5 − 2i and w = −6 − i then write w and z in real-
imaginary form.
91
z 5 − 2i
=
w −6 − i
(5 − 2i)(−6 + i)
=
(−6 − i)(−6 + i)
−30 + 5i + 12i − 2i2
=
62 + 12
−30 + 2 17 −28 17
= + i= + i.
37 37 37 37
w
z (exercise)
Example 4.1.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
92
(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
(c)
2 2
i2 − i3 − = −1 − ii2 − 2 2
i5 i(i )
2
= −1 + i −
i(−1)2
2 i
= −1 + i − ×
i i
2i
= −1 + i −
−1
= −1 + i + 2i
= −1 + 3i.
93
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.
(b)
x + i8y = 7 − 16i
Equating the real part and imaginary parts on both sides we get
x = 7 and 8y = −16 hence x = 7 and y = −2.
(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.
94
(c)
6x + 3yi − 2y + 2xi = 10 − 7i
Then,
6x − 2y = 10 (1)
2x + 3y = −7 (2)
31 63 14
2x + 3 − = −7 ⇒ 2x = −7⇒x=−
11 11 11
Theorem 4.1.9. Let z, w and w be complex numbers. Then
95
Tutorials 4.1.10. 1. Simplify the following and write in form a + ib (real-
imaginary form).
i4 +i9 +i16
(g) 2−i5 +i10 −i15
96
Definition 4.2.1. Consider the complex number z = a + ib. The modulus of
the complex number z, denoted by |z|, is the real number defined by
p
|z| = a2 + b2 .
The argument (arg) of z is defined to be the angle θ that the line from the
origin to makes with the real-axis.
√
Let z = a + ib and r = |z| = a2 + b2 . By using the polar coordinates (r, θ)
in the Argand diagram we can show that we can write
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 4.2.3. Find the modulus and Argument of the following complex
numbers and hence express each z in the Modulus-Argand form.
(a) z = 1 + i
(b) z = 1 − i
(c) z = −3 − 3i
(d) z = i
(e) z = −1
97
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 Argand diagram. Hence
−3 3π
θ = arg(z) = arctan = arctan(−1) = − .
−3 4
p √
Modulus: r = |z| = (−3)2 + (−3)2 = 18.
√ h i
So z = 18 cos − 3π 4 + i sin − 3π
4 .
(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
cos θ = 0 and sin θ = 1.
√
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
cos θ = −1 and sin θ = 0.
98
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
Definition 4.2.5. 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
99
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.
(d) z ∈ R ⇒ z = z̄.
zz −1 = 1.
z
z −1 = .
|z|2
100
Proof. If z = a + ib 6= 0, then either a 6= 0 or b 6= 0, hence |z|2 = a2 + b2 6= 0.
a b
Let w = a2 +b2 − a2 +b2 i. Then
a b
zw = (a + ib) − i
a 2 + b2 a2 + b2
2
a 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
2 2
a +b
= 2
a + b2
= 1.
So z −1 = w = a
a2 +b2 − b
a2 +b2 i = a−ib
a2 +b2 = z
|z|2 .
Tutorials 4.2.10. Find the Modulus and argument of the following complex
numbers and hence write in in polar form.
√
1. (a) z = 3+i
(b) z = 3i
(c) z = −2 + 2i
(d) z = 10
√
(e) −4 3 − 4
101
Example 4.3.1. Write the following in Euler’s form.
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 .
(b) z = 3i
(c) z = −2 + 2i
(d) z = 10
√
(e) −4 3 − 4i
102
4.4 De Moivre’s Theorem
Theorem 4.4.1. (De Moivre’s Theorem:)
Proof. Let P (n) : (cos θ + i sin θ)n = cos nθ + i sin nθ for all n ∈ N.
For n = 1: (cos θ + i sin θ)1 = cos 1 · θ + i sin 1 · θ = cos θ + i sin θ.
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θ.
We will now deduce the statement is true for n = k + 1; i.e.
= cos(kθ + θ) + i sin(kθ + θ)
Solutions:
√
(a) Let w = −2 − 2 3i.
q √ √ √
r = (−2)2 + (−2 3)2 = 4 + 12 = 16 = 4.
103
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
7
= 4 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) = and arg(w) =
4 − π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 4.2.4
2 4 6 4 6
1 5π 5π
= √ cos + i sin
2 12 12
Now
1+i
12
h 1 5π 5π i12
√ = √ cos + i sin
3−i 2 12 12
1h 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
cos 5θ
(b) cos θ = 16 cos4 θ − 20 cos2 θ + 5.
104
Solutions:
(a)
4
4
X 4
(cos θ + i sin θ) = (cos θ)4−r (i sin θ)r
r=0
r
4 4
= cos4 θ + (cos θ)3 (i sin θ) + (cos θ)2 (i sin θ)2
1 2
4
+ (cos θ)(i sin θ)3 + (i sin θ)4
3
= cos4 θ + 4i cos3 θ sin θ − 6 cos2 θ sin2 θ − 4i cos θ sin3 θ + sin4 θ
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)
5
X 5
(cos θ + i sin θ)5 = (cos θ)5−r (i sin θ)r
r=0
r
5 5
= cos5 θ + (cos θ)4 (i sin θ) + (cos θ)3 (i sin θ)2
1 2
5 5
+ (cos θ)2 (i sin θ)3 + (cos θ)(i sin θ)4 + (i sin θ)5
3 4
= cos5 θ + 5i cos4 θ sin θ − 10 cos3 θ sin2 θ − 10i cos2 θ sin3 θ
105
Taking the real parts
= 16 cos4 θ − 20 cos2 θ + 5.
(a) sin3 θ = 3
4 sin θ − 1
4 sin 3θ.
1 1
(b) cos4 θ = 8 cos 4θ + 2 cos 2θ + 83 .
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
Remarks 4.5.2. In the Argand diagram the n nth roots of z are equally spaced
out on a circle of radius |z| = r.
h i
Example 4.5.3. (a) Find the cube root of z = 27 cos π3 + i sin π3 .
106
(b) Solve z 5 + 32 = 0 i.e. find the 5th root of −32.
√ √
(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
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
107
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
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 12 − 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
108
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) cos
6 + i(2) sin
6
18 18
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) 6 cos + i sin
6 6
1
29π 1
29π
= (2) 6 cos + i(2) 6 sin
18 18
109
(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
110
Chapter 5
INTRODUCTION TO
MATRICES AND LINEAR
EQUATIONS
111
written m × n. The pair of numbers m and n is called the order or size of the
matrix.
• A square matrix is one which has the same number of rows as columns
i.e. m × n matrix with (m
= n).
1 3 −1
0 8
e.g. A = B = 4 −7 1 where A is 2 × 2 and B is 3 × 3
12 −1
1 2 −5
matrices respectively.
• 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
• A matrix
with one column (n=1) is called a column matrix;
1
B = −7
8
• Two
matrices are equal
if
their sizes andcorresponding
entriesare 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.
112
• For an m × n matrix A = (aij ), the transpose of A is the n × m denoted
by At = (aji ) which is 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 and zeroes everywhere;
9 0 0
A = 0 0 0
0 0 −2
• A matrix
A is symmetric
if At =A;
5 8 −3 5 8 −3
t
A = 8 −1 −4 then A = 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 obtained by multiplying each entry of matrix A by k. The
matrix kA is called a matrix multiple of A. When dealing with matrices,
real numbers are often called scalars hence the scalar multiplication
for multiplying A by k.
2 −3 3
E.g.: If A = , then
0 −1 5
−6 9 −9
−3A =
0 3 −15
and
1 1 − 23 3
2
A=
2 0 −1 5
2 2
113
5.1.1 Matrix Addition and Subtraction
We can only add or subtract two matrices if they have the same order. The
sum or difference of two matrices is obtained by adding or subtracting the
corresponding entries respectively. If
a11 a12 a13 b b12 b13
A= , B = 11 ,
a21 a22 a23 b21 b22 b23
then
a11 a12 a13 b b12 b13 a + b11 a12 + b12 a13 + b13
A+B = + 11 = 11
a21 a22 a23 b21 b22 b23 a21 + b21 a22 + b22 a23 + b23
Example 5.1.2.
−1 8 0 −1
1 3 9 0
A= 5 0 ;B = ;C = 0 ;D = .
1
4 −7 −3 −6
2 −3 −2 −5
−1 8 0 −1 −1 + 0 8 + (−1) −1 7
A+C = 5 0 + 1 0 = 5+1 0+0 = 6 0 .
2 −3 −2 −5 2 + (−2) −3 + (−5) 0 −8
1 3 9 0 1−9 −8 3−0 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.
114
matrix whose ij-entry is obtained by multiplying the ith row of A by the jth
column of B. i.e.
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
Pn
Where cij = ai1 b1j + ai2 b2j + . . . + ain bnj = k=1 aik bkj .
Example 5.1.4.
−3 4 0
−1 −3 5
A= 2 × 3 matrix; B =
1 5 −1 3 × 3 matrix.
2 0 −4
2 0 3
115
Verify that BAt exists and
−9
−6
BAt = −21 6 .
13 −8
(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
116
(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.
(c) Which of the following operations are possible? Where the opera-
tions are possible evaluate: AC; B 3 ; C t F ; DEB; At C − B; (3E t )B;
(−3I3 − D)t ; HGB CGt .
(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 and
d given
that
2a − b 3c − d 7 −3 a 3b 3 b−3
(i) = (i) 5 + =
c + d a + 4b 0 −4 2c −d 0 −4
2a b−a
3c + d 7d
117
• Let A and B be m × n matrices. Then A is said to be row equivalent
to B if B can be obtained from A by a finite sequence of elementary row
operations.
We shall see how to apply this from next examples as well throughout the
chapter.
Example
5.2.2. The following
matrices are in
a row echelon form:
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
Example
5.2.4. The following
matricesare 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 5.2.5. Reduce the following matrix and leave your answer in
118
1 1 1 1 1
3
2 1 1 1 2 4
.
−1 −1
1 1 1 5
1 0 0 1 1 4
Solution: (a)
1 1 1 3 1 1
2 1 1 1 2 4
−1 −1 1 1 5
1
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
1 1 0 2 −R2
0 1
∼
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
1 1 1 1 1 3
0 1 1 1 0 2
∼
0 0 0 1 0 3 21 × R3
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
119
This matrix is now in a row echelon form.
(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 R2 − R3
0 1 1 0
0 0 0 1 0 3
0 0 0 0 0 0
1 0 0 0 1 0 R1 − R2
0 0 −1
0 1 1
∼
0 0 0 1 0 3
0 0 0 0 0 0
Tutorials 5.2.6. Reduce the following matrix and leave your answer in
5.3 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.
We will show how to evaluate determinant of square matrices of different orders.
120
(a): 1 × 1 matrix:
(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 5.3.2. If A = ,then
6 −3
−1
5
det A = = (5)(−3) − 6(−1) = −15 + 6 = −9.
−3
6
Definition 5.3.3. The (i, j)-th minor of a matrix A, denoted by mij (A), is the
determinantobtained by deleting
row i and column j of A.
a a12 a13
11
a11 a13
e.g. If A = a21 a22 a23 , then m32 (A) = .
a21 a23
a31 a32 a33
Definition 5.3.4. The (i, j)-th cofactor of a matrix A, denoted by cij (A), is
the signed minor
given by cij(A) = (−1)i+j mij (A) of A.
a a12 a13
11
e.g. If A = a21 a22 a23 , then
a31 a32 a33
a11 a12 a a12
c23 (A) = (−1)2+3 = − 11 .
a31 a32 a31 a32
121
(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 row or column without affecting the value of the determi-
nant.
−2 3 −1
Example 5.3.5. A= 4 −7
1
1 2 −5
−2 −1
3
det A = 4 −7
1
−5
1 2
122
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 the det(A) using this method we follow the following
steps:
(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.
= −70 + 3 − 8 − 7 + 4 + 60 = −18.
Properties of determinants:
1. The sign of a determinant changes if any two columns or rows are inter-
changed.
123
E.g. From an example, we saw that
−2 3 −1
4 −7 1 = −18.
2 −5
1
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
124
then det B = −5 det A = −5(−18) = 90.
Suppose we multiply the whole matrix A by 2, then each row will be
multiplied by two. So
Expanding along C1
−11
7
=1×
−15 21
125
we deal with higher order square matrices, e.g. 4 × 4, 5 × 5, etc.
E.g. Consider a 4 × 4 matrix
1 3 5 7
3 1 3 5
D=
5 3 1 3
7 5 3 1
1 3 5 7 1 3 5 7
−8 −12 −16 R2 − 3R1
3 1 3 5 0
=
−12 −24 −32 R3 − 5R1
5 3 1 3 0
−16 −32 −48 R4 − 7R1
7 5 3 1 0
−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.
126
a2 a a2
a b+c a+b+c
b 2 = 2
c+a b b a+b+c b
2
c2
c a+b c c a+b+c
C2 + C1
a 1 a2
= (a + b + c) b 1 b2
c 1 c2
a2
a 1
= (a + b + c) b − a 0 b2 − a2 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 )
127
2. Use properties of determinants to evaluate:
3 −4 −2
(a) 6 −4 −1
9 2 3
1 k k 2
(b) 1 k k 2
1 k k 2
3 3 0 5
0 −2
2 2
(c)
4 1 −3 0
2 10 3 2
4 0 0 1 0
3 3 −1 0
3
(d) 1
2 4 2 3
2 2 4 2 3
−3 −1 2 0 9
128
• An invertible matrix and its inverse commute with respect to matrix mul-
tiplication i.e. AA−1 = A−1 A = In .
• A non-square matrix can never be invertible, and also among square ma-
trices there are infinitely many that are not invertible.
We will study two methods of finding the inverse of a matrix. The first method
involves Gauss-Jordan operation and the second is the adjoint method.
[A|I] → [I|A−1 ]
129
the following matrices:
2 7 1
−2 3
(a) A = ; (b) B = −1
1 4
4 −5
1 3 0
(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
1 0 25 32 (− 12 ) × R1
=
0 1 2 1
5 3
∴ A−1 = 2 2
.
2 1
(b)
2 7 1 1 0 0
(A|I) = 1 −1 0
4 1 0
1 3 0 0 0 1
130
First interchange row 1 and 2.
−1 0 1 0 R2 ↔ R1
1 4
∼ 2
7 1 1 0 0
1 3 0 0 0 1
4 −1 0 1 0
1
∼ 0 −1 3 1 −2 0 R2 − 2R1
−1 1 1 −1 1 R3 − R1
0
4 −1 0
1 1 0
∼ 0 1 −3 −1 2 0 −R2
−1 1 0 −1 1
0
0 11 4 −7 0 R1 − 4R2
1
∼ 0 1 −3 −1 2 0
0 −2 −1 1 1 R3 + R2
0
0 11 4 −7
1 0
∼ 0 1 −3 −1 2
0
0 1 21 − 12 − 12 − 12 R3
0
3 3 11
1 0 11 − 2 − 2
2 R1 − 11R3
1 1
∼ 0 1 −3 2 − 32 R2 + 3R3
2
0 1 12 − 12 − 21
0
−3 −3 11
−3 −3 11
2 2 2
Hence A−1 = 1 1 −3 = 1
−3
2 2 2
2 1 1
1 −1 −1
2 2 2 1 −1 −1
131
For example if
a a12 a13
11
A = a21 a23 ;
a22
a31 a32 a33
then the matrix of cofactors of A, which we will denote by C is:
c11 (A) c12 (A) c13 (A)
C = c21 (A) c22 (A) c23 (A) ,
c31 (A) c32 (A) c33 (A)
then the adjoint matrix
c11 (A) c21 (A) c31 (A)
adjA = C T = c12 (A) c22 (A) c32 (A) ,
c13 (A) c23 (A) c33 (A)
Definition 5.4.5. If det A 6= 0 then the inverse of A is given by
1
A−1 = (adjA).
det A
Let again find the inverse of
2 7 1
B = 1 −1
4
1 3 0
using the adjoint method to verify that we will get the same answer.
To find the matrix of cofactors,
4 −1 1 −1 1 4
−
3 0 1 0 1 3
7 1 2 1 2 7
C= −
−
3 0 1 0 1 3
7 1 2 1 2 7
−
4 −1 1 −1 1 4
(0 + 3) −(0 + 1) (3 − 4) 3 −1 −1
= −(0 − 3) (0 − 1) −(6 − 7) = 3 −1
1
(−7 − 4) −(−2 − 1) (8 − 7) −11 3 1
132
Now the adjoint matrix is the transpose of cofactor matrix, i.e.
3 3 −11
adjA = C T = −1 −1
3
−1 1 1
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.
Tutorials 5.4.6. By using the methods below, find the inverse of matrices
below if they exist:
133
3 4 −1
(c) C = 1 0 3
2 5 −4
−1 3 −4
(d) D = 2 4 1
−4 2 −9
Definition 5.5.1. A linear equation over a field of real numbers with unknowns
x1 , x2 , . . . , xn is an equation that can be put in the standard form
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 called the constant term of the equation.
A system of linear equations (or linear system) is a finite collection of
linear equations in same variables. For instance, a linear system of m equations
in n variables x1 , x2 , . . . , xn can be written as:
134
Definition 5.5.2. A system of equations is consistent if it has at least one
solution and it is inconsistent if it has no solution.
(c) No solution
Example 5.5.4. Solve for x, y and z using the Gauss-Jordan elimination method
of the following system of linear equations.
2x + 7y + z = 4
x + 4y − z = 9
x + 3y = 3
2 7 1 4
A = 1 −1 ; B = 9
4
1 3 0 3
2 7 1 4
(A|B) = 1 4 −1 9
1 3 0 3
135
First interchange row 1 and 2.
−1 9 R2 ↔ R1
1 4
∼ 2
7 1 4
1 3 0 3
4 −1 9
1
∼ 0 −1 3 −14 R2 − 2R1
−1 1 −6 R3 − R1
0
4 −1 9
1
∼ 0 1 −3 14 −R2
−1 1 −6
0
0 11 −47 R1 − 4R2
1
∼ 0 1 −3 14
0 −2 8
0 R3 + R2
0 11 −47
1
∼ 0 1 −3 14
0 1 −4 − 21 R3
0
0 0 −3 R1 − 11R3
1
∼ 0
1 0 2 R2 + 3R3
0 1 −4
0
∴ the system has unique solution with solutions x = −3, y = 2 and z = −4.
Example 5.5.5. Solve for x, y and z using the Gauss-Jordan elimination method
of the following system of linear equations.
2x − 3y + z = 5
−x + 2y − z = 0
−x + 3y − 2z = 4
136
−3
2 1 5
(A|B) = −1 −1 0
2
−1 −2 4
3
−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
From row 3, we see that we have equation 0x+0y +0z = −1 which is impossible;
hence the system will have a no solution.
Example 5.5.6. Solve for x, y and z using the Gauss-Jordan elimination method
of the following system of linear equations.
x − 3y + 2z = −1
2x − 5y − z = 2
2x − 7y + 9z = −6
137
1 −3 2 −1
A = 2 −5 −1 ; B = 2
2 −7 9 −6
−3 2 −1
1
(A|B) = 2 −5 −1 2
−7 9 −6
2
4 −1 9
1
∼ 0 −1 3 −14 R2 − 2R1
−1 1 −6 R3 − 2R1
0
−3 2 −1
1
∼ 0 1 −5 4 −R2
−1 5 −4
0
0 −13 11 R1 + 3R2
1
∼ 0 1 −5 4
0 0 0 0 R3 + R1
138
Inverse of Matrix Method
Matrix inverses can be used to solve certain systems of linear equations. The
system of linear equations can be written as a single matrix equation
AX = B.
Example 5.5.8.
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 −1 y = 9 .
4
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
139
Using inverse of matrix method to solve X = A−1 B, i.e.
−3 −3 11
x 2 2 2 4
1
y = 2 1 −3
2 2 9
1 −1 −1
z 2 2 2 3
( −3 )(4) + ( −3
)(9) + ( 11
)(3)
2 2 2
= ( 12 )(4) + ( 12 ) + ( −3
2 )(3)
( 12 )(4) + ( −1
2 )(9) + ( −1
2 )(3)
27 33
−6 − 2 + 2
= 2 + 92 − 29
2 − 92 − 23
−3
= 2 .
−4
Cramer’s Rule
Dx Dy Dz
x= ; y= ; z= ; etc. where D 6= 0.
D D D
140
Example 5.5.9.
2x + 7y + z = 4
x + 4y − z = 9
x + 3y = 3
2 7 1 x 4
−1 y = 9 .
1 4
1 3 0 z 3
Then
2 7 1
D =| A | = 1 −1
4
1 3 0
2 7 1
= 3
11 0
1 3 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
141
2 4 1
Dy =| Ay | = 1 −1
9
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
−2
0 1
= 1
4 9
−1 −6
0
−2
1
= −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
142
Example 5.6.1.
x + 3y + (2 − 3k)z = 3
2x + 7y + (4 − 7k)z = 7
2x + ky + (k + 2)z = 2k − 1
Solution:
1 0 2 0
R1 − 3R2
∼ 0 −k
1 1
k2 + k − 2 k − 1
0 0
R3 − (k − 6)R2
1 0 2 0
∼ 0 1 −k
1
(k + 2)(k − 1) k − 1
0 0
Then
143
we obtain
1 0 2 0
0 1 2 1
0 −3
0 0
which is clearly impossible.
(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 matrix method to confirm the solution.
144
2. In each of the following solve for x, y and z using
(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
(a)
x + 2y + z = 3
ky + 5z = 10
2x + 7y + kz = 4
145
(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.
(a) A is invertible.
146
(d) A is expressible as a product of elementary matrices.
Proof. (⇒:) Assume A is invertible, i.e. A−1 exists. Then AA−1 = In and
R = E1 E2 . . . Er A
147
Tutorials 5.6.9. 1. Which of the following matrices are elementary matri-
ces?
1 0 −8
(a)
0 1 0
0 0 1
1 0 0
√
(b) 0 − 7 0
−3 0 1
1 0 0 0
0 0 1 0
(c)
0 1 0 0
0 0 0 1
1 0
(d)
0 − 23
1 1 0
(e)
0 1 0
0 0 0
“If others would think as hard as I did, then they would get similar results.”
Isaac Newton
148