## 01 Feb 2012About numbers, episode 3 : rational numbers

Niveau de difficulté The Vitruvian man, by Leonardo Da Vinci (Source Luc Viatour)

What is a fraction ?

It seems easy to answer this question with the concept of proportion, but we will see that rational numbers possess some quite extraordinary properties.

Even though possible, it would not be very enlightening to make the same distinction we made with natural numbers and integers between ordinality and cardinality. But cardinality raises a few questions : what is a fractional quantity ? Worse, what is a negative fractional quantity ?

Once we have answered these questions, we will see a few examples of irrational numbers, such as $\pi$ and $\sqrt 2$.

Then we’ll tackle a few structural and topological properties of the set of rational numbers.

Take an aspirin, it is going to be a bit more complicated than the previous posts of the series.

## The measure of proportion

We saw in the preceding post about integers that they consisted in a way to compare a set of objects with another set of (possibly) completely different objects, only focusing on their difference in cardinality. Rational numbers give us the same opportunity, but focusing on proportion.

Remember that we can define the difference between two couple of numbers with the addition :

$(x,y)$ and $(x^\prime,y^\prime)$ have the same difference if and only if $x+y^\prime=y+x^\prime$.

The same thing can help us define the proportion, using multiplication :

$(x,y)$ and $(x^\prime,y^\prime)$ have the same proportion if and only if $x\times y^\prime=y\times x^\prime$.

So when two couple of numbers are in proportion, we can note $(x,y) \sim (x^\prime,y^\prime)$ , and we say that their proportion or rapport is the same. We also note it $\frac xy = \frac{x^\prime}{y^\prime}$.

Let’s use our baseball balls and apples. We are then only measuring the proportion between the number of balls and the number of apples : 4 balls and 6 apples represented by the couple $(4,6)$ or equivalently by the fraction $\frac46$. 2 balls and 3 apples represented by the couple $(2,3)$ or equivalently by the fraction $\frac23$.

– Wait a minute ! What is this BS ? We are dividing balls by apples !

– Yes we are, but it doesn’t matter. When we use an everyday-life metaphor to express a mathematical rule, like : “we cannot subtract apples from oranges !” we are so much WRONG. Sure we cannot subtract apples from oranges, but we certainly can subtract a number of apples by a number of oranges : those two are natural numbers, why the hell would we not be able to apply a perfectly fine operation on them ? Of course the result is neither a number of balls nor a number of apples, it’s just a number, a proportion between two quantities. Nothing more.

Well, ok we need to assume we always have at least one apple in our case, so as never to divide by zero, but that’s all. The thing is, when we try to link abstract mathematical concepts and real objects, we are, more often than not, crippling these concepts.

We are doing abstract calculus : its meaning is given to us by the fact that it is true according to the rules of calculus, and it is not for our intuitive representations to decide.

So yes, we are dividing a number of balls by a number of apples, and there’s nothing wrong with that if interpreted properly.

Since $4\times 3= 6\times 2$ we have here the same proportion of balls relatively to the apples, we note $\frac46=\frac23$.

Note that the proportion of balls relatively to the total number of balls and apples alike is different, since it can be represented by the fraction $\frac4{10}$ in the first case and $\frac 25$ in the last. These still are the same proportions because $4\times 5= 10\times 2$.

Then a fraction is the proportion of a set of objects relatively to another set of objects. All right, but then what about a negative fraction as $-\frac23$ ?

Well in fact our couples $(x,y)$ are not made of natural numbers necessarily, but also of integers. That’s where things get complicated : we don’t measure the proportion between the number of balls and the number of apples, but the proportion between the differences of balls and apples…

So instead of 2 balls we need to see all the sets of apples and balls where there’s 2 more balls than apples, and instead of 3 balls, all the sets of apples and balls where there’s 3 more balls than apples :  2 more balls than apples and 3 more balls than apples represented by the couple of integers $(2,3)$ or the fraction $\frac23$.

In this case, the fraction represents the proportion between one difference of balls and apples and another difference of balls and apples… Long story short we can say that it is the relative proportion of balls and apples.

So then the same fraction but negative is :  2 more apples than balls and 3 more balls than apples represented by the couple of integers $(-2,3)$ or the fraction $-\frac23$.

or equivalently  2 more balls than apples and 3 more apples than balls represented by the couple of integers $(2,-3)$ or the fraction $-\frac23$.

See ? Fractions are way more complicated than they look !

So fractions are defined by a couple of integers (with the right equivalence relation). But since each integer can be characterized by a couple of natural numbers, we can also define a fraction with four natural numbers (with yet another equivalence relation).

But wait… there’s another way, and you probably thought of it already : we can use only three natural numbers to define a fraction, one of them being strictly positive (it would be the denominator) since only one of the two numbers in a fraction need to be relative (say, the numerator).

See in the first note the rigorous definitions of these three alternate ways.

We leave to you reader to verify that these equivalence relations are indeed compatible with the operations of addition, multiplication and their inverses – each rational number has an inverse for addition as well as for multiplication : the set of rational numbers $\mathbb Q$ is a field.

## Irrational numbers

An irrational number is a number that cannot be written as a fraction of integers. It means there are proportions that cannot be represented by a finite number of apples and balls, or any other objects.

Let’s take for example the number $\sqrt2$. It is indeed a proportion : the rapport of the length of a square’s side relatively to the length of its diagonal. That’s what surprised the Greek mathematicians of the antiquity : a geometrical proportion that cannot be the proportion between two numbers.

In modern terms, natural numbers cannot characterize the measure of lengths, and neither can integers or even rationals. It is said that $\sqrt2$ is an irrational number : $\sqrt2\notin\mathbb Q$.

Another irrational, certainly the most famous, is $\pi$. It measures the proportion between the circumference of a circle and its diameter, but cannot be written as the proportion of two integers : $\pi\notin\mathbb Q$.

### The regularity of rational numbers

In the decimal numeral system (in fact in any numeral system of base superior to one), we can easily see this fundamental difference between rational and irrationals. The representation of a rational number isn’t necessarily finite (as it is for natural numbers, integers or decimals), but it is systematically periodical :

$\frac{13}7=1,857142\, 857142\, 857142\, 857142 ...$ is a rational of period $857142$.

We note $\frac{13}7=1,\overline{857142}$.

$\frac{130}{70}=1,\overline{857142}$ is the same rational number.

$\frac13=0,\overline{3}$ is a rational number of period $3$.

$\pi=3,141593...$ doesn’t have any period because it is irrational.

$\sqrt2=1,414213...$ is also irrational, so no period.

## Surprising topological properties of $\mathbb Q$ the field of rationals

First, let’s remark that between two fractions, there always exists another one.

Indeed, if we take two rational numbers $a$ and $b$, then $\frac{a+b}2$ is a different rational comprised between the first two.

Now between two fractions, we can also always find a real irrational number. For example $\frac{a(b-a)}3\sqrt2$ is indeed between $a$ and $b$.

So, we can always approach a real number with a fraction, with as much precision as we like (not nul). We say that the set of rational numbers $\mathbb Q$ is dense in the set of real numbers $\mathbb R$.

Proposition 1 :

$\mathbb Q$ is dense in $\mathbb R$.

We can demonstrate that between two irrationals, there always exists another irrational, and a rational one. So,

Proposition 2 :

The set of irrational numbers $\mathbb I$ is dense in $\mathbb R$.

Now let’s see which of the two contains the most elements.

The set of rational numbers is countable, as we can count2 them all : Positive rational numbers and a way to count them Source : Wikipedia Commons, Cronholm144

But, the set of real numbers is not countable (as proves Cantor’s diagonal argument). We cannot put in bijection (one-to-one correspondence) real numbers and natural numbers.

Thus,

Proposition 3 :

$\mathbb Q$ is countable but $\mathbb R$ is not.

From which we can deduce

Proposition 4 :

The set of irrational numbers $\mathbb I$ is not countable, meaning nearly all real numbers are irrational.

To sum up : There are a lot more real numbers than rational ones, but then any real number can be approached by a rational one ! Rational numbers are everywhere on the real number line, but since there are far more irrational numbers, rationals are nearly nowhere to be found !

How is that possible ?

Well, it comes from the fact that the set of rational numbers is at the same time infinite and negligible. It seems paradoxical, but it is bulletproof !

A negligible set in $\mathbb R$ is contained in a sequence of intervals of which the total length is arbitrarily small. The length of an interval $[a,b]$ in $\mathbb R$ is nothing more than the difference $b-a$.

An example of negligible set is a singleton, like for example the set containing only $\pi$, written $\{\pi\}$ because it is included in the interval

$[\pi-\frac12,\pi+\frac12]$

of length $1$, and also included in the interval

$[\pi-\frac13,\pi+\frac13]$

of length $\frac23$, and

$[\pi-\frac14,\pi+\frac14]$

of length $\frac12$, and so forth. In fact, $\pi$ is in every interval

$[\pi-\frac1n,\pi+\frac1n]$

of length $\frac2n$. We see that the more $n$ grows, the smaller the interval gets, but $\pi$ will always be in those. That’s why $\{\pi\}$ is negligible in the set of real numbers.

It seems reasonable to think that the union of several negligible sets is still a negligible one. So the set of natural numbers comprised between 0 and $\pi$, that is to say $\{0,1,2,3\}$ is a negligible set in $\mathbb R$. After all, it seems intuitive that the set of a few numbers be negligible compared to the infinity of real numbers.

Where it gets surprising again, is that the union of an infinity 3 of negligible sets is still negligible ! So the set of all the natural numbers, integers, or even the set of rational numbers are negligible in $\mathbb R$ ! It is saying that an infinity of elements can be negligible compared to another infinity of elements. Clearly, there must exists different “levels” of infinity, where that of the real numbers is far greater than that of the natural numbers or even the rationals.

It is the intrusion of the concept of infinity that gives this surprising property to the set of rational numbers, to be at the same time dense and negligible in $\mathbb R$. It is not a paradox, and mathematicians are used to this strange but perfectly coherent property.

In the next post, we will see what is hiding behind the different levels of infinity in the transfinite numbers.

### Other posts on the topic «About numbers»

Episode 1 : the natural numbers
Episode 2 : the integers
Episode 3 : rational numbers
Episode 4 : infinite numbers

### Notes :

1. For the purists, the set of rational numbers can be built in at least three different manners :

$\bullet\quad \mathbb Q= ^{\mathbb Z\times \mathbb Z^\star}\diagup_{\sim}$ with $\mathbb Z^\star$ the set of strictly positive integers and $\sim$ such as for any $x,x^\prime \in \mathbb Z$ and $y,y^\prime \in \mathbb Z^\star$ we have $(x,y)\sim(x^\prime,y^\prime)$ (written $\frac{x}{y}=\frac{x^\prime}{y^\prime}$) if and only if $x\times y^\prime=y\times x^\prime$.

$\bullet\quad \mathbb Q=^{\mathbb N\times\mathbb N\times\mathbb N\times\mathbb N}\diagup_{\simeq}$ with $\simeq$ such as for any $a,b,c,d,a^\prime,b^\prime,c^\prime,d^\prime \in \mathbb N$ so that $d\neq c$ and $c^\prime\neq d^\prime$ we have $(a,b,c,d)\simeq (a^\prime,b^\prime,c^\prime,d^\prime)$ (written $\frac{a-b}{c-d}=\frac{a^\prime-b^\prime}{c^\prime-d^\prime}$) if and only if $(a-b)(c^\prime-d^\prime)=(a^\prime-b^\prime)(c-d)$.

$\bullet\quad \mathbb Q=^{\mathbb N\times\mathbb N\times\mathbb N^\star}\diagup_{\approx}$ with $\approx$ so that for any $a,b,a^\prime,b^\prime \in \mathbb N$ and $c,c^\prime \in \mathbb N^\star$ we have $(a,b,c)\approx (a^\prime,b^\prime,c^\prime)$ (written $\frac{a-b}{c}=\frac{a^\prime-b^\prime}{c^\prime}$) if and only if $(a-b)c^\prime=(a^\prime-b^\prime)c$.

2. To count means to put in a one-to-one correspondence with the set of natural numbers. Here is a procedure for doing so :

we take the irreducible fractions of which the numerator and denominator sum to 2. There is only $\frac11$ which we can count as $0$. Then we take their opposites, so here $-\frac11$ which we can count as $1$. Then we take all the irreducible fractions of which the numerator and denominator sum to 3. There is $\frac21$ and $\frac12$ which we can count as $2$ and $3$. We take their opposites $-\frac21$ and $-\frac12$, which are $4$ and $5$, and so forth.

This way we can count all the rational numbers.

3. It is implied that we only take as much as there are natural numbers. That is to say, only the union of a countable infinity of negligible sets is negligible. We will see in a future post that there indeed exists multiple cardinal infinites.

• ##### Akoneminates
Posted at 10:45h, 16 February

Hi ,
Can you tell me Is pi a Rational Number or not ? I am confused about this .

• ##### Johann
Posted at 11:02h, 16 February

Hi ! Thanks for your comment.

Pi is not a rational number. Wikipedia gives a list of proofs for this, of which Hermite’s is probably one of the simplest and most beautiful…

What’s more, Pi is trancendental (it is not a root of a non-constant polynomial equation with rational coefficients).
Carl Louis Ferdinand von Lindemann (1852 – 1939) proved it in 1882. Since, a Lindemann–Weierstrass theorem of field theory is widely used to prove the trancendance of numbers.