# Chapter 1. Sets and foundations of real analysis

This chapter moves from counting sets to filling gaps in the rational line, then from completeness to the functions built on the real numbers. The sequence of arguments matters. Counting reveals how large $\mathbb{R}$ is. Completeness explains why the limits and roots we need exist.

[§ 1.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:sets-and-countable-sets)–[§ 1.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:power-sets) compare sets and identify gaps in $\mathbb{Q}$. [§ 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:convergence-preview) introduces distance, limit rules, and the motivation for iteration. [§ 1.5](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:fields-and-order)–[§ 1.7](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:completeness-equivalences) develop order and completeness, including the Archimedean property before the proof chain uses it. [§ 1.8](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:archimedean)–[§ 1.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:roots-and-powers) apply these tools to approximation, missing limits, functions, and roots. The iteration proofs return at the end, when their prerequisites are in place. [§ 1.12](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:number-systems) closes the chapter with an overview of the number systems and their infinite cardinalities.

## 1.1 Sets and countable sets

<span class="smallcaps">How do we count an infinite set?</span> We cannot finish listing its elements, but we can ask whether every element has a place on a list. Throughout these notes, $\mathbb{N}=\{1,2,3,\ldots\}$.

### Sets, operations, and maps

We write $x\in A$ when $x$ belongs to $A$, and $A\subseteq B$ when every element of $A$ belongs to $B$. Two sets are equal precisely when each is a subset of the other. The empty set is denoted by $\varnothing$. For sets $A$ and $B$ in a universe $U$, the basic operations are

$$
\begin{aligned}
  A\cup B&=\{x\mid x\in A\text{ or }x\in B\},\\
  A\cap B&=\{x\mid x\in A\text{ and }x\in B\},\\
  A\setminus B&=\{x\mid x\in A\text{ and }x\notin B\}.
\end{aligned}
$$

[![Shading marks A\\cup B, including the overlap.](https://xyzmaths.org/notes/maths-analysis/figures/set-union.svg)](https://xyzmaths.org/notes/maths-analysis/figures/set-union.svg "Open original SVG")

Figure 1.1. Shading marks $A\cup B$, including the overlap.

[![Shading marks A\\cap B, the overlap.](https://xyzmaths.org/notes/maths-analysis/figures/set-intersection.svg)](https://xyzmaths.org/notes/maths-analysis/figures/set-intersection.svg "Open original SVG")

Figure 1.2. Shading marks $A\cap B$, the overlap.

[![Shading marks A^c=U\\setminus A.](https://xyzmaths.org/notes/maths-analysis/figures/set-complement.svg)](https://xyzmaths.org/notes/maths-analysis/figures/set-complement.svg "Open original SVG")

Figure 1.3. Shading marks $A^c=U\setminus A$.

[Figure 1.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:analysis-i:set-union) shows the union, and [Figure 1.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:analysis-i:set-intersection) shows their common part. The complement $A^c$ is taken relative to a specified universe $U$, so $A^c=U\setminus A$. [Figure 1.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:analysis-i:set-complement) shades the part of $U$ outside $A$. The distributive laws and De Morgan’s laws follow by checking membership. For example,

$$
(A\cup B)^c=A^c\cap B^c,
  \qquad (A\cap B)^c=A^c\cup B^c.
$$

For a family $(A_i)_{i\in I}$, membership in $\bigcup_{i\in I}A_i$ means membership in at least one $A_i$. Membership in $\bigcap_{i\in I}A_i$ means membership in every $A_i$. For an empty family, the union is $\varnothing$ and the intersection is the specified universe $U$.

[^1]

[^1]: Augustus De Morgan’s *Formal Logic* (1847) studies negation and the interchange of logical alternatives ([Morgan 1847](https://xyzmaths.org/notes/maths-analysis/references/#ref-DeMorgan1847)). The set identities express the same duality through membership. Their name records an important expositor, rather than establishing that no earlier logician knew the underlying equivalences. They connect set algebra with mathematical logic. See [Figure 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:de-morgan).

![Augustus De Morgan](https://xyzmaths.org/notes/maths-analysis/figures/de-morgan.jpg)

Figure 1.4. Augustus De Morgan. ([MacTutor History of Mathematics n.d.b](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitDeMorgan); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits))

The next exercise extends De Morgan’s laws to an arbitrary family.

### Exercise 1.1.1

Let $\{A_\gamma \mid \gamma \in \Gamma\}$ be a collection of sets. Prove De Morgan’s laws

$$
\begin{aligned}
      \left(\bigcup_{\gamma\in\Gamma} A_\gamma\right)^c
        &= \bigcap_{\gamma\in\Gamma} A_\gamma^c,\\
      \left(\bigcap_{\gamma\in\Gamma} A_\gamma\right)^c
        &= \bigcup_{\gamma\in\Gamma} A_\gamma^c.
    \end{aligned}
$$

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:de-morgan)

The *Cartesian product* is the set of ordered pairs

$$
A\times B=\{(a,b)\mid a\in A, b\in B\}.
$$

 A *function*, also called a *map*, $f:A\to B$ assigns exactly one output $f(a)\in B$ to each input $a\in A$. The set $A$ is its *domain*, and $B$ is its *codomain*. Different inputs may have the same output, and some elements of $B$ may never be reached.

The map is *injective* if $f(a)=f(a')$ implies $a=a'$, and *surjective* if every $b\in B$ equals $f(a)$ for some $a\in A$. A map with both properties is a *bijection*. [§ B.1](https://xyzmaths.org/notes/maths-analysis/appendices/assumed-knowledge/#sec:appendix:map-properties) recalls these definitions with finite-set diagrams and examples in Euclidean spaces.

**Definition 1.1.2.** Two sets have the same *cardinality*, written $|A|=|B|$, when there is a bijection between them. A set is *countably infinite* if it has the same cardinality as $\mathbb{N}$. It is *countable* if it is finite or countably infinite, and *uncountable* otherwise.

The notation $|\mathbb{N}|=\aleph_0$ is read “aleph zero.” Infinite does not mean uncountable. For example, the even positive integers form a proper subset of $\mathbb{N}$, yet $n\mapsto 2n$ is a bijection between these two sets. [^2]

[^2]: For finite sets a proper subset has fewer elements. For infinite sets, containment alone does not determine whether cardinality is smaller.

**Remark 1.1.3 (Cardinality comparisons from functions).** We write $|A|\le|B|$ when there is an injection from $A$ into $B$. For a function $f:A\to B$, the following comparisons hold, with the axiom of choice understood for the surjective line when the sets are arbitrary and infinite.

$$
\begin{aligned}
      f\text{ injective}&\quad\Longrightarrow\quad |A|\le|B|,\\
      f\text{ surjective}&\quad\Longrightarrow\quad |A|\ge|B|,\\
      f\text{ bijective}&\quad\Longrightarrow\quad |A|=|B|.
    \end{aligned}
$$

An injection gives each input a distinct place in $B$. Its image $f(A)=\{f(a)\mid a\in A\}$ is therefore a copy of $A$ inside $B$, even if some outputs are unused.

A surjection may send several inputs to the same output, but it cannot leave any element of $B$ unreached. Choose one preimage $a_b\in A$ for each $b\in B$, so that $f(a_b)=b$. The map $b\mapsto a_b$ is an injection from $B$ into $A$, since distinct outputs cannot have the same chosen preimage. Making all these choices for arbitrary infinite sets invokes the axiom of choice. No such assumption is needed for finite sets.

If $f$ is both injective and surjective, every $b\in B$ has exactly one preimage. The pairing can therefore be reversed uniquely, giving the inverse $f^{-1}:B\to A$ and $|A|=|B|$. Uniqueness means that this case needs no axiom of choice. [Figure 1.5](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:function-cardinality) illustrates the three properties.

[![Arrows show the function f. Shading marks the image f(A), the outputs actually reached. These finite examples distinguish unused outputs, shared outputs, and a reversible pairing.](https://xyzmaths.org/notes/maths-analysis/figures/function-cardinality.svg)](https://xyzmaths.org/notes/maths-analysis/figures/function-cardinality.svg "Open original SVG")

Figure 1.5. Arrows show the function $f$. Shading marks the image $f(A)$, the outputs actually reached. These finite examples distinguish unused outputs, shared outputs, and a reversible pairing.

The inequalities need not be strict. In the even-integer example above, both domain and codomain are $\mathbb{N}$, although the odd outputs are missed. Equal cardinalities describe the two sets. They do not make every function between those sets bijective.

### Induction and the least natural number

Mathematical induction proves a statement $P(n)$ for every $n\in\mathbb{N}$ by proving $P(1)$ and proving that $P(n)$ implies $P(n+1)$. For example, $2^n\geq n+1$ holds at $n=1$. If it holds at $n$, then $2^{n+1}\geq2(n+1)\geq n+2$, which establishes the next case. We will also use the identity

$$
1+2+\cdots+n=\frac{n(n+1)}{2}.
$$

It holds at $n=1$, and adding $n+1$ to the formula for $n$ gives $(n+1)(n+2)/2$, proving the induction step.

The *well-ordering principle* says that every nonempty subset of $\mathbb{N}$ has a least element. It is equivalent to induction. For the direction needed here, a subset with no least element cannot contain $1$. If it contains none of $1,\ldots,n$, it cannot contain $n+1$ either, since that would be its least element. Induction would make it empty. In particular, an infinite subset of $\mathbb{N}$ can be enumerated by repeatedly choosing the least remaining element. Each member is eventually reached, because only finitely many natural numbers precede it.

### Combining countable sets

If $A=\{a_1,a_2,\ldots\}$ and $B=\{b_1,b_2,\ldots\}$, interleave the lists by setting

$$
c_{2n-1}=b_n,\qquad c_{2n}=a_n.
$$

Every element of $A\cup B$ appears. If the sets overlap, discard repeated appearances. Thus the union of two countable sets is countable, and repeating this argument proves the same for every finite union.

What happens when there are two indices? The sum $m+n$ alone will not distinguish $(m,n)$ from $(n,m)$. The following encoding retains both pieces of information.

**Proposition 1.1.4.** The map $h:\mathbb{N}^2\to\mathbb{N}$ given by

$$
h(m,n)=m+2^{m+n}
$$

is injective. Consequently, the Cartesian product of two countable sets is countable.

*Proof.* Put $d=m+n$. Since $1\leq m\leq d-1<2^d$, we have $2^d<h(m,n)<2^{d+1}$. These intervals are disjoint for distinct integer values of $d$. Hence $h(m,n)=h(j,k)$ first gives $m+n=j+k$ and then $m=j$, so also $n=k$. Every subset of $\mathbb{N}$ is countable, by listing its elements in increasing order. The image of $h$ therefore lists $\mathbb{N}^2$. Enumerations of two countable sets then give a list of their pairs. ◻

For the next argument, we use the axiom of countable choice to select one enumeration for each nonempty set in a countable family.

**Proposition 1.1.5.** A countable union of countable sets is countable.

*Proof.* Choose a list $A_m=\{a_{m,1},a_{m,2},\ldots\}$ for each nonempty set in the family, repeating elements if the set is finite. List the pairs $(m,n)$ in increasing order of $m+n$, and within each such group in increasing order of $m$. Every pair is reached after finitely many steps. Listing $a_{m,n}$ in this order reaches every element of the union. Discard repeated appearances to obtain the required enumeration. ◻

[Figure 1.6](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:countable-grid) shows the order of traversal.

[![Visit pairs along finite diagonals. The numerals indicate the order of the first ten pairs.](https://xyzmaths.org/notes/maths-analysis/figures/countable-grid.svg)](https://xyzmaths.org/notes/maths-analysis/figures/countable-grid.svg "Open original SVG")

Figure 1.6. Visit pairs along finite diagonals. The numerals indicate the order of the first ten pairs.

### Counting the rationals

Every positive rational has a unique reduced representation $p/q$ with $p,q\in\mathbb{N}$. Thus $\mathbb{Q}_{>0}$ is encoded by a subset of $\mathbb{N}^2$ and is countable. Adding zero and the negatives gives a countable set $\mathbb{Q}$. Since $\mathbb{N}\subseteq\mathbb{Q}$, it is infinite, and therefore

$$
|\mathbb{Q}|=|\mathbb{N}|=\aleph_0.
$$

The encoding is a map into pairs of integers. It does not assert that rational numbers themselves are a subset of $\mathbb{N}$.

### Exercise on enumeration

The following exercise makes the diagonal enumeration of a countable union explicit.

### Exercise 1.1.6

Let $A_n$ be a set such that $|A_n|=\aleph_0$ for $n=1,2,\ldots$. Prove $|A|=\aleph_0$ where

$$
A=\bigcup_{n=1}^{\infty} A_n.
$$

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:countable-union)

## 1.2 Rational gaps and irrational numbers

<span class="smallcaps">Counting is only one part of the story.</span> The rational numbers are closed under the usual arithmetic operations, with division by zero excluded. Yet even a simple geometric construction leads outside $\mathbb{Q}$. The right triangle in [Figure 1.7](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:unit-triangle) has legs of length one, so its hypotenuse has square equal to two.

[![A unit right triangle produces the length \\sqrt\{2\}.](https://xyzmaths.org/notes/maths-analysis/figures/unit-triangle.svg)](https://xyzmaths.org/notes/maths-analysis/figures/unit-triangle.svg "Open original SVG")

Figure 1.7. A unit right triangle produces the length $\sqrt{2}$.

**Proposition 1.2.1.** The number $\sqrt{2}$ is irrational.

*Proof.* Suppose $\sqrt{2}=p/q$, where $p,q\in\mathbb{N}$ have no common factor. Then $p^2=2q^2$, so $p^2$ is even. An odd integer has an odd square, hence $p=2r$ for some integer $r$. Substitution gives $q^2=2r^2$, so $q$ is even as well. This contradicts the choice of $p$ and $q$. ◻

The parity argument above is a special case of a general fact about prime divisors. We write $d\mid m$ when $m=dk$ for some integer $k$. A prime is an integer $p>1$ whose only positive divisors are $1$ and $p$.

**Lemma 1.2.2 (Euclid’s lemma on prime divisors).** Let $p$ be prime and let $a,b\in\mathbb{Z}$. If $p$ divides a product $ab$, then it divides at least one factor.

$$
p\mid ab\quad\Longrightarrow\quad
    p\mid a\quad\text{or}\quad p\mid b.
$$

In particular, $p\mid a^2$ implies $p\mid a$, since $a^2=a\cdot a$.

[^3]

[^3]: Euclid states this result in Book VII, Proposition 30 of the *Elements* ([Euclid n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-EuclidElementsVII30)). His word “measures” means “divides.” His proof uses coprimality and ratios of whole numbers, showing how ancient arithmetic already isolated this decisive property of primes.

*Proof.* Suppose $p\nmid a$. By well-ordering, there is a least positive integer $d$ of the form $ua+vp$, with $u,v\in\mathbb{Z}$. Such positive integers exist because $p$ is one of them.

Divide $a$ by $d$ with remainder, writing $a=qd+r$ with $0\le r<d$. The remainder $r=a-qd$ is another integer combination of $a$ and $p$. If $r>0$, it contradicts the minimality of $d$. Thus $r=0$ and $d\mid a$. The same argument applied to division of $p$ by $d$ gives $d\mid p$.

Since $p$ is prime, $d$ is either $1$ or $p$. The second possibility would give $p\mid a$, contrary to our assumption. Hence $d=1$, so there are integers $u,v$ with $ua+vp=1$. Multiplying by $b$ gives

$$
b=uab+vpb.
$$

Both terms on the right are divisible by $p$, since $p\mid ab$. Therefore $p\mid b$, as required. ◻

Repeated application gives the consequence used in the root arguments, [^4]

$$
p\mid a^k\quad\Longrightarrow\quad p\mid a
  \qquad(k\in\mathbb{N}).
$$

Consequently, coprime integers have coprime positive powers. To see this, every integer $d>1$ has a prime divisor, since its least divisor greater than $1$ must be prime. Otherwise a proper factor would be a smaller divisor greater than $1$. A common divisor $d>1$ of two powers would therefore supply a prime dividing both bases, contradicting coprimality.

[^4]: The lemma is the key to uniqueness of prime factorisation. A prime in one factorisation must divide a prime in any other, so the two primes are equal. Cancel and repeat to match all the factors. In [§ 1.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:roots-and-powers), the same principle detects prime divisors hidden inside powers, forcing the common-factor contradiction in irrationality proofs.

The prime hypothesis matters. For example, $6\mid2\cdot3$, although $6\nmid2$ and $6\nmid3$.

The same divisibility argument extends to other primes and higher roots. We take up that exercise in [§ 1.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:roots-and-powers), after establishing existence of the roots themselves.

### A gap in the rational line

We can describe the location of $\sqrt{2}$ without naming a rational number at that location. Partition $\mathbb{Q}$ into

$$
\begin{aligned}
  L&=\{q\in\mathbb{Q}\mid q\leq0\text{ or }q^2<2\},\\
  U&=\{q\in\mathbb{Q}\mid q>0\text{ and }q^2>2\}.
\end{aligned}
$$

Both sets are nonempty, every rational belongs to one of them, and every element of $L$ is less than every element of $U$. There is no rational boundary between them. Indeed, if a rational boundary $c$ satisfied $c^2<2$, a sufficiently small positive rational increment would leave its square below two, contradicting its being a boundary. If $c^2>2$, a sufficiently small rational decrement gives the opposite contradiction. The case $c^2=2$ has just been ruled out. Here a boundary must be positive, since $1\in L$. The small increments can be checked directly from $(c+h)^2=c^2+2ch+h^2$.

[^5]

[^5]: Richard Dedekind traced his cuts to teaching calculus in Zürich in 1858. He wanted an arithmetic account of continuity rather than an appeal to a geometric line. His 1872 preface also acknowledges related work by Heine and Cantor ([Dedekind 1872](https://xyzmaths.org/notes/maths-analysis/references/#ref-Dedekind1872), Preface; §§ 3–5). This construction supplies the real-number foundation needed for limits. See [Figure 1.8](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:dedekind).

![Richard Dedekind](https://xyzmaths.org/notes/maths-analysis/figures/dedekind.jpg)

Figure 1.8. Richard Dedekind. ([MacTutor History of Mathematics n.d.y](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitDedekind); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits))

This is the idea behind a *Dedekind cut*. Completing the rational line means supplying its missing boundaries. An equivalent approach supplies limits of rational Cauchy sequences. We will formulate both versions of completeness in [§ 1.6](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:supremum). [^6]

[^6]: The condition $q\leq0$ in $L$ is necessary. The sets defined only by $q^2<2$ and $q^2>2$ would put large negative rationals on the wrong side.

### Limits can reveal further gaps

The irrational number $e$ is obtained as a limit of rational factorial partial sums. This is a different source of a gap from the geometric example above. Its construction and irrationality proof appear in [§ 1.9](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:denseness), where monotone convergence and geometric-tail estimates are available. For now it motivates the question of which limits a number system contains.

## 1.3 Power sets and the size of the real line

The *power set* $\mathcal P(X)$ is the set of all subsets of $X$. For a finite set with $n$ elements, a subset is specified by deciding, independently for each element, whether to include it. Thus

$$
|\mathcal P(X)|=2^n=\sum_{k=0}^{n}\binom{n}{k}.
$$

The smallest case distinguishes the empty set from the set containing it.

### Exercise 1.3.1

List all the elements in the set $\mathcal{P}(\mathcal{P}(\varnothing))$ and verify the cardinality formula.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:power-set)

Cantor’s theorem extends the strict increase in size to every set. [^7]

[^7]: Cantor’s 1874 paper separated countable algebraic numbers from the uncountable real line. His later diagonal argument, in the volume dated 1891, gives the general obstruction behind the power-set theorem ([Cantor 1874](https://xyzmaths.org/notes/maths-analysis/references/#ref-Cantor1874), [1891](https://xyzmaths.org/notes/maths-analysis/references/#ref-Cantor1891)). This changed infinity from a single size into a subject of comparison and founded transfinite set theory.

**Theorem 1.3.2 (Cantor).** There is no surjection from $X$ onto $\mathcal P(X)$.

*Proof.* Let $\varphi:X\to\mathcal P(X)$ be any map, and form

$$
D=\{x\in X\mid x\notin\varphi(x)\}.
$$

If $D=\varphi(d)$ for some $d\in X$, then the definition gives $d\in D$ if and only if $d\notin D$. This is impossible, so $D$ is missing from the image of $\varphi$. ◻

The map $x\mapsto\{x\}$ is injective, so the theorem is expressed as $|X|<|\mathcal P(X)|$. In particular, $\mathcal P(\mathbb{N})$ is uncountable.

**Theorem 1.3.3 (Cantor–Bernstein).** [^8] If there are injections $A\to B$ and $B\to A$, then there is a bijection $A\to B$.

[^8]: Also called the *Cantor–Schröder–Bernstein theorem*. Injections both ways give a perfect pairing. They need not be inverses.

[^9]

[^9]: Cantor posed the comparison problem. Bernstein supplied a correct proof in 1897, published by Borel in 1898. Schröder’s published argument contained a gap. Dedekind had an earlier, unpublished proof in 1887 ([O’Connor and Robertson 2008](https://xyzmaths.org/notes/maths-analysis/references/#ref-MacTutorBernstein); [Sieg 2019](https://xyzmaths.org/notes/maths-analysis/references/#ref-Sieg2019CantorBernstein)). The theorem makes two injections sufficient for comparing infinite sizes. The names record different contributions, rather than a joint paper. See [Figure 1.9](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:cantor-bernstein) and [Figure 1.10](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:schroder).

![Georg Cantor](https://xyzmaths.org/notes/maths-analysis/figures/cantor.jpg) ![Felix Bernstein](https://xyzmaths.org/notes/maths-analysis/figures/bernstein-felix.jpg)

Figure 1.9. Georg Cantor (left) and Felix Bernstein (right). Portrait sources ([MacTutor History of Mathematics n.d.k](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitCantor), [n.d.i](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitBernsteinFelix); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits)).

![Ernst Schröder](https://xyzmaths.org/notes/maths-analysis/figures/schroder.jpg)

Figure 1.10. Ernst Schröder. ([MacTutor History of Mathematics n.d.h](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitSchroder); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits))

*Proof.* Let $f:A\to B$ and $g:B\to A$ be injections. Start with the points of $A$ that have no preimage under $g$, and repeatedly apply $g\circ f$. More precisely, define

$$
A_0=A\setminus g(B),\qquad A_{n+1}=g(f(A_n))\quad(n\ge0),
    \qquad U=\bigcup_{n=0}^{\infty}A_n.
$$

We use $f$ on $U$ and reverse $g$ on the remaining points. Define

$$
h(a)=
    \begin{cases}
      f(a),&a\in U,\\
      g^{-1}(a),&a\in A\setminus U.
    \end{cases}
$$

Here $g^{-1}$ is the inverse from $g(B)$ to $B$. This branch is well-defined because $A_0\subseteq U$, so every point outside $U$ belongs to $g(B)$.

Each branch is injective. Their images are disjoint as well. Indeed, if $a\in U$, $a'\notin U$, and $f(a)=g^{-1}(a')$, then $a'=g(f(a))$. Some $A_n$ contains $a$, so $a'\in A_{n+1}\subseteq U$, a contradiction. Thus $h$ is injective.

To prove surjectivity, let $b\in B$. If $g(b)\notin U$, then $h(g(b))=b$. Otherwise, $g(b)\in U$ but $g(b)\notin A_0$, so $g(b)\in A_{n+1}$ for some $n\ge0$. Hence $g(b)=g(f(a))$ for some $a\in A_n$. Injectivity of $g$ gives $b=f(a)=h(a)$. Every point of $B$ is therefore reached, and $h$ is a bijection. ◻

### Digits as subsets

For these counting arguments, we use the usual positional representation of real numbers as background. We state precisely the representation facts needed before using them.

**Theorem 1.3.4 (Positional representation).** Let $b\geq2$ be an integer. Every digit string with digits in $\{0,\ldots,b-1\}$ represents a number in $[0,1]$, and every number in $[0,1]$ has such a representation. Two distinct strings represent the same number only when a terminating expansion is replaced by one ending in repeated digits $b-1$. In $[0,1)$, choosing the expansion that is not eventually all $b-1$ makes the digits unique. The tail after position $j$ is at most $b^{-j}$, attained by taking every later digit to be $b-1$.

The endpoint $1$ is represented by $0.(b-1)(b-1)\ldots$. We justify these familiar representation facts from completeness in [§ 1.9](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:denseness). Their statement is enough for the digit constructions in this section.

Decimal notation is a sum of place values. For example,

$$
\pi=3+\frac{1}{10}+\frac{4}{10^2}+\frac{1}{10^3}+\cdots.
$$

More generally, a base-$b$ expansion of a number in $[0,1]$ has the form

$$
x=\sum_{k=1}^{\infty}\frac{a_k}{b^k},
  \qquad a_k\in\{0,1,\ldots,b-1\},\quad b\geq2.
$$

Successively subdividing an interval into $b$ equal parts supplies these digits. The remaining interval has length $b^{-n}$ after $n$ steps.

A binary sequence $(b_1,b_2,\ldots)$ records a subset of $\mathbb{N}$ by putting $n$ in the subset exactly when $b_n=1$. Thus

$$
|\{0,1\}^{\mathbb{N}}|=|\mathcal P(\mathbb{N})|=2^{|\mathbb{N}|}=2^{\aleph_0}.
$$

Here $\{0,1\}^{\mathbb{N}}$ denotes all infinite sequences of zeros and ones.

**Proposition 1.3.5.** The unit interval has cardinality

$$
|[0,1]|=2^{|\mathbb{N}|}=2^{\aleph_0}.
$$

*Proof.* Fix $x\in[0,1]$. Bisect $I_0=[0,1]$, recording $0$ if we keep its left half and $1$ if we keep its right half. At each stage keep a half containing $x$ and repeat. When $x$ is the shared midpoint, choose the right half. This makes the choice unique. After $n$ halvings, the chosen interval $I_n$ has length

$$
\operatorname{length}(I_n)
      =\underbrace{\frac12\cdot\frac12\cdots\frac12}_{n\text{ factors}}
      =\frac1{2^n},
$$

and $x$ has been assigned an infinite binary sequence $(b_1,b_2,\ldots)$. [Figure 1.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:binary-interval-halving) shows one such sequence of choices.

[![A schematic point x remains in each chosen closed interval. Recording left as 0 and right as 1 gives the prefix 0111. The intervals continue to shrink. The displayed rows are not a final interval.](https://xyzmaths.org/notes/maths-analysis/figures/binary-interval-halving.svg)](https://xyzmaths.org/notes/maths-analysis/figures/binary-interval-halving.svg "Open original SVG")

Figure 1.11. A schematic point $x$ remains in each chosen closed interval. Recording left as $0$ and right as $1$ gives the prefix $0111$. The intervals continue to shrink. The displayed rows are not a final interval.

Suppose that $x<y$ were assigned the same sequence. Both would then lie in the same interval $I_n$ for every $n$. Since $y-x>0$, choose $n$ so large that $2^{-n}<y-x$. An interval of length $2^{-n}$ cannot contain both points, a contradiction. Hence the encoding is injective, and $|[0,1]|\le2^{|\mathbb{N}|}$.

To prove the reverse inequality, first consider reading an arbitrary binary sequence as a number

$$
(b_1,b_2,\ldots)\longmapsto
    0.b_1b_2\ldots{}_2=\sum_{n=1}^{\infty}\frac{b_n}{2^n}.
$$

The evaluation exists by [Theorem 1.3.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:positional-representation). For example, $0.1011\ldots{}_2=1/2+1/8+1/16+\cdots$. This map need not be injective, since

$$
0.0111\ldots{}_2
      =\frac14+\frac18+\frac1{16}+\cdots
      =\frac{1/4}{1-1/2}=\frac12
      =0.1000\ldots{}_2.
$$

Also $0.1111\ldots{}_2=1/2+1/4+1/8+\cdots=1$. Thus different binary sequences can represent the same real number.

Geometrically, the closed halves touch at their common midpoint. The intervals with prefixes $0,01,011,\ldots$ and $1,10,100,\ldots$ shrink onto $1/2$ from opposite sides. Each path determines one point, but two different paths can determine the same point. Choosing one code for each real number makes the earlier encoding injective. It does not make evaluation of *all* binary sequences injective.

Instead, use ternary digits $0$ and $2$ to encode a subset $A\subseteq\mathbb{N}$ by

$$
t_A=\sum_{k\in A}\frac{2}{3^k}\in[0,1].
$$

To see why this helps, divide $[0,1]$ into thirds, remove the *open* middle third, and retain the two closed outer thirds. Repeat this operation inside every interval retained. Let $E_n$ denote the union of the intervals remaining after $n$ steps, so

$$
E_0=[0,1],\qquad
    E_1=[0,1/3]\cup[2/3,1].
$$

[Figure 1.12](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:separated-interval-codes) shows the first stages of this construction. The gaps separate the retained intervals at every stage.

[![Remove the open middle third of every remaining interval. Filled endpoints stay in the set, while gaps separate the two choices. Record the left choice as 0 and the right as 2 at every stage. The construction continues indefinitely.](https://xyzmaths.org/notes/maths-analysis/figures/separated-interval-codes.svg)](https://xyzmaths.org/notes/maths-analysis/figures/separated-interval-codes.svg "Open original SVG")

Figure 1.12. Remove the open middle third of every remaining interval. Filled endpoints stay in the set, while gaps separate the two choices. Record the left choice as $0$ and the right as $2$ at every stage. The construction continues indefinitely.

A left choice records the ternary digit $0$ and a right choice the digit $2$. Now different children are separated by a gap rather than sharing a boundary.

The corresponding expansions are separated more widely. In particular,

$$
\begin{aligned}
    0.2000\ldots{}_3&=\frac23,\\
    0.0222\ldots{}_3
      &=\frac2{3^2}+\frac2{3^3}+\cdots\\
      &=\frac29\left(1+\frac13+\frac1{3^2}+\cdots\right)
        =\frac29\,\frac1{1-1/3}=\frac13.
  
\end{aligned}
$$

More generally, the largest possible tail after position $j$ is

$$
\sum_{k=j+1}^{\infty}\frac2{3^k}
      =\frac2{3^{j+1}}\,\frac1{1-1/3}=\frac1{3^j}.
$$

If $A$ and $B$ first differ at position $j$, their contribution there differs by $2/3^j$, which is larger than this entire tail.

Even if every later digit opposes that difference, it follows that

$$
|t_A-t_B|\ge\frac2{3^j}-\frac1{3^j}
      =\frac1{3^j}>0.
$$

Thus $A\mapsto t_A$ is injective, and $2^{|\mathbb{N}|}\le|[0,1]|$.

The Cantor–Bernstein theorem now gives $|[0,1]|=2^{|\mathbb{N}|}$. ◻

The points that survive every removal form the *middle-thirds Cantor set*, denoted here by $\mathcal K$. [^10]

[^10]: Georg Cantor described this set in 1883 ([Cantor 1883](https://xyzmaths.org/notes/maths-analysis/references/#ref-Cantor1883PointSets)). Related constructions had appeared in Henry J. S. Smith’s 1875 work on integration ([Smith 1875](https://xyzmaths.org/notes/maths-analysis/references/#ref-Smith1875)). See [Figure 1.13](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:smith).

![Henry John Stephen Smith](https://xyzmaths.org/notes/maths-analysis/figures/smith.jpg)

Figure 1.13. Henry John Stephen Smith. ([MacTutor History of Mathematics n.d.n](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitSmith); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits))

In terms of the retained stages,

$$
\mathcal K=\bigcap_{n=0}^{\infty}E_n.
$$

At each step, a surviving point lies in exactly one of the two separated children, so its choices give a ternary expansion using only $0$ and $2$. Conversely, every such expansion remains in its chosen interval at every stage. The strict tail estimate above shows that this restricted code is unique. A point may also have an expansion using $1$. For example, $1/3=0.0222\ldots{}_3=0.1000\ldots{}_3$ still belongs to $\mathcal K$.

Thus all binary sequences are represented once in $\mathcal K$, giving

$$
|\mathcal K|=2^{\aleph_0}=|[0,1]|.
$$

[^11] The gaps preserve distinct codes while still leaving as many points as the whole interval.

[^11]: After $n$ steps there are $2^n$ intervals of length $3^{-n}$, with total length $(2/3)^n\to0$. Yet their common surviving set has continuum cardinality. Counting points and measuring length are different notions of size.

### From the unit interval to the real line

For the next explicit map, we use the usual strict monotonicity of the exponential and its inverse relation with the natural logarithm as elementary background.

**Example 1.3.6 (The sigmoid bijection).** Consider

$$
\sigma:\mathbb{R}\longrightarrow(0,1),\qquad
    \sigma(x)=\frac1{1+e^{-x}}.
$$

[![ The sigmoid \\sigma(x)=1/(1+e^\{-x\}) passes through (0,1/2) and approaches 0 and 1 without attaining either value.](https://xyzmaths.org/notes/maths-analysis/figures/cardinality-sigmoid.svg)](https://xyzmaths.org/notes/maths-analysis/figures/cardinality-sigmoid.svg "Open original SVG")

Figure 1.14. The sigmoid $\sigma(x)=1/(1+e^{-x})$ passes through $(0,1/2)$ and approaches $0$ and $1$ without attaining either value.

The function is strictly increasing and therefore injective. Indeed, if $x_1<x_2$, then $e^{-x_1}>e^{-x_2}>0$, so $1/(1+e^{-x_1})<1/(1+e^{-x_2})$. Its shape is shown in [Figure 1.14](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:cardinality-sigmoid).

For surjectivity, let $0<y<1$ and solve

$$
\begin{aligned}
    y=\frac1{1+e^{-x}}
      &\ \Longleftrightarrow\ e^{-x}=\frac1y-1\\
      &\ \Longleftrightarrow\ x=-\ln\left(\frac1y-1\right).
  
\end{aligned}
$$

Since $0<y<1$, the number $1/y-1$ is positive, so this is a real preimage of $y$. Hence $\sigma$ is bijective and $|\mathbb{R}|=|(0,1)|$.

The next exercise asks for a bijection in the opposite direction. Inverting $\sigma$ gives one construction. Another uses the elementary fact that $\tan$ maps $(-\pi/2,\pi/2)$ bijectively onto $\mathbb{R}$, with inverse $\arctan$.

### Exercise 1.3.7

Obtain a bijective map from $(0,1)$ to $\mathbb{R}$.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:interval-to-reals)

**Example 1.3.8 (Freeing two places in an interval).** Consider the sequence $1/2,1/3,1/4,\ldots$ in $(0,1)$. Sending each $1/n$ to $1/(n+2)$ shifts the sequence and frees the places $1/2$ and $1/3$. Put the two endpoints there and leave all other points fixed. [Figure 1.15](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:endpoint-shift) shows the two infinite chains that make this shift possible.

Explicitly, define $h:[0,1]\to(0,1)$ by

$$
h(x)=
    \begin{cases}
      1/2,&x=0,\\
      1/3,&x=1,\\
      1/(n+2),&x=1/n,\quad n\ge2,\\
      x,&\text{otherwise}.
    \end{cases}
$$

[![Each arrow applies h. Shifting the even- and odd-denominator chains makes room for 0 and 1 at 1/2 and 1/3. Every other interior point stays fixed.](https://xyzmaths.org/notes/maths-analysis/figures/endpoint-shift.svg)](https://xyzmaths.org/notes/maths-analysis/figures/endpoint-shift.svg "Open original SVG")

Figure 1.15. Each arrow applies $h$. Shifting the even- and odd-denominator chains makes room for $0$ and $1$ at $1/2$ and $1/3$. Every other interior point stays fixed.

The endpoints and the points $1/n$ for $n\ge2$ map bijectively onto the reciprocal sequence. Every other point of $(0,1)$ is fixed and lies outside that sequence. These two parts have disjoint images and exhaust the target.

Thus $h$ is bijective and $|[0,1]|=|(0,1)|$.

Reversing the construction in [Example 1.3.8](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#ex:analysis-i:endpoint-shift) gives the bijection requested next.

### Exercise 1.3.9

Obtain a bijective map from $(0,1)$ to $[0,1]$.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:open-to-closed-interval)

Combining $|\mathbb{R}|=|(0,1)|$ and $|(0,1)|=|[0,1]|$ with [Proposition 1.3.5](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:binary-interval-cardinality) gives

$$
|\mathbb{R}|=|[0,1]|=2^{|\mathbb{N}|}=2^{\aleph_0}=:\mathfrak c.
$$

There is also an algebraic comparison that avoids the exponential and logarithm. The function $x\mapsto\tfrac12(1+x/(1+|x|))$ injects $\mathbb{R}$ into $(0,1)$. To see injectivity, $x/(1+|x|)$ is strictly increasing on each side of zero by cross multiplication, and has the sign of $x$. Together with the inclusion $[0,1]\subseteq\mathbb{R}$, Cantor–Bernstein gives the same comparison $|\mathbb{R}|=|[0,1]|$. [^12]

[^12]: The *continuum hypothesis* is the additional assertion that there is no cardinality strictly between $\aleph_0$ and $\mathfrak c$. The identity $|\mathbb{R}|=2^{\aleph_0}$ does not assume that hypothesis.

### From an interval to a square

The next exercise extends the digit-encoding idea to a pair of points.

Here $\aleph$ denotes $|\mathbb{R}|=\mathfrak c$. For the square, use the unique decimal expansions from [Theorem 1.3.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:positional-representation) and injections in both directions. None of these exercises requires a continuity proof.

### Exercise 1.3.10

Show that

$$
|(0,1)\times(0,1)|=|(0,1)|=\aleph.
$$

(*Corrected hint.* For each number in $(0,1)$, choose the decimal expansion that is not eventually all $9$s. We can then write

$$
x\in(0,1),\quad x=0.x_1x_2\cdots,\quad
    x_i\in\{0,\ldots,9\},\quad i=1,2,\ldots.
$$

Then define a map from $(0,1)\times(0,1)$ to $(0,1)$ by

$$
(x,y)=(0.x_1x_2\cdots,0.y_1y_2\cdots)
    \mapsto (0.x_1y_1x_2y_2\ldots)=z\in(0,1).
$$

Show that this map is injective, then use injections in both directions.)

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:square-cardinality)

### Algebraic and transcendental numbers

[^13] A polynomial is a finite sum $a_0+a_1X+\cdots+a_mX^m$. If $a_m\ne0$, its degree is $m$. A real number is *algebraic* if it is a root of a nonzero polynomial with rational coefficients. It is *transcendental* otherwise. [^14] For instance, $\sqrt{2}$ is algebraic because it satisfies $x^2-2=0$. Rational numbers are algebraic as well, since $p/q$ satisfies $qx-p=0$. Clearing denominators shows that rational and integer coefficients give the same notion of algebraicity. 

[^13]: Cantor sent Dedekind a proposed uncountability argument on 7 December 1873 ([Cantor 1873](https://xyzmaths.org/notes/maths-analysis/references/#ref-CantorDedekind1873)). The 1874 paper then contrasts the algebraic numbers with the real continuum  ([Cantor 1874](https://xyzmaths.org/notes/maths-analysis/references/#ref-Cantor1874)). The correspondence documents an exchange of ideas. It should be distinguished from a joint publication. The result proves the existence of transcendental numbers by counting.

[^14]: [§ 1.12](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:number-systems) brings these sets together in a nesting diagram and compares their sizes with the natural, rational, real, and complex numbers.

The elementary root bound follows from the identity $X^j-r^j=(X-r)(X^{j-1}+X^{j-2}r+\cdots+r^{j-1})$ for $j\geq1$. If $p(r)=0$, apply this identity to $p(X)-p(r)$ to factor $p(X)=(X-r)q(X)$, where $q$ has degree one less. Induction then shows that a nonzero degree-$m$ polynomial has at most $m$ distinct real roots.

**Proposition 1.3.11.** The set $\mathcal A$ of real algebraic numbers is countably infinite. The set $\mathcal T=\mathbb{R}\setminus\mathcal A$ has cardinality $\mathfrak c$.

*Proof.* For each $m\geq1$, polynomials of degree $m$ with rational coefficients are encoded by a subset of $\mathbb{Q}^{m+1}$, which is countable by repeated products of countable sets. Each nonzero degree-$m$ polynomial has at most $m$ real roots. Its factorization by $x-r$ at a root, followed by induction on the degree, proves this bound. Thus the set of roots of all such polynomials is countable. Taking the union over $m$ shows that $\mathcal A$ is countable. It is infinite because it contains $\mathbb{Q}$.

If $\mathcal T$ were countable, then $\mathbb{R}=\mathcal A\cup\mathcal T$ would be countable, contrary to Cantor’s theorem. Choose distinct $t_1,t_2,\ldots\in\mathcal T$, and enumerate $\mathcal A=\{a_1,a_2,\ldots\}$ without repetition. Map $a_n$ to $t_{2n}$ and $t_n$ to $t_{2n-1}$, and leave every other transcendental number fixed. This is a bijection from $\mathbb{R}$ to $\mathcal T$, proving the cardinality assertion. ◻

Counting proves that transcendental numbers exist, without identifying a particular one. Specific examples include $e$, $\pi$, and the Liouville number

$$
\ell=\sum_{n=1}^{\infty}10^{-n!}.
$$

Their transcendence is stated here without proof. Including the $n=0$ term gives $\ell+1/10$, which is transcendental as well. These stronger results belong to transcendental number theory ([Waldschmidt 2017](https://xyzmaths.org/notes/maths-analysis/references/#ref-Waldschmidt2017)). The elementary factorial argument in [§ 1.9](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:denseness) will establish only the irrationality of $e$.

### Exercises on transcendence

The first exercise asks for the cardinality conclusion under CH, although the argument above establishes it without that additional hypothesis. The second applies the definition of transcendence to linear independence.

### Exercise 1.3.12

Let $\aleph_0$ and $\aleph$ denote the cardinalities of $\mathbb{N}$ and $\mathbb{R}$ respectively. Recall that the Continuum Hypothesis (CH) states that there is no cardinality between $\aleph_0$ and $\aleph$. Use CH to prove that the set of transcendental numbers, $\mathbb{T}$, has the same cardinality $\aleph$ as that of $\mathbb{R}$.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:transcendental-cardinality)

### Exercise 1.3.13

Let $\tau$ be a transcendental number whose existence is proven already. Show that for any $n\in\mathbb{N}$, the numbers

$$
\tau,\ldots,\tau^n
$$

are linearly independent over the field $\mathbb{Q}$.

That is, if there are $r_1,\ldots,r_n\in\mathbb{Q}$ such that

$$
r_1\tau+\cdots+r_n\tau^n=0,
$$

then $r_1=\cdots=r_n=0$.

(In the language of Linear Algebra, this result indicates that the set $\mathbb{R}$ viewed as a vector space over $\mathbb{Q}$ is infinitely dimensional.)

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:linear-independence)

One further algebraic fact will be useful for the recurrences that follow. By [Lemma 1.2.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:euclid-prime-divisors), a prime dividing a product of integers divides at least one factor. In particular, coprime integers have coprime powers. If a rational number $u/v$ in lowest terms is a root of a monic integer polynomial, multiplying its equation by $v^m$ shows that $v$ divides $u^m$. Since $u$ and $v$ are coprime, $v=1$. Thus such a rational root is an integer, and its equation shows that it divides the constant term. This is the monic case of the rational root theorem.

### The Jacobian conjecture

This optional excursion connects bijections with later calculus. It supplies no prerequisite for the exercises above or the completeness arguments that follow. A map $F=(F_1,\ldots,F_d):\mathbb{C}^d\to\mathbb{C}^d$ is *polynomial* when each coordinate $F_i$ is a polynomial in $z_1,\ldots,z_d$. Its *Jacobian matrix* is the matrix of first derivatives,

$$
\mathrm DF(z)=
  \left(\frac{\partial F_i}{\partial z_j}(z)\right)_{1\leq i,j\leq d}.
$$

**Conjecture (Jacobian).** If a polynomial map $F:\mathbb{C}^d\to\mathbb{C}^d$ satisfies $\det\mathrm DF(z)=c$ for every $z\in\mathbb{C}^d$, where $c\ne0$ is constant, then it has a polynomial inverse. That is, there is a polynomial map $G:\mathbb{C}^d\to\mathbb{C}^d$ such that

$$
G\circ F=F\circ G=\operatorname{id}_{\mathbb{C}^d}.
$$

This is the classical formulation ([Goursac, Sportiello, and Tanasa 2016](https://xyzmaths.org/notes/maths-analysis/references/#ref-deGoursac2016)).

The determinant condition makes the linear approximation invertible at every point. The inverse function theorem, a result from later differential calculus, gives $F$ an inverse on a neighborhood of each point. The conjecture asks for one inverse on all of $\mathbb{C}^d$, with polynomial coordinates.

[Figure 1.16](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:jacobian-shear) illustrates a simple case, $F(x,y)=(x+y^2,y)$, on the real plane inside $\mathbb{C}^2$. Here

$$
\mathrm DF(x,y)=\begin{pmatrix}1&2y\\0&1\end{pmatrix},
  \qquad \det\mathrm DF(x,y)=1.
$$

The inverse $G(u,v)=(u-v^2,v)$ keeps the second coordinate and undoes the horizontal shift. This supplies a polynomial inverse for this particular map. The example illustrates the classical conjecture’s conclusion without establishing a general result ([Goursac, Sportiello, and Tanasa 2016](https://xyzmaths.org/notes/maths-analysis/references/#ref-deGoursac2016)).

[![A real slice of the polynomial shear F(x,y)=(x+y^2,y). Horizontal grid segments stay horizontal. Vertical ones become parabolic arcs. The inverse subtracts v^2 from the first coordinate. This example has a global polynomial inverse.](https://xyzmaths.org/notes/maths-analysis/figures/jacobian-shear.svg)](https://xyzmaths.org/notes/maths-analysis/figures/jacobian-shear.svg "Open original SVG")

Figure 1.16. A real slice of the polynomial shear $F(x,y)=(x+y^2,y)$. Horizontal grid segments stay horizontal. Vertical ones become parabolic arcs. The inverse subtracts $v^2$ from the first coordinate. This example has a global polynomial inverse.

<span class="smallcaps">Motivation.</span> Earlier we studied injectivity and surjectivity. A global inverse requires both. The Jacobian determinant tests behavior near each point, so the conjecture connects those global questions with local differential calculus. Requiring the inverse to be polynomial adds an algebraic constraint. It illustrates why the precise hypotheses of a theorem matter, just as existence by counting does not identify a particular transcendental number. None of the arguments here depends on its resolution.

## 1.4 Convergence and iteration

<span class="smallcaps">A sequence may approach a number that its terms never reach.</span> This is why a field containing all the rational numbers can still be missing limits. We now make the meaning of “approach” precise.

### Distance and the triangle inequality

For a real number $x$, define

$$
|x|=\begin{cases}
    x,&x\geq0,\\
    -x,&x<0.
  \end{cases}
$$

[![The graph of y=\|x\| consists of the ray y=-x for x\\leq0 and the ray y=x for x\\geq0. Its vertex is the origin.](https://xyzmaths.org/notes/maths-analysis/figures/absolute-value.svg)](https://xyzmaths.org/notes/maths-analysis/figures/absolute-value.svg "Open original SVG")

Figure 1.17. The graph of $y=|x|$ consists of the ray $y=-x$ for $x\leq0$ and the ray $y=x$ for $x\geq0$. Its vertex is the origin.

[Figure 1.17](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:absolute-value) shows the graph of $y=|x|$. It measures distance from zero, so $|x-y|$ measures distance between $x$ and $y$. We have $|x|\geq0$, with equality exactly when $x=0$, and $-|x|\leq x\leq|x|$.

**Proposition 1.4.1.** For real $x,y$,

$$
|xy|=|x|\,|y|,\qquad |x+y|\leq|x|+|y|.
$$

*Proof.* If either factor is zero, the product identity is immediate. Otherwise, writing each factor as its sign times its positive absolute value shows that the absolute value of the product is $|x|\,|y|$. For the second assertion, add the inequalities $-|x|\leq x\leq|x|$ and $-|y|\leq y\leq|y|$ to obtain

$$
-(|x|+|y|)\leq x+y\leq |x|+|y|.
$$

The definition of absolute value now gives the triangle inequality. ◻

### Convergence and its elementary rules

**Definition 1.4.2.** A sequence $(x_n)$ of real numbers *converges* to $L\in\mathbb{R}$ if, for every $\varepsilon>0$, there exists $N\in\mathbb{N}$ such that

$$
n\geq N\quad\Longrightarrow\quad |x_n-L|<\varepsilon.
$$

We write $x_n\to L$ or $\lim_{n\to\infty}x_n=L$.

The index $N$ may depend on $\varepsilon$. After that index, every term lies in the $\varepsilon$-neighborhood $(L-\varepsilon,L+\varepsilon)$. For convergence *in $\mathbb{Q}$*, the limit must belong to $\mathbb{Q}$ as well. We will later construct rational sequences with irrational real limits.

We will use two elementary consequences of this definition. Limits are unique, since if $L\ne M$, the disjoint neighborhoods of radius $|L-M|/3$ cannot both contain all sufficiently late terms. Also, if $x_n\leq y_n$, $x_n\to x$, and $y_n\to y$, then $x\leq y$. Otherwise neighborhoods of radius $(x-y)/3$ contradict $x_n\leq y_n$.

We also need the basic rules for calculating a limit.

**Proposition 1.4.3.** If $x_n\to L$ and $y_n\to M$, then

$$
x_n+y_n\to L+M,\qquad x_ny_n\to LM.
$$

If $M\ne0$, then $y_n\ne0$ for all sufficiently large $n$, and $x_n/y_n\to L/M$ on that tail.

*Proof.* For the sum, the triangle inequality bounds the error by $|x_n-L|+|y_n-M|$. Make each term smaller than $\varepsilon/2$. For the product, convergence gives $|x_n|\leq|L|+1$ on a tail, and

$$
|x_ny_n-LM|
      \leq (|L|+1)|y_n-M|+|M|\,|x_n-L|.
$$

On a sufficiently late tail, the two errors are smaller than $\varepsilon/(2(|L|+1))$ and $\varepsilon/(2(|M|+1))$, respectively. The displayed bound is then smaller than $\varepsilon$.

If $M\ne0$, choose a tail with $|y_n-M|<|M|/2$. The triangle inequality gives $|y_n|>|M|/2>0$ there. Hence

$$
\left|\frac1{y_n}-\frac1M\right|
      =\frac{|y_n-M|}{|y_n|\,|M|}
      \leq\frac{2|y_n-M|}{|M|^2}\longrightarrow0.
$$

Apply the product rule to $x_n$ and $1/y_n$ to obtain the quotient rule. ◻

Changing or discarding finitely many terms does not affect a limit. In particular, $x_{n+1}\to L$ whenever $x_n\to L$. We will also use the *squeeze principle*. If $u_n\leq v_n\leq w_n$ and $u_n,w_n\to L$, then $v_n\to L$, because sufficiently late $u_n$ and $w_n$ both lie between $L-\varepsilon$ and $L+\varepsilon$.

### Newton’s idea

[^15]

[^15]: Newton’s 1669 manuscript approximates polynomial roots by successive corrections ([Newton 1669](https://xyzmaths.org/notes/maths-analysis/references/#ref-Newton1669)). Raphson made the calculation iterative in 1690 ([Raphson 1690](https://xyzmaths.org/notes/maths-analysis/references/#ref-Raphson1690)). Simpson presented the general derivative formulation in 1740 ([Simpson 1740](https://xyzmaths.org/notes/maths-analysis/references/#ref-Simpson1740); [Kollerstrom 1992](https://xyzmaths.org/notes/maths-analysis/references/#ref-Kollerstrom1992)). Thus the modern Newton–Raphson method has several contributors. Its lasting role is numerical equation solving, including problems without a closed-form root. See [Figure 1.18](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:newton-simpson).

![Isaac Newton](https://xyzmaths.org/notes/maths-analysis/figures/newton.jpg) ![Thomas Simpson](https://xyzmaths.org/notes/maths-analysis/figures/simpson.jpg)

Figure 1.18. Isaac Newton (left) and Thomas Simpson (right). Portrait sources ([MacTutor History of Mathematics n.d.o](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitNewton), [n.d.aa](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitSimpson); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits)).

For the calculus motivation here, $f'(x)$ denotes the limiting slope $\lim_{h\to0}(f(x+h)-f(x))/h$. The two slopes needed in our examples follow from the identities

$$
\frac{(x+h)^2-x^2}{h}=2x+h,\qquad
  \frac{1/(x+h)-1/x}{h}=-\frac1{x(x+h)}.
$$

Thus $(x^2)'=2x$ and $(1/x)'=-1/x^2$ for $x\ne0$. These identities supply the tangent lines we use without requiring a general differentiation theory.

Suppose we want to solve $f(x)=0$. At a current approximation $x_n$ with $f'(x_n)\ne0$, replace the graph by its tangent line

$$
y=f(x_n)+f'(x_n)(x-x_n).
$$

Its horizontal intercept supplies the next approximation,

$$
x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}.\tag{1.1}
$$

[Figure 1.19](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:newton-square-root) illustrates one step. This is a motivation from calculus. A general convergence theorem for Newton’s method is not being assumed.

[![For f(x)=x^2-2, the tangent at x\_0=2 meets the axis at x\_1=3/2. The parabola is shown for x\\geq0.](https://xyzmaths.org/notes/maths-analysis/figures/newton-square-root.svg)](https://xyzmaths.org/notes/maths-analysis/figures/newton-square-root.svg "Open original SVG")

Figure 1.19. For $f(x)=x^2-2$, the tangent at $x_0=2$ meets the axis at $x_1=3/2$. The parabola is shown for $x\geq0$.

For $f(x)=x^2-a$, where $a>0$, [Equation 1.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#eq:analysis-i:newton) becomes

$$
x_{n+1}=\frac12\left(x_n+\frac{a}{x_n}\right).
$$

A positive limit $L$, if it exists, must satisfy $L^2=a$ by the limit laws. A fixed-point calculation alone does not establish that such a limit exists. We return to its convergence proof and the iteration exercises in [§ 1.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:roots-and-powers), after proving monotone convergence and constructing the required roots.

### What kind of limit can a recurrence produce?

Consider the recurrence

$$
x_{n+1}=a+\frac{1}{x_n},\qquad a\in\mathbb{N},\quad x_0>0.
$$

If this sequence converges, its limit is positive because $x_n>a$ for $n\geq1$. The limit therefore satisfies

$$
L^2-aL-1=0,\qquad L=\frac{a+\sqrt{a^2+4}}{2}.
$$

It is algebraic and irrational. Indeed, the rational root theorem would force a rational root of this monic polynomial to be an integer dividing $1$, and neither $1$ nor $-1$ is a root for $a\geq1$. Repeated substitution also suggests a continued fraction. This example identifies a possible limit. It does not by itself prove convergence.

Limits of rational sequences need not be algebraic. The factorial partial sums will give $e$ in [§ 1.9](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:denseness). Another example is Euler’s identity

$$
\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6},
$$

stated here without proof ([Waldschmidt 2017](https://xyzmaths.org/notes/maths-analysis/references/#ref-Waldschmidt2017)). [^16]

[^16]: Euler obtained this Basel-problem evaluation in 1735. The paper appeared in 1740 ([Euler 1740](https://xyzmaths.org/notes/maths-analysis/references/#ref-Euler1740Basel)). He compared the power series for sine with a product built from its zeros. This connected infinite sums, trigonometric functions, and what became zeta-function theory. The convergence proof and the exact evaluation are separate tasks. See [Figure 1.20](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:portrait:euler).

![Leonhard Euler](https://xyzmaths.org/notes/maths-analysis/figures/euler.jpg)

Figure 1.20. Leonhard Euler. ([MacTutor History of Mathematics n.d.v](https://xyzmaths.org/notes/maths-analysis/references/#ref-PortraitEuler); [Bookofproofs contributors, n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-BookofproofsPortraits))

The number $\pi^2/6$ is transcendental, since a nonzero rational polynomial vanishing there would, after substituting $X^2/6$, give a nonzero rational polynomial vanishing at $\pi$.

## 1.5 Fields and order

Before asking which limits exist, we separate the algebra from the order. A set acquires additional structure when operations are specified. A *group* is a set with an associative operation, an identity, and an inverse for each element. It is *abelian* when the operation commutes.

**Definition 1.5.1.** A *field* $K$ has two distinct elements $0$ and $1$, and operations of addition and multiplication, such that $(K,+)$ and $(K\setminus\{0\},\cdot)$ are abelian groups and multiplication distributes over addition.

These are structures on sets, rather than a literal containment chain of “sets inside groups inside fields.” The examples $\mathbb{Q}$ and $\mathbb{R}$ have their usual arithmetic operations.

The *characteristic* of a field is the least positive integer $n$ such that $n\cdot1=0$, if there is one, and is zero otherwise. Here $n\cdot1$ means adding $1$ to itself $n$ times.

**Proposition 1.5.2.** Every field of characteristic zero contains a unique smallest subfield, canonically isomorphic to $\mathbb{Q}$.

*Proof.* Send an integer $m$ to $m\cdot1$, with the usual interpretation for zero and negative integers. Characteristic zero makes this map injective. For $m\in\mathbb{Z}$ and $n\in\mathbb{N}$, define

$$
\iota(m/n)=(m\cdot1)(n\cdot1)^{-1}.
$$

The denominator is nonzero. If $m/n=p/q$, then $mq=np$, and the same equality holds after mapping the integers into $K$. Multiplying by the inverses of the denominators shows that the definition is independent of the fraction chosen. The reverse argument shows injectivity. The usual common-denominator and product calculations show that $\iota$ preserves addition and multiplication, so its image is a subfield. Any subfield of $K$ contains $1$, its integer multiples, their negatives, and the inverses of its nonzero elements. It therefore contains every $\iota(m/n)$, proving minimality and uniqueness. ◻

### Ordering the arithmetic

A partial order is a reflexive, antisymmetric, transitive relation $\leq$. It is a *total order* if any two elements are comparable. For example, coordinatewise order on $\mathbb{Q}^2$ is partial, but not total. The pairs $(0,1)$ and $(1,0)$ are incomparable. The usual order on $\mathbb{Q}$ is total.

**Definition 1.5.3.** An *ordered field* is a field with a total order satisfying

$$
a<b\ \Longrightarrow\ a+c<b+c,
    \qquad
    a<b,\ c>0\ \Longrightarrow\ ac<bc.
$$

Every nonzero square is positive, so $1>0$. Consequently every positive integer multiple of $1$ is positive, and an ordered field has characteristic zero. It therefore contains the rational subfield just constructed. The additional property distinguishing $\mathbb{R}$ from $\mathbb{Q}$ is completeness.

## 1.6 Supremum and completeness

**Definition 1.6.1.** A number $u$ is an *upper bound* of $S\subseteq\mathbb{R}$ if $s\leq u$ for all $s\in S$. The *supremum*, or least upper bound, is an upper bound $L$ such that $L\leq u$ for every upper bound $u$. We write $L=\sup S$. Lower bounds and the *infimum* $\inf S$ are defined with the inequalities reversed.

If a supremum belongs to $S$, it is the maximum of $S$. Membership is not required for a supremum. For example, $(0,1)$ has supremum $1$, but no maximum. Also, whenever the infimum exists, $\inf S=-\sup\{-s\mid s\in S\}$.

We take the following completeness property as part of the description of the real numbers.

**Property 1.6.2 (Least upper bound property (LUBP)).** Every nonempty subset of $\mathbb{R}$ that is bounded above has a supremum in $\mathbb{R}$.

For a nonempty bounded-above set $S$, the assertion $L=\sup S$ is equivalent to the following two requirements. First, every $s\in S$ satisfies $s\leq L$. Second, for every $\varepsilon>0$, there is an $s\in S$ with $L-\varepsilon<s$. The second requirement says that every number below $L$ fails to be an upper bound. 

The rational field does not have this property. The set

$$
S=\{q\in\mathbb{Q}\mid q\geq0,\ q^2<2\}
$$

is nonempty and bounded above, but has no rational supremum. Its supremum in $\mathbb{R}$ is $\sqrt{2}$. The gap argument in [§ 1.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:rational-gaps) excludes a rational boundary.

### An immediate consequence of LUBP

[^17] An ordered field is *Archimedean* if, for every $\varepsilon>0$ and every $M$, there is an $n\in\mathbb{N}$ with $n\varepsilon>M$. We establish this property before using it to shrink intervals.

[^17]: The name recalls the comparison of magnitudes used in ancient exhaustion arguments. Archimedes states a related assumption in *On the Sphere and Cylinder* ([Archimedes 1897](https://xyzmaths.org/notes/maths-analysis/references/#ref-ArchimedesHeath1897)). Here it becomes an ordered-field property, letting finite multiples exceed any prescribed bound. Its ancient geometric role should be distinguished from this modern real-number formulation.

**Theorem 1.6.3 (Archimedean property).** For every $\varepsilon>0$ and every $M\in\mathbb{R}$, there is an $n\in\mathbb{N}$ such that $n\varepsilon>M$.

*Proof.* Fix $\varepsilon>0$. Suppose $S=\{n\varepsilon\mid n\in\mathbb{N}\}$ were bounded above. By LUBP, it would have a supremum $L$. Since $L-\varepsilon<L$, there would be an $m\in\mathbb{N}$ with $m\varepsilon>L-\varepsilon$. It would follow that $(m+1)\varepsilon>L$, contradicting that $L$ bounds $S$. Thus $S$ is unbounded above, which proves the assertion. ◻

In particular, $\mathbb{N}$ is unbounded in $\mathbb{R}$. Given $\delta>0$, choose $N>1/\delta$. Then $1/n<\delta$ for every $n\geq N$, so $1/n\to0$. Induction gives $2^n\geq n+1$, and hence $2^{-n}\to0$ as well. For an integer $b\geq2$, the bound $0\leq b^{-n}\leq2^{-n}$ also gives $b^{-n}\to0$. These consequences require no later equivalence of completeness properties.

### Six forms of completeness

The following properties express completeness through order, sequences, or intervals. A sequence is *bounded* if all its terms lie between two fixed numbers. It is *monotone* if it is nondecreasing or nonincreasing. A *subsequence* $(x_{n_k})$ uses strictly increasing indices $n_1<n_2<\cdots$.

LUBP  
Every nonempty set bounded above has a least upper bound.

MCT  
Every bounded monotone sequence converges.

NIP  
Every nested sequence of nonempty closed bounded intervals $I_1\supseteq I_2\supseteq\cdots$ has nonempty intersection.

BWT  
Every bounded sequence has a convergent subsequence (the Bolzano–Weierstrass theorem).

CC  
Every Cauchy sequence converges. Here $(x_n)$ is *Cauchy* when, for every $\varepsilon>0$, there is an $N$ such that $|x_n-x_m|<\varepsilon$ whenever $m,n\geq N$. Both indices are chosen from the same tail. Equivalently, we may check only $m>n\geq N$, since exchanging the indices preserves the absolute difference and equal indices give zero.

DC  
Whenever the field is partitioned into nonempty sets $A,B$ with $a<b$ for every $a\in A$, $b\in B$, there is a boundary $c$ satisfying $a\leq c\leq b$ for all such $a,b$.

The last statement is the *Dedekind cut property*. Since $c$ belongs to one side of the partition, it is either the greatest element of $A$ or the least element of $B$. This is the precise sense in which there is no gap at the cut.

## 1.7 The completeness proof chain

The preceding section derives the Archimedean property directly from LUBP and proves $1/n\to0$ and $2^{-n}\to0$. Thus $\mathbb{R}$ has the Archimedean hypothesis needed for the shrinking intervals in this chain. In any Archimedean ordered field the same estimates hold.

**Theorem 1.7.1 (Completeness equivalences).** In an Archimedean ordered field, the six completeness properties in [§ 1.6](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:supremum) are equivalent.

We follow the cycle in [Figure 1.21](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:completeness-cycle). The final implication returns to LUBP and completes the equivalence. The Archimedean hypothesis ensures that the bisection lengths used below actually tend to zero.

[![The six implications. Order properties appear at the ends. The middle steps pass through sequences and nested intervals.](https://xyzmaths.org/notes/maths-analysis/figures/completeness-cycle.svg)](https://xyzmaths.org/notes/maths-analysis/figures/completeness-cycle.svg "Open original SVG")

Figure 1.21. The six implications. Order properties appear at the ends. The middle steps pass through sequences and nested intervals.

### LUBP implies MCT

*Proof.* Let $(x_n)$ be nondecreasing and bounded above, and set $L=\sup\{x_n\mid n\in\mathbb{N}\}$. For $\varepsilon>0$, the number $L-\varepsilon$ is not an upper bound. There is therefore an $N$ with $x_N>L-\varepsilon$. For $n\geq N$, monotonicity gives

$$
L-\varepsilon<x_N\leq x_n\leq L<L+\varepsilon.
$$

Thus $x_n\to L$. Applying this argument to $(-x_n)$ proves convergence of every nonincreasing sequence bounded below. ◻

### MCT implies NIP

*Proof.* Write the nested intervals as $I_n=[a_n,b_n]$. Their endpoints satisfy

$$
a_1\leq a_n\leq a_{n+1}\leq b_{n+1}\leq b_n\leq b_1.
$$

By MCT, $a_n\to a$ and $b_n\to b$. Passing to limits gives $a\leq b$. For fixed $n$, all later endpoints lie in $[a_n,b_n]$, so $a_n\leq a\leq b\leq b_n$. Hence $[a,b]$ is contained in every $I_n$. Conversely, if $x\in I_n$ for all $n$, passage to the limit in $a_n\leq x\leq b_n$ gives $a\leq x\leq b$. Therefore

$$
\bigcap_{n=1}^{\infty}I_n=[a,b]\ne\varnothing.
$$

 ◻

The intersection need not be a single point. If additionally $b_n-a_n\to0$, then $a=b$ and the intersection is a singleton.

### NIP implies BWT

*Proof.* Let $(x_n)$ be bounded, with every term in a closed interval $I_1$ of positive length $\ell$. Bisect $I_1$. At least one closed half contains $x_n$ for infinitely many indices $n$. Choose such a half as $I_2$, and repeat. This constructs nested closed intervals $I_k$ of lengths $\ell/2^{k-1}$, each containing infinitely many indexed terms. By NIP, choose $L\in\bigcap_k I_k$.

Choose $n_1$ with $x_{n_1}\in I_1$. Having chosen $n_{k-1}$, choose $n_k>n_{k-1}$ with $x_{n_k}\in I_k$, which is possible because infinitely many indices qualify. Then

$$
|x_{n_k}-L|\leq \ell\,2^{1-k}\longrightarrow0.
$$

Thus $(x_{n_k})$ is a convergent subsequence. ◻

[Figure 1.22](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:nested-bisection) shows a possible sequence of choices.

[![Schematic bisection. Each chosen interval contains infinitely many terms, counted by index. The process continues beyond the rows shown.](https://xyzmaths.org/notes/maths-analysis/figures/nested-bisection.svg)](https://xyzmaths.org/notes/maths-analysis/figures/nested-bisection.svg "Open original SVG")

Figure 1.22. Schematic bisection. Each chosen interval contains infinitely many terms, counted by index. The process continues beyond the rows shown.

### BWT implies CC

First note that convergence always implies the Cauchy condition. If $x_n\to L$, choose $N$ so that $|x_n-L|<\varepsilon/2$ for $n\geq N$. For $m,n\geq N$, the triangle inequality gives

$$
|x_n-x_m|\leq|x_n-L|+|x_m-L|<\varepsilon.
$$

The converse needs completeness.

*Proof.* Let $(x_n)$ be Cauchy. Choose $N_0$ so that $|x_n-x_{N_0}|<1$ for every $n\geq N_0$. The tail is bounded by $|x_{N_0}|+1$, and the finitely many earlier terms are bounded as well. For example, the maximum of $|x_1|,\ldots,|x_{N_0-1}|,|x_{N_0}|+1$ bounds the whole sequence. BWT therefore gives a subsequence $x_{n_k}\to L$.

Given $\varepsilon>0$, choose $N$ so that $|x_n-x_m|<\varepsilon/2$ for $m,n\geq N$. Choose a subsequence index $n_k\geq N$ with $|x_{n_k}-L|<\varepsilon/2$. For every $n\geq N$,

$$
|x_n-L|\leq|x_n-x_{n_k}|+|x_{n_k}-L|<\varepsilon.
$$

Hence the full sequence converges to $L$. ◻

### CC implies DC

*Proof.* Let $A,B$ be a partition as in DC, and choose $a_1\in A$, $b_1\in B$. At step $n$, take the midpoint $m_n=(a_n+b_n)/2$. If $m_n\in A$, set $a_{n+1}=m_n$ and $b_{n+1}=b_n$. Otherwise set $a_{n+1}=a_n$ and $b_{n+1}=m_n$. The intervals are nested, their endpoints remain on the prescribed sides, and

$$
b_n-a_n=\frac{b_1-a_1}{2^{n-1}}\longrightarrow0.
$$

For $m\geq n$, both $a_m$ and $a_n$ lie in $[a_n,b_n]$, so $|a_m-a_n|\leq b_n-a_n$. The same holds for the right endpoints. Consequently both sequences are Cauchy. By CC they converge, and the vanishing difference shows that they share a limit $c$.

Every $a\in A$ is less than every $b_n$, so $a\leq c$ on taking limits. Likewise every $b\in B$ is greater than every $a_n$, so $c\leq b$. This is the required boundary. ◻

### DC implies LUBP

*Proof.* Let $S$ be nonempty and bounded above. Let $B$ be the set of all upper bounds of $S$, and let $A$ be its complement in the field. By assumption, $B$ is nonempty. If $s\in S$, then $s-1\in A$, so $A$ is nonempty too. If $a\in A$, there is an $s\in S$ with $a<s$. Thus, for every $b\in B$, $a<s\leq b$. The partition satisfies DC, which supplies a number $c$ with $a\leq c\leq b$ for all $a\in A$, $b\in B$.

We claim that $c\in B$. Otherwise some $s_0\in S$ satisfies $c<s_0$. Its midpoint with $c$ satisfies

$$
c<\frac{c+s_0}{2}<s_0.
$$

This midpoint cannot belong to $A$, since it exceeds $c$, and cannot belong to $B$, since it is smaller than the element $s_0$ of $S$. That contradicts the partition. Hence $c$ is an upper bound of $S$. Since $c\leq b$ for every upper bound $b$, it is the least upper bound.[^18] ◻

[^18]: The midpoint is the useful choice. Adding a fixed amount such as $1$ to $c$ need not leave the result below $s_0$.

### Exercise on the greatest lower bound property

The corresponding lower-bound argument can be made directly from DC, without passing through the least upper bound property.

### Exercise 1.7.2

Use the existence of the Dedekind cut in $\mathbb{R}$ to prove the greatest lower bound property. That is, if $S$ is a nonempty subset of $\mathbb{R}$ which is bounded below, then there is a unique number $c\in\mathbb{R}$ such that

$$
c=\inf S.
$$

(Do not use LUBP.)

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:dedekind-infimum)

### Exercises on the nested interval hypotheses

Closedness and boundedness each do work in the nested interval property. The following examples isolate these hypotheses. The Archimedean property from [Theorem 1.6.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:archimedean) supplies the indices needed to exclude any fixed point from the intersection.

### Exercise 1.7.3

Give an example of a sequence of nested nonempty bounded intervals $\{I_n\}$ in $\mathbb{R}$ such that $I_{n+1}\subset I_n$ for each $n=1,2,\ldots$ but

$$
\bigcap_{n=1}^{\infty} I_n=\varnothing.
$$

Explain what goes “wrong”.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw02:nested-bounded-intervals)

### Exercise 1.7.4

Give an example of a sequence of nested nonempty closed intervals $\{I_n\}$ in $\mathbb{R}$ such that $I_{n+1}\subset I_n$ for each $n=1,2,\ldots$ but

$$
\bigcap_{n=1}^{\infty} I_n=\varnothing.
$$

Explain what goes “wrong”.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw02:nested-closed-intervals)

## 1.8 Induction and the Archimedean property



### The natural-number tools

Induction and the well-ordering principle were introduced in [§ 1.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:sets-and-countable-sets), before their use in enumeration. We now combine them with completeness. Induction controls each finite stage of an argument, while the Archimedean property lets us choose a stage beyond any prescribed real bound.

### Small steps eventually pass any bound

[Theorem 1.6.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:archimedean) was proved directly from LUBP in [§ 1.6](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:supremum). Taking the step size to be $1$ shows that $\mathbb{N}$ is unbounded in $\mathbb{R}$. Given $\delta>0$, we can therefore choose $N>1/\delta$. For every $n\geq N$, we have $1/n<\delta$, which is the estimate behind $1/n\to0$. The same estimate will give rational approximations with arbitrarily small error in the next section.

### The integer part

**Proposition 1.8.1.** For every $x\in\mathbb{R}$, there is a unique $m\in\mathbb{Z}$ such that

$$
m\leq x<m+1.
$$

This integer is the *floor* or *integer part* of $x$, denoted by $\lfloor x\rfloor$.

*Proof.* First suppose $x\geq0$. By the Archimedean property, the set of natural numbers greater than $x$ is nonempty. Let $n$ be its least member. Then $n-1\leq x<n$, so $m=n-1$ has the required property. For a general real $x$, choose $k\in\mathbb{N}$ with $x+k\geq0$. The first case gives an integer $r$ with $r\leq x+k<r+1$, and $m=r-k$ works. Finally, two distinct integers differ by at least one, so they cannot both satisfy the displayed inequalities. This proves uniqueness. ◻

We use $\lfloor x\rfloor$ for the integer part to distinguish it from interval notation. For example, $\lfloor\pi\rfloor=3$, whereas $\lfloor-\pi\rfloor=-4$. The floor is not truncation toward zero.

### Exercise on bounds and convergence

An explicit sequence connects the definitions of Cauchy convergence, infimum, and supremum. The Archimedean property supplies the indices needed in its estimates.

### Exercise 1.8.2

Consider the seqeunce

$$
x_n=\frac{1}{n^2}+\frac{2}{n^2}+\cdots+\frac{n}{n^2},
    \quad n=1,2,\ldots.
$$

1.  **(a)** Show that it is monotone decreasing and bounded below.

2.  **(b)** Show that it is Cauchy.

3.  **(c)** Obtain the limit of $\{x_n\}$.

4.  **(d)** Let $S=\{x_1,x_2,\ldots,x_n,\ldots\}$. Obtain both $\inf S$ and $\sup S$.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw02:decreasing-sequence)

## 1.9 Denseness, closure, and completion

### Upper and lower limits

Before returning to sets, recall that $x_n\to L$ means that all sufficiently late terms lie within every prescribed distance of $L$.

**Definition 1.9.1.** A *subsequence* of $(x_n)$ is a sequence $(x_{n_k})$ with $n_1<n_2<\cdots$. A real number $\ell$ is a *limit point of the sequence* if some subsequence converges to $\ell$.

We form a subsequence by keeping infinitely many terms in their original order. The index $k$ counts the selected terms, while $n_k$ records their positions in the original sequence. Since $n_k\geq k$, those positions go to infinity as $k$ does. Thus a subsequence samples arbitrarily late terms, rather than repeatedly choosing an early term.

If $x_n\to L$, every subsequence also converges to $L$. Indeed, once all terms with $n\geq N$ lie within $\varepsilon$ of $L$, the selected terms with $k\geq N$ do too, because $n_k\geq k\geq N$. A convergent subsequence describes the behaviour of its selected terms. Establishing a limit for the whole sequence requires controlling every sufficiently late term.

A sequence may have several limit points even though the whole sequence does not converge. For a bounded sequence, two useful quantities summarize what remains after its first $n-1$ terms are discarded,

$$
\alpha_n=\inf\{x_k\mid k\geq n\},\qquad
  \beta_n=\sup\{x_k\mid k\geq n\}.
$$

The sequence $(\alpha_n)$ is nondecreasing, and $(\beta_n)$ is nonincreasing. Removing a term from a tail cannot lower its infimum or raise its supremum. Both sequences are bounded, so their limits exist. Write

$$
\ell_-=\liminf_{n\to\infty}x_n=\lim_{n\to\infty}\alpha_n,
  \qquad
  \ell_+=\limsup_{n\to\infty}x_n=\lim_{n\to\infty}\beta_n.
$$

These are also written $\underline{\lim}\,x_n$ and $\overline{\lim}\,x_n$. The intervals $I_n=[\alpha_n,\beta_n]$ are nested, and $I_n$ contains every term $x_k$ with $k\geq n$. Their endpoints approach $\ell_-$ and $\ell_+$. Discarding finitely many initial terms changes neither limit.

[Figure 1.23](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:tail-bounds-and-limit-points) shows this for $x_n=(-1)^n(1+1/n)$. Choosing $n_k=2k-1$ keeps the odd terms, while choosing $n_k=2k$ keeps the even terms. Taking $k\to\infty$ gives

$$
x_{2k-1}=-1-\frac{1}{2k-1}\longrightarrow-1,\qquad
  x_{2k}=1+\frac{1}{2k}\longrightarrow1.
$$

The original sequence cannot converge, since its two subsequences would then have to share the same limit. These are the only limit points, since $|x_n|\to1$ forces every subsequence limit $\ell$ to satisfy $|\ell|=1$. The tail intervals shrink towards $[-1,1]$, but the numbers strictly between $-1$ and $1$ are not limit points of this sequence.

[![Terms and tail bounds for x\_n=(-1)^n(1+1/n). The first twelve terms are shown on the left. On the right, I\_n=\[\\alpha\_n,\\beta\_n\] contains the entire nth tail, including terms beyond those plotted. Its endpoints approach the two limit points -1 and 1. The limiting interval bounds the limit points. It need not consist entirely of them.](https://xyzmaths.org/notes/maths-analysis/figures/tail-bounds-and-limit-points.svg)](https://xyzmaths.org/notes/maths-analysis/figures/tail-bounds-and-limit-points.svg "Open original SVG")

Figure 1.23. Terms and tail bounds for $x_n=(-1)^n(1+1/n)$. The first twelve terms are shown on the left. On the right, $I_n=[\alpha_n,\beta_n]$ contains the entire $n$th tail, including terms beyond those plotted. Its endpoints approach the two limit points $-1$ and $1$. The limiting interval bounds the limit points. It need not consist entirely of them.

The tail infima and suprema need not be terms of the original sequence. To show that their limits are limit points of $(x_n)$, we must select actual terms approaching them. The following argument makes that connection explicit for every bounded real sequence ([Rodriguez 2020](https://xyzmaths.org/notes/maths-analysis/references/#ref-Rodriguez2020Limsup)).

**Proposition 1.9.2.** The numbers $\ell_-$ and $\ell_+$ are respectively the smallest and largest limit points of a bounded real sequence $(x_n)$. Every limit point $\ell$ therefore satisfies $\ell_-\leq\ell\leq\ell_+$.

*Proof.* Suppose $x_{n_k}\to\ell$. For each fixed $n$, all sufficiently late subsequence indices satisfy $n_k\geq n$. Thus $\alpha_n\leq x_{n_k}\leq\beta_n$. Taking limits first in $k$ and then in $n$ gives $\ell_-\leq\ell\leq\ell_+$.

To reach the upper endpoint, set $n_0=0$. At step $k$, discard the terms through index $n_{k-1}$. The supremum of the remaining tail is $\beta_{n_{k-1}+1}$, so we can choose an actual term with $n_k>n_{k-1}$ and

$$
\beta_{n_{k-1}+1}-\frac1k<x_{n_k}\leq\beta_{n_{k-1}+1}.
$$

The indices increase, so both bounds tend to $\ell_+$. The squeeze theorem gives $x_{n_k}\to\ell_+$. Choosing increasing indices in the same way, with terms between the corresponding tail infimum and that infimum plus $1/k$, gives a subsequence converging to $\ell_-$. Hence both endpoints are limit points. ◻

For a bounded real sequence, showing that $L$ is its only limit point is enough to establish $x_n\to L$. By [Proposition 1.9.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:extreme-limit-points), both $\ell_-$ and $\ell_+$ are limit points, so they must then equal $L$. Every original term satisfies $\alpha_n\leq x_n\leq\beta_n$, and the squeeze theorem gives $x_n\to L$. This is how information about subsequences controls the whole sequence.

Equivalently, convergence occurs precisely when the two extreme limit points agree. If $x_n\to L$, then for every $\varepsilon>0$, all sufficiently late tails lie in $[L-\varepsilon,L+\varepsilon]$. Their infima and suprema do too, which proves that both limits equal $L$. The converse is the squeeze argument just given. This is the bounded-sequence version. More general upper and lower limits are studied in [§ 3.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sequences-of-real-numbers/#sec:analysis-i:upper-and-lower-limits).

The next exercise uses the elementary identities

$$
\sin0=0,\qquad \sin\frac{2\pi}{3}=\frac{\sqrt3}{2},\qquad
  \sin\frac{4\pi}{3}=-\frac{\sqrt3}{2},
$$

together with $\sin(t+2\pi k)=\sin t$ for integers $k$.

### Exercise 1.9.3

Consider the sequence

$$
a_n=\frac{1}{n}+\sin\left(\frac{2\pi n}{3}\right),
    \qquad n=1,2,\ldots.
$$

Find all limit points of $\{a_n\}$ and obtain

$$
\liminf_{n\to\infty}a_n,\quad\limsup_{n\to\infty}a_n.
$$

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:oscillating-sequence)

### Which points can a set approach?

**Definition 1.9.4.** The *closure* of $E\subseteq\mathbb{R}$ is

$$
\overline E=\{x\in\mathbb{R}\mid (x-\varepsilon,x+\varepsilon)\cap E
      \ne\varnothing\text{ for every }\varepsilon>0\}.
$$

A point of $E$ already belongs to its closure. A point $x$ is an *accumulation point* if every such neighborhood contains a point of $E$ different from $x$. This extra condition distinguishes accumulation points from general closure points.

[Figure 1.24](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:closure-neighborhoods) compares these possibilities for $E=(0,2)\cup\{3\}$. Every neighborhood of $0$ meets the interval, even though $0\notin E$. A neighborhood of $3$ with radius less than $1$ meets $E$ only at $3$. At $5/2$, any radius less than $1/2$ misses $E$ entirely. The word *every* in the definition is decisive.

[![Schematic Venn views on a number line. The solid interval and filled point form E. Its open endpoints are excluded. Dashed ellipses depict two shrinking \\varepsilon-neighborhoods. The darker overlap in (a) persists as \\varepsilon decreases. Set membership is read on the axis. The ellipses add no points off the real line.](https://xyzmaths.org/notes/maths-analysis/figures/closure-neighborhoods.svg)](https://xyzmaths.org/notes/maths-analysis/figures/closure-neighborhoods.svg "Open original SVG")

Figure 1.24. Schematic Venn views on a number line. The solid interval and filled point form $E$. Its open endpoints are excluded. Dashed ellipses depict two shrinking $\varepsilon$-neighborhoods. The darker overlap in (a) persists as $\varepsilon$ decreases. Set membership is read on the axis. The ellipses add no points off the real line.

**Proposition 1.9.5.** A point $x$ belongs to $\overline E$ if and only if there is a sequence $(a_n)$ in $E$ converging to $x$.

*Proof.* If $x\in\overline E$, choose $a_n\in E$ with $|a_n-x|<1/n$. The Archimedean property then gives $a_n\to x$. Conversely, if $a_n\to x$, every neighborhood of $x$ contains all sufficiently late $a_n$, and therefore meets $E$. ◻

For $a<b$, we have $\overline{(a,b)}=[a,b]$. Interior points already lie in the interval, and every neighborhood of either endpoint meets it. If $x<a$ or $x>b$, a neighborhood of radius less than its distance to the nearest endpoint misses the interval. Thus no other point enters the closure.

### Rationals occur in every interval

**Definition 1.9.6.** A set $E\subseteq\mathbb{R}$ is *dense in $\mathbb{R}$* if $\overline E=\mathbb{R}$. Equivalently, every nonempty open interval contains a point of $E$.

For the equivalence, apply the neighborhood condition at the midpoint of an open interval with radius half its length. Conversely, every neighborhood is itself an open interval.

**Theorem 1.9.7 (Density of the rational numbers).** The rational numbers are dense in the real numbers.

*Proof.* Given $x\in\mathbb{R}$ and $\varepsilon>0$, choose $N\in\mathbb{N}$ with $1/N<\varepsilon$. Set $m=\lfloor Nx\rfloor$. The definition of the floor gives $m\leq Nx<m+1$, and hence

$$
0\leq x-\frac{m}{N}<\frac{1}{N}<\varepsilon.
$$

Thus the rational number $m/N$ lies in the prescribed neighborhood of $x$. Every real number belongs to the closure of $\mathbb{Q}$. ◻

The grid in [Figure 1.25](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:rational-grid) makes the estimate visible.

[![Schematic rational grid with spacing 1/N. The floor chooses the left endpoint of the cell containing x.](https://xyzmaths.org/notes/maths-analysis/figures/rational-grid.svg)](https://xyzmaths.org/notes/maths-analysis/figures/rational-grid.svg "Open original SVG")

Figure 1.25. Schematic rational grid with spacing $1/N$. The floor chooses the left endpoint of the cell containing $x$.

In particular, choosing $m_n=\lfloor nx\rfloor$ gives an explicit rational sequence $m_n/n\to x$.

Irrational numbers also occur in every nonempty open interval. If $a<b$, rational density supplies a rational $q$ with $a-\sqrt2<q<b-\sqrt2$. Then $q+\sqrt2\in(a,b)$ is irrational, since subtracting the rational number $q$ from a rational sum would make $\sqrt2$ rational. Thus a small neighbourhood can contain both types of number, a fact used in the discontinuity examples in [§ 5.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/continuity/#sec:analysis-i:continuity).

*Second proof by decimal approximation.* The decimal approximations of $\sqrt2$ make the idea concrete,

$$
\sqrt2=1.414213\ldots,\qquad
    1.4,\quad 1.41,\quad 1.414,\quad 1.4142,\quad\ldots.
$$

Each displayed approximation is rational, and keeping more digits makes the error smaller. To prove density, apply this construction to an arbitrary nonnegative real number $x$. Truncating after $n$ decimal places gives

$$
q_n=\frac{\lfloor10^n x\rfloor}{10^n}\in\mathbb{Q},
    \qquad 0\le x-q_n<10^{-n}.
$$

Since $10^n\ge n+1$, the Archimedean property lets us choose $n$ with $10^{-n}<\varepsilon$ for any prescribed $\varepsilon>0$. Then $|x-q_n|<\varepsilon$, so every neighbourhood of $x$ contains a rational number. For $x<0$, apply the same construction to $-x$ and negate the rational approximations. Thus every real number belongs to the closure of $\mathbb{Q}$. ◻

This specializes the earlier grid argument to denominators $10^n$. In fact, terminating decimals alone are dense in $\mathbb{R}$. [Figure 1.26](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:decimal-sqrt-two) shows the successive decimal cells containing $\sqrt2$.

[![ Successive zooms around \\sqrt2. The left endpoints 1, 1.4, 1.41, and 1.414 are rational truncations. Each cell has one tenth the width of the previous cell. The rows use different scales so every decimal step remains visible. The open right endpoint is excluded.](https://xyzmaths.org/notes/maths-analysis/figures/decimal-sqrt-two.svg)](https://xyzmaths.org/notes/maths-analysis/figures/decimal-sqrt-two.svg "Open original SVG")

Figure 1.26. Successive zooms around $\sqrt2$. The left endpoints $1$, $1.4$, $1.41$, and $1.414$ are rational truncations. Each cell has one tenth the width of the previous cell. The rows use different scales so every decimal step remains visible. The open right endpoint is excluded.

### Closure is relative to an ambient space

Closure and completion answer related but different questions. Closure adds points already present in a specified ambient space. Thus $\overline{\mathbb{Q}}^{\,\mathbb{R}}=\mathbb{R}$, whereas $\overline{\mathbb{Q}}^{\,\mathbb{Q}}=\mathbb{Q}$. A subset $E$ of an ambient space $X\subseteq\mathbb{R}$ is *closed in $X$* if it contains every point of its closure taken in $X$. Neighborhoods in $X$ are intersections $(x-\varepsilon,x+\varepsilon)\cap X$. For example, $[a,b]\cap\mathbb{Q}$ is closed in $\mathbb{Q}$. A rational point outside it has a neighborhood missing $[a,b]$, while its real limit points outside $\mathbb{Q}$ are not points of the ambient space.

A *metric completion* instead embeds a metric space into a complete one in which it is dense. For the usual distance $|x-y|$, $\mathbb{R}$ is a completion of $\mathbb{Q}$.

More generally, $\overline E\subseteq\mathbb{R}$ is a completion of $E$ with its usual distance. To check completeness, a Cauchy sequence $(y_n)$ in $\overline E$ converges in $\mathbb{R}$ to some $y$. Given $\varepsilon>0$, choose $n$ with $|y_n-y|<\varepsilon/2$, then choose $a\in E$ with $|a-y_n|<\varepsilon/2$. The triangle inequality gives $|a-y|<\varepsilon$, so $y\in\overline E$. Also, by the definition of closure, $E$ is dense in $\overline E$. This explains why closing $(a,b)$ to $[a,b]$ also completes that interval, while keeping the two notions distinct.

### Exercises on the missing limits in $\mathbb{Q}$

The floor function and rational density let us build nested rational intervals around a point missing from $\mathbb{Q}$. This complements the real interval examples in [§ 1.7](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:completeness-equivalences).

### Exercise 1.9.8

Give an example of a sequence of nested nonempty bounded closed intervals $\{I_n\}$ in $\mathbb{Q}$ such that $I_{n+1}\subset I_n$ for each $n=1,2,\ldots$ but

$$
\bigcap_{n=1}^{\infty} I_n=\varnothing.
$$

Explain what goes “wrong”.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw02:nested-rational-intervals)

### Geometric sums and factorial limits

We need a simple estimate before the next two exercises. Multiplying a finite geometric sum by $1-r$ and cancelling consecutive terms gives

$$
\sum_{k=0}^{N}r^k=\frac{1-r^{N+1}}{1-r}\qquad(r\ne1).
$$

For $0\leq r<1$, we have $r^N\to0$. If $r>0$, put $c=1/r-1>0$. Induction gives $(1+c)^N\geq1+Nc$, and the Archimedean property shows that $r^N\leq1/(1+Nc)\to0$. The case $r=0$ is immediate. Taking limits in the finite identity gives

$$
\sum_{k=0}^{\infty}r^k=\frac1{1-r}\qquad(0\leq r<1).\tag{1.2}
$$

Here, and in the series below, an infinite sum means the limit of its finite partial sums. These particular sums need no general series theory.

### Completeness justifies positional notation

We can now justify the representation facts used for cardinality in [§ 1.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:power-sets).

*Proof of [Theorem 1.3.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:positional-representation).* For digits $a_k\in\{0,\ldots,b-1\}$, the partial sums $s_n=\sum_{k=1}^{n}a_k/b^k$ increase and satisfy $0\leq s_n\leq1-b^{-n}<1$ by the finite geometric identity. Monotone convergence supplies a limit in $[0,1]$.

Conversely, let $0\leq x<1$, put $m_0=0$, and set $m_n=\lfloor b^nx\rfloor$. The floor inequalities give $bm_{n-1}\leq m_n\leq bm_{n-1}+b-1$. Thus $a_n=m_n-bm_{n-1}$ is an allowed digit, and telescoping gives

$$
\sum_{k=1}^{n}\frac{a_k}{b^k}=\frac{m_n}{b^n},\qquad
    0\leq x-\frac{m_n}{b^n}<b^{-n}\longrightarrow0.
$$

This constructs an expansion of $x$. Its digits cannot be eventually all $b-1$. If all digits after position $N$ were $b-1$, the geometric tail would give $x=(m_N+1)/b^N$, contrary to $b^Nx<m_N+1$. The endpoint $x=1$ is represented by taking every digit to be $b-1$.

Finally, suppose two strings first differ at position $j$, with the first having the larger digit. Its advantage there is at least $b^{-j}$. The largest possible opposing tail is

$$
\sum_{k>j}\frac{b-1}{b^k}=b^{-j}.
$$

Equal values therefore require a digit difference of exactly one, followed by all zeros in the first string and all $b-1$ in the second. These are precisely the two forms of a terminating expansion. Excluding eventual strings of $b-1$ gives uniqueness in $[0,1)$. ◻

### The irrationality of $e$

Set $s_n=\sum_{k=0}^{n}1/k!$. These partial sums increase. For $k\geq2$, the bound $k!\geq2^{k-1}$ gives

$$
s_n\leq2+\sum_{k=2}^{n}\frac1{2^{k-1}}<3.
$$

The monotone convergence theorem therefore supplies a real limit, denoted by

$$
e=\sum_{k=0}^{\infty}\frac1{k!}.
$$

An alternative formula is $e=\lim_{n\to\infty}(1+1/n)^n$. Its equivalence with the series formula is proved in [Proposition 3.2.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sequences-of-real-numbers/#thm:analysis-i:binomial-limit). The series definition is enough for the present argument.

**Proposition 1.9.9.** The number $e$ is irrational.[^19]

[^19]: What can we say about $\pi+e$ or $\pi/e$? Their irrationality is still unknown ([Weisstein n.d.](https://xyzmaths.org/notes/maths-analysis/references/#ref-WeissteinPi)). Knowing that $\pi$ and $e$ are individually transcendental does not settle either question.
    
    These questions matter because other proofs and theorems may require rationality or irrationality as a hypothesis. For example, irrationality of $\pi/e$ would imply that $a\pi+be=0$ with $a,b\in\mathbb{Q}$ forces $a=b=0$. Irrationality of $\pi+e$ would rule out $\pi+e=q$ for every $q\in\mathbb{Q}$. Such results exclude exact rational relations and supply hypotheses for later arguments. Until proved, any argument depending on these exclusions remains conditional.

*Proof.* Suppose $e=p/q$ for integers $p,q$ with $q>0$, and choose $n\geq\max\{q,2\}$. Both $n!e$ and $\sum_{k=0}^{n}n!/k!$ are integers. Their difference is

$$
R_n=n!\sum_{k=n+1}^{\infty}\frac1{k!}
       =\sum_{j=1}^{\infty}
         \frac1{(n+1)(n+2)\cdots(n+j)}.
$$

All terms are positive, and replacing each denominator factor by $n+1$ gives, by [Equation 1.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#eq:analysis-i:geometric-sum),

$$
0<R_n<\sum_{j=1}^{\infty}\frac1{(n+1)^j}
          =\frac1n<1.
$$

The comparison is strict because the terms with $j\geq2$ are strictly smaller. Thus an integer lies strictly between zero and one, a contradiction. ◻

The factorial partial sums therefore give a bounded set of rationals with an irrational real supremum. The next exercise asks for its bounds and for the distinction between taking the supremum in $\mathbb{R}$ and in $\mathbb{Q}$.

### Exercise 1.9.10

Consider the sequence

$$
x_n=\sum_{k=0}^{n}\frac{1}{k!},\quad n=1,2,\ldots,
$$

in $\mathbb{Q}$ and define $S=\{x_1,x_2,\ldots,x_n,\ldots\}$ which is a subset of $\mathbb{Q}$.

1.  **(a)** Show that $S$ is a bounded set.

2.  **(b)** Find $a=\inf S$ and $b=\sup S$.

3.  **(c)** Is it true that $a$ and $b$ both lie in $\mathbb{Q}$? Explain why and why not.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw02:factorial-sequence)

### Exercise on small interval covers

The next question combines countable enumeration, rational density, and [Equation 1.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#eq:analysis-i:geometric-sum) to construct interval covers of small total length. Small covering length and metric incompleteness describe different properties. Completeness must be checked using Cauchy sequences and their limits.

### Exercise 1.9.11

Let the rational numbers in $[0,1]$ be enumerated by $q_0,q_1,\ldots,q_n,\ldots$. Let $\varepsilon>0$ and cover this set $Q=\{q_n\}$ by

$$
U_\varepsilon=\bigcup_{n=0}^{\infty}I_n(\varepsilon),
$$

$$
I_n(\varepsilon)=(q_n-\varepsilon 2^{-n},q_n+\varepsilon 2^{-n}),
    \qquad n=0,1,2,\ldots.
$$

That is, $Q\subset U_\varepsilon$.

1.  **(a)** Show that the sum of the lengths of the intervals $\{I_n(\varepsilon)\}$ satisfies the bound

    $$
    \sum_{n=0}^{\infty}|I_n(\varepsilon)|\leq4\varepsilon.
    $$

2.  **(b)** Since $\varepsilon>0$ can be arbitrarily small, the set $Q$ can be covered by intervals of arbitrarily small total length indicating that $Q$ is a rather “sparse” subset of $[0,1]$. In view of this fact, give your explanation regarding the “incompleteness” of $Q$ in $[0,1]$.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:rational-interval-cover)

## 1.10 Polynomial functions and absolute value

A *polynomial function* has the form

$$
p(x)=a_0+a_1x+\cdots+a_nx^n,\qquad a_0,\ldots,a_n\in\mathbb{R}.
$$

If $a_n\ne0$, its degree is $n$. It is defined for every $x\in\mathbb{R}$. A *rational function* is a quotient $p(x)/q(x)$ of polynomials, with $q$ not the zero polynomial. Its domain excludes the zeros of $q$. For example, the expression $(x^2-1)/(x-1)$ equals $x+1$ on its domain, but the original quotient is undefined at $x=1$.

### Absolute value and distance

The absolute value function, introduced before convergence in [§ 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:convergence-preview), is

$$
|x|=\begin{cases}
    x,&x\geq0,\\
    -x,&x<0.
  \end{cases}
$$

It satisfies $|x|\geq0$, with equality exactly when $x=0$, and $-|x|\leq x\leq|x|$. [Figure 1.17](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:absolute-value) shows its graph.

[Proposition 1.4.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:absolute-value-inequalities) established the product rule and triangle inequality before their use in limits. Applying the triangle inequality to $x=(x-y)+y$, and then interchanging $x$ and $y$, also gives the useful reverse triangle inequality $\bigl||x|-|y|\bigr|\leq|x-y|$.

The following exercise asks for this argument and its equality case.

### Exercise 1.10.1

Use the triangle inequality to prove

$$
\bigl||x|-|y|\bigr|\leq|x-y|,\qquad x,y\in\mathbb{R}.
$$

When will this become an equality?

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:reverse-triangle-inequality)

### Positive and negative parts

Define two nonnegative quantities

$$
x^+=\max\{x,0\}=\frac{|x|+x}{2},\qquad
  x^-=\max\{-x,0\}=\frac{|x|-x}{2}.
$$

Checking separately $x\geq0$ and $x<0$ gives

$$
x=x^+-x^-,\qquad |x|=x^++x^-,\qquad x^+x^-=0.
$$

The negative part records the *magnitude* of the negative contribution, so it is nonnegative. For a real-valued function $f$, apply these formulas pointwise to obtain $f=f^+-f^-$ and $|f|=f^++f^-$. [Figure 1.27](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:positive-negative-parts) illustrates these operations for a specific function.

[![Positive and negative parts of the illustrative function f(x)=x(1-x). The part below the axis is reflected upward in f^-. In f^+ it is replaced by zero. All three panels use the same scale.](https://xyzmaths.org/notes/maths-analysis/figures/positive-negative-parts.svg)](https://xyzmaths.org/notes/maths-analysis/figures/positive-negative-parts.svg "Open original SVG")

Figure 1.27. Positive and negative parts of the illustrative function $f(x)=x(1-x)$. The part below the axis is reflected upward in $f^-$. In $f^+$ it is replaced by zero. All three panels use the same scale.

## 1.11 Roots and rational powers

<span class="smallcaps">An inverse function needs a bijection.</span> We use the notation $\mathbb{R}_+=[0,\infty)$, including zero. For $n\in\mathbb{N}$, we will prove that $x\mapsto x^n$ is a bijection from $\mathbb{R}_+$ to itself. Only after that proof can we define $x^{1/n}$ as its inverse.

### A difference of powers

The finite geometric identity

$$
1+r+\cdots+r^{n-1}=\frac{1-r^n}{1-r}\qquad(r\ne1)
$$

follows by multiplying the sum by $1-r$ and cancelling consecutive terms. For $0\leq a<b$, substitute $r=a/b$ and multiply by $(b-a)b^{n-1}$. This gives

$$
b^n-a^n=(b-a)\sum_{j=0}^{n-1}b^{n-1-j}a^j.\tag{1.3}
$$

The sum is positive and has $n$ terms, each at most $b^{n-1}$. Consequently,

$$
0<b^n-a^n\leq n(b-a)b^{n-1}.\tag{1.4}
$$

In particular, the power map is strictly increasing on $[0,\infty)$, and hence injective. The upper bound controls how much the power changes when the input moves a short distance.

### Completeness supplies every root

**Theorem 1.11.1 (Existence and uniqueness of roots).** For every $n\in\mathbb{N}$ and every $y\geq0$, there is a unique $x\geq0$ such that $x^n=y$.

[![The square \[0,s\]\\times\[0,s\] in \\mathbb\{R\}^2 has area A=s^2. Every A\\geq0 determines a unique nonnegative side length.](https://xyzmaths.org/notes/maths-analysis/figures/root-square.svg)](https://xyzmaths.org/notes/maths-analysis/figures/root-square.svg "Open original SVG")

Figure 1.28. The square $[0,s]\times[0,s]$ in $\mathbb{R}^2$ has area $A=s^2$. Every $A\geq0$ determines a unique nonnegative side length.

[![The cube \[0,s\]\\times\[0,s\]\\times\[0,s\] in \\mathbb\{R\}^3 has volume V=s^3. Every V\\geq0 determines a unique nonnegative side length.](https://xyzmaths.org/notes/maths-analysis/figures/root-cube.svg)](https://xyzmaths.org/notes/maths-analysis/figures/root-cube.svg "Open original SVG")

Figure 1.29. The cube $[0,s]\times[0,s]\times[0,s]$ in $\mathbb{R}^3$ has volume $V=s^3$. Every $V\geq0$ determines a unique nonnegative side length.

*Proof.* Uniqueness follows from strict monotonicity. If $y=0$, take $x=0$. Suppose henceforth that $y>0$, and put

$$
S=\{t\geq0\mid t^n<y\}.
$$

The set contains zero and also a positive element, for example $t=\min\{1/2,y/2\}$, since $t^n\leq t<y$. It is bounded above by $1+y$, because $(1+y)^n\geq1+y>y$ and the power map is increasing. LUBP therefore gives $x=\sup S>0$.

Suppose first that $x^n<y$. Choose $h>0$ so small that

$$
h<1,\qquad h<\frac{y-x^n}{n(x+1)^{n-1}}.
$$

Using [Equation 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#eq:analysis-i:power-bound) with $a=x$ and $b=x+h$ gives

$$
(x+h)^n-x^n\leq nh(x+h)^{n-1}
      \leq nh(x+1)^{n-1}<y-x^n.
$$

Hence $x+h\in S$, contradicting that $x$ is an upper bound.

Suppose instead that $x^n>y$. Choose $h>0$ with

$$
h<x,\qquad h<\frac{x^n-y}{nx^{n-1}}.
$$

Now [Equation 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#eq:analysis-i:power-bound) with $a=x-h$ and $b=x$ yields $x^n-(x-h)^n\leq nhx^{n-1}<x^n-y$, so $(x-h)^n>y$. Every $t\in S$ must then satisfy $t<x-h$, by strict monotonicity. Thus $x-h$ is an upper bound of $S$ smaller than its least upper bound, again a contradiction. The only remaining possibility is $x^n=y$. ◻

We may now define $y^{1/n}$ to be this unique nonnegative root.[^20] The inverse is strictly increasing too. Indeed, if $u<v$ but $u^{1/n}\geq v^{1/n}$, taking $n$th powers contradicts $u<v$.

[^20]: This proof uses completeness and an algebraic estimate. It does not require continuity or the intermediate value theorem, developed in [Chapter 5](https://xyzmaths.org/notes/maths-analysis/analysis-i/continuity/#ch:analysis-i:continuity). The two perturbations rule out being below and above $y$.

The cases $n=2$ and $n=3$ have familiar geometric interpretations. In $\mathbb{R}^2$, the square $[0,s]\times[0,s]$ has area $s^2$, as shown in [Figure 1.28](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:analysis-i:root-square). The theorem supplies its side length for any prescribed area $A\geq0$. For example, a square of area $2$ has side length $\sqrt2$. In $\mathbb{R}^3$, the cube $[0,s]\times[0,s]\times[0,s]$ has volume $s^3$, as shown in [Figure 1.29](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:analysis-i:root-cube). A prescribed volume $V\geq0$ likewise determines its side length, and volume $2$ gives $s=\sqrt[3]{2}$. These pictures illustrate the root theorem rather than replace its completeness argument.

### Exercises on roots and boundaries

The existence of these roots lets us ask when they can be rational. For the prime-root exercise, recall [Lemma 1.2.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:euclid-prime-divisors). If a prime divides a product of integers, it divides at least one factor. Repeated application gives $p\mid a^k\Longrightarrow p\mid a$.

### Exercise 1.11.2

Let $p=2,3,5,\ldots$ be a prime. Prove that $\sqrt{p}$ is irrational. Can this result be extended to $p^{\frac{1}{k}}$ for any integer $k\geq 2$?

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:prime-roots)

### Exercise 1.11.3

Show that if $a>0$ is irrational, so is the $k$th root of $a$, $a^{\frac{1}{k}}$, for any $k\in\mathbb{N}$.

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw01:irrational-roots)

The root theorem also lets us identify a Dedekind boundary by a cubic equation. For the negative side of the cubic, $x<0$ implies $x^3<0$. On the nonnegative side, use the strict monotonicity just established. In the next exercise, $A$ is the upper part of the partition. The letters are reversed from the lower-then-upper convention used in the proof chain.

### Exercise 1.11.4

Consider $A=\{a\in\mathbb{R}\mid a^3>5-\sqrt{2}\}$.

1.  **(a)** Find $B\subseteq\mathbb{R}$ such that $\{A,B\}$ forms a Dedekind partition.

2.  **(b)** Find the Dedekind cut for this partition.

3.  **(c)** Show that $A$ is bounded below and $B$ is bounded above and find

    $$
    \inf A\quad\text{and}\quad\sup B.
    $$

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:cubic-dedekind-cut)

### A rational exponent must be well defined

For $x\geq0$ and $m,n\in\mathbb{N}$, define

$$
x^{m/n}=(x^m)^{1/n}.
$$

This agrees with $(x^{1/n})^m$, since its $n$th power is $x^m$ and it is nonnegative. We must also check that choosing a different representation of the fraction gives the same number.

**Proposition 1.11.5.** If $m/n=p/q$ for positive integers $m,n,p,q$, then $(x^m)^{1/n}=(x^p)^{1/q}$ for every $x\geq0$.

*Proof.* Let $u=(x^m)^{1/n}$ and $v=(x^p)^{1/q}$. Then

$$
u^{nq}=x^{mq}=x^{pn}=v^{nq},
$$

because $mq=pn$. Both $u$ and $v$ are nonnegative, and the $(nq)$th power map is injective there. Therefore $u=v$. ◻

Thus positive rational powers have a consistent meaning. At zero they equal zero. For $x>0$, negative rational powers can subsequently be defined by reciprocals. Real exponents require a further limiting construction. The exponential series supplies this extension in [Definition 8.6.6](https://xyzmaths.org/notes/maths-analysis/analysis-i/sequences-and-series-of-functions/#thm:analysis-i:logarithm-real-powers).

For the next exercise, $\mathbb{Q}_+$ denotes the positive rational numbers, and $\mathbb{R}_+=[0,\infty)$ as above. Its second part revisits the equivalent definitions of rational powers before establishing their algebraic laws.

### Exercise 1.11.6

For $x\in\mathbb{R}_+$, we defined the function $x^{1/n}$ for $n\in\mathbb{N}$.

1.  **(a)** For $x,y\in\mathbb{R}_+$, prove that $(xy)^{1/n}=x^{1/n}y^{1/n}$.

2.  **(b)** For $x\in\mathbb{R}_+$, we defined $x^{m/n}=(x^m)^{1/n}$ for $m\in\mathbb{N}$. Show that this is the same as $(x^{1/n})^m$.

3.  **(c)** For $x\in\mathbb{R}_+$ and $r,s\in\mathbb{Q}_+$, prove the laws of exponents

    $$
    (x^r)^s=x^{rs},\qquad x^{r+s}=x^rx^s.
    $$

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:rational-exponent-laws)

### Exercise on odd roots of real numbers

The preceding root construction was restricted to nonnegative inputs. The next exercise asks for its extension to the whole real line for odd powers.

### Exercise 1.11.7

Show that for $n=3,5,7,\ldots$, the function $x^{1/n}$ is a well-defined monotone increasing function which is a bijection from $\mathbb{R}$ to itself. (Hint: Study $x^n$.)

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:odd-roots)

### Returning to iteration

We can now finish the square-root argument motivated in [§ 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:convergence-preview). Let $a>0$, let $r=\sqrt a>0$ be the root supplied by [Theorem 1.11.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:positive-roots), and start with $x_0>0$. Define $x_{n+1}=\tfrac12(x_n+a/x_n)$. Every iterate is positive, and

$$
x_{n+1}-r=\frac{(x_n-r)^2}{2x_n}\geq0.
$$

Thus $x_n\geq r$ for $n\geq1$, and then $x_{n+1}-x_n=(a-x_n^2)/(2x_n)\leq0$. The monotone convergence theorem gives a limit $L\geq r>0$. The limit laws from [Proposition 1.4.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:limit-laws), applied to $2x_nx_{n+1}=x_n^2+a$, give $L^2=a$. Root uniqueness therefore gives $L=r$. If $a$ and $x_0$ are rational, every iterate is rational. For prime $a$, [Exercise 1.11.2](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#ex:hw01:prime-roots) shows that the limit is irrational.

The next exercise applies the tangent slopes from [§ 1.4](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:convergence-preview) to $F(x)=x-a-1/x$. The root theorem, limit laws, and monotone convergence are now available for its fixed-point and convergence arguments. Its continued fraction denotes the positive solution of $b=a+1/b$.

### Exercise 1.11.8

Consider the iteration process

$$
x_{n+1}=a+\frac{1}{x_n},\quad n=0,1,2,\ldots,
    \quad a\geq 1,\quad x_0>0,
$$

whose limit gives us the continuous fraction

$$
b=a+\frac{1}{a+\frac{1}{a+\frac{1}{a+\cdots}}}.
$$

That is, $b$ is a fixed point of the function

$$
f(x)=a+\frac{1}{x},\quad x>0,
$$

which is realized as a root of the function $F(x)=x-f(x)$ $(x>0)$.

1.  **(a)** Show that the iterative algorithm

    $$
    x_{n+1}=\frac{ax_n^2+2x_n}{1+x_n^2},
            \quad n=0,1,2,\ldots,\quad x_0>0,
    $$

    arises from Newton’s method that may be used to approach $b$ of our problem.

2.  **(b)** Assume that $\{x_n\}$ in (a) converges. Verify that the limit is indeed the continuous fraction $b$ defined above.

3.  **(c)** Take $a=\frac{3}{2}$. Prove $0<x_n\leq 2$ for $n=1,2,\ldots$.

4.  **(d)** Prove that $\{x_n\}_{n=1,2,\ldots}$ increases for any $x_0\ne 2$ and is constant when $x_0=2$.

5.  **(e)** Show that $\{x_n\}$ converges to $2$ with any initial state $x_0$ (thereby establishing the “global convergence” of the algorithm).

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw02:newton-iteration)

### Exercise on Fibonacci ratios

[^21] The final recurrence connects an integer sequence with bounded ratios. Use induction for its growth and bounds, and the limit laws to identify a possible limit. The square root appearing in that calculation now has a rigorous construction. The last part assumes that the ratios converge. It does not ask for a convergence proof.

[^21]: Leonardo of Pisa’s *Liber abaci* (1202, revised 1228) includes a rabbit-population problem producing this recurrence  ([Pisa 1228](https://xyzmaths.org/notes/maths-analysis/references/#ref-FibonacciLiberAbaci)). The book’s wider purpose was to teach calculation with Indo-Arabic numerals for practical problems. Here the ratios connect integer recurrences with algebraic limits. The rabbit story illustrates the sequence, rather than proving its first discovery.

### Exercise 1.11.9

The Fibonacci sequence $\{F_n\}$ is defined by

$$
F_0=0,\quad F_1=1,\quad F_n=F_{n-2}+F_{n-1},
    \qquad n=2,3,\ldots.
$$

1.  **(a)** Show that $\{F_n\}$ is an increasing sequence. *Here increasing means nondecreasing.*

2.  **(b)** Show that $\{F_n\}$ is unbounded.

3.  **(c)** Show that the Fibonacci ratios

    $$
    r_n=\frac{F_n}{F_{n-1}},\qquad n=2,3,\ldots,
    $$

    is a bounded sequence.

4.  **(d)** Assume the limit of $\{r_n\}$ exists. Find the limit (which happens to be the golden ratio).

[Solution in the appendix](https://xyzmaths.org/notes/maths-analysis/appendices/exercise-solutions/#sol:hw03:fibonacci-ratios)

## 1.12 Number systems and cardinalities

<span class="smallcaps">The roots just constructed are part of a larger picture.</span> In [§ 1.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:roots-and-powers), completeness supplied $\sqrt2$ as a real number. Its equation $x^2-2=0$ also identifies it as algebraic, in the sense of [Subsection\* 1.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:algebraic-transcendental). We now bring that classification together with the chapter’s counting results. The two questions are where a number belongs and how large each set is.

The familiar number systems satisfy

$$
\mathbb{N}\subsetneq\mathbb{Q}\subsetneq\mathbb{R}\subsetneq\mathbb{C}.
$$

Here $\mathbb{N}=\{1,2,3,\ldots\}$, $\mathbb{Q}$ consists of ratios of integers with nonzero denominator, and $\mathbb{R}$ is the real line. A complex number is $a+bi$ with $a,b\in\mathbb{R}$ and $i^2=-1$. We identify $a$ with $a+0i$. The examples $1/2$, $\sqrt2$, and $i$ show, respectively, that each inclusion is strict.

### Where algebraic and transcendental numbers belong

Recall the two sets from [Subsection\* 1.3](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:algebraic-transcendental). The set $\mathcal A$ consists of the real algebraic numbers, and $\mathcal T=\mathbb{R}\setminus\mathcal A$ consists of the transcendental reals. Inserting the algebraic numbers into the chain gives

$$
\mathbb{N}\subsetneq\mathbb{Q}\subsetneq\mathcal A\subsetneq\mathbb{R}\subsetneq\mathbb{C}.
$$

Every rational is algebraic, while roots such as $\sqrt2$ show that $\mathcal A$ also contains irrational numbers. The transcendental reals include $\pi$ and $e$, whose transcendence was stated earlier without proof. Thus the irrational reals split into $\mathcal A\setminus\mathbb{Q}$ and $\mathcal T$. Complex numbers can also be algebraic. The number $i$ satisfies $x^2+1=0$, but is outside the *real* algebraic set $\mathcal A$. [Figure 1.30](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#fig:number-systems) shows these relationships with nested boxes. Inside the real box, every number is either in the algebraic box or in the transcendental region outside it.

[![Nested boxes show containment. Examples lie in the regions they belong to, outside the smaller boxes that exclude them. Areas are schematic and do not represent cardinalities.](https://xyzmaths.org/notes/maths-analysis/figures/number-systems.svg)](https://xyzmaths.org/notes/maths-analysis/figures/number-systems.svg "Open original SVG")

Figure 1.30. Nested boxes show containment. Examples lie in the regions they belong to, outside the smaller boxes that exclude them. Areas are schematic and do not represent cardinalities.

### Their infinite sizes

Cardinality compares sets by bijections, rather than by containment. The earlier algebraic/transcendental distinction also determines two different infinite sizes. Combining the counting results in [§ 1.1](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#sec:analysis-i:sets-and-countable-sets) with [Proposition 1.3.11](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#thm:analysis-i:algebraic-transcendental-cardinalities) gives

$$
|\mathbb{N}|=|\mathbb{Q}|=|\mathcal A|=\aleph_0,
  \qquad
  |\mathbb{R}|=|\mathcal T|=\mathfrak c=2^{\aleph_0}.
$$

Here $\aleph_0$, read “aleph zero,” is the smallest infinite cardinality, and the continuum $\mathfrak c$ is strictly larger. Thus the step from $\mathbb{Q}$ to all real algebraic numbers adds numbers such as $\sqrt2$ without increasing cardinality. The transcendental reals alone already have the cardinality of the whole real line.

Since $a+bi$ corresponds to the pair $(a,b)$, the square-cardinality result in [Exercise 1.3.10](https://xyzmaths.org/notes/maths-analysis/analysis-i/sets-and-foundations/#ex:hw01:square-cardinality) and a bijection $(0,1)\to\mathbb{R}$ give $|\mathbb{C}|=|\mathbb{R}^2|=\mathfrak c$. A proper subset can therefore have the same cardinality as its containing set.

### Aleph one and beyond

The next infinite cardinalities are written

$$
\aleph_0<\aleph_1<\aleph_2<\aleph_3<\cdots.
$$

The cardinal $\aleph_1$ is the smallest uncountable cardinality. Each $\aleph_{n+1}$ is the next cardinality after $\aleph_n$, with none strictly between them. The hierarchy continues beyond finite subscripts. There is no largest infinite cardinality.

The *Continuum Hypothesis* (CH) asserts that $\mathfrak c=\aleph_1$. Uncountability alone does not establish this equality. The bare $\aleph$ used in some exercises denotes $\mathfrak c$.
