# The Real and Complex Number System
## Introduction
### Real Analysis

The Real analysis is a branch of mathematical analysis dealing with the set of real numbers. In particular, it deals with the analytic properties of real functions and sequences, including convergence and limits of sequences of real numbers, the calculus of the real numbers, and continuity, smoothness and related properties of real-valued functions.
The goal of this course is to prepare a student to acquire skills on the foundations of the basic theorems and results that shape the mechanisms of calculus and real analysis, and to progress towards a deeper understanding of mathematical ideas that will be a basis for further courses including linear algebra, advanced real analysis, complex analysis, functional analysis, partial differential equations, Lebesgue theory, calculus on manifolds, and the integration of differential forms.
Our course begins with some fundamental observations about other number systems that we have dealt with in the past.

#### The Natural Numbers

The natural numbers arise as the simplest abstraction for the notion of quantity. They are usually conceived of as "counting numbers" and for the purposes of this course (and unless otherwise stated), begin with 1. If we try to abstract a little further, we can observe that as "counting numbers," they have the property of always having a successor. That is, if you have a natural number, you can always find a new natural number, its successor, such that no other natural number lies between that number and the former.
For example, if I give you the natural number 1729, then the only possible successor would be 1730. On the other hand, not every natural number is the successor of some other natural number. If I say that 2008 is the successor of a number, then the original number would be 2007; however there is no natural number $n$ such that 1 is the successor of $n$.
The existence of a "successor property" implies (as you should verify) that there is a least natural number: 1. Also, this property implies the existence of an algorithm for creating a new natural number from any given natural number.
When talking about systems of numbers, it is helpful to write instead the set that describes all of the numbers within the system. For example, what happens if we somehow "group" all natural numbers? We will not talk -- for the moment -- about "how many" natural numbers one can have. Intuitively, you might say that this number is infinite, but we must be a little more precise and rigorous about the mathematical concept of "infinity." We can certainly assume, however, that it is possible to talk about the set that contains all of the natural numbers (since the property constructs all of them). We give that set a distinctive character: $\mathbb {N}$. Using proper mathematical notation, we write this as
$\mathbb {N} =\{x:x{\mbox{ is a Natural Number}}\}$
We will continue developing more concepts of $\mathbb {N}$ as we move forward, such as what it means for $\mathbb {N}$ to be a partially ordered set or a countable set, but we will not deal with their formal construction here since they deal with Set Theory, a totally different course.

#### The Integers

The integers can be thought of as an "extension" of the natural numbers, to include negative numbers as well as the number zero. We call the set of all integers $\mathbb {Z}$. In the language of set theory, we say that $\mathbb {N}$ is a subset of $\mathbb {Z}$ and write this as $\mathbb {N} \subset \mathbb {Z}$.
Many properties of the integers are inherited from the natural numbers, but for the sake of this introduction we will not develop their formal construction, which belongs to a more rigorous course on set theory and foundations of mathematics. On the other hand, the existence of negative integers implies that unlike the natural numbers, there is no smallest integer (it is left to the student to demonstrate this).

#### The Rational Numbers

In the same way that the integers may be thought of as an extension of the natural numbers, the rational numbers may be considered an "extension" of integers. They are formally constructed as equivalence classes of pairs of integers, and represent all the fractions that we know from basic arithmetic. The set of all rational numbers is called $\mathbb {Q}$, and consists of all pairs of integers $\langle m,n\rangle ,n\neq 0$ in the form ${\frac {m}{n}}$.
One would think that, by adjusting the numerator and denominator of a rational number, any conceivable number could be expressed, and indeed $\mathbb {N} \subset \mathbb {Z} \subset \mathbb {Q}$. But from our knowledge of solutions to algebraic equations, there are situations in which $\mathbb {Q}$ is not sufficient to express a solution to a given equation. Take the question leading to the famous "Pythagorean catastrophe", to wit:
   Is there a rational number $q$ such that $q^{2}=2$?

### The Incompleteness of the Rational Numbers

We are now going to tackle the question of the "completeness" (without actually defining what it means to be complete) of the rational numbers. Intuitively speaking, we want to find out if there exists any number that cannot be expressed using $\mathbb {Q}$. Take the unit square, for instance (a square that measures one unit on each side). Isn´t it natural for us to wonder about the number that represents the "length" of the diagonal of this square?
Pythagoras' theorem tells us that this number is ${\sqrt {2}}$. But what the symbol ${\sqrt {2}}$ tells us is "find a number x such that its square equals 2" In other words,
$x={\sqrt {2}}\iff x^{2}=2$.
Let us show how no rational number can solve this equation (equivalent to saying: "let us show that the square root of two is not a rational number"). The proof is by contradiction.
${\sqrt {2}}$
${\frac {m}{n}}$
$m$
$n\neq 0$
$m$
$n$
${\frac {m}{n}}$
$\left({\frac {m}{n}}\right)^{2}={\frac {m^{2}}{n^{2}}}=2$.
$m^{2}=2n^{2}$
$m^{2}$
$(2k)^{2}=4k^{2}=2n^{2}$
$k$
$n^{2}$
$n$
$m$
$n$
${\frac {m}{n}}$
${\sqrt {2}}$

### Set Theory Conventions
## Fields
### The Real Field

See Real Numbers

### The Complex Field

See Complex Numbers
There is no real number that is the square root of a negative real number. That is, no real number, multiplied by itself, can yield a negative number, as a result of the field axioms of the real number system. But if we define the square root of -1 as a non-real number ỉ, a new number field is created. This is the Complex number field.

## Advanced Topics
### Dedekind Cuts

See Dedekind Cut.