Lecture 2
The natural numbers
The natural numbers are all the numbers you might find by counting.
The set of natural numbers is written (that’s just a letter N, written in a style called “blackboard bold”); in set notation, we might write
That “” is often pronounced “dot-dot-dot”, but it has the meaning of “and so on”. When we use this symbol, we must be sure that the reader will be sure how to go on from here. Here I hope it really is clear: we go on with , , , adding one each time as we go, and we are to go on without end.
We’ll see many more of those curly brackets later!
Actually, some mathematicians use the phrase “natural numbers” slightly differently, to denote the set In other words, they leave out 0.
My convention in this module will be that : that zero is a natural number. However, I will do what I can to avoid any bad effects arising from misinterpretation (particularly in the exam).
If we’re trying to work inside the natural numbers, we can add and multiply all we want, but subtraction and division are a pain: for example we can’t do
, or .
Working with a bigger system of numbers can cure this.
The integers
The integers are all the whole numbers, positive, negative and zero. The set of integers is denoted by (why Z? The German word for “number” is “Zahl”). So we might write Here we have to go on in both directions without end.
Every natural number is an integer. This means that or, in words, “the set of naturals is contained in the set of integers”.
We often use the handy words non-negative, meaning “not negative” (in other words, positive or zero) and non-positive, meaning “not positive” (in other words, negative or zero).
So the natural numbers are the same thing as the nonnegative integers.
If we’re working in the integers, we can add, subtract and multiply all we want. Division is still a problem: for example, we can’t do
.
The rational numbers
The rational numbers (sometimes just called the rationals), are the numbers that can be written as fractions , where and are integers and .
Fractions can be written in many different ways: for example, we have
In general, fractions are equal if
.
We write for the set of rational numbers (Q stands for “quotient”, which is a name for what you get when you do division).
Of course, any integer can be regarded as a rational (we can take ), so
If we’re working in the rationals, we can add, subtract, multiply and divide all we want. (Well, we can’t divide by zero, but who wants to divide by zero?).
There are still many things we might want to do but can’t do in the rationals though: square roots, logarithms, trigonometry, and suchlike.
The real numbers
The real numbers are perhaps the most general sort of numbers you’ll have used by now (or perhaps not). They contain lots of the numbers you care about, for example:
One could define as the set of all possible decimal expansions, but there are problems with this:
It requires some adjustment, because
Proving things about decimal expansions — even simple things like arithmetic — is a big pain.
The idea of digits is, mathematically, an unnatural one. It is okay for the way we write mathematics to depend on the fact that we have ten fingers, but our understanding of fundamental mathematical constructions shouldn’t depend on how many fingers we have.
Producing a good and useful definition of is quite tricky, and there wasn’t one until about 1870. We’ll see one later in the course.
Sets in general
Now we have all these collections of numbers, it’s good to have a language to discuss them with.
A set is a collection of objects. The objects in a set are often called its elements.
Given a set , we write:
to mean “ is in ”.
to mean “ is not in ”.
to denote the size of : the number of elements in it. (Of course, some sets are infinite, but this works well for finite ones, at least.)
Listing elements
If we have a small set, it might be practical to define it by listing its elements; we do so in curly brackets. Here’s an example set: Let’s write some examples of facts about using our notation:
Note that sets don’t have any ordering on them. If we find it more convenient to list Teletubbies according to alphabetic order, we can write and in doing so we are defining exactly the same set .
Also note that an element is either in a set, or not in it. So we could, if we wanted, define exactly the same set again by writing However, there are few good reasons to write something like that.
Empty sets
The empty set, which could be written , is more commonly written . It has size given by .
Note that is very different to . The former, as I mentioned, has no elements; the latter has exactly one element.
That shouldn’t confuse you. They’re different for pretty much the same reason that “an empty bag” is not the same thing as “a bag which contains an empty bag and nothing else”.
Containment
If and are sets, we write to mean “if is a member of then is also a member of ”. We say that is a subset of , or that is contained in .
The symbols “” and “” are different, and using the wrong one tends to result in nonsense.
For example, we might write which says “all mathematicians are people”. If we used the symbol “” instead, that would mean that “mathematicians is a person”. It’s not a mistake you’d make speaking English, and if you’re using symbols you should aim to be no less precise.
Notice that, for every set we have
Set operations
Let and be sets. We define their union to contain exactly the things that are in one set or the other (or both):
That notation is called a set comprehension: the thing on the left of the vertical bar are the things we want to put in the set, and the things on the right of the vertical bar are the conditions under which we put them in. We’ll use them a lot.
Similarly, we define the intersection to contain exactly the things that are in both sets:
Lastly, we define the difference to be the things which are in but not in :