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:
- We know \(1^2 < x^2 < 2^2\). So \(1 < x < 2\)
- We can find the next decimal place by finding \(a^2\) for \(a=1.1,1.2,1.3,\dotsc\) and find the smallest value for \(a\) such that \(a^2\le 2\). This occurs for \(a=1.4\) for which \(a^2=1.96\).
- We can continue in this way to find a sequence of numbers whose square gets closer and closer to 2:
π | 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\):
The additive and multiplicative inverses are:
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.
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\]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
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:
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:
- \(b^x b^y = b^{x+y}\),
- \(\left(b^x\right)^y=b^{xy}\),
- \((ab)^x = a^xb^x\).
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:
- \(\log_b(xy) = \log_b x+\log_b y\),
- \(\log_b(x^y)=y\log_b x\), and in particular, \(\log_b(\frac1x)=-\log_b x\),
- \(\log_b x = (\log_b a)(\log_a x)\).
We denote logarithm in base \(e\) by \(\ln\). The functions \(\ln x\) and \(\log_2 x\) are given below.
- \(2^3\times 2^5-\left(\frac43\right)^7\times\left(\frac32\right)^7\)
- \(\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 -/\) | ![]() |