Skip to main content
\(\newcommand{\versionNum}{$4.0$\ } \renewcommand{\tabcolsep}{2.4pt} \def\savedlnot{\lnot} \renewcommand{\arraystretch}{.63} \renewcommand{\arraystretch}{1} \renewcommand{\Naturals}{{\mathbb Z}^{\mbox{\tiny noneg}} } \renewcommand{\arraystretch}{.9} \renewcommand{\arraystretch}{.77} \newcommand{\hint}[1]{ } \newcommand{\inlinehint}[1]{ } \newcommand{\sageprompt}{ \texttt{sage$>$} } \newcommand{\tab}{} \newcommand{\blnk}{\rule{.4pt}{1.2pt}\rule{9pt}{.4pt}\rule{.4pt}{1.2pt}} \newcommand{\suchthat}{\; \;} \newcommand{\divides}{\!\mid\!} \newcommand{\tdiv}{\; \mbox{div} \;} \newcommand{\restrict}[2]{#1 \,_{\,#2}} \newcommand{\lcm}[2]{\mbox{lcm} (#1, #2)} \renewcommand{\gcd}[2]{\mbox{gcd} (#1, #2)} \newcommand{\Naturals}{{\mathbb N}} \newcommand{\Integers}{{\mathbb Z}} \newcommand{\Znoneg}{{\mathbb Z}^{\mbox{\tiny noneg}}} \newcommand{\Zplus}{{\mathbb N}} \newcommand{\Enoneg}{{\mathbb E}^{\mbox{\tiny noneg}}} \newcommand{\Qnoneg}{{\mathbb Q}^{\mbox{\tiny noneg}}} \newcommand{\Rnoneg}{{\mathbb R}^{\mbox{\tiny noneg}}} \newcommand{\Rationals}{{\mathbb Q}} \newcommand{\Reals}{{\mathbb R}} \newcommand{\Complexes}{{\mathbb C}} \newcommand{\relQ}{\mbox{\textsf Q}} \newcommand{\relR}{\mbox{\textsf R}} \newcommand{\nrelR}{\mbox{$\not${\textsf R}}} \newcommand{\relS}{\mbox{\textsf S}} \newcommand{\relA}{\mbox{\textsf A}} \newcommand{\Dom}[1]{\mbox{Dom}(#1)} \newcommand{\Cod}[1]{\mbox{Cod}(#1)} \newcommand{\Rng}[1]{\mbox{Rng}(#1)} \DeclareMathOperator{\caret}{$\scriptstyle\wedge$} \renewcommand{\arraystretch}{.77} \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section1.6Rational and irrational numbers

When we first discussed the rational numbers in Section 1.1 we gave the following definition, which isn't quite right. \begin{equation*} \Rationals = \{ \frac{a}{b} \suchthat a \in \Integers \; \mbox{and} \; b \in \Integers \; \mbox{and} \; b \neq 0 \} \end{equation*}

We are now in a position to fix the problem.

So what was the problem after all? Essentially this: there are many expressions formed with one integer written above another (with an intervening fraction bar) that represent the exact same rational number. For example \(\frac{3}{6}\) and \(\frac{14}{28}\) are distinct things that appear in the set defined above, but we all know that they both represent the rational number \(\frac{1}{2}\). To eliminate this problem with our definition of the rationals we need to add an additional condition that ensures that such duplicates don't arise. It turns out that what we want is for the numerators and denominators of our fractions to have no factors in common. Another way to say this is that the \(a\) and \(b\) from the definition above should be chosen so that \(\gcd{a}{b} = 1\). A pair of numbers whose gcd is 1 are called relatively prime.

We're ready, at last, to give a good, precise definition of the set of rational numbers. (Although it should be noted that we're not quite done fiddling around; an even better definition will be given in Section 6.3.) \begin{equation*} \Rationals = \{ \frac{a}{b} \suchthat a,b \in \Integers \; \mbox{and} \; b \neq 0 \; \mbox{and} \; \gcd{a}{b}=1 \}. \end{equation*}

As we have in the past, let's parse this with an English translation in parallel.

\(\Rationals\) \(=\) \(\{\)
The rational numbers are defined to be the set of all
\(\displaystyle \frac{a}{b}\) \(\suchthat\) \(a,b \in \Integers\)
fractions of the form \(a\) over \(b\) such that \(a\) and \(b\) are integers
and \(b \neq 0\) and \(\gcd{a}{b}=1\) \(\}\)
and \(b\) is non-zero and \(a\) and \(b\) are relatively prime.

Finally, we are ready to face a fundamental problem that was glossed-over in Section 1.1. We defined two sets back then, \(\Rationals\) and \(\Reals\), the hidden assumption that one makes in asserting that there are two of something is that the two things are distinct. Is this really the case? The reals have been defined (unrigorously) as numbers that measure the magnitudes of physical quantities, so another way to state the question is this: Are there physical quantities (for example lengths) that are not rational numbers?

The answer is that yes there are numbers that measure lengths which are not rational numbers. With our new and improved definition of what is meant by a rational number we are ready to prove that there is at least one length that can't be expressed as a fraction. Using the Pythagorean theorem it's easy to see that the length of the diagonal of a unit square is \(\sqrt{\,2}\). The proof that \(\sqrt{\,2}\) is not rational is usually attributed to the followers of Pythagoras (but probably not to Pythagoras himself). In any case it is a result of great antiquity. The proof is of a type known as reductio ad absurdum  1 . We show that a given assumption leads logically to an absurdity, a statement that can't be true, then we know that the original assumption must itself be false. This method of proof is a bit slippery; one has to first assume the exact opposite of what one hopes to prove and then argue (on purpose) towards a ridiculous conclusion.

Before we can actually give the proof we should prove an intermediary result — but we won't, we'll save this proof for the student to do later (heh, heh, heh…). These sorts of intermediate results, things that don't deserve to be called theorems themselves, but that aren't entirely self-evident are known as lemmas. It is often the case that in an attempt at proving a statement we find ourselves in need of some small fact. Perhaps it even seems to be true but it's not clear. In such circumstances, good form dictates that we first state and prove the lemma then proceed on to our theorem and its proof. So, here, without its proof is the lemma we'll need.

Given that thoroughness demands that we fill in this gap by actually proving the lemma at a later date, we can now proceed with the proof of our theorem.

Subsection1.6.1Exercises

  1. Rational Approximation is a field of mathematics that has received much study. The main idea is to find rational numbers that are very good approximations to given irrationals. For example, \(22/7\) is a well-known rational approximation to \(\pi\). Find good rational approximations to \(\sqrt{2}, \sqrt{3}, \sqrt{5}\) and \(e\). \hint{One approach is to truncate a decimal approximation and then rationalize. E.g. \(\sqrt{2}\) is approximately 1.4142, so 14142/10000 isn't a bad approximator (although naturally 7071/5000 is better since it involves smaller numbers).}

  2. The theory of base-\(n\) notation that we looked at in the sub-section on base-\(n\) can be extended to deal with real and rational numbers by introducing a decimal point (which should probably be re-named in accordance with the base) and adding digits to the right of it. For instance \(1.1011\) is binary notation for \(1 \cdot 2^0 + 1 \cdot 2^{-1} + 0 \cdot 2^{-2} + 1\cdot 2^{-3} + 1\cdot 2^{-4}\) or \(\displaystyle 1 + \frac{1}{2} + \frac{1}{8} + \frac{1}{16} = 1 \frac{11}{16}\). Consider the binary number \(.1010010001000010000010000001\ldots\), is this number rational or irrational? Why? \hint{Does the rule about rational numbers having terminating or repeating decimal representations carry over to other bases? }

  3. If a number \(x\) is even, it's easy to show that its square \(x^2\) is even. The lemma that went unproved in this section asks us to start with a square (\(x^2\)) that is even and deduce that the UN-squared number (\(x\)) is even. Perform some numerical experimentation to check whether this assertion is reasonable. Can you give an argument that would prove it? \hint{What if the lemma wasn't true? Can you work out what it would mean if we had a number x such that x2 was even but x itself was odd?}

  4. The proof that \(\sqrt{2}\) is irrational can be generalized to show that \(\sqrt{p}\) is irrational for every prime number \(p\). What statement would be equivalent to the lemma about the parity of \(x\) and \(x^2\) in such a generalization? \hint{Hint: Saying “x is even” is the same thing as saying “x is evenly divisible by 2.” Replace the \(2\) by \(p\) and you're halfway there…}

  5. Write a proof that \(\sqrt{3}\) is irrational. \hint{You can mostly just copy the argument for \(\sqrt{2}\).}