Mathematics of Information Teaching Group Publications Home

Reals numbers

In this section, we will motivate and introduce real numbers and also briefly discuss complex numbers.

Extending rational numbers

The set of rational numbers allows us to perform arithmetic and solve equations of the form \(ax+b=c\). But we are still unable to solve simple polynomial equations such as \(x^2=2\). (You may, for example, be interested in finding the length of the hypotenuse of a right triangle with two side of length 1.) The solution does not exist within the rational numbers. But we can get arbitrarily close to it:

π‘Ž 1 1.4 1.41 1.414 1.4142 1.41421 1.414213 1.4142135 1.41421356
\(a^2\) 1 1.96 1.9881 1.999396 1.99996164 1.9999899241 1.999998409369 1.99999982358225 1.9999999932878736

Yet, it can be shown that there is no rational number for which \(x^2=2\) is satisfied precisely. One way to remedy this situation is to define a new number as the β€œlimit” of the above sequence, i.e., what we would get if we continued this process ad infinitum, and call it \(\sqrt 2\). We can’t really write down the value of \(\sqrt 2\) in decimal form since we will have to stop at some point, but we can get as close as we want.

We can now add \(\sqrt 2\) to the set of rational numbers, leading to the new field

\[𝐹=\{π‘Ž+𝑏\sqrt{2}:π‘Ž,π‘βˆˆβ„š\}\]

Arithmetic on \(F\) is as usual, except that we have \(\sqrt{2}Γ—\sqrt{2}=2\):

\begin{align} (π‘Ž+𝑏\sqrt{2})+(𝑐+𝑑\sqrt{2})&=(π‘Ž+𝑐)+(𝑏+𝑑) \sqrt{2}\label{eq:Fsqr2add}\\ (π‘Ž+𝑏\sqrt{2})Γ—(𝑐+𝑑\sqrt{2})&=π‘Žπ‘+π‘Žπ‘‘\sqrt{2}+𝑏𝑐\sqrt{2}+2𝑏𝑑=(π‘Žπ‘+2𝑏𝑑)+(π‘Žπ‘‘+𝑏𝑐) \sqrt{2}\label{eq:Fsqr2mul} \end{align}

The additive and multiplicative inverses are:

\begin{align*} -(π‘Ž+𝑏\sqrt{2})&=(-π‘Ž)+(-𝑏) \sqrt{2}\\ \frac{1}{(π‘Ž+𝑏\sqrt{2})}&=\frac{1}{(π‘Ž+𝑏\sqrt{2})}Γ—\frac{(π‘Žβˆ’π‘\sqrt{2})}{(π‘Žβˆ’π‘\sqrt{2})}=\frac{(π‘Žβˆ’π‘\sqrt{2})}{(π‘Ž^2βˆ’2𝑏^2 )}=\frac{π‘Ž}{(π‘Ž^2βˆ’2𝑏^2)}+\sqrt{2} \frac{(βˆ’π‘)}{(π‘Ž^2βˆ’2𝑏^2 )} \end{align*}
Using equations \eqref{eq:Fsqr2add} and \eqref{eq:Fsqr2mul}, verify that \((-π‘Ž)+(-𝑏) \sqrt{2}\) and \(\frac{π‘Ž}{(π‘Ž^2βˆ’2𝑏^2)}+\sqrt{2} \frac{(βˆ’π‘)}{(π‘Ž^2βˆ’2𝑏^2 )}\) are the additive and multiplicative inverses of \(π‘Ž+𝑏\sqrt{2}\), respectively.


What else is missing from rational numbers?

Just as we added \(\sqrt 2\) to the rational numbers, we can add all missing square roots. But it turns out that is still not enough.

Let us consider the example of compound interest: Suppose we put $1 in a savings account with an annual interest rate π‘Ÿ. If interest is compounded annually at the end of the year we will have $1+π‘Ÿ. If it is compounded twice a year, we would have \((1+r/2)^2\) dollars. More generally, if the interest is compounded \(n\) times, we would have \((1+π‘Ÿ/𝑛)^𝑛\) dollars.

We can let \(n\) grow larger and compound increasingly more frequently. For \(π‘Ÿ=1\), how much will be in the account at year end if we compounded continuously (every instant)? In other words, what is the limit of \((1+1/1)^1,(1+1/2)^2,(1+1/3)^3,…\)? The first few values in the sequence are given below.

This is again a sequence with a limit; this time it is called \(e\), which can be shown neither to be a rational number nor even the solution to any algebraic equation with rational coefficients. Such numbers are called transcendental. Another well-known transcendental number is \(\pi\), the circumference of a circle with diameter 1.

Real numbers

We have seen that even the set of rational numbers is seriously deficient, lacking both solutions to certain simple equations and transcendental numbers. In both cases however, the missing numbers could be defined using sequences of rational numbers. We will skip a formal treatment, which would rely on rigorous definitions of convergence and limit, and will instead use the examples provided above to shape our understanding.

Essentially, there are some numbers that we cannot express as a ratio of integers, but we can find sequences of rational numbers that get closer and closer to them, so we define them via those sequences. This does not cause any practical problems since in real-world situations, we are not interested in infinite accuracy.

\[ℝ =β„š\cup \{\text{limits of converging sequences of rational numbers}\}\]

Real numbers that are not rational are creatively called irrational.

Computing using real numbers

Representing real numbers as sequences has significance from computational and communication point of view.

You can store a rational number explicitly and exactly on a computer using a finite amount of memory, either as ratio of two integers or a terminating or repeating decimal number. But you can't do the same for irrational numbers. For example \(\pi\) in python is represented as 3.141592653589793 and in your browser's javascript as , different from the true value of $\pi$. In some applications you may need a more accurate representation than what is readily available. This is ok since we can find a more precise representation by computing more precise approximations (computing later numbers in the sequence or including more terms in a sum).

Here are some examples of sequences of rational numbers that define an irrational number.

\[𝑒=\lim_{π‘›β†’βˆž}⁑ (1+1/𝑛)^𝑛\] \[πœ‹=4(1βˆ’1/3+1/5βˆ’1/7+\dotsm)\] \[\cos ⁑π‘₯ =1βˆ’π‘₯^2/2!+π‘₯^4/4!βˆ’\dotsm\]
Use the summation given above to find 4 different rational approximation for \(\pi\), along with their decimal representations.


The field of real numbers

Building upon rational numbers, the set of real numbers is also a field. If a real number \(x\) is defined by the sequence \(x_1,x_2,\dotsc\) then its additive inverse is defined by \(-x_1,-x_2,\dotsc\) and its multiplicative inverse is \(1/x_1,1/x_2,\dotsc\). In other words, if we have a way to approximate \(x\) as accurately as we want, then we can also approximate \(-x\) and \(1/x\) (assuming \(x\neq 0\)).

Exponentiation and logarithm

Exponentiation

For a real positive number \(b\) and a positive integer \(n\), our existing definition of exponentiation tells us that

\begin{align*} b^n& = \underbrace{b\times b\times \dotsm\times b}_{n \ times} \end{align*}

But how about non-integer exponents? Are they meaningful? For a rational number \(\frac mn\), we can define \(b^{m/n}\) as the positive number \(x\) such that

\[b^m = x^n\]

which may be rational or irrational. So for example, \(5^{2/3}\) is the solution to \(x^3 = 5^2 = 25\). In this case, the solution is irrational, but as before, we can find a sequence of rational numbers \(x_1,x_2,x_3, \dotsc\) such that \(x_i^3\) gets as close as possible to \(25\).

The trickiest case is that of \(b^x\) for an irrational number \(x\). In this case, we use a sequence of rational numbers \(x_1,x_2,\dotsc\) that approach \(x\). Then \(b^x\) is represented by the sequence \(b^{x_1},b^{x_2},\dotsc\). Note that \(b^{x_i}\) has already been defined.

Now, we have, for example, defined strange-looking expressions such as \(e^\pi\). Your browser’s approximation for \(e^\pi\) is .

For a positive real number, a 0 exponent results in 1 and negative exponents can be defined using positive exponents:

\begin{align*} b^0& = 1,& b^{-n} &= \frac1{b^n} \end{align*}

Putting all of these together, we can define exponential functions. The graph below gives \(e^x,2^x\).


Exponentiation, for positive reals \(a,b\) and real numbers \(x,y\), has the following property:

Logarithm

We can now define logarithm which is equally important. For positive reals \(b,y\),

\[\log_b y = x \iff b^x = y.\]

Logarithm, for positive reals \(a,b,x,y\) has the following properties:

We denote logarithm in base \(e\) by \(\ln\). The functions \(\ln x\) and \(\log_2 x\) are given below.


Simplify the following expression. For the latter, verify your answer.
  1. \(2^3\times 2^5-\left(\frac43\right)^7\times\left(\frac32\right)^7\)
  2. \(\log_48\)


A preview of complex numbers

The field of real numbers is quite powerful. Still, there are simple equations with no solutions, in particular, \(π‘₯^2+1=0\) does not have a solution. Let’s represent a solution to \(π‘₯^2+1=0\) as \(\sqrt{-1}\). Adding \(\sqrt{-1}\) to the set of real numbers eventually leads to the set of complex numbers,

\[β„‚=\{π‘Ž+𝑏\sqrt{-1}:π‘Ž,π‘βˆˆβ„\}\]

which we will discuss in further detail later in the course. For now, we only mention that complex numbers are said to be complete (contain the limits of all converging sequences) and algebraically closed (all polynomial have roots). So we cannot make it bigger with the methods that we have used so far, and we do not need to.

Numbers: Summary

Set Symbol Elements Operations What’s missing?
Natural numbers \(\mathbb N\) 0,1,2,… \(+ \times\) Solve \(x+3=0\)
Integers \(\mathbb Z\) …,-2,-1,0,1,2,… \(+\times -\) Solve \(3x+1=0\)
Rationals \(\mathbb Q\) \(0,\pm 1,\pm\frac12,...\) \(+\times -/\) Solve \(x^2=2\)
Perimeter of unit circle
Reals \(\mathbb R\) Limits of converging sequences in \(\mathbb Q\) \(+\times -/\) Solve \(x^2+1=0\)
Complex numbers \(\mathbb C\) \(\{a+b\sqrt{-1}: a,b\in\mathbb R\}\) \(+\times -/\) :smiley: