Algebra Notes
Algebra Notes
1 Algebra 1
1.1 Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Propositional Functions. Quantifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.3 Methods of Proof . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.1 Proofs, Disproofs, Counter-examples . . . . . . . . . . . . . . . . . . . . . . . 11
1.4 Set Theory. Basic Ideas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.5 Set Theory. Further Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.6 Number Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.7 Indices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.8 Multiplication and Factorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1.9 Quadratic Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
1.10 Inequalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.11 Absolute Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
1.12 Sigma Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
1.13 Mathematical Induction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
1
Chapter 1
Algebra
1.1 Logic
All of mathematics is based on the idea that one can proceed from one statement to another in a
logical way. Before we can start then we shall have to examine the logical foundations of mathematics.
Even this will not be done completely rigorously.
Propositions
Definition 1.1.1 A proposition is a statement that is either true or false.
(i) 1 + 1 = 2 (true)
(ii) 1 + 1 = 3 (false)
One can build compound propositions out of simple propositions in a number of ways. Suppose
then p and q are propositions.
Or
Definition 1.1.2 Suppose p and q are propositions. The proposition p or q is true if p is true, or
q is true or both are true; otherwise it is false. This is written p ∨ q.
Thus, when we say “p or q ” we include the possibility that both are true, and require that at least
one of p and q are true. In mathematics “or” is always used in this sense. This is often written in
common language as “and/or”.
Thus the following are true:
(i) 1 + 1 = 2 or 5 + 2 = 7
(ii) 1 + 1 = 2 or 5 + 2 = 4
1
2 CHAPTER 1. ALGEBRA
(iii) 1 + 1 = 3 or 5 + 2 = 7,
while
(iv) 1 + 1 = 3 or 5 + 2 = 4 is false.
Truth-Tables
This is most simply illustrated in a truth-table. Here we let T stand for “true” and F for “false”.
p q p∨q
T T T
T F T
F T T
F F F
And
Definition 1.1.3 Let p and q be propositions. The proposition p and q is true if p and q are both
true; otherwise it is false. This is written p ∧ q.
p q p∧q
T T T
T F F
F T F
F F F
For example,
(i) 1 + 1 = 2 and 5 + 2 = 7
is true while
(ii) 1 + 1 = 2 and 5 + 2 = 4
(iii) 1 + 1 = 3 and 5 + 2 = 7,
(iv) 1 + 1 = 3 and 5 + 2 = 4
Negation
Definition 1.1.4 Let p be a proposition. Then the negation ¬p of p (read as “not p”) is the
proposition which is true when p is false and false when p is true.
1.1. LOGIC 3
The idea is very simple. For example, if p is the proposition “Lusaka is the capital of Zambia”, the
¬p is “Lusaka is not the capital of Zambia”.
The truth-table embodies the idea that if p is true then ¬p is false, while if p is false then ¬p is
true.
p ¬p
T F
F T
Implication
A great many statements in mathematics are of the form “If p is true, it follows that q is true”.
More simply we may say “p implies q”. We wish to define this more formally.
Definition 1.1.5 Let p and q be propositions. Then p =⇒ q (read as “p implies q”) is the propo-
sition which has the truth-table below.
p q p =⇒ q
T T T
T F F
F T T
F F T
The last two lines in the truth-table may seem strange. If we agree that they must have some
truth value, it is easy to see that both must be T .
Indeed, let p be the (false) proposition that 1 = 2, and let q be the true proposition 2 = 2. It is
easy to deduce q from p, so that p =⇒ q must be true. To see this, simply multiply both sides of
the equation 1 = 2 by zero, and then add 2. Thus the last entry on the third line of the truth-table
must be T .
On the other hand, let p be the (false) proposition that 1 = 2, and first let q be the false
proposition 2 = 3. Again one can deduce q from p by adding 1, so that again p =⇒ q must be true.
Hence the last entry on the bottom line of the truth-table must also be T .
The upshot is that p =⇒ q is true if p is true and q is true and also true whenever p is false
whatever the value of q. It is sometimes said that “a false proposition implies anything.”
For example the following are true :
(i) 1 + 1 = 2 =⇒ 2 + 2 = 4
(ii) 1 + 1 = 3 =⇒ 2 + 2 = 4
(iii) 1 + 1 = 3 =⇒ 2 + 2 = 5.
The important thing to realize is that if p is true and q is false, then p =⇒ q is false.
Moreover, it should be understood that the statements p =⇒ q and q =⇒ p are quite different.
4 CHAPTER 1. ALGEBRA
Thus
x > 0 =⇒ x2 > 0
is true, while
x2 > 0 =⇒ x > 0
is false, since, for example, x might be −1.
We emphasize again the vital fact:
As another example consider the statements “This is an apple” and “This is a fruit”. Obviously
the statement
is false.
Converse
Definition 1.1.6 If p =⇒ q is a proposition, then its converse is the proposition q =⇒ p.
As we have seen above, p =⇒ q may be true, while its converse q =⇒ p may be false. For
example, if n is a positive integer
n is even =⇒ 2n is even
is certainly true, since whenever the left-hand side is true, so is the right. On the other hand, the
converse
2n is even =⇒ n is even
is false, since the left-hand side is true no matter what n is, but the right-hand is not – for instance
n might be 3.
However, there are many statements in mathematics which are true and whose converse is also
true. For example, suppose △ ABC is a triangle. Then the proposition
AC = BC =⇒ ∠A = ∠B
is true, since the base angles of an isoceles triangle are equal. The converse is
∠A = ∠B =⇒ AC = BC
is also true, since if the base angles are equal, then the triangle is isoceles.
In this case, if p is AC = BC and q is ∠A = ∠B, then
p =⇒ q and q =⇒ p.
p ⇐⇒ q means p =⇒ q and q =⇒ p.
1.1. LOGIC 5
Iff
We say that p is true if and only if q is true. This is frequently abbreviated to p iff q. Let us
examine the relevant truth table, keeping in mind the truth-table for p =⇒ q.
p q p =⇒ q q =⇒ p p ⇐⇒ q
T T T T T
T F F T F
F T T F F
F F T T T
The last column is obtained from the fact that p ⇐⇒ q means p =⇒ q and q =⇒ p. Notice that
then that
(i) p ⇐⇒ (¬ ¬ p)
(ii) (¬(p ∨ q)) ⇐⇒ (¬ p ∧ ¬ q)
(iii) (¬(p ∧ q)) ⇐⇒ (¬ p ∨ ¬q)
De Morgan’s Laws
The first of these is fairly obvious. The next two are called De Morgan’s Laws. Note that when
the negation is taken into the bracket, “and” changes to “or” and vice-versa. We shall prove only
the first of De Morgan’s Laws. This will be done be examining the truth-values for each side.
p q p∨q ¬(p ∨ q) ¬p ¬q (¬ p ∧ ¬ q)
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
↑ ↑
Since the columns containing ¬(p ∨ q) and (¬ p ∧ ¬ q) are identical, the result follows.
The second of De Morgan’s Laws can be proved in the same way.
Example 1.1.1
p ∧ (q ∨ r) ⇐⇒ (p ∧ q) ∨ (p ∧ r).
6 CHAPTER 1. ALGEBRA
Solution
We arrange the truth-table systematically so that the first 4 entries of the p-column are all T and
the last 4 all F; the q-column is arranged in pairs of T’s and F’s, while the r-column has alternating
T’s and F’s. This covers all possibilities.
Negation of Implication
We shall need to express the proposition ¬(p =⇒ q) in more basic terms. We know that p =⇒ q is
true if whenever p is true, then so is q. So we expect the negation of p =⇒ q should be that p is true
and yet q is false, that is we suspect that
p q p =⇒ q ¬(p =⇒ q) ¬q p ∧ (¬ q)
T T T F F F
T F F T T T
F T T F F F
F F T F T F
↑ ↑
Since the columns marked by the vertical arrows are identical, the result follows.
Contrapositive
Consider the statement
Now suppose the ground is not wet. Then clearly it cannot be raining! Thus we have shown
p q p =⇒ q ¬q ¬p (¬ q) =⇒ (¬ p)
T T T F F T
T F F T F F
F T T F T T
F F T T T T
↑ ↑
This shows that p =⇒ q and (¬ q) =⇒ (¬ p) are logically equivalent. The expression
(¬ q) =⇒ (¬ p)
Exercises 1.1
1. Let p be the proposition 1 < 2, q be the proposition 2 + 3 = 6 and r be the proposition
2 × 3 = 6. Which of following are true
(a) p =⇒ q (b) p =⇒ r (c) p =⇒ ¬ q (d) p =⇒ ¬ r
(e) ¬ p =⇒ q (f) ¬ p =⇒ r (g) ¬ p =⇒ ¬ q (h) ¬ p =⇒ ¬ r
(i) q =⇒ p (j) q =⇒ r (k) q =⇒ ¬ p (l) q =⇒ ¬ r
(m) ¬ q =⇒ p (n) ¬ q =⇒ r (o) ¬ q =⇒ ¬ p (p) ¬ q =⇒ ¬ r
(q) p ⇐⇒ q (r) p ⇐⇒ r (s) ¬q ⇐⇒ r (t) ¬ p ⇐⇒ ¬ r
2. Which of the following are true?
(a) (2 > 1) ∨ (2 = 1) (b) (2 > 2) ∨ (2 = 2) (c) (1 > 2) ∨ (1 = 2).
3. Let p, q and r be propositions. Prove the following using truth-tables:
(a) p ∧ (q ∧ r) ⇐⇒ (p ∧ q) ∧ r) (b) p ∨ (q ∧ r) ⇐⇒ (p ∨ q) ∧ (p ∨ r)
(c) ¬(p ∧ q) ⇐⇒ (¬p) ∨ (¬ q) (d) (p ∨ ¬ p) ∧ r ⇐⇒ r
4. State the converses and contrapositives of the following:
(a) If x > 0 then x2 > 0 (b) If xy = 0 then x = 0 or y = 0
(c) If xy = 1 then x = 1 or y = 1 (d) If x > 0 then x3 > 0.
Which out of (a), (b) (c), (d), their converses and their contrapositives are true and which are
false? Give reasons.
Which out of (a) – (d) and their negations are true and which are false? Give reasons.
6. Let p and q be propositions. The exclusive or, p ∨ q is defined by the truth-table
p q p∨q
T T F
T F T
F T T
F F F
(∃x)(x2 = 0).
In words this says there exists an x such that x2 = 0. This is true, since 02 = 0.
The second quantifier is the universal quantifier, symbolised by ∀, read as “for all” or “for
every”. Thus we can form the proposition
(∀x)(x2 = 0).
(∀x)(∃y)(y > x)
¬(∃x)(p(x)).
1.3. METHODS OF PROOF 9
This means that it is not the case that there exists an x such that p(x) is true, or in other words
p(x) is always false. Thus
¬(∃x)(p(x)) ⇐⇒ (∀x)(¬p(x)).
Similarly, if it is not the case that p(x) is true for all x, then there must exist some x for which p(x)
is false, i.e.
¬(∀x)(p(x)) ⇐⇒ (∃x)(¬p(x)).
Note how taking the negation inside the quantifier changes the existential quantifier to the universal
and vice-versa. This process can be applied to more complex statements.
Example 1.2.1
Solution
We have
Exercises 1.2
1. Negate the following (you may assume x and y are real numbers):
(a) (∀x)(∃y)(y = x2 )
(b) (∃y)(∀x)(y = x2 )
(c) (∀y)(∃x)(y = x2 )
(d) (∃x)(∀y)(y = x2 )
Which out of (a) – (d) and their negations are true and which are false? Give reasons.
Suppose various hypotheses (H) hold. Then it follows that the conclusion (C) holds.
Fundamentally there are three types of proof. The first is a direct proof. The idea is to proceed
from the hypotheses to the conclusion. The proof of the following result is a direct proof.
Proof. Suppose m and n are even. Since every even number is a multiple of 2, then there exist k
and ℓ such that
m = 2k and n = 2ℓ.
Then
n + m = 2k + 2ℓ = 2(k + ℓ)
which is even.
10 CHAPTER 1. ALGEBRA
The second method is known as an indirect proof. This really works only in the case that
there is a single hypothesis, H. As before, we wish to show H =⇒ C. In an indirect proof, we show
instead that ¬ C =⇒ ¬ H, that is we prove the contrapositive. We have already seen that these are
equivalent.
An example of an indirect proof is the following. Suppose we wish to show the following:
that is to say
n is odd =⇒ n2 is odd.
This is easily achieved, since if n is odd, then n = 2k + 1 for some integer k, in which case
n2 = (2k + 1)2 = 4k 2 + 4k + 1
Closely allied to indirect proof is proof by contradiction (or reductio ad absurdum). Here we
assume the hypothesis H and suppose that the conclusion C is false. Then we show that this leads
to a contradiction. Since this cannot be, then the conclusion cannot be false, that is the conclusion
is true, and the proof is achieved. Here is an example.
n2 + 3 = (2k + 1)2 + 3 = 4k 2 + 4k + 1 + 3 = 4k 2 + 4k + 4.
This is clearly even, which contradicts our hypothesis. So n cannot be odd, that is n is even.
√
The proof that 2 is irrational given in Chapter 1 is a typical proof by contradiction. Another
classic example is the following theorem. The proof is more than 2300 years old.
Proof. Suppose, for the sake of contradiction, that there are only finitely many prime numbers. Let
these be
p 1 , p 2 , . . . , pk .
Since any integer can be broken down into prime factors, then
This is not divisible by p1 , since on dividing by p1 one is left with a remainder of 1. In the same
way it is not divisible by any of p1 , p2 , . . . , pk . This contradicts our previous statement (1.5). It
follows then that there are infinitely many primes.
Note that in a proof by contradiction, one must assume the conclusion is false. It is pointless to
assume that the hypothesis is false. If you wish to prove Pythagoras’s theorem, it would be madness
to start off “Suppose △ABC is not right-angled.”
The natural question to ask is which method should be used in which case. The answer, unfor-
tunately, is that there is no recipe to tell us how to prove any particular theorem. If there were,
mathematicians would soon be out of work.
It is simply not good enough to give an example, that is to say a value of x for which p(x) is true.
This is very different from the situation in the natural sciences. If a physicist, for example, observes
that when you drop an apple it falls downwards, and it falls downwards every time you try it, he
will conclude that it is always the case that when you drop an apple, then it falls downwards. This
is not acceptable to a mathematician, who demands a proof.
For example, if one is asked to prove that the sum of 2 odd integers is even no good to say
3 + 5 = 8, which is even.
31 is a prime number
331 is a prime number
3331 is a prime number
33 · · · 31
Only an absurdly obstinate person would not be a believer by now. Unfortunately, if we try just
one more, we find
4 = 2 + 2, 6 = 3 + 3, 8 = 5 + 3, 10 = 5 + 5, 12 = 7 + 5, etc.,
867514894
is the sum of 2 primes? Nor is it obvious how to prove the original statement. Mathematicians have
been trying for over 300 years with no success. Nobody said it would be easy.
In summary
Exercises 1.3
1. Prove or disprove the following statements – that is, provide a proof or a counter-example:
(a) If n2 is divisible by 3, then n is divisible by 3.
(b) If n2 is divisible by 9, then n is divisible by 9.
(c) If n is even and m is odd, then (m + n)2 is odd.
(d) If (m + n)2 is odd, then either m is odd and n is even, or n is odd and m is even.
Thus the collection of all students in the world forms a set and any individual student is a
member of this set. Similarly, we can speak of the set of even numbers, the set of all tables, the set
of all triangles and so on.
We shall denote sets by capital letters A, B, C, X, Y, Z etc. and their elements by lower case
letters a, b, c, x, y, z etc.
Then if A is a set and x is a member of A, we write
x ∈ A.
{a, e, i, o, u}.
Please note that we use “curly brackets” {, }. Square brackets [, ] and round ones (, ) have quite
different meanings. Now we can say
In the same way we may write the set of positive even integers as
{2, 4, 6, 8, . . .}.
The three dots signify that we continue in the same fashion indefinitely.
This notation may also used as follows. Consider the set
{x | x is a prime number}.
Here one may read the vertical bar (sometimes a colon is used) as “such that”. Thus
is identical to
Equality of Sets
Definition 1.4.2 Let A and B be sets. Then A is equal to B (written A = B) if every member of
A is a member of B, and every member of B is a member of A.
So A = B when A and B have exactly the same elements. If A is not equal to B, we write A 6= B.
14 CHAPTER 1. ALGEBRA
Example 1.4.1
Example 1.4.2
Note that the order in which the elements appear is not important. Furthermore, repetition of
elements is irrelevant.
Even when two sets are not equal there may be another relationship between them.
Subset
Definition 1.4.3 Let A and B be sets. Then A is a subset of B (or A is contained in B) if
every element of A is also an element of B.
This is written as
A⊆B or B ⊇ A.
A⊆B if x ∈ A =⇒ x ∈ B.
This concept can be conveniently illustrated by means of a Venn diagram as shown in Figure
1.4.1. Here A consists of all points within the smaller region and B of all points within the larger.
Evidently every member of A is a member of B.
B
A
Figure 1.4.1
Example 1.4.3
Thus, while a ∈ {a, b, c} it is not true that a ⊆ {a, b, c}, since the left-hand side is not even a set.
Of course it is true that {a} ⊆ {a, b, c}.
It should also be noted that for any set A we have A ⊆ A. This follows immediately from Definition
1.4.3 (with A in place of B).
The following proposition contains some obvious facts.
1.5. SET THEORY. FURTHER PROPERTIES 15
A ⊆ B iff (x ∈ A =⇒ x ∈ B),
A = B iff (x ∈ A ⇐⇒ x ∈ B).
Exercise 1.4
1. Which of the following statements are true and which false?
(a) 1 ∈ {1, 2, 5} (b) 1 ⊆ {1, 2, 5} (c) {2} ∈ {1, 2, 5}
(d) {2} ⊆ {1, 2, 5} (e) {2, 3} ∈ {1, {2, 3}, 2, 3, 4} (f) {2, 3} ⊆ {1, {2, 3}, 2, 3, 4}.
2. Let P, Q, R, S, T denote respectively the sets of parallelograms, quadrilaterals, rectangles,
squares and trapezia in the plane. Which of these are subsets of which others?
3. What is wrong with the following arguments? Write them out correctly.
(a) Solve 2x − 3 = 5.
Solution:
2x − 3 = 5
= 2x = 8
= x = 4.
2
(b) Prove that x(x − 2) + 7(x + 1) = x + 5x + 7.
Solution:
x(x − 2) + 7(x + 1) = x2 + 5x + 7
2
x − 2x + 7x + 7 = x2 + 5x + 7
−2x + 7x + 7 = 5x + 7
5x = 5x, proved.
Union
Definition 1.5.1 If A and B are sets, then the union of A and B, denoted A ∪ B, is the set of
elements that belong to A or B or both.
16 CHAPTER 1. ALGEBRA
A B
Figure 1.5.1
In the Venn diagram Figure 1.5.1, A is the left-hand region, B the right-hand region and A ∪ B is
the whole shaded portion. To put it another way
x∈ A∪B ⇐⇒ (x ∈ A ∨ x ∈ B).
Example 1.5.1
Example 1.5.2
Example 1.5.3
Intersection
Definition 1.5.3 If A and B are sets, then the intersection of A and B, denoted A ∩ B, is the
set of elements which belong to both A and B.
1.5. SET THEORY. FURTHER PROPERTIES 17
A B
Figure 1.5.2
In the Venn diagram, Figure 1.5.2, A ∩ B is the shaded portion. Again we can say
x∈A∩B ⇐⇒ (x ∈ A ∧ x ∈ B).
This leads us to a problem. What would happen if A and B were as shown in Figure 1.5.3?
A B
Figure 1.5.3
There is nothing which is in both A and B and so A ∩ B has no elements. However, we should like
A ∩ B to be a set. This leads us to our next definition.
Example 1.5.4
Finally, it is sometimes necessary to talk about the elements that are not in a set. For example,
if
A = {x | x is an even integer}
one would probably think of
B = {x | x is an odd integer}
as being the set of all elements not in A. However, it is equally true that Africa 6∈ A. This is not
what we want at all. It is therefore necessary to restrict ourselves to some (usually large) set in
which our whole discussion will take place.
18 CHAPTER 1. ALGEBRA
Universal Set
Definition 1.5.6 The universal set, E, is the set of all elements under discussion.
Complement of a Set
Definition 1.5.7 Let E be the universal set and suppose A ⊆ E. Then the complement of A in
E, denoted A′ , is the set of all elements in E which are not in A.
E
A
A′
Figure 1.5.4
In Figure 1.5.4, the outer box denotes the universal set E, and the shaded portion is A′ .
A number of algebraic relationships hold between sets. Proofs of these may be given using the
corresponding results from logic.
Example 1.5.5
Show that (A ∩ B)′ = A′ ∪ B ′ and (A ∪ B)′ = A′ ∩ B ′ . (These two relations are again known
as De Morgan’s Laws. )
Solution
x ∈ (A ∩ B)′ ⇐⇒ ¬(x ∈ A ∩ B)
⇐⇒ ¬(x ∈ A ∧ x ∈ B)
⇐⇒ ¬(x ∈ A) ∨ ¬(x ∈ B) (by(1.6))
⇐⇒ x ∈ A′ ∨ x ∈ B ′
⇐⇒ x ∈ (A′ ∪ B ′ )
1.5. SET THEORY. FURTHER PROPERTIES 19
Hence
(A ∩ B)′ = A′ ∪ B ′ .
It is left as an exercise to show that
(A ∪ B)′ = A′ ∩ B ′ .
Exercise 1.5
1. Which of the following statements are true, and which false ?
(a) {∅} = ∅ (b) ∅ ∈ {∅} (c) For any set A, A ∩ ∅ = A
(d) If A, B, C are sets such that A ∪ B = A ∪ C, then B = C.
(e) If A, B, C are sets such that A ∪ B = A ∪ C for every set A, then B = C.
2. Let A = {1, 2, 5, 6}, B = {2, 3, 5, 7} and C = {1, 3, 6, 8} where E = {1, 2, 3, 4, 5, 6, 7, 8}. Find
(a) A ∪ B (b) B ∩ C (c) (A ∪ B) ∩ (B ∩ C) (d) A′
(e) B ′ ∪ A (f) (A′ ∩ B ′ ) ∪ C.
3. Let the universal set E = {1, 2, 3, 4, 5, a, b, c, d, e}, A = {1, 3, a, b} and B = {2, 4, 5, c, d}. Find
the following:
(a) A ∪ B (b) A ∩ B (c) A′ (d) A ∩ B ′
(e) (A ∪ B)′ (f) (B ′ )′ (g) (A′ ∪ B)′ (h) all the subsets of A.
4. If X and Y are sets, simplify the following:
(a) X ∩ X (b) X ∪ X (c) X ∪ ∅
(d) X ∩ E (e) X ∪ X ′ (f) E ′
(g) (X ′ )′ (h) X ∩ ∅ (i) X ∪ E
(j) ∅′ (k) ((X ′ )′ )′ (l) (X ∩ E)′
(m) X ′ ∩ X (n) X ∩ (X ∪ Y ) (o) X ∪ (Y ∩ ∅)
(p) X ∪ (X ∩ Y ) (q) (X ∪ Y ) ∪ X (r) (X ∪ Y ) ∪ X ′
(s) (X ∪ Y ) ∩ (X ∩ Y ) (t) (X ∪ (X ∩ Y )) ∩ X.
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
and
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).
Use these identities, 1.5.2, 1.5.5, 1.5.8 and De Morgan’s Laws to simplify
(a) A ∩ (B ∪ A′ ) (b) A′ ∪ (B ∩ A) (c) (A ∩ B) ∪ (A′ ∪ B)
(d) (X ∩ Y )′ ∩ Y ′ (e) X ∪ (X ′ ∩ Y ) (f) (A ∪ (B ∪ A′ )′ )′
(g) (X ∩ Y ′ )′ ∪ Y ′ (h) (X ′ ∪ Y ′ )′ ∩ X ′ .
20 CHAPTER 1. ALGEBRA
A − B = {x ∈ A | x 6∈ B},
that is the set of elements of A which are not in B (see Figure 1.5.5).
A B
Figure 1.5.5
(a) Show that A − B = A ∩ B ′ . Use this identity, and other well-known identities, to simplify
the following:
(i) A − (B − A) (ii) (A − B) − A (iii) (A − B) ∩ (A − C).
(b) If A, B and C are sets such that A− B = C − B, does it follow that A = C? Give reasons.
9. How many subsets are there of the set {1, 2, 3}? (Remember that the empty set is a subset, as
is the whole set {1, 2, 3} itself.) How many subsets are there of {1, 2, 3, 4}? Guess a formula
which will tell you how many subsets there are of {1, 2, 3, . . . , n} for any positive integer n.
Natural Numbers
The set of all such numbers is called the set of natural numbers, denoted N. Thus
N = {1, 2, 3, . . .}.
Now any two elements of N may be added or multiplied together to give another member of N.
Thus 2 ∈ N, 7 ∈ N and 2 + 7 = 9 ∈ N, 2 × 7 = 14 ∈ N.
However, it is not true that the difference between two members of N is a member of N.
Thus 5 ∈ N, 8 ∈ N, but 5 − 8 6∈ N.
Integers
It becomes necessary to enlarge N to the set of integers, Z. (Z is for the German “zahl” meaning
number.) Thus
Z = {. . . , −3, −2, −1, 0, 1, 2, 3, . . .}.
Note that N ⊆ Z.
Now if a, b ∈ Z then a + b ∈ Z, ab ∈ Z and −b ∈ Z. However it is not always true that a/b ∈ Z.
Thus for example 3 ∈ Z, 5 ∈ Z but 3/5 6∈ Z.
1.6. NUMBER SYSTEMS 21
Rational Numbers
Again we enlarge Z to the set of all rational numbers, Q. By definition Q is the set of all numbers
p/q where p, q ∈ Z and q 6= 0. i.e.
Thus Q is just the set of “fractions”. Notice that Z ⊆ Q, for if n ∈ Z then n = n/1 ∈ Q. The
following are therefore rational numbers :
2 135 101 2
, , − 23, , − , etc.
17 61 2 101
One might object to the restriction that q must not be zero, and try to define for example
1
=∞ (1.7)
0
where the right-hand side is “infinity”. This leads to immediate problems, for by (1.7) we have
1 = 0.∞ (1.8)
1 = (0 + 0)∞
= 0.∞ + 0.∞.
2q 2 = p2 .
22 CHAPTER 1. ALGEBRA
This means that p2 is even, and hence by Lemma 1.6.1, so is p. Let then
p = 2k where k ∈ Z.
-
−3 −2 −1 0 1 2 3 4
Figure 1.6.1
Choose a point on the line and label it 0. Choose any other point and label it 1 (conventionally to
the right of 0). Now lay off segments of length equal to the distance from 0 to 1 to the right of 1
and label these successively 2, 3, 4, . . . and similarly to the left of 0 labelling them −1, −2, −3, . . ..
Thus every element of Z corresponds to a point on the line. The reverse is clearly false, since there
are points between 0 and 1 which do not correspond to any element of Z.
A simple geometrical construction will then locate all points of the form p/q where p, q ∈ Z and
q 6= 0, i.e. all of Q. Then every rational corresponds to a point on the line. However Theorem
1.6.2 tells us that there are still points on the line√that do not correspond to elements of Q, one
example being the point whose distance from 0 is 2. Thus if we consider only points on the line
corresponding to members of Q, there are “gaps” left in the line.
Real Numbers
All of this means that we need to enlarge Q to the set of real numbers, R, in such a way that
to every real number there corresponds a point on the line, and to every point on the line there
corresponds a real number. The details of how this is done are fairly technical and we shall not
pursue the matter here. (Indeed, the very meaning of the word “line” is a thorny problem.)
In summary, each point on the line is uniquely associated with a real number and each real
number corresponds to a point on the line. For this reason we usually envisage the reals as points
on a line and talk of the “real line”.
Decimal Expansions
We can instead approach the idea of what the real numbers are by looking at decimal expansions.
As we know,
1/4 = 0.25
and
1/3 = 0.333 · · ·
1.6. NUMBER SYSTEMS 23
where the dots signify that the 3’s continue indefinitely. We shall call the first type, like 1/4 a
terminating decimal and the second type like 1/3 a recurring decimal. To see why 1/3 takes
this form, let
x = 0.333 · · ·
Then
10x = 3.333 · · ·
Subtracting gives
9x = 3
so that x = 1/3.
We can regard terminating decimals as a special kind of recurring decimals. For example,
3.658658658 · · ·
Letting
x = 3.658658658 · · ·
we have
1000x = 3658.658658 · · ·
Hence, subtracting we have
999x = 3658
and so
3658
x= ∈ Q.
999
In the same way every recurring decimal corresponds to a rational number. The converse, that is
every rational has a recurring decimal expansion, is also true.
Now not every decimal expansion is recurring. For example,
0.101001000100001 · · ·
is not recurring. The real numbers, then, consist of all decimal expansions, recurring or not.
Exercise 1.6
1. Write out each of the following sets in full with each element listed:
√ √ √
(a) {−10, −9, −8, . . . , 10} ∩ N (b) { 1, 2, . . . , 12} ∩ Q.
5. The sets X and Y are defined by X = {3n + 1 | n ∈ Z}, Y = {3n + 2 | n ∈ Z}, and ′ denotes
complement in Z. Give one element of X, one of Y and one of (X ∪ Y )′ . Show that:
24 CHAPTER 1. ALGEBRA
(a) if x, y ∈ X then xy ∈ X
(b) if x, y ∈ Y then xy ∈ X
(c) if x, y ∈ X then x + y ∈ Y
(d) if x ∈ X and y ∈ Y , then (x + y) is divisible by 3.
√
8. Let X = {a + b 2 | a, b ∈ Z}. Show that if x, y ∈ X then xy ∈ X.
14. Express the following recurring decimals as rational numbers in the form p/q, where p, q ∈ Z.
(a) 2.666 · · · (b) 4.363636 · · · (c) 0.999 · · ·
1.7 Indices
We denote for any a ∈ R, a.a by a2 , a.a.a by a3 , and in general a.a.
| {z · · · .a} by an . Then if n, m ∈ N,
n times
am an = |a.a.{z
· · · .a} a.a.
| {z · · · .a} = a.a.
| {z · · · .a} = am+n
n times m times m+n times
33 34 = 37 .
Note that the number which is being raised to a power must be the same throughout. Thus
23 34 6= 67 .
1.7. INDICES 25
(Nor is the left-hand side equal to anything else very interesting for that matter.)
Now suppose m, n ∈ N and m is greater than n. Then
am a.a. · · · .a
= where the top has m factors and the bottom n factors
an a.a. · · · .a
= a.a.a. · · · .a with (m − n) factors after n cancellations
= am−n .
Here it is necessary to specify that a 6= 0, otherwise we shall be dividing by zero. Equation (1.10)
says that when you divide, you subtract indices. Thus for example
27
= 22 .
25
Finally, if m, n ∈ N, then
where each bracket on the right-hand side has m factors and there are n such brackets. This gives
a total of mn factors. i.e.
For example
(54 )7 = 528 .
24 2−3 = 2.
But clearly
24
= 2,
23
and so we are led to define
1
2−3 =
.
23
More generally, if we assume (1.9) holds for any integers m and n, then
an+1 a−n = a.
Since
an+1
=a
an
we make the following definition.
1
Definition 1.7.1 If a ∈ R, a 6= 0 and n ∈ N, then a−n = .
an
26 CHAPTER 1. ALGEBRA
(a1/n )n = a1 = a.
Since
√
( n a)n = a,
it would appear to be a good idea to define
√
a1/n = n
a.
There
√ is a√slight problem in that a1/n will not exist if n is even and a is negative.
√ For example,
−2 and 4 −5 are not real numbers. There is no problem if n is odd; for example 3 −8 = −2, since
(−2)3 = −8.
1
Definition 1.7.3 If a ∈ R, n ∈ N, then a1/n = , provided the right-hand side exists.
an
Remark.
√
If n is even and a > 0, then n a is defined to be the positive real solution to the
√
equation xn = a. So 4 is defined to be 2 and not ±2.
This should not be confused with the fact that if x2 = 4 then x = ±2. This follows
because x = 2 and x = −2 both satisfy the equation x2 = 4.
√
It follows that if m, n ∈ N, then am/n = (am )1/n = n
am , provided the nth root of am exists.
Example 1.7.1
Simplify 23 8−2 45 .
1.7. INDICES 27
Solution
Example 1.7.2
27 + 24 32
Simplify √ .
62 2
Solution
√
Similarly, 27 = 24 23 , 62 = 22 32 and 2 = 21/2 . We have
24 23 + 24 32 24 (23 + 32 )
=
22 32 21/2 22 32 21/2
4 −2 −1/2 −2 3
= 2 2 2 3 (2 + 32 )
= 23/2 3−2 17 √
√ 17 34 2
= 2 2 = .
9 9
Example 1.7.3
a2 (b3 c−2 )2
Simplify .
a−3 b2 c−4
Solution
We have
Example 1.7.4
√ √ √ √
Simplify 3 − 75 + 12 + 48.
Solution
We obtain
√ √ √ √ √ √ √ √ √
3 − 3.25 + 3.4 + 3.16 = 3 − 5 3 + 2 3 + 4 3 = 2 3.
√ √ √ √
This example
√ illustrates
√ an important principle. Note that 5 3 = 25 3 = 75, (and we do
NOT obtain 5 3 = 15).
Thus when taking a number inside a square root, one must square it.
28 CHAPTER 1. ALGEBRA
Similarly
√ √
12 12 √
= √ = 3.
2 4
Example 1.7.5
Solution
Example 1.7.6
2 1
Solve the equation 3−x = .
81
Solution
Again
2
3−x = 3−4 ,
so that x2 = 4.
Hence x = 2 or x = −2.
Exercise 1.7
1. Simplify:
23 2−1/2 62 123 322 643
(a) (b) (c)
22 34 23 1285 16
2.5−3 .52 104 2−3 9.26 − 32 .25.16
(d) (e) (f)
1252/3 200−1/2 52 72 53 161/4
a b + a1/2 b3
3/2 2
(g) a−3 a6 a−2/3 (h) [a2 b−3 /(a−3 b2 )]3 (i)
a2 b−3
2. Simplify:
√ √ 9x
(a) 32 2 (b) (3−1 − 2−1 )−1 (c)
√ 3x
√ √ 18
(d) 48 − 4 12 (e) √ (f) (−27)−1/3
9 2
r r r
7 7 7 √ √ √ √
(g) + + (h) 45 − 125 + 20 + 5.
9 4 36
3. Solve for x:
(a) 5x = 6252 (b) 2−x = 128 (c) 4−x = 2
2
x −2
√ −1 x x 9x
(d) 3 = (3 3) (e) (1/16) = 4(64) (f) 81 = .
9
1.8. MULTIPLICATION AND FACTORIZATION 29
This is obtained by substituting (a + b) for a in (1.12). Then using (1.12) again, we have
(a + b)(x + y) = ax + bx + ay + by.
The effect is that every term in the first bracket is multiplied by every term in the second. Of
particular importance is the case where the two brackets are the same. Thus
(a ± b)2 = a2 ± 2ab + b2
Similarly,
We could of course continue in this way indefinitely. Fortunately there is a simple rule which tells
us what the expansion of (a + b)n is for any n ∈ N.
Pascal’s Triangle
Figure 1.8.1 shows what is known as Pascal’s Triangle. It is constructed as follows:
Write down 1 in the first row and then two 1’s in the second row as shown. Each new row is started
off and ended with 1’s. The intervening numbers are obtained by adding the two numbers directly
above as shown by the arrows.
30 CHAPTER 1. ALGEBRA
1
1 1
1 2 1
1 3 3 1
R
1 4 6 4 1
R
1 5 10 10 5 1
Figure 1.8.1
Thus
(a + b)7 6= a7 + b7 and (a + b)1/2 6= a1/2 + b1/2 .
Example 1.8.1
Expand (x + 4)5 .
Solution
Example 1.8.2
Expand (x − 3)4 .
Solution
It is worth checking that the signs are correct when expanding an expression of the form (a − b)n .
This is easily done, for in the expansion one will obtain alternating positive and negative signs. For
example
(a − b)6 = a6 − 6a5 b + 15a4 b2 − 20a3 b3 + 15a2 b4 − 6ab5 + b6 ,
using one more row of Pascal’s Triangle.
Let us now turn to the question of factorization. We shall assume that factorizations of the types
found in the next four examples are familiar, but further examples of them may be found in the
exercises.
In particular a2 − b2 = (a − b)(a + b) (the difference of two squares), while a2 + b2 (the sum of
squares) has no (real) factors in general.
Example 1.8.3
Example 1.8.4
Example 1.8.5
Example 1.8.6
Example 1.8.7
The following two factorizations, known respectively as the sum and difference of two cubes,
may not be so well known.
a3 + b3 = (a + b)(a2 − ab + b2 ) (1.13)
a3 − b3 = (a − b)(a2 + ab + b2 ) (1.14)
That these two formulae are correct may easily be checked by multiplying out the right-hand sides.
Example 1.8.8
Factorize 8x3 − 1.
Solution
Example 1.8.9
Solution
Exercise 1.8
1. Expand:
(a) (x + 2y)2 (b) (3x − 4y)2 (c) (x + y)3
(d) (x − y)3 (e) (x − 2y)3 (f) (2x − 3y)3
(g) (x2 − y)3 (h) (x + y 2 )3 (i) (x + y)4
(j) (x − y)4 (k) (y − 3x)4 (l) (3y − 2x)4
(m) (x + 1/x)4 (n) (2x − 1/2)4 (o) (2x − 1/x)4
(p) (x + y)5 (q) (2x − y)5 (r) (a − 2b + c)2 .
2. Simplify where possible :
p
(a) (132 − 52 )1/2 (b) (x2 − y 2 )1/2 (c) (x1/3 + y 1/3 )3 (d) x2 + y 2
x2 − 1 4x √
(e) (x4 + y 4 )1/4 (f) (g) 1 − (h) ( x2 + 2)2 .
1−x (1 + x)2
3. Factorise as far as possible :
(a) 9x2 − 4y 2 (b) 16y 4 − 1 (c) x5 − 36x3 y 2 (d) x5 − 9x
(e) x5 − 4x3 (f) a4 − b4 (g) 16x4 − y 4 (h) x2 + 5x − 14
(i) y 2 + 7y − 8 (j) 4x2 + 4x − 1 (k) 7x2 + 7x − 7 (l) x2 + 26x − 27
(m) 2x2 + x − 1 (n) 4y 2 − 5y + 1 (o) 4x3 − 4x2 − 3x (p) y 4 − 3y 2 + 2
(q) x4 − x2 − 6 (r) x4 − 5x2 + 6 (s) x6 + 7x3 − 8 (t) x4 + x3 − x2 .
4. Factorise as far as possible:
(a) x3 − 27 (b) 8y 3 − a3 (c) 8x3 + 27
(d) x6 − 64y 6 (e) a3 − b3 (f) x9 + y 9
(g) x9 − y 9 (h) x8 − 1 (i) 1 − 3x + 3x2 − x3 .
5. By choosing suitable counter-examples, convince yourself that the following identities are all
WRONG:
√ √ √ √ √
(a) a + b = a + b (b) (a + b)2 = a2 + b2 (c) ab = a b
1 1 2 √ √
(d) (a + b)−1 = a−1 + b−1 (e) + = (f) −a = − a
a b a+b
a c a+c
(g) + = .
b d b+d
ax2 + bx + c = 0,
1.9. QUADRATIC EQUATIONS 33
√
−b ± b2 − 4ac
x= (1.16)
2a
Further, in the case that b2 − 4ac < 0, then the left-hand side of (1.15) is negative and the
right-hand side is not. Hence, in this case there are no solutions.
Example 1.9.1
Solution
From the preceding three examples we see that a quadratic equation may have two, one or no
solutions. Indeed it is the sign of the term under the square root in (1.16) which determines which of
these three possibilities happens. For if b2 − 4ac is negative there will be no solutions, if b2 − 4ac = 0
there will be the single solution given by x = −b/(2a) and if b2 − 4ac is positive there will be two
solutions given by (1.16).
Sometimes, however, the simplest method involves factorization. Suppose we wish to solve
x2 + 2x − 3 = 0.
We have
(x − 1)(x + 3) = 0.
Now if the product of two numbers is zero, then one of them must be zero. It follows that
x−1=0 or x + 3 = 0,
i.e. x = 1 or x = −3.
There is clearly a close connection between factorization and the solution of equations. We shall
return to this matter in a few moments, but a few words of warning are in order at this stage.
Now our previous example showed that there was a close connection between the factors of a
quadratic expression and the solution of the corresponding quadratic equation. We shall now explore
this idea in detail.
Suppose then x1 and x2 are solutions of ax2 + bx + c = 0. By (1.16) we have
√ √
−b + b2 − 4ac −b − b2 − 4ac
x1 = and x2 = .
2a 2a
Then √ √
h b b2 − 4ac ih b b2 − 4ac i
a(x − x1 )(x − x2 ) = a x + − x+ + .
2a 2a 2a 2a
We may treat this as the difference of two squares, to obtain
h b 2 b2 − 4ac i
a(x − x1 )(x − x2 ) = a x+ − = ax2 + bx + c.
2a 4a2
So x1 and x2 are solutions of ax2 + bx + c = 0 if and only if
Of course, it is necessary for such solutions to exist if this statement is to make sense. As we have
seen this will happen provided b2 − 4ac ≥ 0. We have proved the following result.
Theorem 1.9.1 (a) If b2 − 4ac ≥ 0 then x1 and x2 are solutions of ax2 + bx + c = 0 if and only if
ax2 + bx + c ≡ a(x − x1 )(x − x2 ).
(b) If b2 − 4ac < 0 then ax2 + bx + c has no linear factors and ax2 + bx + c = 0 has no real solutions.
Example 1.9.2
√
Factorize (a) 2x2 − 3x − 6 (b) 5x2 − 2x + 6 (c) 25x2 − 5 3x + 3/4.
1.9. QUADRATIC EQUATIONS 35
Solution
2x2 − 3x − 6 = 0.
(b) Here the term “b2 − 4ac” is 4 − 120 = −116. Since this is negative the expression cannot be
factorized.
√
(c) Again we solve the quadratic equation 25x2 − 5 3x + 3/4 = 0 to obtain
√ √ √
5 3 ± 75 − 75 3
x= = .
50 10
There is only one solution, but we may still apply Theorem 1.9.1 with x1 = x2 . Then
√ 3 √ √
25x2 − 5 3x + = 25(x − 3/10)2 = (5x − 3/2)2 .
4
Some equations which are not quadratic can be reduced to quadratic equations by a substitution.
Example 1.9.3
Solution
(x2 − 2)(x2 + 5) = 0.
√
Thus x2 = 2 or x2 = −5. The latter gives no solutions, so we obtain x = ± 2.
Example 1.9.4
Solution
Setting y = 2x we have
y 2 − 12y + 32 = 0,
so (y − 8)(y − 4) = 0, and y = 8 or y = 4. Thus
2x = 4 or 2x = 8
whence x = 2 or x = 3.
36 CHAPTER 1. ALGEBRA
The formula (1.16) was known to Islamic mathematicians in about 1000 A.D. The question of how
to solve the general cubic equation ax3 + bx2 + cx + d = 0 was solved by the Italian mathematicians
Cardano and Tartaglia in the early fifteenth century and within a short time Ferrari had solved
the general quartic equation (i.e. involving terms in x4 ). There the matter rested for about 300
years. Nobody was able to find a formula for solving the general fifth order equation. Finally the
Dane, Abel, showed that there was no such formula. The problem was concluded by the French
mathematician, Galois, who showed there was no general formula for the solution of any equations
of higher order than four. We shall return to this later, but only to deal with rather simple kinds of
higher order equation.
Exercise 1.9
1. Solve the following equations:
(a) x2 = 9 (b) x2 = −16 (c) x2 = 2
(d) x2 = 4x (e) x = x5 (f) x3 = −27
(g) x5 = x3 (h) x2 − 2x = −2 (i) x2 + 2x = 2
(j) x2 − 4x = −4 (k) 3x2 − 6x + 2 = 0 (l) x2 − x − 2 = 0
(m) 3x2 − 6x − 3 = 0 (n) x2 − 2x + 1 = 0 (o) 2x2 + 3x − 1 = 0
(p) 2x2 + 2x − 1 = 0 (q) 3x3 + 3x2 = 6x (r) y 3 + 7y = 6y 2
(s) x4 − 2x2 − 1 = 0 (t) y 6 + 9y 3 + 8 = 0.
3. (a) Use the quadratic formula to solve the equation 2x2 − 3x − 1 = 0, and hence factorize
2x2 − 3x − 1.
(b) Factorize 7x2 + 35x + 14.
4. Find the real values of k for which the equation x2 + (k + 1)x + k 2 = 0 has
(a) real roots (b) one root double the other.
6. Suppose the quadratic equation x2 + 2(k + 1)x + 2(k + 5) = 0 has roots α and β.
7. (a) Find the values of k for which the equation x2 + (k + 4)x + 5k = 0 has equal roots.
(b) The roots of the equation x2 + (k + 4)x + 5k = 0 are α and β. Given that k 6= 0, form
a quadratic equation, with the coefficients expressed in terms of k, whose roots are α/β
and β/α.
1.10. INEQUALITIES 37
√
8. Steve Illy believes that 1 − x2 = 1 − x for any x. Give an example to prove him wrong, and
find all values of x for which he is right.
10. Clive Lot believes that (2−1 − x−1 )−1 = 2 − x. Give an example to show that he is wrong,
and find all real values of x for which he is right.
1.10 Inequalities
We have seen that the real numbers R can be represented as a straight line. We shall call that part
of R which lies to the right of 0 (i.e. which includes 1) the positive reals and that part which lies to
the left of 0 the negative reals. The point 0 itself is neither positive nor negative. If x is positive,
we write x > 0 and if x is negative, x < 0.
Definition 1.10.1 We say that x is greater than y (or y is less than x) if x − y > 0, and write
this as x > y (or y < x).
-
−3 −2 −1 0 1 2 3
x<0 x>0
Figure 1.10.1
Order Axioms
We shall assume the following:
(1). For every x ∈ R exactly one of the following is true: x > 0, x < 0, x = 0.
From these two properties (known as order axioms) it is possible to deduce all the other properties
listed below. We shall not present the proofs of these properties here, although their statements are
simple to understand (but see the exercises).
Properties 3 – 6 should cause no trouble, but property 7 demands care. Notice that 3 > 2 but
(−5).3 < (−5).2 since −15 < −10.
38 CHAPTER 1. ALGEBRA
This means that one cannot multiply an inequality by an unknown if the sign of the unknown may
be positive or negative.
Thus, although 3 > 2 IT DOES NOT FOLLOW THAT 3x > 2x for every x (try
x = −1).
3 ≤ 4, 3 ≤ 3.
In general, if a ∈ R, then {x | x > a} is the set of points to the right of a not including a itself,
while {x | x ≥ a} is the set of points to the right of a including a itself.
All of the properties 4 – 7 listed above hold if > (respectively < ) is replaced by ≥ (respectively ≤).
Frequently we are confronted with the situation where we know that a < x and x < b. Necessarily
then a < b, and we write this simply as a < x < b. This means that at the same time x must be
both greater than a and less than b, i.e. that x is between a and b.
For example 2 < x < 4 means 2 < x and x < 4, i.e. x is between 2 and 4. (It does NOT follow
that x = 3; it may be, for example, that x = 3.156.)
On the other hand 4 < x < 2 is meaningless, since this would mean that 4 < x and x < 2. It
would then follow from (4) above that 4 < 2, which is nonsense. Expressions such as 3 < x > 4
should never be used.
Interval Notation
Now suppose a < b. In the solution of inequalities upon which we are about to embark, the following
notations are useful.
Such sets are called intervals, some of which are illustrated in Figure 1.10.2.
1.10. INEQUALITIES 39
( )
a b a b
(a, b) [a, b]
)
a b a
[a, b) [a, ∞)
Figure 1.10.2
In Figure 1.10.2, a round bracket means that the end point is not included, while a dot indicates
that it is. The idea behind the interval notation is to use a round bracket when the end-point is not
included and a square bracket when it is. Thus 3 ∈ [3, 5) but 3 6∈ (3, 5).
Note that the symbols −∞ and ∞ are used only as a quick way to write down intervals which
do not have finite end-points.
After the symbol ∞ (and similarly before the symbol −∞) one never has a square bracket,
because this would mean that ∞ was an element of the interval. This would be incorrect
because INFINITY IS NOT A REAL NUMBER.
We have taken great care to avoid any definition involving the use of infinite quantities except as a
notational device as above.
Notice further that the set [4, 7] is quite different from the set {4, 5, 6, 7}. The former
consists of all real numbers between 4 and 7 (inclusive) and contains such elements as
5.7, 6.133, 4.5 etc. The latter set has only four elements altogether.
Now let us turn to the problem of solving inequalities. We shall not develop any general theory,
but merely illustrate the procedures which may be used by giving examples.
Example 1.10.1
Solution
3x < 12.
Now dividing by 3 (i.e. multiplying by 1/3 and using property (6)) we obtain
x < 4,
or in interval notation x ∈ (−∞, 4). We could also say the solution set is {x | x < 4} = (−∞, 4).
Example 1.10.2
Solve 7 − 2x ≤ 4.
40 CHAPTER 1. ALGEBRA
Solution
On subtracting 7 we have
−2x ≤ −3.
Dividing by −2 (that is multiplying by −1/2) we obtain
3
x≥ ,
2
i.e. x ∈ [3/2, ∞).
Note that we have multiplied by a negative and so reversed the sign of the inequality!
It is worth remarking at this stage that if ab > 0 (i.e. ab is positive) then either (i) a > 0
and b > 0 (i.e. both are positive) or (ii) a < 0 and b < 0 (i.e. both are negative). On
the other hand if ab < 0 then either (i) a > 0 and b < 0 or (ii) a < 0 and b > 0 (i.e. one
is positive and the other negative).
Example 1.10.3
Solve x2 + x − 6 < 0.
Solution
Factorizing we have
(x − 2)(x + 3) < 0.
Now it is clear that x − 2 = 0 when x = 2, and x + 3 = 0 when x = −3. Thus x − 2 > 0 when
x > 2 and x + 3 > 0 when x > −3.
x+3 − − 0 + + + + + + + + + + + + + + +
-
−4 −3 −2 −1 0 1 2 3 4
x−2 − − − − − − − − − − − − 0 + + + + +
Clearly then both factors are negative when x < −3 and both are positive when x > 2. The diagram
above illustrates the situation. We are interested in the case where the product is negative, i.e.
when one factor is positive and the other negative. This occurs between −3 and 2 and the solution
set is (−3, 2); that is, x is a solution if and only if −3 < x < 2.
The diagram below is a condensed version of the previous one.
−3 2
x+3 − 0 + +
x−2 − − 0 +
(x + 3)(x − 2) + 0 − 0 +
1.10. INEQUALITIES 41
We arrange the points where the various factors are zero along the top in ascending order. The
next two rows show the signs of the two factors in the intervals {x | x < −3}, {x | − 3 < x < 2}
and {x | x > 2}. The last line gives the sign of the product which is read off vertically using the
rules of elementary arithmetic that “a minus times a minus is a plus” and so on.
Example 1.10.4
Solve x2 − 3x − 4 ≥ 0.
−1 4
x+1 − 0 + +
x−4 − − 0 +
(x + 1)(x − 4) + 0 − 0 +
Solution
Factorizing, we have (x − 4)(x + 1) ≥ 0. This leads to the diagram above and the solution is
x ≤ −1 or x ≥ 4, that is the solution set is (−∞, −1] ∪ [4, ∞).
Example 1.10.5
Solve x2 + 2x + 7 > 0.
Solution
Completing the square, we have (x + 1)2 + 6 > 0. This is always true as both terms are positive.
The solution is then all x ∈ R, i.e. the solution set is R.
Example 1.10.6
Solve x2 + 4x + 9 ≤ 0.
Completing the square we obtain (x + 2)2 + 5 ≤ 0. This is never true since the left-hand side
must be positive. The solution set is the empty set ∅.
Example 1.10.7
1
Solve < 2.
x−1
Solution
Subtracting 2 gives us
1
− 2 < 0,
x−1
42 CHAPTER 1. ALGEBRA
that is
3 − 2x
< 0.
x−1
Multiplying by −1 (and changing the sign of the inequality!) gives
2x − 3
> 0.
x−1
Now the numerator is zero when x = 3/2 and the denominator when x = 1. We obtain the
diagram below (where u stands for undefined).
1 3/2
x−1 − 0 + +
2x − 3 − − 0 +
Quotient + u − 0 +
The solution is then x < 1 or x > 3/2, that is the solution set is (−∞, 1) ∪ (3/2, ∞).
Example 1.10.8
x
Solve ≤ 2.
2x + 3
Solution
As before, we have
x
−2≤0
2x + 3
so
x − 4x − 6
≤ 0,
2x + 3
i.e.
3(x + 2)
≥ 0.
2x + 3
We may safely divide by 3 to reach
x+2
≥ 0.
2x + 3
1.10. INEQUALITIES 43
−2 −3/2
x+2 − 0 + +
2x + 3 − − 0 +
Quotient + u − 0 +
Example 1.10.9
Solution
Example 1.10.10
Solve x − 2 ≤ 2x + 1 < 5 − x.
Solution
Exercise 1.10
1. State whether the following are true or false:
(a) 3 ∈ [2, 3) (b) 3 ∈ [2, 4) (c) −∞ ∈ (−∞, 3) (d) 7 > 5
(e) 5 ≥ 7 (f) 7 ≥ 7 (g) [2, 5] = {2, 3, 4, 5}.
√ √
2. Sets A and B are given by A = (−1, 3], B = {0, −1, 3, 2, 4, 4, −3/4}. Find:
(a) A ∩ N (b) B ∩ Z (c) B ∩ Q (d) A ∩ B (e) X = {x ∈ B | x2 ∈ A}.
3. Solve the inequalities:
(a) x + 2 > x (b) −3x < 12 (c)−2x + 2 ≤ −6x − 8
(d) −5x − 4 ≥ 2x + 7 (e) x2 < 4 (f) x2 ≥ 9
(g) x2 ≤ −2x (h) (x − 2)2 ≤ 0 (i) x(x + 3) ≤ 0
(j) (x − 1)(x + 2) ≥ 0 (k) (x − 1)(x − 2) < 2 (l) x2 ≥ −9
(m) x2 < −4.
44 CHAPTER 1. ALGEBRA
1 1 1 2 1
< and so < .
4 2 2 2
Taking logs,
1 2 1
log < log .
2 2
6. In this exercise you are meant to deduce properties 3 – 7 (see p.37) from properties 1 and 2.
Recall that x > y if and only if x − y > 0.
Absolute Value
Definition 1.11.1 The absolute value, |x|, of x ∈ R is
x if x ≥ 0
|x| =
−x if x < 0
Thus for example, if x = 5, then |x| = 5, i.e. |5| = 5, while if x = −3, then |x| = −x = −(−3) = 3,
i.e. | − 3| = 3.
Hence |x| ≥ 0 for all x ∈ R. Do not be confused by the fact that |x| = −x if x < 0. This does
not mean that |x| < 0, since in this case |x| = −x and −x > 0.
Geometrically, |x| is just the distance from x to 0. Thus −3 is at a distance 3 = | − 3| from 0.
More generally |x − y| is the distance from x to y, irrespective of sign. Note then that
Suppose M > 0. Then |x| < M if and only if − M < x < M (1.17)
This result remains valid if < is replaced by ≤ throughout. We may also interpret (1.17) geometri-
cally. What we have shown is that |x| < M if and only if x ∈ (−M, M ).
( ) -
−M 0 M
Figure 1.11.1
Thus, if |x| < M , then x lies in the shaded region shown in Figure 1.11.1. It follows that if |x| > M ,
then x is not in the shaded region and also x 6= ±M . We thus have the following result.
Suppose M > 0. Then |x| < M if and only if x < −M or x > M (1.18)
46 CHAPTER 1. ALGEBRA
Example 1.11.1
Solve |x − 3| < 2.
(Geometrically this means find all points x, whose distance from 3 is less than 2.)
Solution
−2 < x − 3 < 2,
so
1 < x < 5,
i.e. x ∈ (1, 5).
Example 1.11.2
Solve |5 − x| ≥ 4.
Solution
5 − x ≥ 4 or 5 − x ≤ −4,
i.e.
−x ≥ −1 or − x ≤ −9.
So x ≤ 1 or x ≥ 9. In interval notation, the solution set is (−∞, 1] ∪ [9, ∞).
Example 1.11.3
1
Solve < 4.
|x − 2|
Solution
i.e
1
|x − 2| > .
4
Thus
1 1
x−2> or x − 2 < − ,
4 4
i.e. x > 9/4 or x < 7/4. So the solution set is (−∞, 7/4) ∪ (9/4, ∞).
Example 1.11.4
Solve |x − 2| < x.
1.11. ABSOLUTE VALUES 47
Solution
Example 1.11.5
Solution
In the solution of this inequality we have assumed that it is legitimate to square the original
inequality, i.e. we assumed that if 0 < a < b, then a2 < b2 . We shall now justify this.
Proof. Since a, b > 0 then b + a > 0. Also since a < b, then b − a > 0. Hence
b2 − a2 = (b − a)(b + a) > 0,
i.e.
a2 < b 2 .
Note that for this theorem to be true it is necessary to assume that both a and b are positive.
Without this restriction the result is no longer true. For example −3 < 1, but (−3)2 > 12 .
48 CHAPTER 1. ALGEBRA
Exercise 1.11
1. Solve the following equations:
(a) |x| = 2 (b) |x| = −2 (c) |3x + 4| = 1
(d) |5 − 2x| = 1 (e) | − 3 − 6x| = 2 (f) |x2 − 10| = 6
(g) |x − 1| = |x2 + 1| (h) |x|2 − 9|x| + 8 = 0 (i) |x2 + x − 6| = 6.
2. Solve the following inequalities:
(a) |x| ≤ 3 (b) |x| ≥ 5 (c) |x| ≥ −2
(d) |x| < −7 (e) |3 − 2x| ≤ 3 (f) |4 − x| ≤ 2
(g) |2 + 3x| > 2 (h) |3x − 2| < 4 (i) |1 − 2x| ≥ 2
(j) |4x − 3| < 6 (k) |x − 3| ≤ |x + 6| (l) 1 < |2x − 1| ≤ 3
1 1 1
(m) < (n) ≤ 3.
|3x − 2| |x − 6| |2x − 1|
3. Use Theorem 1.11.4 to show
(a) |ab| = |a| |b| for all a, b ∈ R
(b) |a + b| ≤ |a| + |b| for all a, b ∈ R. Under what conditions does this inequality become an
equality?
(c) |a| − |b| = |a − b| for all a, b ∈ R.
1 1
4. (a) Show that if 0 < a < b, then > . Is this result true if we are given only that a < b?
a b
(b) Suppose a < b < 0. Show that a2 > b2 .
2 + 4 + 6 + · · · + 100 (1.19)
where the three dots signify the obvious missing terms. This is just the sum of all even numbers
from 2 to 100. Now any even number may be written as 2k, where k ∈ Z. Thus we shall rewrite
(1.19) as
X50
2k. (1.20)
k=1
P
This is read as “the sum from k = 1 to 50 of 2k”. The letter , sigma, is just a Greek capital S –
the first letter of the word “sum”.
When evaluating (1.20), first put k = 1, to obtain 2. Then set k = 2, which gives 4 and a total
so far of 2 + 4. Setting k = 3 yields 6 and adding again gives 2 + 4 + 6. Continuing in this way until
k = 50, we recover (1.19). Similarly
10
X 1 1 1 1
2
= 1 + + + ···+ .
k 4 9 100
k=1
Formula (1.21) can easily be proved, since it is just the sum of an arithmetic series. Formulae (1.22)
and (1.23) may be proved by the method of mathematical induction, which will be dealt with in the
next section.
Example 1.12.1
5
X
Expand [2n − 3].
n=1
Solution
Example 1.12.2
Evaluate 12 + 22 + · · · + 1002 .
Solution
Example 1.12.3
Solution
Now
502 + · · · + 1002 = (12 + · · · + 1002 ) − (12 + · · · + 492 )
100.101.201 49.50.101
= −
6 6
which may readily be evaluated.
50 CHAPTER 1. ALGEBRA
Example 1.12.4
Solution
Each term is 3 more than the previous, and thus terms are of the form 3n + 1.
To obtain the changes of sign we multiply by (−1)n+1 , which gives +1 when n is odd and −1
when n is even. Since there are 6 terms, we sum from n = 1 to 6. Thus
6
X
4 − 7 + 10 − 13 + 16 − 19 = (−1)n+1 (3n + 1).
n=1
Example 1.12.5
100 h
X 1 1 i
Evaluate − .
n=1
n n+1
Solution
Expanding we have
h1 1i h1 1i h1 1i h 1 1 i
− + − + − + ···+ − .
1 2 2 3 3 4 100 101
All the terms except the first and last cancel out, and we obtain
1 100
1− = .
101 101
Exercise 1.12
1. Expand the following sums written in sigma notation :
15
X 20
X n
X k
X
(a) (3k − 2) (b) 3n (c) sin r (d) (−1)n n2 .
k=3 n=1 r=2 n=1
2. Evaluate exactly:
8
X 7
X 101
X
i k
(a) (−1) i (b) 2 (c) k
i=1 k=2 k=−99
X50 X201 X3
(d) [(j + 1)2 − j 2 ] (e) (−1)k (f) j
j
j=9 k=−1 j=1
X3
(g) (−j)j .
j=1
7. Evaluate exactly:
5 10 100
X 1 X 1 X 1
(a) n
(b) n
(c) n
.
n=1
2 n=1
2 n=1
2
∞
X 1
What meaning would you think it sensible to attach to the sum ?
n=1
2n
1 1 1 1 2
Now when n = 1, we obtain = ; when n = 2, we have + = ; when n = 3, we obtain
1.2 2 1.2 2.3 3
1 1 1 3 4
+ + = and when n = 4, we have .
1.2 2.3 3.4 4 5
We are led to suspect that
n
X 1 n
= for all n ∈ N. (1.24)
i(i + 1) n+1
i=1
The above argument does not constitute a proof however. We have only shown that (1.24) holds
for n = 1, 2, 3 and 4. We could proceed further and show, by direct computation, that (1.24)
holds for n = 1, 2, 3, . . . , 100 say, but even this would not guarantee that it held when for example
n = 235 867.
To illustrate the point further, consider the expression n2 +n+41. When n = 1, 2, 3, 4 we obtain
43, 47, 53 and 61 respectively, which are all prime numbers. We might suspect that n2 + n + 41 is
prime for any n ∈ N. If we try a few more, we obtain successively 71, 83, 97, 113, which are all
prime numbers. Surely then this is sufficient evidence!
In fact, n2 + n + 41 is a prime number for n = 1, 2, . . . , 39, but when n = 40 we have
We need to find a new method of proof. The idea is as follows. Suppose p(n) is a proposition
involving the natural number n. For example, we could have
5n + 3 is divisible by 4
or
n2 ≤ 2n+1
or (1.24), that is
n
X 1 n
= .
i=1
i(i + 1) n+1
We wish to show these formulas hold for all n ∈ N, that is to say we wish to show p(n) is true for
all n.
The proof proceeds in two stages.
This will be enough to prove that p(n) is true for all n ∈ N . For by (I1), p(1) is true. Then by (I2)
with k = 1, p(2) is true. So by (I2) with k = 2, p(3) is true. So by (I2) with k = 3, p(4) is true, etc.
We may break this procedure down into three steps:
Notice that (2) and (3) combined are the same as (I2). There is no gratuitous assumption in (2).
What we are showing is that if p(k) is true, then so is p(k + 1). This procedure is known as
mathematical induction.
n
X 1
Now let us return to the problem of evaluating .
i=1
i.(i + 1)
By direct calculation we have been led to suspect that
n
X 1 n
= . (1.25)
i=1
i(i + 1) n+1
since the left-hand side is the sum of the first k terms plus the (k + 1)th term. Then
k+1
X 1 k 1
= + by (1.26)
i=1
i(i + 1) k + 1 (k + 1)(k + 2)
k(k + 2) + 1
=
(k + 1)(k + 2)
k 2 + 2k + 1
=
(k + 1)(k + 2)
(k + 1)2
=
(k + 1)(k + 2)
k+1
= ,
k+2
which is just (1.25) with k + 1 instead of n. Thus (3) is completed.
Example 1.13.1
Show
n
X n(n + 1)
i= . (1.27)
i=1
2
(We have already remarked that this can be proved directly, since the left-hand side is just an
arithmetic series. We shall show that (1.27) holds by induction as a further illustration of the
method.)
Solution
1(1 + 1)
Firstly, when n = 1, the left-hand side is just 1, while the right-hand side is = 1. So
2
(1.27) holds for n = 1.
Now assume
k
X k(k + 1)
i= . (1.28)
i=1
2
We must show (1.27) holds with n = k + 1. We have
k+1
X k
X
i = i + (k + 1)
i=1 i=1
k(k + 1)
= + (k + 1) by (1.28)
2
k 2 + 3k + 2
=
2
(k + 1)(k + 2)
= ,
2
which is (1.27) when n = k + 1.
Example 1.13.2
Show
n
X n(n + 1)(2n + 1)
i2 = . (1.29)
i=1
6
54 CHAPTER 1. ALGEBRA
Solution
Example 1.13.3
Show 5n + 3 is divisible by 4.
Solution
5k+1 + 3 = 5.5k + 3
= (4 + 1)5k + 3
= 4.5k + (5k + 3).
By assumption, the term in brackets is divisible by 4, and so clearly is 4.5k . Hence 5k+1 + 3 is
divisible by 4.
Exercise 1.13
1. Prove by induction:
n
X n(n + 1)(n + 2)
(a) i(i + 1) =
i=1
3
n
X n2 (n + 1)2
(b) i3 =
i=1
4
n
(c) 2 > n, for any n ∈ N.
n(2n + 1)(2n − 1)
(d) 12 + 32 + 52 + · · · + (2n − 1)2 =
3
1.13. MATHEMATICAL INDUCTION 55
is divisible by 30.