Produced by Charles Wells Revised 2017-02-22 Introduction to this website website TOC website index blog head of chapter on Numbers

A real number is a number that can be represented as a (possibly infinite) decimal expansion, such as $2.56$, $-3$ (which is $-3.0$), $1/3$ (which has the infinite decimal expansion $0.333...$), and $\pi$. Every integer and every rational number is a real number, but numbers such as $\sqrt{2}$ and $\pi$ are real numbers that are not rational.

- I will not give a mathematical definition of “real number”. There are several equivalent definitions of real number all of which are quite complicated. Mathematicians rarely think about real numbers in terms of these definitions; what they have in mind when they work with them are their familiar algebraic and topological properties.
- Every real number can be represented by its decimal representation, which consists of a finite list of digits, a decimal point, and an infinite list of digits. (You can always adjoin an infinite number of zeroes for numbers such as $2.56$.)
- The infinite list of digits includes all possible random choices of integers. You will know that you really understand this fact when you are totally astonished. See Why the Number Line Freaks Me Out.
- “Real number” is a technical term. Real numbers are not any more “genuine” that any other numbers.
Integers and rational numbers are real numbers, but there are real numbers that are not integers or rationals. One such number is $\sqrt{2}$. Such numbers are called irrational numbers.

The real numbers are closed under addition, subtraction, and multiplication, as well as division by a nonzero number.

Notice that these are exactly the same arithmetic closure properties that rational numbers have. In the previous sections in this chapter on numbers, each new number system -- natural numbers, integers and rational numbers -- were closed under more arithmetic operations than the earlier ones. We don't appear to have gained anything concerning arithmetic operations in going from the rationals to the reals.

The real numbers *do* allow you to find zeroes of some polynomials that don't have rational zeroes. For example, the equation $x^2-2=0$ has the root $x=\sqrt{2}$, which is a real number but not a rational number. However, you get only some zeroes of polynomials by going to the reals -- consider the equation $x^2+2=0$, which requires going to the complex numbers to get a root.

The real numbers are closed under another operation (not an algebraic operation) that rational numbers are not closed under:

The real numbers are closed under taking limits.

That fact is the primary reason real numbers are so important

in math, science and engineering.

Consider: The concepts of continuous function, derivative and integral -- the basic ideas in calculus and differential equations -- are *all defined in terms of limits.* Those are the basic building blocks of mathematical analysis, which provides most of the mathematical tools used by scientists and engineers.

The length of any line segment is given by a positive real number.

The diagonal of the square above has length $2\sqrt{2}$.

Measuring **directed line segments** requires the use of negative real numbers as well as positive ones. You can regard the diagonal above as a **directed line segment**. If you regard “left to right” as the positive direction (which is what we usually do), then if you measure it from *right* to *left* you get $-2\sqrt{2}$.

Real numbers are used to measure continuous variable quantities.

- The
**temperature**at a given place and a given time. - The
**speed**of a moving car. - The
**amount**of water in a particular jar.

- Temperature, speed, volume of water are thought of as quantities that
*can change*, or*be changed*, which is why I called them "variable" quantities. - The name “continuous” for these quantities indicates that the quantity can change from one value to another without “jumping”. (This is a metaphor, not a mathematical definition!)

If you have $1.334 \text{ cm}^3$ of water in a jar you can add any additional small amount into it or you can withdraw any small amount from it. The volume does not suddenly jump from $1.334$ to $1.335$ – as you put in the water it goes up *gradually* from $1.334$ to $1.335$.

This explanation of “continuous quantity” is done in terms of *how we think about continuous quantities,* not in terms of a mathematical definition. In fact. since you can’t measure an amount smaller than one molecule of water, the volume *does* jump up in tiny discrete amounts. Because of quantum phenomena, temperature and speed change in tiny jumps, too (much tinier than molecules).

Quantum jumps and individual molecules are ignored in large-scale physical applications because the scale at which they occur is so tiny it doesn’t matter. For such applications, physicists and chemists (and cooks and traffic policemen!) think of the quantities they are measuring as continuous, even though at tiny scales they are not.

The fact that scientists and engineers treat changes of physical quantities as continuous, ignoring the fact that they are not continuous at tiny scales, is sometimes called the "continuum hypothesis". This is not what mathematicians mean by that phrase: see continuum hypothesis in Wikipedia.

It is useful to visualize the set of real numbers as the real line (or the number line).

The real line goes off to infinity in both directions. Each real number represents a **location** on the real line. Some locations are shown here:

The locations are commonly called **points** on the real line. This can lead to a *seriously mistaken mental image* of the reals as a row of points, like beads. Just as in the case of the rationals, there is no real number “just to the right” of a given real number.

In this section, I will go into more detail about the decimal representation of the real numbers. There are two reasons for doing this.

- People just beginning abstract math tend to think in terms of
**bad metaphors**about the real numbers as decimals, and I want to introduce ways of thinking about them that are more helpful. - The real numbers can be
**defined**in terms of the decimal representation. This is spelled out in a blog post by Tim Gowers. The definition requires some detail and in some ways is inelegant compared to the definitions usually used in analysis textbooks. But it means that the more you understand about the decimal representation, the better you understand real numbers, and in a pretty direct way.

See also The Number Line and Why the Number Line Freaks Me Out.

The decimal representation of a real number is also called its **decimal expansion**. A representation can be given to other bases besides $10$; more about that here.

The decimal representation of a real number gives the approximate location of the number on the real line as its directed distance from $0$.

- The rational number $1/2$ is real and has the decimal representation $0.5$.
- The rational number $-1/2$ has the representation $-0.5$.
- The number $1/3$ is also real and has the infinite decimal representation $1.333\ldots$ There is an infinite number of $3$’s, or to put it another way, for every positive integer $n$, the $n$th decimal place of the decimal representation of $1/3$ is $3$.
- The number $\pi $ has a decimal representation beginning $3.14159\ldots$. So you can locate $\pi$ approximately by going $3.14$ units to the right from $0$. You can locate it more exactly by going $3.14159$ units to the right, if you can measure that accurately. The decimal representation of $\pi$ is infinitely long so you can theoretically represent it with
*as much accuracy as you wish.*In practice, of course, it would take longer than the age of the universe to find the first ${{10}^{({{10}^{10}})}}$ digits.

It is customary to put a bar over a sequence of digits at the end of a decimal representation to indicate that the sequence is repeated forever.

- $42\frac{1}{3}=42.\overline{3}$
- $52.71656565\ldots$ (the group $65$ repeating infinitely often) may be written $52.71\overline{65}$.
- A decimal representation that is only finitely long, for example $5.477$, could also be written $5.477\overline{0}$.
- In particular, $6=6.0=6.\overline{0}$, and that works for any integer.

If you give the first few decimal places of a real number, you are giving an **approximation** to it. Mathematicians on the one hand and scientists and engineers on the other tend to treat expressions such as $3.14159$ in two different ways:

- The
*mathematician*may think of it as*a precisely given number*, namely $\frac{314159}{100000}$, so in particular it represents a rational number. This number is not $\pi$, although it is close to it. - The
*scientist or engineer*will probably treat it as the*known part*of the decimal representation of a real number. From their point of view, one knows $3.14159$ to six significant figures. - Abstractmath.org always takes the mathematician's point of view. If I refer to $3.14159$, I mean the rational number $\frac{314159}{100000}$. I may also refer to $\pi$ as “approximately $3.15159$”.

Computer languages typically treat integers as if they were distinct from real numbers. In particular, many languages have the convention that the expression ‘$2$’ denotes the integer and the expression ‘$2.0$’ denotes the real number. Mathematicians do not use this convention. They usually regard the integer $2$ and the real number $2.0$ as the same mathematical object.

The **decimal representation** of a real number is shorthand for a particular infinite series.

Suppose the part before the decimal place of a real number $r$ is the integer $n$, and the part after the decimal place is\[{{d}_{1}}{{d}_{2}}{{d}_{3}}...\]where ${{d}_{i}}$ is the digit in the $i$th place. (For example, for $\pi$, $n=3$, ${{d}_{1}}=1,\,\,\,{{d}_{2}}=4,\,\,\,{{d}_{3}}=1,$ and so forth.) Then the decimal notation $n.{{d}_{1}}{{d}_{2}}{{d}_{3}}...$ represents the limit of the infinite series\[n+\sum\limits_{i=1}^{\infty }{\frac{{{d}_{i}}}{{{10}^{i}}}}\]

The number $42\frac{1}{3}$ is *exactly equal* to the sum of the infinite series, which is represented by the expression $42.\overline{3}$.

If you stop the series after a finite number of terms, then the number is *approximately* equal to the resulting sum. For example, $42\frac{1}{3}$ is approximately equal to\[42+\frac{3}{10}+\frac{3}{100}+\frac{3}{1000}\]which is the same as $42.333\overline{0}$.

This inequality gives an estimate of the accuracy of this approximation:\[42.333\lt42\frac{1}{3}\lt42.334\]

The expression $42.\overline{3}$ must be thought of as including all the $3$'s all at once rather than as gradually extending to the right over an infinite period of time.

In ordinary English, the “…” often indicates *continuing through time*, as in this example

“They climbed to the top of the ridge, and saw another, higher ridge in the distance, so they walked to that ridge and climbed it, only to see another one still further away…”

But the situation with decimal representations is different:

The decimal representation of $42\frac{1}{3}$ as $42.333\ldots$

must be thought of as a complete,

infinitely long sequence of decimal digits,

every one of which (after the decimal point) is a “$3$” right now.

In the same way, you need to think of the decimal expansion of $\sqrt{2}$ as having *all its decimal digits in place at once.* Of course, in this case you have to calculate them in order. And note that calculating them is only *finding out what they are.* The digits are already there!

The preceding description is about how a mathematican *thinks about* infinite decimal expansions. The thinking has some sort of physical representation in your head that allows you to think about to the hundred millionth decimal place of $\sqrt{2}$ or of $\pi$ even if you don’t know what it is. This does not mean that you have an infinite number of slots in your brain, one for each decimal place! Nor does it mean that the infinite number of decimal places actually exist “somewhere”. After all, you can think about unicorns and *they* don’t actually exist somewhere.

Both the following statements are true:

- The numbers $1/3$, $\sqrt{2}$ and $\pi $ have
*infinitely long decimal representations*, in contrast for example to $\frac{1}{2}$, whose decimal representation is exactly $0.5$. - The expressions “$1/3$”, “$\sqrt{2}$” and “$\pi $”
*exactly determine*the numbers $1/3$, $\sqrt{2}$ and $\pi$:

*These two statements don’t contradict each other.* All three numbers have **exact definitions.**

- $1/3$ is
**exactly**the number that gives 1 when multiplied by $3$. - $\sqrt{2}$ is
**exactly**the unique positive real number whose square is 2. - $\pi $ is
**exactly**the ratio of the circumference of a circle to its diameter. - The decimal representation of any one of these numbers to a finite number of places provides an
*approximate location of that number on the real line*. - On the other hand, the
*complete*decimal representation of each one represents it**exactly**, even though you can’t write the representation down.

The decimal representations of two different real numbers must be different from each other. However, two different decimal representations can, in certain circumstances, represent the same real number. This happens when the decimal representation ends in an infinite sequence of $9$’s or an infinite sequence of $0$’s.

- $0.\overline{9}=1.\overline{0}$. This means that $0.\overline{9}$
*is exactly the same number as*$1$. It is not just an approximation of $1$. - $3.4\bar{9}=3.5\overline{0}$. Indeed, $3.4\overline{9}$, $3.5$, $35/10$, and $7/2$ are all different representations of the same number.

The Wikipedia article "$0.\overline{9}$" is an elaborate discussion of the fact that $0.\overline{9}=1$, a fact that many students find hard to believe.

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.