Interactive · 1 question

Density of Rationals and Irrationals

As you probably know, a rational number is defined to be any number of the form ab\frac{a}{b}, where aa and bb are integers and b≠0b \ne 0. It can also be shown that for any two rational numbers aa and bb where a<ba<b, ∃\exists an irrational number cc such that a<c<ba<c<b (and likewise, for any two irrationals aa,bb where a<ba<b, ∃\exists a rational cc such that a<c<ba<c<b).

To compare the densities of the two sets, we need to define what a countable set is. A countable set has the same cardinality (number of elements) as the set of natural numbers. Now, obviously, the "number of elements" is a difficult concept to grasp at first if the set is infinitely large, so therefore we shall provide a different definition: a set SS is countable if there exists a one-to-one pairing of all elements in SS with the set of natural numbers. Consider, for example, the set of all integers. That set is countable because we can pair them as follows: 0,1,−1,2,−2,3,−3,4,−4,...0, 1, -1, 2, -2, 3, -3, 4, -4,... with 1,2,3,4,5,6,7,8,9,...1, 2, 3, 4, 5, 6, 7, 8, 9, ....

Now, consider the set of rational numbers. The positive rationals can be written in a rectangular array:

11   21   31   41   51   61   ⋯\frac{1}{1} \ \ \ \frac{2}{1} \ \ \ \frac{3}{1} \ \ \ \frac{4}{1} \ \ \ \frac{5}{1} \ \ \ \frac{6}{1} \ \ \ \cdots 12   22   32   42   52   62   ⋯\frac{1}{2} \ \ \ \frac{2}{2} \ \ \ \frac{3}{2} \ \ \ \frac{4}{2} \ \ \ \frac{5}{2} \ \ \ \frac{6}{2} \ \ \ \cdots 13   23   33   43   53   63   ⋯\frac{1}{3} \ \ \ \frac{2}{3} \ \ \ \frac{3}{3} \ \ \ \frac{4}{3} \ \ \ \frac{5}{3} \ \ \ \frac{6}{3} \ \ \ \cdots 14   24   34   44   54   64   ⋯\frac{1}{4} \ \ \ \frac{2}{4} \ \ \ \frac{3}{4} \ \ \ \frac{4}{4} \ \ \ \frac{5}{4} \ \ \ \frac{6}{4} \ \ \ \cdots 15   25   35   45   55   65   ⋯\frac{1}{5} \ \ \ \frac{2}{5} \ \ \ \frac{3}{5} \ \ \ \frac{4}{5} \ \ \ \frac{5}{5} \ \ \ \frac{6}{5} \ \ \ \cdots 16   26   36   46   56   66   ⋯\frac{1}{6} \ \ \ \frac{2}{6} \ \ \ \frac{3}{6} \ \ \ \frac{4}{6} \ \ \ \frac{5}{6} \ \ \ \frac{6}{6} \ \ \ \cdots ⋮    ⋮    ⋮    ⋮    ⋮    ⋮    ⋮   ⋱\vdots \ \ \ \ \vdots \ \ \ \ \vdots \ \ \ \ \vdots \ \ \ \ \vdots \ \ \ \ \vdots \ \ \ \ \vdots \ \ \ \ddots

From here, you may notice that some numbers are the same (for example, all elements on the main diagonal are equal to 11). However, that doesn't matter for two reasons: (1) when pairing the sets, the duplicates can be skipped, and (2) if we can show that a set is countable, all subsets of that set will be countable. We can follow a zigzag pattern through our grid: 11→21→12→13→22→31→41→32→23→14→⋯\frac{1}{1} \to \frac{2}{1} \to \frac{1}{2} \to \frac{1}{3} \to \frac{2}{2} \to \frac{3}{1} \to \frac{4}{1} \to \frac{3}{2}\to \frac{2}{3} \to \frac{1}{4} \to \cdots. We can then remove the duplicates from the list, and we have a one-to-one pairing of the positive rationals with the natural numbers (the negative rationals and 00 can be added in the same way that the negative integers were added above).

Now, we will consider the cardinality of the irrational numbers. But first, see if you can answer this question:

What is the density of the rationals within the reals?

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems