8. Real numbers
8.1 Specification: real number
A real number is a number which can be represented as a directed distance on a straight line. A real number $r$ is positive if $r >0$ and negative if $r <0$.
8.1.1 Remark Specification 8.1 is informal, but it’s all you are going to get, since a formal definition is quite involved.
8.1.2 Example Any integer or rational number is a real number, and so are numbers such as $\pi$ and $\sqrt{2}$. We will see a proof in Section 86 that $\sqrt{2}$ is not rational, which shows that there are real numbers that are not rational.
8.1.3 Usage The symbol $\sqrt{4}$ denotes $2$. It does not denote $-2$. In general, for a positive real number $x$, the notation $\sqrt{x}$ denotes the positive square root of $x$, which is precisely the unique positive real number $r$ with the property that $r^{2} =x$.
The unique negative number $s$ such that $s^{2} =x$ is denoted by $-\sqrt{x}$.
This usage may conflict with usage you saw in high school, but it is standard in college-level and higher mathematics.
8.1.4 Exercise For what real numbers $x$ is it true that $\sqrt{(-x)^{2}}=x$?
8.2 Infinity
In calculus you may have used the symbols $\infty$ and $-\infty$ in connection with limits. By convention, $\infty$ is bigger than any real number and $-\infty$ is less than any real number. However, they are not themselves real numbers. There is no largest real number and there is no smallest real number.
Page 12 of the book (PDF).