2.4 Irrational numbers

Definition 2.17 (Irrational number).

A real number that is not rational is said to be irrational.

At this point, we can deduce that irrational numbers must exist by using the results of the previous section.

Proposition 2.18.

A real number is irrational if and only if it has a non-terminating decimal representation with no repeating pattern.

Example 2.19.

Here is an example of a real number whose decimal representation neither terminates nor repeats:

x=0.101 digit1002 digits10003 digits100004 digits1000005 digits1x=0.1\overbrace{0}^{\text{$1$ digit}}1\underbrace{00}_{\text{$2$ digits}}1% \overbrace{000}^{\text{$3$ digits}}1\underbrace{0000}_{\text{$4$ digits}}1% \overbrace{00000}^{\text{$5$ digits}}1\ldots (2.1)

where the blocks of zeros increases in length after each 11 in the decimal representation.

This must be an irrational number.

Working with decimals like this is fraught with difficulties. For example, the usual algorithms we have for adding and multiplying decimals start with the rightmost digit – what happens when there is no rightmost digit!? For example, try to calculate x2x^{2} in (2.1).

We can establish some properties of irrational numbers directly from the definition.

Proposition 2.20.

The product of a nonzero rational number and an irrational number is irrational.

Proof.

Let r=p/qr=p/q where pp and qq are integers with p0p\neq 0 and q>0q>0, and let xx be irrational. For a contradiction, assume that rxrx is rational. Write rx=m/nrx=m/n where mm and nn are integers with n>0n>0. Then

mn\displaystyle\qquad\frac{m}{n} =rx\displaystyle=rx (by assumption)
\displaystyle\Leftrightarrow mn\displaystyle\frac{m}{n} =pqx\displaystyle=\frac{p}{q}x (replacing rr)
\displaystyle\Leftrightarrow x\displaystyle x =mqnp.\displaystyle=\frac{mq}{np}. (rearranging, and using the assumption p0p\neq 0).

Now mqmq and npnp are an integers because mm, qq, nn and pp are, and np0np\neq 0 since p0p\neq 0 and n>0n>0. This implies that xx is rational, a contradiction. Hence rxrx must be irrational.

Exercise 2.21.

Prove that the sum of a rational number and an irrational number is irrational.

Solution (please try for yourself before looking)

Let r=p/qr=p/q where pp and qq are integers with q>0q>0, and let xx be irrational. For a contradiction, assume that r+xr+x is rational. Write r+x=m/nr+x=m/n where mm and nn are integers with n>0n>0. Then

mn\displaystyle\qquad\frac{m}{n} =r+x\displaystyle=r+x (by assumption)
\displaystyle\Leftrightarrow mn\displaystyle\frac{m}{n} =pq+x\displaystyle=\frac{p}{q}+x (replacing rr)
\displaystyle\Leftrightarrow x\displaystyle x =mnpq.\displaystyle=\frac{m}{n}-\frac{p}{q}. (rearranging).

Thus xx is a sum of the rational numbers mn\frac{m}{n} and pq\frac{-p}{q}, and so is rational by 2.5. This is a contradiction since xx is irrational. Hence r+xr+x must be irrational.

2.4.1 The square root of 2 is irrational

We saw in the previous section that irrational numbers do exist. In this section, we shall prove that 2\sqrt{2} is one such irrational number.

Recall that an irrational number must be real, according to Definition 2.17. So we should first convince ourselves that 2\sqrt{2} is a real number.

By definition, 2\sqrt{2} is an object whose square is 22. In other words, 2\sqrt{2} is defined by the property that it is a solution to the equation x2=2x^{2}=2. However, we cannot just assume that every equation has a real solution. For example, the equation x2=1x^{2}=-1 has no real solutions because x2>0x^{2}>0 for any real number xx.

We can convince ourselves that taking the square root of a non-negative real number results in a real number as follows. Consider the curve with equation y=x2y=x^{2} and let k0k\geq 0 be any real constant. Starting at the yy-axis, draw a horizontal line to the right at height kk until it intersects the curve. Then the xx-coordinate of the point of intersection is the square root of kk, as illustrated in Figure 2.1.

Figure 2.1: Illustration that the square root of a non-negative real number is real.

The height kk can be any non-negative real number and the corresponding value of k\sqrt{k} will also be a real number. Note that the boundary case tells us that 0=0\sqrt{0}=0. We can also see in Figure 2.1 that there are no real numbers whose square is negative, since any horizontal line drawn below the xx-axis will not intersect the curve.

Therefore, using the above argument with a horizontal line at height 22, we can see that 2\sqrt{2} is indeed a real number.

Another way to think about 2\sqrt{2} is to measure the length of a diagonal in a unit square. By the Pythagorean Theorem the length of this diagonal is 2\sqrt{2}

2\sqrt{2}(0,0)(0,0)(1,0)(1,0)(1,1)(1,1)(0,1)(0,1)
Figure 2.2: Illustration that 2\sqrt{2} is a real number.

Defining real numbers more formally is not needed for this course.

Theorem 2.22.

The number 2\sqrt{2} is irrational.

Proof.

We established above that 2\sqrt{2} is real.

For a contradiction, assume 2\sqrt{2} is rational. Write 2=ab\sqrt{2}=\frac{a}{b}, where aa and bb are integers so that the fraction is in simplest terms (i.e. aa and bb have no common factors).

Squaring both sides of 2=ab\sqrt{2}=\frac{a}{b} tells us that 2b2=a22b^{2}=a^{2}.

Hence a2a^{2} is an even number, and so aa is even.

Let a=2ka=2k for some integer kk. Then 2b2=4k22b^{2}=4k^{2} and so b2b^{2} is even. So bb is even.

Now both aa and bb are even. This contradicts our assumption that 2\sqrt{2} could be written in the form ab\frac{a}{b} with the fraction in simplest terms. Hence this assumption must be false and so 2\sqrt{2} cannot be rational.

A calculator will tell you that 2=1.414213562\sqrt{2}=1.414213562 (rounded to 99 decimal places). But where do these digits come from? Do you know a way to compute them by hand? These kinds of questions will be touched upon in the course Introduction to Mathematical Analysis.

Having 2\sqrt{2} as an example of an irrational number can help answer the following questions.

Exercise 2.23.

  1. 1.

    Is the product of two irrational numbers always irrational?

  2. 2.

    Is the sum of two irrational numbers always irrational?

Solution (please try for yourself before looking)
  1. 1.

    The product of two irrational numbers can be rational or irrational. For example:

    • 22=2\sqrt{2}\sqrt{2}=2 is rational;

    • 1+21+\sqrt{2} is irrational by 2.21, and (1+2)(1+2)=3+22(1+\sqrt{2})(1+\sqrt{2})=3+2\sqrt{2} is irrational by 2.21 and Proposition 2.20.

  2. 2.

    The sum of two irrational numbers can be rational or irrational. For example:

    • 1+21+\sqrt{2} and 121-\sqrt{2} are irrational by 2.21, and (1+2)+(12)=2(1+\sqrt{2})+(1-\sqrt{2})=2 is rational;

    • 122\frac{1}{2}\sqrt{2} is irrational by Proposition 2.20, and 122+122=2\frac{1}{2}\sqrt{2}+\frac{1}{2}\sqrt{2}=\sqrt{2} is irrational.

Example 2.24.

We shall show that it is possible for an irrational power of an irrational number to be rational.

We know that 2\sqrt{2} is irrational. Consider the number 22\sqrt{2}^{\sqrt{2}}. This is real and so it is either rational or irrational.

  • If 22\sqrt{2}^{\sqrt{2}} is rational then we have shown it is possible for an irrational power of an irrational number to be rational.

  • If 22\sqrt{2}^{\sqrt{2}} is irrational then (22)2=22×2=22=2\Bigl{(}\sqrt{2}^{\sqrt{2}}\Bigr{)}^{\sqrt{2}}=\sqrt{2}^{\sqrt{2}\times\sqrt{2% }}=\sqrt{2}^{2}=2 and so, in this case, we have an irrational power of an irrational number that is rational.

This is an example of a nonconstructive proof: it tells us something exists without constructing it explicitly. It turns out that 22\sqrt{2}^{\sqrt{2}} is irrational, but this is not straightforward to prove. You may wish to read about the Gelfond-Schneider theorem and Hilbert’s seventh problem if you are interested.

[In case you are not familiar with what it means to take real powers: for any positive real number bb, we define bx=exp(xlnb)b^{x}=\exp(x\ln b) for any real number xx. Here exp\exp is the exponential function and ln\ln is the natural logarithm. You can read more about exponentiation on Wikipedia if you are interested, but this will be studied in detail in the course Introduction to Mathematical Analysis.]