# Nested intervals

In mathematics, a sequence of nested intervals can be intuitively understood as an ordered collection of intervals ${\displaystyle I_{n}}$ on the real number line with natural numbers ${\displaystyle n=1,2,3,\dots }$ as an index. In order for a sequence of intervals to be considered nested intervals, two conditions have to be met:

1. Every interval in the sequence is contained in the previous one (${\displaystyle I_{n+1}}$ is always a subset of ${\displaystyle I_{n}}$).
2. The length of the intervals get arbitrarily small (meaning the length falls below every possible threshold ${\displaystyle \varepsilon }$ after a certain index ${\displaystyle N}$).
4 members of a sequence of nested intervals

In other words, the left bound of the interval ${\displaystyle I_{n}}$ can only increase (${\displaystyle a_{n+1}\geq a_{n}}$), and the right bound can only decrease (${\displaystyle b_{n+1}\leq b_{n}}$).

Historically - long before anyone defined nested intervals in a textbook - people implicitly constructed such nestings for concrete calculation purposes. For example, the ancient Babylonians discovered a method for computing square roots of numbers. In contrast, the famed Archimedes constructed sequences of polygons, that inscribed and surcumscribed a unit circle, in order to get a lower and upper bound for the circles circumference - which is the circle number Pi (${\displaystyle \pi }$).

The central question to be posed is the nature of the intersection over all the natural numbers, or, put differently, the set of numbers, that are found in every Interval ${\displaystyle I_{n}}$ (thus, for all ${\displaystyle n\in \mathbb {N} }$). In modern mathematics, nested intervals are used as a construction method for the real numbers (in order to complete the field of rational numbers).

## Historic motivation

As stated in the introduction, historic users of mathematics discovered the nesting of intervals and closely related algorithms as methods for specific calculations. Some variations and modern interpretations of these ancient techniques will be introduced here:

### Computation of square roots

One intuitive algorithm is so easy to understand, that it could well be found by engaged highschool students. When trying to find the square root of a number ${\displaystyle x>1}$ , one can be certain that ${\displaystyle 1\leq {\sqrt {x}}\leq x}$ , which gives the first interval ${\displaystyle I_{1}=[1,x]}$ , in which ${\displaystyle x}$  has to be found. If one knows the next higher perfect square ${\displaystyle k^{2}>x}$ , one can get an even better candidate for the first interval: ${\displaystyle I_{1}=[1,k]}$ .

The other intervals ${\displaystyle I_{n}=[a_{n},b_{n}],n\in \mathbb {N} }$  can now be defined recursively by looking at the sequence of midpoints ${\displaystyle m_{n}={\frac {a_{n}+b_{n}}{2}}}$ . Given the interval ${\displaystyle I_{n}}$  is already known (starting at ${\displaystyle I_{1}}$ ), one can define

${\displaystyle I_{n+1}:=\left\{{\begin{matrix}\left[m_{n},b_{n}\right]&&{\text{if}}\;\;m_{n}^{2}\leq x\\\left[a_{n},m_{n}\right]&&{\text{if}}\;\;m_{n}^{2}>x\end{matrix}}\right.}$

To put this into words, one can compare the midpoint of ${\displaystyle I_{n}}$  to ${\displaystyle {\sqrt {x}}}$  in order to determine whether the midpoint is smaller or larger than ${\displaystyle {\sqrt {x}}}$ . If the midpoint is smaller, one can set it as the lower bound of the next interval ${\displaystyle I_{n+1}}$ , and if the midpoint is larger, one can set it as the upper bound of the next interval. This guarantees that ${\displaystyle {\sqrt {x}}\in I_{n+1}}$ . With this construction the intervals are nested and their length ${\displaystyle |I_{n}|}$  get halved in every step of the recursion. Therefore, it is possible to get lower and upper bounds for ${\displaystyle {\sqrt {x}}}$  with arbitrarily good precision (given enough computational time).

One can also compute ${\displaystyle {\sqrt {y}}}$ , when ${\displaystyle 0 . In this case ${\displaystyle 1/y>1}$ , and the algorithm can be used by setting ${\displaystyle x:=1/y}$  and calculating the reciprocal after the desired level of precision has been acquired.

#### Example

To demonstrate this algorithm, here is an example of how it can be used to find the value of ${\displaystyle {\sqrt {19}}}$ . Note that since${\displaystyle 1^{2}<19<5^{2}}$ , the first interval for the algorithm can be defined as${\displaystyle I_{1}:=[1,5]}$ , since ${\displaystyle {\sqrt {19}}}$  must certainly found within this interval. Thus, using this interval, one can continue to the next step of the algorithm by calculating the midpoint of the interval, determining whether the square of the midpoint is greater than or less than 19, and setting the boundaries of the next interval accordingly before repeating the process:

{\displaystyle {\begin{aligned}m_{1}&={\dfrac {1+5}{2}}=3&&\Rightarrow \;m_{1}^{2}=9\leq 19&&\Rightarrow \;I_{2}=[3,5]\\m_{2}&={\dfrac {3+5}{2}}=4&&\Rightarrow \;m_{2}^{2}=16\leq 19&&\Rightarrow \;I_{3}=[4,5]\\m_{3}&={\dfrac {4+5}{2}}=4.5&&\Rightarrow \;m_{3}^{2}=20.25>19&&\Rightarrow \;I_{4}=[4,4.5]\\m_{4}&={\dfrac {4+4.5}{2}}=4.25&&\Rightarrow \;m_{4}^{2}=18.0625\leq 19&&\Rightarrow \;I_{5}=[4.25,4.5]\\m_{5}&={\dfrac {4.25+4.5}{2}}=4.375&&\Rightarrow \;m_{5}^{2}=19.140625>19&&\Rightarrow \;I_{5}=[4.25,4.375]\\&\vdots &&\end{aligned}}} Each time a new midpoint is calculated, the range of possible values for ${\displaystyle {\sqrt {19}}}$  is able to be constricted so that the values that remain within the interval are closer and closer to the actual value of ${\displaystyle {\sqrt {19}}=4.35889894\dots }$ . That is to say, each successive change in the bounds of the interval within which  ${\displaystyle {\sqrt {19}}}$  must lie allows the value of ${\displaystyle {\sqrt {19}}}$  to be estimated with a greater precision, either by increasing the lower bounds of the interval or decreasing the upper bounds of the interval.
This procedure can be repeated as many times as needed to attain the desired level of precision. Theoretically, by repeating the steps indefinitely, one can arrive at the true value of this square root.

#### Herons method

The Babylonian method uses an even more efficient algorithm that yields accurate approximations of ${\displaystyle x}$  even faster. The modern description using nested intervals is similar to the algorithm above, but instead of using a sequence of midpoints, one uses a sequence ${\displaystyle (c_{n})_{n\in \mathbb {N} }}$  given by

${\displaystyle c_{n+1}:={\frac {1}{2}}\cdot \left(c_{n}+{\frac {x}{c_{n}}}\right)}$ .

This results in a sequence of intervals given by ${\displaystyle I_{n+1}:=\left[{\frac {x}{c_{n}}},c_{n}\right]}$  and ${\displaystyle I_{1}=[0,k]}$ , where ${\displaystyle k^{2}>x}$ , will provide accurate upper and lower bounds for ${\displaystyle {\sqrt {x}}}$  very fast. In practice, only ${\displaystyle c_{n}}$  has to be considered, which converges to ${\displaystyle {\sqrt {x}}}$ . This algorithm is a special case of Newton's method.

### Archimedes' circle measurement

π can be estimated by computing the perimeters of circumscribed and inscribed polygons.

As shown in the image, lower and upper bounds for the circumference of a circle can be obtained with inscribed and circumscribed regular polygons. When examining a circle with diameter ${\displaystyle 1}$ , the circumference is (by definition of Pi) the circle number ${\displaystyle \pi }$ .

Around 250 BCE Archimedes of Syracuse started with regular hexagons, whose side lengths (and therefore circumference) can be directly calculated from the circle diameter. Furthermore, a way to compute the side length of a regular ${\displaystyle 2n}$ -gon from the previous ${\displaystyle n}$ -gon can be found, starting at the regular hexagon (${\displaystyle 6}$ -gon). By successively doubling the number of edges until reaching 96-sided polygons, Archimedes reached an interval with ${\displaystyle {\tfrac {223}{71}}<\pi <{\tfrac {22}{7}}}$ . The upper bound ${\displaystyle 22/7\approx 3.143}$  is still often used as a rough, but pragmatic approximation of ${\displaystyle \pi }$ .

Around the year 1600 CE, Archimedes' method was still the gold standard for calculating Pi and was used by Dutch mathematician Ludolph van Ceulen, to compute more than thirty digits of ${\displaystyle \pi }$ , which took him decades. Soon after, more powerful methods for the computation were found.

### Other implementations

Early uses of sequences of nested intervals (or can be described as such with modern mathematics), can be found in the predecessors of calculus (differentiation and integration). In computer science, sequences of nested intervals is used in algorithms for numerical computation. I.e. the Bisection method can be used for calculating the roots of continuous functions. In contrast to mathematically infinite sequences, an applied computational algorithm terminates at some point, when the desired zero has been found or sufficiently well approximated.

## The construction of the real numbers

In mathematical analysis, nested intervals provide one method of axiomatically introducing the real numbers as the completion of the rational numbers, being a necessity for discussing the concepts of continuity and differentiability. Historically, Isaac Newton's and Gottfried Wilhelm Leibniz's discovery of differential and integral calculus from the late 1600s has posed a huge challenge for mathematicians trying to prove their methods rigorously; despite their success in physics, engineering and other sciences. The axiomatic description of nested intervals (or an equivalent axiom) has become an important foundation for the modern understanding of calculus.

In the context of this article, ${\displaystyle \mathbb {R} }$  in conjunction with ${\displaystyle +}$  and ${\displaystyle \cdot }$  is an Archimedean ordered field, meaning the axioms of order and the Archimedean property hold.

### Definition[1]

Let ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  be a sequence of closed intervals of the type ${\displaystyle I_{n}=[a_{n},b_{n}]}$ , where ${\displaystyle |I_{n}|:=b_{n}-a_{n}}$  denotes the length of such an interval. One can call ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  a sequence of nested intervals, if

1. ${\displaystyle \quad \forall n\in \mathbb {N} :\;\;I_{n+1}\subseteq I_{n}}$
2. ${\displaystyle \quad \forall \varepsilon >0\;\exists N\in \mathbb {N} :\;\;|I_{N}|<\varepsilon }$ .

Put into words, property 1 means, that the intervals are nested according to their index. The second property formalizes the notion, that interval sizes get arbitrarily small; meaning, that for an arbitrary constant ${\displaystyle \varepsilon >0}$  one can always find an interval (with index ${\displaystyle N}$ ) with a length strictly smaller than that number ${\displaystyle \varepsilon }$ . It is also worth noting that property 1 immediately implies that every interval with an index ${\displaystyle n\geq N}$  must also have a length ${\displaystyle |I_{n}|<\varepsilon }$ .

#### Remark

Note that some authors refer to such interval-sequences, satisfying both properties above, as shrinking nested intervals. In this case a sequence of nested intervals refers to a sequence that only satisfies property 1.

### Axiom of completeness

If ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  is a sequence of nested intervals, there always exists a real number, that is contained in every interval ${\displaystyle I_{n}}$ . In formal notation this axiom guarantees, that

${\displaystyle \exists x\in \mathbb {R} :\;x\in \bigcap _{n\in \mathbb {N} }I_{n}}$ .

#### Theorem

Each sequence ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  of nested intervals contains exactly one real number ${\displaystyle x}$ .

Proof: This statement can easily be verified by contradiction. Assume that there exist two different numbers ${\displaystyle x,y\in \cap _{n\in \mathbb {N} }I_{n}}$ . From ${\displaystyle x\neq y}$  it follows, that they differ by ${\displaystyle |x-y|>0.}$  Since both numbers have to be contained in every interval, it follows that ${\displaystyle |I_{n}|\geq |x-y|}$  for all ${\displaystyle n\in \mathbb {N} }$ . This contradicts property 2 from the definition of nested intervals; therefore, the intersection can contain at most one number ${\displaystyle x}$ . The completeness axiom guarantees, that such a real number ${\displaystyle x}$  exists. ${\displaystyle \;\square }$

#### Notes

• This axiom is fundamental in the sense that a sequence of nested intervals does not necessarily contain a rational number - meaning that ${\displaystyle \cap _{n\in \mathbb {N} }I_{n}}$  could yield ${\displaystyle \emptyset }$ , if only considering the rationals.
• The axiom is equivalent to the existence of the infimum and supremum (proof below), the convergence of Cauchy sequences and the Bolzano–Weierstrass theorem. This means that one of the four has to be introduced axiomatically, while the other three can be successively proven.

## Direct consequences of the axiom

### Existence of roots

By generalizing the algorithm shown above for square roots, one can prove that in the real numbers, the equation ${\displaystyle x=y^{j},\;j\in \mathbb {N} }$  can always be solved for ${\displaystyle y={\sqrt[{j}]{x}}=x^{1/j}}$ . This means there exists a unique real number ${\displaystyle y>0}$ , such that ${\displaystyle x=y^{k}}$ . Comparing to the section above, one achieves a sequence of nested intervals for the ${\displaystyle k}$ -th root of ${\displaystyle x}$ , namely ${\displaystyle y}$ , by looking at whether the midpoint ${\displaystyle m_{n}}$  of the ${\displaystyle n}$ -th interval is lower or equal or greater than ${\displaystyle m_{n}^{k}}$ .

### Existence of infimum and supremum in bounded Sets

#### Definition

If ${\displaystyle A\subset \mathbb {R} }$  has an upper bound, i.e. there exists a number ${\displaystyle b}$ , such that ${\displaystyle x\leq b}$  for all ${\displaystyle x\in A}$ , one can call the number ${\displaystyle s=\sup(A)}$  the supremum of ${\displaystyle A}$ , if

1. the number ${\displaystyle s}$  is an upper bound of ${\displaystyle A}$ , meaning ${\displaystyle \forall x\in A:\;x\leq s}$
2. ${\displaystyle s}$  is the least upper bound of ${\displaystyle A}$ , meaning ${\displaystyle \forall \sigma \sigma }$

Only one such number ${\displaystyle s}$  can exist. Analogously one can define the infimum (${\displaystyle \inf(B)}$ ) of a set ${\displaystyle B\subset \mathbb {R} }$ , that is bounded from below, as the greatest lower bound of that set.

#### Theorem

Each set ${\displaystyle A\subset \mathbb {R} }$  has a supremum (infimum), if it is bounded from above (below).

Proof: Without loss of generality one can look at a set ${\displaystyle A\subset \mathbb {R} }$  that has an upper bound. One can now construct a sequence ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  of nested intervals ${\displaystyle I_{n}=[a_{n},b_{n}]}$ , that has the following two properties:

1. ${\displaystyle b_{n}}$  is an upper bound of ${\displaystyle A}$  for all ${\displaystyle n\in \mathbb {N} }$
2. ${\displaystyle a_{n}}$  is never an upper bound of ${\displaystyle A}$  for any ${\displaystyle n\in \mathbb {N} }$ .

The construction follows a recursion by starting with any number ${\displaystyle a_{1}}$ , that is not an upper bound (e.g. ${\displaystyle a_{1}=c-1}$ , where ${\displaystyle c\in A}$  and an arbitrary upper bound ${\displaystyle b_{1}}$  of ${\displaystyle A}$ ). Given ${\displaystyle I_{n}=[a_{n},b_{n}]}$  for some ${\displaystyle n\in \mathbb {N} }$  one can compute the midpoint ${\displaystyle m_{n}:={\frac {a_{n}+b_{n}}{2}}}$  and define

${\displaystyle I_{n+1}:=\left\{{\begin{matrix}\left[a_{n},m_{n}\right]&&{\text{if}}\;m_{n}\;{\text{is an upper bound of}}\;A\\\left[m_{n},b_{n}\right]&&{\text{if}}\;m_{n}\;{\text{is not an upper bound}}\end{matrix}}\right.}$

Note that this interval sequence is well defined and obviously a sequence of nested intervals by construction.

Now let ${\displaystyle s}$  be the number in every interval (whose existence is guaranteed by the axiom). ${\displaystyle s}$  is an upper bound of ${\displaystyle A}$ , otherwise there exists a number ${\displaystyle x\in A}$ , such that ${\displaystyle x>s}$ . Furthermore, this would imply the existence of an interval ${\displaystyle I_{m}=[a_{m},b_{m}]}$  with ${\displaystyle b_{m}-a_{m} , from which ${\displaystyle b_{m}-s  follows, due to ${\displaystyle s}$  also being an element of ${\displaystyle I_{m}}$ . But this is a contradiction to property 1 of the supremum (meaning ${\displaystyle b_{m}  for all ${\displaystyle m\in \mathbb {N} }$ ). Therefore ${\displaystyle s}$  is in fact an upper bound of ${\displaystyle A}$ .

Assume that there exists a lower upper bound ${\displaystyle \sigma   of ${\displaystyle A}$ . Since ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  is a sequence of nested intervals, the interval lengths get arbitrarily small; in particular, there exists an interval with a length smaller than ${\displaystyle s-\sigma }$ . But from ${\displaystyle s\in I_{n}}$  one gets ${\displaystyle s-a_{n}  and therefore ${\displaystyle a_{n}>\sigma }$ . Following the rules of this construction, ${\displaystyle a_{n}}$  would have to be an upper bound of ${\displaystyle A}$ , contradicting property 2 of all sequences of nested intervals.

In two steps, it has been shown that ${\displaystyle s}$  is an upper bound of ${\displaystyle A}$  and that a lower upper bound cannot exist. Therefore ${\displaystyle s}$  is the supremum of ${\displaystyle A}$  by definition.

#### Remark

As was seen, the existence of suprema and infima of bounded sets is a counsequence of the completeness of ${\displaystyle \mathbb {R} }$ . In effect the two are actually equivalent, meaning that either of the two can be introduced axiomatically.

Proof: Let ${\displaystyle (I_{n})_{n\in \mathbb {N} }}$  with ${\displaystyle I_{n}=[a_{n},b_{n}]}$  be a sequence of nested intervals. Then the set ${\displaystyle A:=\{a_{1},a_{2},\dots \}}$  is bounded from above, where every ${\displaystyle b_{n}}$  is an upper bound. This implies, that the least upper bound ${\displaystyle s=\sup(A)}$  fulfills ${\displaystyle a_{n}\leq s\leq b_{n}}$  for all ${\displaystyle n\in \mathbb {N} }$ . Therefore ${\displaystyle s\in I_{n}}$  for all ${\displaystyle n\in \mathbb {N} }$ , respectively ${\displaystyle x\in \cap _{n\in \mathbb {N} }I_{n}}$ .

### Further consequences

After formally defining the convergence of sequences and accumulation points of sequences, one can also prove the Bolzano–Weierstrass theorem using nested intervals. In a follow-up, the fact, that Cauchy sequences are convergent (and that all convergent sequences are Cauchy sequences) can be proven. This in turn allows for a proof of the completeness property above, showing their equivalence.

## Further discussion of related aspects

Without any specifying what is meant by interval, all that can be said about the intersection ${\displaystyle \cap _{n\in \mathbb {N} }I_{n}}$  over all the naturals (i.e. the set of all points common to each interval) is that it is either the empty set ${\displaystyle \emptyset }$ , a point on the number line (called a singleton ${\displaystyle \{x\}}$ ), or some interval.

The possibility of an empty intersection can be illustrated by looking at a sequence of open intervals ${\displaystyle I_{n}=\left(0,{\frac {1}{n}}\right)=\left\{x\in \mathbb {R} :0 .

In this case, the empty set ${\displaystyle \emptyset }$  results from the intersection ${\displaystyle \cap _{n\in \mathbb {N} }I_{n}}$ . This result comes from the fact that, for any number ${\displaystyle x>0}$  there exists some value of ${\displaystyle n\in \mathbb {N} }$  (namely any ${\displaystyle n>1/x}$ ), such that ${\displaystyle 1/n . This is given by the Archimedean property of the real numbers. Therefore, no matter how small ${\displaystyle x>0}$ , one can always find intervals ${\displaystyle I_{n}}$  in the sequence, such that ${\displaystyle x\notin I_{n},}$  implying that the intersection has to be empty.

The situation is different for closed intervals. If one changes the situation above by looking at closed intervals of the type ${\displaystyle I_{n}=\left[0,{\frac {1}{n}}\right]=\left\{x\in \mathbb {R} :0\leq x\leq {\frac {1}{n}}\right\}}$ , one can see this very clearly. Now for each ${\displaystyle x>0}$  one still can always find intervals not containing said ${\displaystyle x}$ , but for ${\displaystyle x=0}$ , the property ${\displaystyle 0\leq x\leq 1/n}$  holds true for any ${\displaystyle n\in \mathbb {N} }$ . One can conclude that, in this case, ${\displaystyle \cap _{n\in \mathbb {N} }I_{n}=\{0\}}$ .

One can also consider the complement of each interval, written as ${\displaystyle (-\infty ,a_{n})\cup (b_{n},\infty )}$  - which, in our last example, is ${\displaystyle (-\infty ,0)\cup (1/n,\infty )}$ . By De Morgan's laws, the complement of the intersection is a union of two disjoint open sets. By the connectedness of the real line there must be something between them. This shows that the intersection of (even an uncountable number of) nested, closed, and bounded intervals is nonempty.

## Higher dimensions

In two dimensions there is a similar result: nested closed disks in the plane must have a common intersection. This result was shown by Hermann Weyl to classify the singular behaviour of certain differential equations.